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
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.
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.
And how did you got 7?
@@repenttoreflect8933 10 seconds execution time minus 30 percent is 7
bruh same questions as my homework i love you may many good things come to you kisses hugs kisses
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?
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
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.
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.
should be 1.818 * 10 ^ 9
@@aotoki1154 na its 18.818
in p3, where did the 7 come from?. 18/7
sorry but what book are you using and do you have solutions for its exercises??
Nice video! thanks!
Glad you liked it! you're welcome :)
How do you get 1.2?
increased by 20%
that's my question too. how did you get the number 1.2 you're multiplying ?
I was wondering the same thing
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
@@fish6791 thanks for ur solution.. It's helpful for me
I need the link ! :(
how can I get the CPI??
Cpi old???
Thank you. But I'm confused how you got 7
30% faster than the 10 seconds of the b problem
you are very confusing! please you need to explain how you derive your numbers
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 :)