{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

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

Info icon This 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
Image of page 1

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

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

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern