Question

A program that executes 12.3x107 instructions is run on a pipelined processor. The table below provides the percentage of exe

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

a)

Pipeline CPL wlo hazards | Instruction | type ALU Load Store Branch instructions (%) 29.4 29.7 14.7 26.2 1 2 (wlo prediction)

I'll refer this table for all that data for part (a).

  • 27% of load instructions are followed by instruction that need the data being loaded.

it means 27% of 29.7% instructions need the data being loaded additionally to the load instructions.

so, all instructions which need data to be loaded is (1+0.27)*0.297

stall cycles in Load = 1.27*0.297*1 = 0.37719

  • 47% of the branches are actually not taken, and assume not taken prediction.

It means 47% of branch instruction need no stall cycles.

and 53% of branch instruction require stall cycles.

therefore,

stall cycles in Branch = 0.53*0.262*2 = 0.27772

  • stall cycles in ALU = 0.294*1 = 0.294
  • stall cycles in store = 0.147*1 = 0.147

Total stalls = 0.37719 + 0.27772 + 0.294 + 0.147 = 1.09591

Avg CPI = CPIideal + stalls = 1 + 1.09591 = 2.09591

CPI = 2.09591

b)

Hardware blocks and delay times Hardware block Memory read/write Register read/write Control (at ID stage) ALU Sign extend Ma

we can see delay is maximum in memory read/write block,

therefore, clock cycle time must be greater than or equal to delay at memory read/write block

which is,

cct > 0.50 nsec

hence, cct = 0.50 nsec

CPUtime = IC * CPI * cct

= (12.3*107 ) * 2.09591 * 0.50 nsec

= 12.88985 * 107 nsec

= 128.8985 msec

Add a comment
Know the answer?
Add Answer to:
A program that executes 12.3x107 instructions is run on a pipelined processor. The table below provides...
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