CS 152 Computer Architecture and Engineering
CS252A Graduate Computer Architecture Lecture 1 - Introduction & Early Machines

Chris Fletcher
UC Berkeley, Spring 2026

What is Computer Architecture?

Computer architecture is the design of the abstraction layers that allow us to implement information-processing applications efficiently using available manufacturing technologies.

Abstraction Layers in Modern Systems

Application Algorithm Programming Language Operating System / VMs Instruction Set Architecture Microarchitecture Gates / RTL Circuits Devices Physics CS152 focus software ↑ / hardware ↓ boundary sits at the ISA
  • ISA: formal SW/HW interface: registers, memory, instructions
  • Microarchitecture: control + datapath organization that implements the ISA
  • Gates/RTL: logic, flip-flops, data movement per clock cycle
    • RTL → FPGA emulation bitstream (fast prototyping)
    • RTL → ASIC synthesis → GDS layout (real silicon)
  • Circuits: recall RC delays, CMOS inverters

Applications, Technology, and Compatibility

Applications Technology suggest improvements, fund R&D ⇄ enable new applications Compatibility counterweight: keeps the ISA stable
  • Applications and technology form a feedback loop
  • Compatibility is the heavy counterweight
    • Software is enormously expensive to write
    • Nobody rewrites it for each faster chip
    • ISA stays stable while microarchitecture and transistor physics change completely

Next: why "just shrink transistors and raise the clock" stopped working.

Check Your Understanding

1. Fill in the blank: the two layers directly at the boundary where hardware meets software are the ________ and the ________.
ISA and microarchitecture. The ISA is the software-visible contract; the microarchitecture is the hardware organization implementing it.
2. What would happen if every new processor generation changed its ISA to match new transistor physics?
Software compatibility would break; existing software would need prohibitively expensive rewrites or recompiles, a major market barrier.

A Century of Computing Capability

Moore's Law: Economics, Not Just Physics

components per IC (log) cost per component (log) 196219651970
  • U-shaped cost curve each year
    • Too few transistors: fixed wafer/package overhead dominates
    • Too many: defects kill yield
    • Better lithography moves the minimum down and right
  • Second plot: $\log_2$(components per function) vs. year, 1959–1975
    • Straight line = exponential doubling every ~18–24 months

40 Years of Single-Thread Performance

Performance relative to VAX-11/780 (1978), log scale 1 → 100,000. Scaling once gave software a "free lunch".

22%/yr1978–86 52%/yr1986–2003 23%/yr2003–10 9.3%/yr2010–15 2.5%/yr2015 →

1986–2003 was the golden age of CMOS scaling and single-core microarchitecture; since 2015 single-thread gains have nearly stalled.

50 Years of Processor Trends (1970–2020)

MetricBefore ~2005After ~2005
TransistorsExponentialStill exponential (tens of billions)
Typical powerRisingFlat ceiling ~100 W (air cooling)
FrequencyExponentialFlat at ~3–4 GHz
Logical cores1Rising sharply (multicore)
Single-thread perf (SpecINT)Tracked frequencySlow saturation

The End of Dennard Scaling

$$P = \alpha\, C\, V_{DD}^2\, f$$

No More Free Lunch

Today's Dominant Target Systems

The Vertical Semiconductor Business Model

Pentium 4 (2000)Apple M3 SoC (2023)
Die dominated by one big single-thread CPU core 4 P-cores, 4 E-cores, 10 GPU cores, NPU, matrix engines, caches, I/O controllers
The CPU is the chipA textbook 5-stage pipeline would be a microscopic speck

Next: trace how computing evolved from mechanical calculators to stored-program machines.

Check Your Understanding

1. Causal reasoning: around 2005 transistor counts kept doubling, yet clock frequency and chip power flattened. Explain using Dennard scaling and the dynamic power equation.
Dennard scaling ended: $V_{DD}$ could not drop further without excessive leakage. Since $P = \alpha C V_{DD}^2 f$ and total power hit a thermal ceiling (~100 W), $f$ could no longer increase.
2. Yes or No: under the vertical model, do system companies design their own chips because chip engineering became cheap?
No. Advanced chips still cost well over $100M, but the profit and differentiation of the final product justify custom SoCs.

