InClassActivity10-sol

InClassActivity10-sol - 10/22/07 10:03 PM SOLUTION Activity...

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

View Full Document Right Arrow Icon
10/22/07 10:03 PM SOLUTION Activity #10 Activity 10.1 Pipeline registers (50) Consider the example of Figures 6.10 – 6.17 (beginning p. 387). a. In Clock Cycle (CC) 3, what operation does the ALU perform, where does it get its operands, and where are the results placed? The ALU adds 0 to 100 after sign-extending 100(i.e., filling in leading zeros to make it 32 bits), and puts the result in the EX/MEM pipeline register. Both operands are obtained from the ID/EX register. Grading: 10 for each part. 3 off for each of wrong operation, source, destination. b. In CC4? Same, but with constant 200 instead of 100. Grading: 3 off for each of wrong operation, source, destination. c. In CC7, what is written into the register file? Which register? The data word at address 300 + 0 is read from MEM/WB and written into register #3. Grading: 4 off for each of wrong value, destination. d. In what stage(s) is the EX/MEM register read? Why? In Stage 4 it provides the memory address to the load instruction (Fig. 6.14).
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 homework help was uploaded on 04/08/2008 for the course ECE 562 taught by Professor Zhou during the Fall '07 term at New Hampshire.

Page1 / 2

InClassActivity10-sol - 10/22/07 10:03 PM SOLUTION Activity...

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