CS3421 Problem Set 7

One-Cycle MIPS Implementation

Use the diagram on page 314 for all problems.

  1. Show the values of the following control signals when executing the instruction: sub $t0,$s1,$s2

  2. Show the values of the following control signals when executing the instruction: sw $t4,100($s3)

  3. Show the values of the following control signals when executing the instruction: j 64

  4. Suppose it takes memory 100 nsec to read a word, the ALU and adders take 4 nsec, the register file can be read or written in 1 nsec, the PC can be read or written in 0.2 nsec, and all multiplexors take 0.1 nsec. Assume everything else takes 0 time (control, shift, sign extend, wires, etc.).