Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

We would like to add the sll (shift left logical) instruction to the single cycle datapath discussed in class. You will need to feed the

We would like to add the sll (shift left logical) instruction to the single cycle datapath discussed in class. You will need to feed the shamt field to the ALU so that it can shift using the shift amount. (You can assume that the ALU has an implementation of shift left logical if a shift amount and an integer to be shifted are inserted and its ALUOp is 11.) Trace which datapaths in the following picture are used to perform the sll instruction by marking the paths, and add datapath(s) and control signal(s) to the single-cycle datapath for the sll instruction, if it is necessary. (You should also make sure that previously existing instructions such as R-format (add,sub,and,or,slt), lw, sw, and beq still work with this additional instruction.)

image text in transcribed

Add Add resut Shift left 2 RegDst Instruction (31-28] Control Mernto ALUSrc Instruction 125-211 Read register 1 Read PC address data 1 struction 20-16 register 2 | register Wrte (31-0] ALU ALU M Wrte Instruction | |instruction [15-11]| resutAddress Head data 2 MI data Registers Writo memory data instruction [15-01 Sign32 ALU control Instruction [5-0 Add Add resut Shift left 2 RegDst Instruction (31-28] Control Mernto ALUSrc Instruction 125-211 Read register 1 Read PC address data 1 struction 20-16 register 2 | register Wrte (31-0] ALU ALU M Wrte Instruction | |instruction [15-11]| resutAddress Head data 2 MI data Registers Writo memory data instruction [15-01 Sign32 ALU control Instruction [5-0

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

MySQL/PHP Database Applications

Authors: Jay Greenspan, Brad Bulger

1st Edition

ISBN: 978-0764535376

More Books

Students also viewed these Databases questions