Chapter 4: 1. (page 357)
Consider the following instruction: Instruction: AND Rd,Rs,Rt Interpretation: Reg[Rd] = Reg[Rs] AND Reg[Rt] 4.1.1 [5] What are the values of control signals generated by the control in Figure 4.2 for the above instruction? 4.1.2 [5] Which resources (blocks) perform a useful function for this instruction? 4.1.3 [10] Which resources (blocks) produce outputs, but their outputs are not used for this instruction? Which resources produce no outputs for this instruction?
Short Answer
4.1.1
The required values are written below:
RegWrite | Memread | ALUMUX | MemWrite | ALUOP | RegMux | Branch |
0 | 0 | 1 | 1 | Add | X | 0 |
4.1.2
All resources (blocks) perform a useful function for this instruction except the “branch add” unit and write the port of the registers.
4.1.3
Resources | Output |
Branch add | Data memory[Not used output] |
Branch add, second the read port register | No outputs |