CPU architektur Flashcards
CPI bedeutet?
Clocks per instruction
referring to the average time in clock cycles for a command to be carried out.
CPI = nc/nI
wobei nc is number of cycles a program needs
und nI is the number of instructions in that program
Tp steht für
time a program takes to run a program Tp = CPI x nI x tc tc is The length of a cycle ni number of instructions CPI cycles per instruction
s (speedup) wird wie gerechnet
s = Tp old / Tp new
Amdahls law states
The whole system speedup s from a part improvement P equals
s = 1 / ((1 - P) + P/S)
where P would be o.3 if 30% of the computation will be sped up
where S is how much faster that part is running, 2 if twice as fast
Combining CPI from different single parts of a set
CPI = Sum of CPIi x fi
i = 1 going to n number of different cpi rates to combine
CPIi times fi where fi equals the part of the whole CPIi represents
MIPS steht wofür?
Million instructions per second = ni (number of instructions) / tp x 10^6 = 1 / CPI x tc x 10^6 tp how long it takes, time period tc time per cycle
MFLOPS steht wofür
Million floating point operations per second
same as MIPS except ni is replaced with floating point operations per second
= fni / tp x 10^6