Csao Reviewer
Csao Reviewer
CDBM
• Clock Speed: Inverse of clock cycle time; faster 1. Execution Time:
clock rates generally improve performance. o CPU Time = Clock Cycles × Clock Cycle
• Instruction Count & CPI: Time
o Execution time depends on instruction o Example: If clock cycle time is 5ns, clock
count and cycles per instruction (CPI). rate = 1/5ns = 200MHz.
o Formula: Clock Cycles = Instruction 2. CPI Calculation:
Count × CPI o Example: Program executes 3.6 billion
cycles with 2 billion instructions.
Memory Basics: o CPI = Cycles / Instruction Count = 3.6B /
2B = 1.8
• Stores data, instructions, and addresses. 3. Memory Size:
• Organized hierarchically to balance speed and o Address Space × Data Lines.
cost: o Example: For 64K × 8, size = 64K × 8 bits
o Registers (fastest, lowest capacity) = 512KB.
o Cache Memory
o Main Memory (RAM): Volatile storage
for temporary data.
o Secondary Storage: Non-volatile, large-
capacity storage like HDDs or SSDs.
Types of Memory:
CDBM