optional · CSS study notes
Processor Types and Performance (overview)
CSS Optional — Paper-II, Section-A · Chapter 7
This page gives the compact overview of processor design philosophy and performance measurement. For deep treatment with more solved numericals, see the dedicated CISC vs RISC and Performance Metrics pages.
1. Definition
- CISC (Complex Instruction Set Computer) — a design philosophy using many specialised, multi-step instructions of variable length, minimising the number of instructions per program.
- RISC (Reduced Instruction Set Computer) — a design philosophy using a small set of simple, fixed-length, single-cycle instructions, relying on compiler optimisation and pipelining.
2. Classification — CISC vs RISC (summary)
| Feature | CISC | RISC |
|---|---|---|
| Instruction set | Large, complex | Small, simple |
| Instruction length | Variable | Fixed |
| Examples | x86 | ARM, MIPS |
3. Classification — Performance Metrics
- Clock speed — cycles per second (Hz); how fast the clock ticks.
- CPI (Cycles Per Instruction) — average hardware cycles consumed per instruction.
- MIPS (Million Instructions Per Second) — instruction throughput; unreliable across different ISAs.
- Throughput — completed tasks per unit time.
4. Key Formulas — Processor Performance
4.1 CPU Execution Time (the master equation)
- = instruction count
- = average cycles per instruction
- = clock cycle time, = clock rate
4.2 Clock Rate and Cycle Time
- 1 GHz means a cycle time of 1 ns
- 2 GHz means a cycle time of 0.5 ns
- 4 GHz means a cycle time of 0.25 ns
4.3 Total Clock Cycles
4.4 CPI
- Weighted CPI using counts:
- Weighted CPI using fractions:
4.5 IPC (inverse of CPI)
4.6 Effective CPI with Stalls
4.7 MIPS
4.8 Speedup and Comparing Machines
4.9 Amdahl's Law
- = fraction of time that can be improved
- = speedup applied to that fraction
4.10 Parallel Speedup and Efficiency
4.11 Pipeline Performance
- = number of instructions, = number of pipeline stages
4.12 Throughput and Power
- Power rises with frequency, and with the square of voltage, which is why clock speed hit a limit (the power wall)
🗺️ Architecture Diagram — What Determines Performance
graph LR
ISA["ISA Design
RISC vs CISC"] --> IC["Instruction Count"]
ISA --> CPI["CPI"]
TECH["Hardware Technology"] --> CT["Clock Cycle Time"]
IC --> T["Execution Time
T = IC x CPI x Cycle Time"]
CPI --> T
CT --> T
🧮 Solved Numerical — Execution Time
Q: A processor executes 5,000 instructions with an average CPI of 3, at a clock rate of 2 GHz. Find the execution time.
Given: , ,
Solution:
Answer: 7.5 μs.
🎯 CSS Exam Angle
RISC vs CISC is one of the most repeated CS-optional questions across multiple years — treat it as near-guaranteed.
🔁 Repeated CSS Questions
- Differentiate between RISC and CISC processors. (Very frequently repeated)
- Define CPI and MIPS. How are they related to processor performance?
- Calculate execution time given instruction count, CPI, and clock rate. (Numerical)
⚠️ MCQ Trap
RISC = simple, fixed-length instructions, relies on compiler/pipelining; CISC = complex, variable-length instructions, does more per instruction.