Question

What is the Length of ALL the Clock Cycles in a Single Cycle and Multi Cycle...

What is the Length of ALL the Clock Cycles in a Single Cycle and Multi Cycle Machine (MIPS Architecture)?

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

multi-cycle

different number of cycles by different instructions:

  • 3 cycles:j, beq
  • 4 cycles: R-Type, sw, addi
  • 5 cycles: lw

CPI average :

  1. .25% loads
  2. 10% stores
  3. 11% branches
  4. 2% jumps
  5. 52% R-type

Average CPI = (0.11 + 0.02) 3 +(0.52 + 0.10) 4 +(0.25) 5
= 4.12

Cycle per instruction = 4.12

Single cycle

cycle time limited by longest instruction (lw)
The processor needs cycles per instruction (CPI) cycles for each instruction.

maximum clock speed =f,

the clock period is therefore T=1/f

CPU time = Instructions executed* CPI * Clock cycle time

we assumed each instruction took one cycle, so CPI = 1.
— The CPI can be >1 due to memory stalls and slow instructions.
— The CPI can be <1 on machines that execute more than 1 instruction
per cycle

Add a comment
Know the answer?
Add Answer to:
What is the Length of ALL the Clock Cycles in a Single Cycle and Multi 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