Awesome q2a theme
0 votes
14 views
Consider a CPU having a clock cycle of 4.5 ns. When an instruction is executed in this CPU it takes 20 cycles for data instructions, 8 cycles for ALU instructions and 12 cycles for branch instructions. Assume that there are 60% data instructions, 20% ALU instructions and 20% branch instructions. If the CUP is improved and it starts taking 1 cycle for ALU and branch instruction i.e CPI=1, find speedup achieved in the enhancement ?
in CO & Architecture by (14 points) | 14 views
0
0.6, 20 for data, 0.2, 8 for ALU and 0.2,12 for branch.

So total cycles  = 0.6*20 + 0.2*8 + 0.2*12 = 12 + 1.6 + 2.4 = 16 cycles.

After the CPU is improved, CPI is 0.4*1 + 0.6*20 = 12+ 0.4 = 12.4 cycles.

So the speedup should be 16/12.4 which is 1.29.

Note: CPI = 1 for improved CPU in the question doesn't make sense. It must be a typo, I guess.
0
Thanks !!

Please log in or register to answer this question.

Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true
Welcome to GATE CSE Doubts, where you can ask questions and receive answers from other members of the community.
Top Users Jan 2020
  1. shashin

    1163 Points

  2. Vimal Patel

    306 Points

  3. Deepakk Poonia (Dee)

    305 Points

  4. Debapaul

    237 Points

  5. Satbir

    192 Points

  6. SuvasishDutta

    137 Points

  7. Pratyush Priyam Kuan

    118 Points

  8. tp21

    108 Points

  9. pranay562

    95 Points

  10. DukeThunders

    94 Points

Monthly Top User and those within 60% of his/her points will get a share of monthly revenue of GO subject to a minimum payout of Rs. 500. Current monthly budget for Top Users is Rs. 75.
2,983 questions
1,509 answers
8,932 comments
89,814 users