An Overview of the Implementation (Cont.)


The figure at the bottom shows the basic implementation of the MIPS subset, including the necessary multiplexors and control lines.

  • The top multiplexor (“Mux”) controls what value replaces the PC; it is controlled by the gate that “ANDs” together the Zero output of the ALU and a control signal that indicates that the instruction is a branch like
      beq  $t1, 0, offset
      # branch if $t1 == 0
The added control lines are straightforward and determine the operation performed at the ALU, whether the data memory should read or write, and whether the registers should perform a write operation. The control lines are shown in color.




      “We should forgive our enemies, but not before they are hanged”    
      ― Heinrich Heine