Question: Modify the single-cycle datapath by implementing the inc $t0, $t1 instrunction. Below is the syntax and the encoding. The instruction inc $t0, $t1 increments both

Modify the single-cycle datapath by implementing the inc $t0, $t1 instrunction.

Below is the syntax and the encoding.

The instruction inc $t0, $t1 increments both registers t0 and t1 by 4. Notice that the immediate value in the instruction is equal to 4.

Unique

T0

T1

4

Opcode rs rt immediate

A) Draw the changes on the datapath diagram below.

B) Give the values of the control signals.

Instruction [25-01 ump address [31-0] J Shift left 2 PC+4 131-28] Add ALU left 2 Branch Instruction [31-26] ALUOp MemWrite ALUSrc register 1 nstruction [20-16] data 1 Zero ALU ALU register 2 31-0] Registers Read data 2 Instruction [15-11] Write memory 16 nstruction [15-0] ALU Instruction [25-01 ump address [31-0] J Shift left 2 PC+4 131-28] Add ALU left 2 Branch Instruction [31-26] ALUOp MemWrite ALUSrc register 1 nstruction [20-16] data 1 Zero ALU ALU register 2 31-0] Registers Read data 2 Instruction [15-11] Write memory 16 nstruction [15-0] ALU

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

Students Have Also Explored These Related Databases Questions!