Four Themes in the History of Computing

  1. Core operations: calculators → general-purpose computers by adding branches and memory access to arithmetic
  2. Fixed function → programmable → stored program: hardwired, then plugboards/tapes, then program and data stored identically in memory
  3. Abstraction: hide hardware behind processor idioms (PC, instructions, data) and an ISA
  4. Technology-influenced design choices: physical media dictate number bases and operators

Analog vs. Digital Computers

Babbage's Difference Engine (1822)

Difference Engine: Worked Example

Start: $f(0)=41$, $d_1(1)=2$, $d_2=2$. Every value uses additions only.

$n$$d_2$$d_1(n) = d_1(n-1)+d_2$$f(n) = f(n-1)+d_1(n)$
0––41
12241 + 2 = 43
222 + 2 = 443 + 4 = 47
324 + 2 = 647 + 6 = 53
426 + 2 = 853 + 8 = 61

Check: $4^2 + 4 + 41 = 61$ ✓

Babbage's Analytical Engine (1837)

Lovelace and Turing

Early Calculators: No Conditional Branch

MachineTechnologyNotes
Atanasoff-Berry (1939)Vacuum tubes, rotating capacitor-drum memoryFixed-function linear-equation solver
Zuse Z3 (1941)RelaysNormalized floating point with ±∞/undefined; 2-stage pipeline; tape-programmed
Harvard Mark I (1944)Electromechanical2-address paper tape; loops by gluing the tape into a loop
None had conditional branching, so all three were less programmable than Babbage's 1837 Analytical Engine.

ENIAC (1946)

The Stored-Program Breakthrough (1948–1951)

Check Your Understanding

1. Quick computation: with $d_2 = 2$, $d_1(4) = 8$ and $f(4) = 61$, compute $f(5)$ using only additions.
$d_1(5) = 8 + 2 = 10$, and $f(5) = 61 + 10 = 71$.
2. Yes or No: were the Zuse Z3 (1941) and Harvard Mark I (1944) more programmable than the 1837 Analytical Engine?
No. Both read sequential instructions from tape but lacked conditional branching, making them less programmable than the Analytical Engine.

Early ISAs: One ISA per Machine

From Index Registers to GPRs

Burroughs B5000 Stack Architecture (1960)

  • Robert Barton: hide the machine behind ALGOL
  • Evaluation stack for expressions and recursive calls
  • Zero explicit register names

(a + b*c) / (a + d*c - e)
Reverse Polish:
a b c * + a d c * + e - /

OpStack (top at right)
push a,b,c[a, b, c]
*[a, b*c]
+[a+b*c]
push a,d,c[a+b*c, a, d, c]
*[a+b*c, a, d*c]
+[a+b*c, a+d*c]
push e[a+b*c, a+d*c, e]
-[a+b*c, a+d*c-e]
/[(a+b*c)/(a+d*c-e)]

IBM's Big Bet: System/360 (1964)

Stack versus GPR Organization

Amdahl, Blaauw and Brooks, 1964

  1. Stack speed comes from fast registers, not the stack discipline
  2. ~50% of stack instructions are wasted "surfacing" buried constants and common subexpressions
  3. Short register specifiers match the density of implicit stack addressing
  4. Handling finite hardware-stack overflow adds complexity
  5. Recursive subroutines still need a separate addressing stack in memory
  6. Packing variable-length stack fields into fixed-width words is awkward

IBM 360: A GPR Machine

IBM 360 is why a byte is 8 bits today.

Decoupling ISA from Microarchitecture

Model 30 (entry)Model 70 (high end)
Datapath8-bit64-bit
RegistersIn main storeTransistor
ControlMicrocoded, read-only control storeHardwired
SoftwareSame binary programs

Check Your Understanding

1. Quick stack trace: starting with [a + b*c], trace the stack for the remaining tokens a d c * + e - /.
Push a, d, c → [a+b*c, a, d, c]; * → [a+b*c, a, d*c]; + → [a+b*c, a+d*c]; push e; - → [a+b*c, a+d*c-e]; / → [(a+b*c)/(a+d*c-e)].
2. Fill in the blank: IBM System/360 was the first architecture to separate ________ (registers, PC, memory, instruction semantics) from ________ (the physical implementation).
ISA and microarchitecture.