Question: 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

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!