Question: Consider the following pipelined processor we studied in class ( registers are written in the first half of the cycle and read in the second

Consider the following pipelined processor we studied in class (registers are written in the first half of the cycle and read in the second half of the cycle and that branches are resolved during execute). Assume that initial values of all registers are Zero and memory are 50.
In this part
i) Assume there is forwarding hardware. (Data forwarding is Active means instruction won't have to wait in the decode stage for read after write (if there is any data dependency))
ii) Assumes all the branch instruction is NOT going to be taken. (Means if the prediction was wrong then you will have to flush the entire circuit and fetch new instruction accordingly)
Fill in the pipeline timing diagram at the bottom showing the execution of the DLX code given below. Use the following codes: F= fetch, D= decode, E= execute, M= memory access, W= write back, s= stall. The first instruction is filled in for you. Show all the executed instructions. [List the instruction number corresponding to your pipeline diagram in the leftmost column. The numbers above each column are provided to help you count cycles.]
Fill in write back cycle of each instruction:
\table[[Instr. No.,,Instruction,Write back cycle],[(1),addi,rl,r0,5,4],[(2),Sw,r1,4(r0),],[(3),LW,r3,4(r0),],[(4),beq,r1,r3,L1,],[(5),sub,r7,r2,r3,],[(6),or,r6,r2,r0,],[(7),L1:,r5,4(r0),],[(8),beq,r5,r4,L2,],[(9),sub,r7,r3,r8,],[(10),add,r1,r2,r7,],[(11),xor,r4,r3,r6,],[(12),SW,r1,12(r2),],[(13),Sw,r4,20(r1),],[(14),add,r1,r4,r5,]]
This is the same as question I but now
i) Assumes there is NO FORWARDING hardware. (Mcans instructions will have to wait in the decode stage for read after write (if there is any data dependency))
ii) Assumes all the branch instruction is going to be taken. (Means if the prediction was wrong then you will have to flush the entire circuit and fetch new instruction accordingly)
Fill in writc back cyclc of cach instruction:
\table[[instruction,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19],[(1),F,D,E,M,W,,,,,,,,,,,,,,,],[,,,,,,,,,,,,,,,,,,,,],[,,,,,,,,,,,,,,,,,,,,],[,,,,,,,,,,,,,,,,,,,,],[,,,,,,,,,,,,,,,,,,,,]]
Consider the following pipelined processor we

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!