Question

Computer Architecture

The format of this document is as follows: First, I give a practice problem for which the solution is also provided. In bold italic font, I slightly modify the problem for your homework.

3) The 4-Stage Pipeline below suffers from the memory access resource conflict as shown below (instruction i and i+2 want to access memory at the same time and i+2 needs to be denied, so it waits for the next cycle; in the next cycle it has a conflict with i+1 so it stalls for another cycle). Is it there any speedup due to pipelining?


[1] FI: Fetch an instruction from memory (500 ps)
[2] DA: Decode the instruction and calculate the effective address of the operand (400 ps)
[3] FO: Fetch the operand (500 ps)
[4] EX: Execute the operation (600 ps)

With one memory, a data and an instruction fetch cannot be initiated in the same clock FI DA FO EX i+1 i+2 stall stal FIDA FO EX The Pipeline is stalled for resource conflict Two-port memory can serve without stalls

HW PROBLEM 3: How would the speed up change if stage 4 completed in 500 ps?

SOLUTION:

If there were no conflicts after filling the pipeline, at every cycle, we would finish one instruction completed, this would be 4 times speedup if the pipeline stages took equal time. Because without multiple instructions in the pipeline, one instruction would complete in 4 clock cycles.

With the given stage latencies, without taking the memory conflict into account, the speedup would be 2000 / 600 » 3.33

Stalls reduce the speedup, to calculate how much, after filling the pipeline, note that we will have 2 stalls every 4 cycles, meaning that every 4 cycles we will have 2 instructions completed (a drawing can help to see the pattern). Thus, for an instruction to complete, in average, we need 2 cycles (two 600 ps cycles).

Speedup = 2000 / (2 x 600) » 1.66

0 0
Add a comment Improve this question Transcribed image text
Answer #1

s七 リInsthu cHOn Fetcn t.eopero.ndニ So尸s tun Time toxe In - in each One coc ipelined one instAucr… execut ed = 13.8 evv Speed 19 go

Add a comment
Know the answer?
Add Answer to:
Computer Architecture The format of this document is as follows: First, I give a practice problem...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT