Question

(C) Assume 500 instructions are executed using a four-stage pipeline. Each stage requires 1 clock cycle and each clock cycle

SULIT CST 131 -6- 10% of the instructions are branch instructions. 40% of the branch instructions were taken what is the spee

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

Answer c

i)

# Cycles used by 1 Non-Pipeline Instruction = 4*1 = 4

so, # Cycles used by 500 Non-Pipeline Instruction = 4*500 = 2000

# Cycles used by 1 Pipeline Instruction = 4

so, # Cycles used by 500 Pipeline Instruction = 4 + (500-1) = 503

Speedup = 2000/503 = 3.976

ii)

Branch instructions causes 3 stall clock cycles.

Branch penalty = 0.1*3 = 0.3

So, # Cycles used by 500 Pipeline Instruction with branches = 503*1.3 = 653.9

Speedup = 2000/653.9 = 3.058

Add a comment
Know the answer?
Add Answer to:
(C) Assume 500 instructions are executed using a four-stage pipeline. Each stage requires 1 clock cycle...
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