InClassActivity09-sol - 2/22/02 10:02 PM SOLUTION Activity...

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

View Full Document Right Arrow Icon
2/22/02 10:02 PM ECSE-2660 Computer Architecture, Networks, & Operating Systems, Spring 2002 Page 1 of 3 SOLUTION Activity #09 Activity 9.1 Finite state machine control for the datapath (40 pts, 5 each part) Consider the state diagram of Figure 5.42, p. 396. a. List the states traversed for instruction subu $s1, $s2, $s3: 0, 1, 6, 7. Grading: 1 points off for each missing or extra state. b. In what state does the Arithmetic and Logic Unit perform the actual subtraction? In State 6. Grading: right or wrong. c. Give an example of an instruction that activates State 5: sw Grading: 2 for trying. d. What is the sequence of states for the bne instruction? 0, 1, 8 . Grading: 1 off for each missing or extra. e. Can you think of an instruction that does not activate State 1? No, not even nop . Grading: 4 off for not decoding the instruction. f. Why is ALUSrcB=00 in State 8? Because control signal 00 causes the mux (Fig. 5.33) to feed a data register to the B input of the ALU, as expected in a branch instruction .. Grading: 2 off for fuzzy explanation, 4 off for wrong g. Why is the ALUOp=00 in State 2? Because in a memory instruction the address is determined by addition. ALUOp=00 results in the correct ALU control (010 ) for add (Fig. 5.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.

Page1 / 3

InClassActivity09-sol - 2/22/02 10:02 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