Question: A pipelined processor is executing the following instruction sequence: 1 . LOAD R 2 , O ( R 1 ) 2 . ADD R 3

A pipelined processor is executing the following instruction sequence:
1. LOAD R2, O(R1)
2. ADD R3, R2, R4
3. SUB R5, R3, R6
4. OR R7, R5, RB
The processor has two confgurations:
- With forwarding: Data is forwarded as soon as it's available
- Without forwarding: Instructions dependent on results on results from previous instructions must stall until the result is written back
Assume:
- Each instruction completes in 5 cycles without stalls.
- Data hazards only occur for read-aiter-write (RAWi) dependencies.
a) With forwarding enabled, fill in the blanks below:
- Instruction 1 completes in cycle
- Instruction 2 completes in cycle
- Instruction 3 completes in cycle
- Instruction 4 completes in cycle
b) Without forwarding, calculate the total number of stall cycles needed to handle data hazards
- Instruction 1 requires stall cycles
- Instruction 2 requires stall cycles
- Instruction 3 requires stall cycles
- Instruction 4 requires stall cycles
- Total stall cycles = c) Total cycles: calculate the total number of cycles for the entire sequence with and without forwarding
- With forwarding :
cycles
- Without forwarding:
cycles
A pipelined processor is executing the following

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!