Answered step by step
Verified Expert Solution
Question
1 Approved Answer
QUESTION 3. Modify the single-cycle datapath by implementing the return-if-zero' (retz) instruction. This instruction provides a way of checking a condition and returning from a
QUESTION 3. Modify the single-cycle datapath by implementing the return-if-zero' (retz) instruction. This instruction provides a way of checking a condition and returning from a subroutine. Below is the syntax. Iftl is equal to zero, the programs returns to the address that is stored in register ra. (20 points) retz t This is the encoding of the instruction above: unique ra tl opcode rs rt rd shamt Funct Part a) Do you need to add new lines or components to the single-cycle datapath? Mention them below and draw these on the datapath diagram. Part b) Do you need to add a new control signal? If yes, mention it below and show how it's used in the diagram. Part c) Give the values of all the control signals when the datapath is executing the new instruction. Also, give the value of any control signal that you added. RegDst Branch MemRead MemtoReg ALUOp MemWrite ALUSrc RegWrite QUESTION 3. Modify the single-cycle datapath by implementing the return-if-zero' (retz) instruction. This instruction provides a way of checking a condition and returning from a subroutine. Below is the syntax. Iftl is equal to zero, the programs returns to the address that is stored in register ra. (20 points) retz t This is the encoding of the instruction above: unique ra tl opcode rs rt rd shamt Funct Part a) Do you need to add new lines or components to the single-cycle datapath? Mention them below and draw these on the datapath diagram. Part b) Do you need to add a new control signal? If yes, mention it below and show how it's used in the diagram. Part c) Give the values of all the control signals when the datapath is executing the new instruction. Also, give the value of any control signal that you added. RegDst Branch MemRead MemtoReg ALUOp MemWrite ALUSrc RegWrite
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started