Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

In this exercise we examine in detail how an instruction is executed in a single cycle datapath. Problems in this exercise refer to a clock

In this exercise we examine in detail how an instruction is executed in a single cycle datapath. Problems in this exercise refer to a clock cycle in which the processor answers in decimal unless otherwise specified.
Assume that data memory is all zeros and that the processor's registers have the following values at the beginning of the cycle in which the above instruction word is fetched:
\table[[R0,R1,R2,R3,R4,R5,R6,R8,R12,R31],[0,-1,2,-3,-4,10,6,8,2,-16]]
a) What is the MIPS assembly instruction?
b) What are the outputs of the sign-extend and the "Shift left 2" for this instruction word?c) What are the values of the ALU control unit's inputs for this instruction?
d) What is the new PC address after this instruction is executed?
e) For each Mux, show the values of its data output during the execution of this instruction
and these register values.
RegDst:
MemtoR
Jump:
ALUSrc: .
Branch:
f) For the ALU and the two add units, what are their data input values?
ALU1:_
ALU2:
AddPC1:
AddPC2:
AddBranch1:
AddBranch2:
g) What are the values of all inputs for the "Registers" unit?
ReadReg1:
ReadReg2:
WriteReg:
WriteData:Question 2(10 Points) In this exercise we examine in detail how an instruction is executed in a single cycle datapath. Problems in this exercise refer to a clock cycle in which the processor answers in decimal unless otherwise specified.
Assume that data memory is all zeros and that the processor's registers have the following values at the beginning of the cycle in which the above instruction word is fetched:
\table[[R0,R1,R2,R3,R4,R5,R6,R8,R12,R31],[0,-1,2,-3,-4,10,6,8,2,-16]]
a) What is the MIPS assembly instruction?
b) What are the outputs of the sign-extend and the "Shift left 2" for this instruction word?Question 2(10 Points) In this exercise we examine in detail how an instruction is executed in a single cycle datapath. Problems in this exercise refer to a clock cycle in which the processor fetches the following instruction word: 10101100011000100000000000010100. Provide all answers in decimal unless otherwise specified.
Assume that data memory is all zeros and that the processor's registers have the following values at the beginning of the cycle in which the above instruction word is fetched:
\table[[R0,R1,R2,R3,R4,R5,R6,R8,R12,R31],[0,-1,2,-3,-4,10,6,8,2,-16]]
image text in transcribed

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

Data Analysis Using SQL And Excel

Authors: Gordon S Linoff

2nd Edition

111902143X, 9781119021438

More Books

Students also viewed these Databases questions