fa06-sw-sf - ECE 2030 1:00pm 5 problems, 4 pages Problem 1...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
ECE 2030 1:00pm Computer Engineering Fall 2006 5 problems, 4 pages Final Exam Solution 14 December 2006 1 Problem 1 (3 parts, 27 points) Microcode Using the supplied datapath, write microcode fragments to accomplish the following procedures. Express all values in hexadecimal notation. Use ‘X’ when a value is don’t cared. For maximum credit, complete the description field. Recall that means XOR. Use only registers 1, 2, and 3. Part A (15 points) 8 5 ) ( 4 3 2 1 1 + = R R R R . # X Y Z rwe im en im va au en -a /s lu en lf su en st description 1 2 3 2 1 0 X 0 X 1 6 0 X R2 <- R2 xor R3 2 1 X 1 1 1 FFFE 0 X 0 X 1 1 R1 <- R1 * 4 3 1 2 1 1 0 X 1 0 0 X 0 X R1 <- R2 + R1 4 1 X 1 1 1 0005 1 1 0 X 0 X R1 <- R1 - 5 5 1 X 1 1 1 0003 0 X 0 X 1 1 R1 <- R1 / 8 Part B (6 points) Assume R 1 contains three packed unsigned integer bytes (A, B, and C). Assume A is the least significant byte, then B, then C. Write a microcode fragment that unpacks B, placing it in the lowest eight bits of R 1 . All other bits should be zero. # X Y Z rwe im en im va au en -a /s lu en lf su en st description 1 1 X 1 1 1 0008 0 X 0 X 1 0 R1 <- R1 >> 8 2 1 X 1 1 1 00FF 0 X 1 8 0 X R1 <- R1 & FF Part C (6 points) Write a microcode sequence that averages the initial values of R
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 06/17/2008 for the course ECE 2030 taught by Professor Wolf during the Fall '07 term at Georgia Institute of Technology.

Page1 / 4

fa06-sw-sf - ECE 2030 1:00pm 5 problems, 4 pages Problem 1...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online