Question: Extend the single-cycle datapath with support for instructions addi, and ori. A remarkable difference between these instructions is the way they convert the 16-bit immediate

Extend the single-cycle datapath with support for instructions addi, and ori. A remarkable difference between these instructions is the way they convert the 16-bit immediate value into a 32-bit value. Add the new logic blocks needed for the instructions, and include a new control signal named ImmExtend that determines how field imm is handled. Each possible value for the new control signal has the following effects:

0 Perform a sign extension of field imm. This is the current behavior of the unmodified datapath.

1 Perform a zero extension of field imm.

Draw the extended block diagram, including the new exposed control signal. You don't need to represent the control unit. You can leave out all those components of the datapath that remain unmodified, and use labels on your wires to indicate which omitted datapath elements they're connected to.

Extend the truth table for the control unit to reflect the support for the new instructions. Show only the two new rows in the truth table. The two columns on the left side of the table (inputs) should include the opcode and funct fields of the instruction. The columns on the right side should show all control signals, including the new ImmExtend. Use don't cares when possible.

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!