Tutorial 2 (Part 1: CPU time calculation Demonstration)

แชร์
ฝัง
  • เผยแพร่เมื่อ 7 ก.ย. 2024
  • Demonstrating the CPU time calculation in terms of CPU clock cycles, CPI, instruction count and clock rate.
    This is tutorial 2(part1) of ECEN 402 Computer Architecture course as taught at Nile University.
    Book: MK Computer Organization and Design 5th Edition.
    Professor: Dr. Mahmoud Allam
    Teaching Assistant: Ahmed Mosharafa
    Link to download the PDF

ความคิดเห็น • 29

  • @userauthentication312
    @userauthentication312 4 ปีที่แล้ว +18

    For those wondering, after a bit of confusion I figure the 7 comes from the initial time being 10 seconds and the current problem says a reduction of 30%. So a 30% reduction of 10s is 7s.

  • @ahmedmosharafa6722
    @ahmedmosharafa6722  5 ปีที่แล้ว +8

    Hi, glad that the video was helpful :)
    So, a question asked more than once, where do numbers like (1.2) come from?
    So 1.2 means that we increased the number by a factor of 20%.
    The increasing factor is calculated as 1 plus the increasing percentage (1 + 20/100) which is (1 + 0.2 = 1.2)
    This means that we multiply (old number) * (increasing factor) in order to get the new number.

    • @repenttoreflect8933
      @repenttoreflect8933 4 ปีที่แล้ว +1

      And how did you got 7?

    • @fazoodle7972
      @fazoodle7972 2 ปีที่แล้ว

      @@repenttoreflect8933 10 seconds execution time minus 30 percent is 7

  • @fazoodle7972
    @fazoodle7972 2 ปีที่แล้ว +2

    bruh same questions as my homework i love you may many good things come to you kisses hugs kisses

  • @ahmedsalah-jb9ov
    @ahmedsalah-jb9ov 6 ปีที่แล้ว

    program consists of 120 instructions that when executed, loops 40 time
    If the system takes 16,000 clock cycles to complete the program, what are
    the CPI and IPC values of the system?

  • @xTasyDotes
    @xTasyDotes 3 ปีที่แล้ว +1

    for the third part, doesnt the number of instruction should be different and recalculate again ? because there is a change in time and cpi if we follow the third question..
    please a followup

    • @jasmineampofo1102
      @jasmineampofo1102 2 ปีที่แล้ว

      No the number of instructions doesn't change because it is still the same program we are executing with the same number of instructions, the only thing that changed is that the execution time was reduced which led to an increase in the CPI and you are to find what clock rate will achieve those results.

  • @rafaelclaumannbernardes2366
    @rafaelclaumannbernardes2366 7 ปีที่แล้ว +2

    in P3, when i calculate the number of instructions i get 18.18 * 10 ^ 9, it is right?
    i believe the number of instructions couldn't be a broken value.

    • @aotoki1154
      @aotoki1154 5 ปีที่แล้ว +1

      should be 1.818 * 10 ^ 9

    • @fazoodle7972
      @fazoodle7972 2 ปีที่แล้ว

      @@aotoki1154 na its 18.818

  • @xMagicsHD
    @xMagicsHD 4 ปีที่แล้ว

    in p3, where did the 7 come from?. 18/7

  • @christopherstephane4831
    @christopherstephane4831 5 ปีที่แล้ว

    sorry but what book are you using and do you have solutions for its exercises??

  • @CdBot100
    @CdBot100 8 ปีที่แล้ว

    Nice video! thanks!

  • @fish6791
    @fish6791 7 ปีที่แล้ว +2

    How do you get 1.2?

    • @aotoki1154
      @aotoki1154 5 ปีที่แล้ว +1

      increased by 20%

  • @ridowanahmed1524
    @ridowanahmed1524 7 ปีที่แล้ว +3

    that's my question too. how did you get the number 1.2 you're multiplying ?

    • @fish6791
      @fish6791 7 ปีที่แล้ว

      I was wondering the same thing

    • @fish6791
      @fish6791 7 ปีที่แล้ว +6

      I figured it out,
      since we want to reduce by 30% we do
      CPU exe. time - CPU exe. time x .30
      CPU exe. time (1 - .30) factor out CPU execution time
      CPU exe. time x .7
      since we want to increase by 20% we do
      CPI - CPI x .20
      CPI (1 + .20) factor out CPI
      CPI x 1.2

    • @kajalbhonde5476
      @kajalbhonde5476 5 ปีที่แล้ว +1

      @@fish6791 thanks for ur solution.. It's helpful for me

  • @maryta22
    @maryta22 3 ปีที่แล้ว

    I need the link ! :(

  • @EhabMasri23
    @EhabMasri23 3 ปีที่แล้ว

    how can I get the CPI??

  • @samanashraf4775
    @samanashraf4775 ปีที่แล้ว

    Cpi old???

  • @repenttoreflect8933
    @repenttoreflect8933 4 ปีที่แล้ว

    Thank you. But I'm confused how you got 7

    • @leandro92cb
      @leandro92cb 4 ปีที่แล้ว +1

      30% faster than the 10 seconds of the b problem

  • @kwameagyenim-boateng2968
    @kwameagyenim-boateng2968 5 ปีที่แล้ว +3

    you are very confusing! please you need to explain how you derive your numbers

    • @ahmedmosharafa6722
      @ahmedmosharafa6722  5 ปีที่แล้ว +3

      Hi, I am sorry you were confused.
      I added a comment to indicate how the factors are calculated, kindly get back if you still are confused with the numbers derivations :)