Transcription of CPU Performance Evaluation: Cycles Per Instruction (CPI)
{{id}} {{{paragraph}}}
EECC550 EECC550 --ShaabanShaaban#1 Lec # 3 Winter 2011 12-6-2011 CPU Performance Evaluation: CPU Performance Evaluation: Cycles Per Instruction (CPI) Cycles Per Instruction (CPI) Most computers run synchronously utilizing a CPU clock running at a constant clock rate:where: Clock rate = 1 / clock cycle The CPU clock rate dependson the specific CPU organization (design)and hardware implementation technology (VLSI)used. A computer machine (ISA) Instruction is comprised of a number of elementary or micro operationswhich vary in number and complexity depending on the the instructionand the exact CPU organization (Design). A micro operationis an elementary hardware operation that can be performed during one CPU clock cycle. This corresponds to one micro- Instruction in microprogrammed CPUs. Examples: register operations: shift, load, clear, increment, ALU operations: add , subtract, etc.
Dec 06, 2011 · • An instruction set has three instruction classes: • Two code sequences have the following instruction counts: • CPU cycles for sequence 1 = 2 x 1 + 1 x 2 + 2 x 3 = 10 cycles CPI for sequence 1 = clock cycles / instruction count = 10 /5 = 2 • CPU cycles for sequence 2 = 4 x 1 + 1 x 2 + 1 x 3 = 9 cycles CPI for sequence 2 = 9 / 6 = 1.5
Domain:
Source:
Link to this page:
Please notify us if you found a problem with this document:
{{id}} {{{paragraph}}}