Question: How would you extend the datapath in Figure 2 to implement the SLL and SRL instructions. Note: The ALU needs the first port to contain
How would you extend the datapath in Figure 2 to implement the SLL and SRL instructions. Note: The ALU needs the first port to contain the value to shift and the second to contain the amount to shift by. Pay special attention to the data path for these values.

Add Add Shift left 2 Instruction 125:21] Read register 1 Read MemWrite PC Instruction [20:16) data 1 0register 2 [31:0] ALU ALU M Write Addreaa data nstruction [15:1regiater data2 data Regiatera Data Instruction [15:0] 16 Sign32 ALU Inatruction [5:0] Fig. 2: ALU Datapath
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
