Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

IUPL Question 1 In this question we will analyze how a MIPS instruction goes through the single cycle datapath from beginning to end, and predict

image text in transcribed
image text in transcribed
IUPL Question 1 In this question we will analyze how a MIPS instruction goes through the single cycle datapath from beginning to end, and predict the values on the datapath as this instruction executes. The process is similar to the discussion in the Single Cycle Datapath tutorial. The instruction we will use is the shift-left-logical variable (it is an R-type instruction summarized in table B.2 of the appendix B). The specific MIPS instruction is - sllv $s3, $s1, $s2 Fill the blanks below - (1) Instruso in other words the 5th to the oth bits of the instruction which enters the Control Unit as the Funct input is (write the 6-bit sequence in the blank space). (2) The other input to the Control Unit comes from Instr131.261 which in this case (write the 6-bit sequence in the blank space). (3) Instr2521 - (write the 5-bit sequence in the blank space). Hint: this is a register number. Find the register from the instruction and look up its number from Table 6.1. (4) Instr 120-161" (write the 5-bit sequence in the blank space). (5) Instress:11) (write the 5-bit sequence in the blank space). (6) In the datapath, the signal RegWrite which is computed by the Control Unit and is sent to the WE3 port of the Register File has the value for this instruction. Hint: this is a single- bit control variable that tells the Register File to write.or not to write to the destination register. (6) In the datapath, the signal RegWrite which is computed by the Control Unit and is sent to the WE3 port of the Register File has the value = for this instruction. Hint: this is a single- bit control variable that tells the Register File to write, or not to write to the destination register. (7) You are told that before execution of the instruction, the values inside the registers used by the instruction are as follows (all values here are written in decimal, and the square bracket notation [] means "value of") - [ $51]= 10 [$s2] -20 Given this information, the value of Src in the datapath is (write the value in decimal, not binary), and the value of SrcB in the datapath is (again write the value in decimal). The output of the ALU, that is ALUResult - (also, write in decimal). Hint:table B.2 summarizes how slly works, i.e. the least significant 5 bits of register rs is used as the shift amount, and the value in it is what is shifted. Also note from that table that the format in which the instruction is written is silv rd, rt, rs. (8) The signal MemtoReg which is computed by the Control Unit and is sent to control the Result- choosing multiplexor, has the value - for this instruction

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_2

Step: 3

blur-text-image_3

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

Big Data Systems A 360-degree Approach

Authors: Jawwad ShamsiMuhammad Khojaye

1st Edition

0429531575, 9780429531576

More Books

Students also viewed these Databases questions

Question

What does the start( ) method defined by Thread do?

Answered: 1 week ago

Question

Recommend the key methods to improve service productivity.

Answered: 1 week ago