InClassActivity09-sol - 2/16/03 3:12 PM Activity #09...

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

View Full Document Right Arrow Icon
2/16/03 3:12 PM ECSE-2660 Computer Architecture, Networks, & Operating Systems, Spring 2003 Page 1 of 3 Activity #09 (Solution) Activity 9.1 Finite state machine control for the datapath (40 points, 5 points for each part) Consider the state diagram of Figure 5.42, p. 396. a. List the states traversed for instruction lw $s1, 80($s2) 0, 1, 2, 3, 4. Grading: 1 points off for each missing or extra state. b. For the instruction in the previous question, in what state does the processor actually write the content of memory location 80($s2) into the register $s1 ? In State 4. Grading: right or wrong. c. Give an example of an instruction that activates State 9: j Grading: 2 for trying. d. What is the sequence of states for the add instruction? 0, 1, 6, 7 . Grading: 1 off for each missing or extra. e. Does the instruction nop activate the State 1? Yes. Grading: right or wrong. f. Why is ALUSrcB=10 in State 2? Because control signal 10 causes the mux (Fig. 5.33) to feed the last 16bits (extended to 32) into ALU so that ALU can calculate the memory address to load/store from/to. Grading: 2 off for fuzzy explanation, 4 off for wrong g. Why is the ALUOp=01 in State 8? Because in a branch instruction the two data registers must be compared. This is done by subtracting one from the other so that they are equal if the result of subtraction is zero. So, ALU
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 note was uploaded on 04/25/2010 for the course ECSE ecse-2340 taught by Professor Wozny during the Spring '09 term at Rensselaer Polytechnic Institute.

Page1 / 3

InClassActivity09-sol - 2/16/03 3:12 PM Activity #09...

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