hw5_soln

hw5_soln - Rice University ELEC 220 Fundamentals of...

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

View Full Document Right Arrow Icon
Rice University ELEC 220 – Fundamentals of Computer Engineering Homework #5 Homework graded out of 100 points. This fifth homework contains problems from Chapters 5, 6 and 7 of the textbook by Patt & Patel, second edition. 1. (10 points) Chapter 5, problem 5.36. LD instruction use of LC-3 datapath in Fig. 5.18. Memory, MDR, MAR, IR, PC, Reg File, the SEXT unit connected to IR[8:0], ADDR2MUX, ADDR1MUX set to PC, alongwith the ADDER they connect to, and MAXMUX and GateMARMUX implement the LD instruction, alongwith NZP and the logic which goes with it. 2. (10 points) Chapter 5, problem 5.40. Internal control structure of LC-3. The signal A indicates if the instruction in IR is a taken branch instruction. 3. (10 points) Chapter 5, problem 5.41. Internal control signals within LC-3. (a) Y is the P Condition code. (b) Yes. The error is that the logic should not have the logic gate A. X should be one whenever the opcode field of the IR matches the opcodes which change the condition code registers. The problem is that X is 1 for the BR opcode (0000) in the given logic. 4. (10 points) Chapter 6, problem 6.2 Create subtraction routine in machine code and
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.

Page1 / 4

hw5_soln - Rice University ELEC 220 Fundamentals of...

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