Question: Exercise 4.9 In this exercise we examine the operation of the single-cycle datapath for a particular instruction. Problems in this exercise refer to the following

Exercise 4.9 In this exercise we examine the operation of the single-cycle datapath for a particular instruction. Problems in this exercise refer to the following MIPS instruction:

Instruction

a. lw $1,40($6)

b. Label: bne $1,$2,Label 4.9.1 [10] <4.4> What is the value of the instruction word?

4.9.2 [10] <4.4> What is the register number supplied to the register fi le’s “Read register 1” input? Is this register actually read? How about “Read register 2”?

4.9.3 [10] <4.4> What is the register number supplied to the register fi le’s “Write register” input? Is this register actually written?

Different instructions require different control signals to be asserted in the datapath.

The remaining problems in this exercise refer to the following two control signals from Figure 4.24:

Control signal 1 Control signal 2

a. RegDst MemRead

b. RegWrite MemRead 4.9.4 [20] <4.4> What is the value of these two signals for this instruction?

4.9.5 [20] <4.4> For the datapath from Figure 4.24, draw the logic diagram for the part of the control unit that implements just the fi rst signal. Assume that we only need to support lw, sw, beq, add, and j (jump) instructions.

4.9.6 [20] <4.4> Repeat Exercise 4.9.5, but now implement both of these signals.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock