Awesome q2a theme
0 votes
41 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 (20 points) | 41 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
Top Users 2020 Aug 03 - 09
  1. Mellophi

    90 Points

  2. Ashutosh07091999

    61 Points

  3. prakhar2810

    7 Points

  4. toppoavinash

    6 Points

  5. prashastinama

    6 Points

  6. Kushagra गुप्ता

    5 Points

  7. prajjwalsingh_11

    4 Points

  8. manas_kulkarni

    4 Points

  9. Shaik Masthan

    4 Points

  10. srestha

    3 Points

Weekly Top User (excluding moderators) will get free access to GATE Overflow Test Series for GATE 2021
Welcome to GATE CSE Doubts, where you can ask questions and receive answers from other members of the community.
Top Users Aug 2020
  1. Mellophi

    96 Points

  2. Ashutosh07091999

    64 Points

  3. Shaik Masthan

    11 Points

  4. Unnayan kumar

    8 Points

  5. prakhar2810

    7 Points

  6. Sourav Kar

    7 Points

  7. anurag_yo

    7 Points

  8. toppoavinash

    6 Points

  9. prashastinama

    6 Points

  10. sureshthiyam

    6 Points

7,698 questions
1,820 answers
11,098 comments
95,081 users