Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Assume that, the following instruction is fetched by a single-cycle processor: 00000000100000100000100000100010 . Assume that data memory is all zeros and that the processors registers

Assume that, the following instruction is fetched by a single-cycle processor: 00000000100000100000100000100010 . Assume that data memory is all zeros and that the processors registers have the following values at the beginning of the cycle in which the above instruction word is fetched:

image text in transcribed

r2 r3 r4 0 256 128 19 32 13 61 16 2 (a) Translate this to an assembly instruction (b) What is the register number supplied to the register files "Read register 1 input? Is this register actually read and used? (c) What is the register number supplied to the register files "Read register 2" input? Is this register actually read and used? (d) What is the register number supplied to the register files "Write register" input? (e) What is the output of the sign-extend? (f) What is the output of the jump "Shift left 2" unit for this instruction word? (g) For the ALU and the two add units, what are their data input values? (h) Fill in the values of the control signals for this instruction in the table below. Jump Branch RegDst ALUSrc MemtoReg RegWrite MemReadMemWrite ALUop r2 r3 r4 0 256 128 19 32 13 61 16 2 (a) Translate this to an assembly instruction (b) What is the register number supplied to the register files "Read register 1 input? Is this register actually read and used? (c) What is the register number supplied to the register files "Read register 2" input? Is this register actually read and used? (d) What is the register number supplied to the register files "Write register" input? (e) What is the output of the sign-extend? (f) What is the output of the jump "Shift left 2" unit for this instruction word? (g) For the ALU and the two add units, what are their data input values? (h) Fill in the values of the control signals for this instruction in the table below. Jump Branch RegDst ALUSrc MemtoReg RegWrite MemReadMemWrite ALUop

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

More Books

Students also viewed these Databases questions

Question

What is a handle, and how does a process obtain a handle?

Answered: 1 week ago

Question

4-6 Is there a digital divide? If so, why does it matter?

Answered: 1 week ago