# Computer Organization and Architecture Tutorial 1 Kenneth Lee.

## Presentation on theme: "Computer Organization and Architecture Tutorial 1 Kenneth Lee."— Presentation transcript:

Computer Organization and Architecture Tutorial 1 Kenneth Lee

P 45, Problem 2.10 Processor clock can be measured by Frequency of processor clock: Cycle time of processor clock: Program size can be measured by Instruction count (Number of machine instructions): Processor time to executing a program CPI means average cycles per instruction

Processor time to executing a program can also be expressed as p is the number of processor cycles m is the number of memory cycles k is the ratio between processor cycle time and memory cycle time

Instruction count p number of processor cycles m number of memory cycles k ratio between processor cycle time and memory cycle time Cycle time of processor clock Instruction set architecture X X Compiler technology X X X Processor implementation X X Cache and memory hierarchy X X

P 46, Problem 2.11 Processor performance can be measured by MIPS: millions of instructions per second

P 46, Problem 2.13

CPI = (45000*1 + 32000*2 + 15000*2 + 8000*2)/100000 = 1.55