Question: 3 : 0 5 6 9 4 5 % chegg.com EN - US RISC - V RISC - V ( 4 3 % ) Consider

3:0569
45%
chegg.com
EN-US
RISC-V
RISC-V
(43%) Consider the design of the 5-stage RISC-V pipeline shown below. Suppose we want to add a new R-type instruction to this design:
(5%)(5%)(5%)(8%)(10%)sltrd,rs1,rs2,??Reg[rd]=1if Reg[rs1]
Its binary representation isas follows. Note the op code is same as add, sub, or and and.
0000000rs2rs1010rd0110011
From Chapter 3,we also know that the ALU can support the set-less-than operation by setting the ALUctr signals to0111.
(a)(5%)Dowe need to add any new circuit blocks or wires to the design? Give your reasons.
(b)(5%)Dowe need to make any change to the main control "Control"? (You need only describe your ideas. There isno need to show the truth table or logic design.)
(c)(5%)Dowe need to make any change to the "ALU control"? (You need only describe your ideas. There isno need to show the truth table or logic design.)
(d)(8%) Suppose we want to stall the instruction at the EX stage and all the instructions following it for one cycle and insert a "bubble" before it. What should wedoto the pipeline registers?
(e)(5%) Explain why setting the control signals to0 turns an instruction into a NOP instruction?
(f)(5%) Suppose we can only determine the outcome and target address of a beq at the EX stage. How many "bubbles" dowe need to insert to ensure correct execution when branch is taken? Why?
(g)(10%) Suppose when the IF stage tries to fetch an instruction from the instruction memory, it encounters a TLB miss and an exception is raised, how does the processor circuit work to handle the exception? (Note that the pipeline has two extra registers: SCAUSE and SEPC to handle exceptions.)
Show Image Transcript
 3:0569 45% chegg.com EN-US RISC-V RISC-V (43%) Consider the design of

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Lets address each part of the question related to adding a new Rtype instruction to a 5stage RISCV pipeline design a Do we need to add any new circuit ... View full answer

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!