Question: We will run the following code on the PIPELINED RISC - V . Assume no hazards occur at all. Note that the first instruction (

We will run the following code on the PIPELINED RISC-V. Assume no hazards occur at all. Note that the first instruction (add) is fetched in clock cycle 1.
Remember that a different instruction is on a different stage in every clock cycle and at every stage the control signals present correspond to the particular
instruction that is there in that stage. For example and may be on stage EX, Id may be on stage DECODE, SUB may be on stage IF at some point. Every
instruction at every stage carries its own control signals.
To answer the following questions you must draw a table with Clock Cycles in the columns and the corresponding instructions vertically.
If your last name starts with A-J please show the values of all the control signals for all the participating instructions only in clock cycle 4.
If your last name starts with K-Q please show the values of all the control signals for all the participating instructions only in clock cycle 5.
If your last name starts with O-Z please show the values of all the control signals for all the participating instructions only in clock cycle 6.( T )
add x1,x3,5
and 10,x8,x3
Id x4,16(x3)
sub 11,x2,x7
sd 2,100(x6)
add 7,10,x1
We will run the following code on the PIPELINED

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 Programming Questions!