Consider Figure 4.24 on page 271 of the textbook computer organization and design by david patterson. Assume that the instruction word is fetched with the following value from the instruction memory. also
Suppose that at the beginning of the cycle in which the command is to be called, all the words in the instruction memory are equal to 0 and r0=0, r1= -1, r2 = 2, r3 = -3, r4 = -4, r5 = 10, r6 = 6, r8 = 8, r12 = 2, r31=-16.
Instruction word: 101011 00011 00010 0000000000010100
a) Get the outputs of sign-extension, jump, shift left 2 units for the instruction word above.
b) What are the inputs of the ALU control unit for the instruction word above.
c) What is the new PC value after this instruction is executed? How will this new value be placed on the PC?
d) While executing this instruction, get the output value of each multiplexer and the values of the registers.
e) Obtain the input values of the ALU and the other two adders (as shown).
f) What are the inputs of the register unit (register file )?
Comments
Leave a comment