{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

InClassActivity09-sol

# InClassActivity09-sol - 10:02 PM SOLUTION Activity#09...

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

10/22/07 10:02 PM 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.37, p. 338. 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.28) 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.12).

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

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

### Page1 / 3

InClassActivity09-sol - 10:02 PM SOLUTION Activity#09...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document
Ask a homework question - tutors are online