Skip to content

Computer Architecture 11 glossary

Mugundan edited this page Nov 27, 2026 · 1 revision

Glossary and Summary

Relevant source files

The following references were used as context for generating this wiki page:

This page puts the whole wiki on one diagram, lists every term used on earlier pages with a one-line meaning, and suggests some self-check questions.

Purpose and Scope

This page covers a one-picture summary, the glossary, self-check questions with answers, and further reading. It introduces no new ideas.

The Whole Wiki in One Picture

flowchart TD
    GOAL["Run programs faster<br/>Time = Instructions × CPI × Clock period"] --> ONE["One instruction stream"]
    GOAL --> MANY["Many instruction streams"]
    GOAL --> DATA["Many data items"]
    GOAL --> MEMW["Waiting for memory"]

    ONE --> PIPE["Pipelining<br/>overlap stages"]
    PIPE --> HAZ["Hazards: structural, data, control"]
    HAZ --> FWD["Forwarding, stalls, reordering"]
    HAZ --> BP["Branch prediction, BTB, CSEL"]
    ONE --> ILP["ILP: superscalar, out-of-order,<br/>renaming, ROB, speculation"]

    MANY --> MC["Multicore<br/>Amdahl's law"]
    MANY --> MT["Hardware multithreading<br/>coarse, fine, SMT"]
    MC --> ORD["Memory ordering<br/>barriers, acquire/release"]
    MC --> COH["Cache coherence<br/>MESI, false sharing"]

    DATA --> SIMD["SIMD: Neon, SVE"]
    DATA --> GPU["GPU: SIMT, warps"]

    MEMW --> CACHE["Caches: lines, sets, AMAT"]
    CACHE --> COH
    MT --> GPU
Loading
If your program is slow because... Look at
It waits for memory a lot Caches and Coherence, Multithreading
It has many unpredictable branches Branches and Remedies
It is one long chain of dependent operations ILP
It runs on one core while others are idle Multicore
Threads slow each other down Caches and Coherence (false sharing), Multicore (locks)
It does the same arithmetic on big arrays SIMD and GPUs
Multithreaded code works on x86 but fails on Arm Memory and Ordering

Glossary

Term Meaning Page
Acquire / release One-way ordering on a load (acquire) or store (release); Arm LDAR / STLR Memory and Ordering
ALU Arithmetic logic unit: adds, compares, does logic Fundamentals
Amdahl's law Speedup is limited by the serial fraction: 1 / ((1−p) + p/N) Multicore
AMAT Average memory access time = hit time + miss rate × miss penalty Caches and Coherence
Associativity How many places (ways) in a cache a line may go Caches and Coherence
Barrier (fence) Instruction that orders memory accesses; Arm DMB, DSB, ISB Memory and Ordering
big.LITTLE Mixing fast and efficient cores on one chip Multicore
Branch predictor Hardware that guesses branch direction Branches and Remedies
BTB Branch target buffer: remembers where branches go Branches and Remedies
Cache line The unit a cache stores and moves, typically 64 bytes Caches and Coherence
Coherence Keeping all copies of one address consistent Caches and Coherence
Commit (retire) Making an instruction's result permanent, in program order ILP
CPI / IPC Cycles per instruction / instructions per cycle Fundamentals
Critical path Longest chain of dependent instructions ILP
Divergence Threads in one GPU warp taking different branch paths SIMD and GPUs
False sharing Different variables in one cache line causing coherence traffic Caches and Coherence
Forwarding (bypassing) Sending a result straight to a waiting instruction Pipelining
Hardware thread A PC plus registers sharing one core's execution units Multithreading
Hazard Something that stops the next pipeline step: structural, data, control Pipelining
ILP Instruction-level parallelism: independent instructions run together ILP
ISA Instruction set architecture: the contract between software and hardware Overview
Lane One element slot in a SIMD register or GPU warp SIMD and GPUs
Latency / throughput Time for one job / jobs per unit time Pipelining
Locality Temporal: reuse soon; spatial: use nearby data Caches and Coherence
MESI Cache line states: Modified, Exclusive, Shared, Invalid Caches and Coherence
Microarchitecture How a particular chip implements the ISA Overview
Misprediction penalty Cycles lost when a branch guess is wrong Branches and Remedies
NUMA Memory access time depends on which socket owns the memory Multicore
Neon Arm's fixed 128-bit SIMD extension SIMD and GPUs
Occupancy How many warps are resident on a GPU compute unit SIMD and GPUs
Out-of-order execution Running instructions when their inputs are ready, not in program order ILP
Pipeline Splitting instruction processing into overlapping stages Pipelining
Predicate A per-lane on/off mask (SVE P registers) SIMD and GPUs
Program counter (PC) Address of the next instruction Fundamentals
RAW / WAR / WAW Read-after-write (true), write-after-read and write-after-write (false) dependences Pipelining
Register renaming Mapping architectural registers to many physical ones to remove false dependences ILP
ROB Reorder buffer: tracks program order for in-order commit ILP
Sequential consistency All cores see one interleaving that respects each core's program order Memory and Ordering
SIMD Single instruction, multiple data SIMD and GPUs
SIMT Single instruction, multiple threads: the GPU model SIMD and GPUs
SMT Simultaneous multithreading: several threads issue in one cycle Multithreading
Speculation Running instructions before knowing they are needed ILP
Stall (bubble) A cycle where a pipeline stage does no useful work Pipelining
Store buffer Queue holding stores before they reach the cache Memory and Ordering
Superscalar Issuing more than one instruction per cycle ILP
SVE Arm's Scalable Vector Extension, 128 to 2048 bits SIMD and GPUs
TSO Total store order: x86's memory model Memory and Ordering
VLIW Very long instruction word: compiler packs parallel operations ILP
Von Neumann bottleneck Program and data share one path to memory Fundamentals
Warp / wavefront Group of GPU threads running in lockstep (32 or 64) SIMD and GPUs
Write-back / write-through Update memory on eviction / on every store Caches and Coherence

Self-Check Questions

  1. A program runs 1 billion instructions at CPI 2 on a 1 GHz clock. How long does it take? (2 s.) (Fundamentals)
  2. Why does pipelining not make a single instruction finish sooner? (It improves throughput, not latency.) (Pipelining)
  3. LDR X1,[X0] is followed immediately by ADD X2,X1,X3. Why does forwarding not remove the stall completely? (The load's data only arrives after MEM.) (Pipelining)
  4. Why does a 2-bit counter mispredict a 10-iteration loop only once per run, when a 1-bit predictor misses twice? (Branches and Remedies)
  5. 25% of instructions are branches, 4% are mispredicted, the penalty is 20 cycles, base CPI is 1. What is the CPI? (1 + 0.25 × 0.04 × 20 = 1.2.) (Branches and Remedies)
  6. Which of RAW, WAR and WAW does register renaming remove? (WAR and WAW.) (ILP)
  7. In the message-passing example, what must the producer and consumer use on Arm? (Store-release and load-acquire, or barriers.) (Memory and Ordering)
  8. A 64 KB, 8-way cache with 64-byte lines has how many sets? (64 KB / 64 B = 1024 lines; / 8 = 128 sets.) (Caches and Coherence)
  9. Two threads increment two different counters in one struct and run slower with two cores than with one. Why? (False sharing.) (Caches and Coherence)
  10. With 80% parallel code, what is the speedup on 8 cores, and the limit? (1 / (0.2 + 0.1) = 3.33; limit 5.) (Multicore)
  11. Why does SMT never double performance? (Both threads share the same execution units and caches.) (Multithreading)
  12. Why is if (threadIdx.x % 2) slow on a GPU but if (blockIdx.x % 2) not? (The first splits every warp; the second sends whole warps one way.) (SIMD and GPUs)

Further Reading

Resource Good for
Patterson and Hennessy, Computer Organization and Design (Arm edition) A full beginner course: the material of pages 2-8 in depth
Hennessy and Patterson, Computer Architecture: A Quantitative Approach The next step: ILP, memory hierarchy, multicore, GPUs
Arm Learn the architecture guides (developer.arm.com): Memory Systems, Ordering, and Barriers (102336); Introducing Neon (102474); Introduction to SVE (102476) Arm-specific detail for pages 6, 7 and 10
Arm Architecture Reference Manual for A-profile (DDI 0487) The definitive rules, for reference rather than reading
The Wikipedia articles linked from each page Quick refreshers and further links

For how compilers make use of all this, see the Instruction Scheduling wiki and the LLVM IR wiki.

Start here

Computer Organization & Architecture

Hexagon ISA

Operating Systems

C++ for LLVM Development

LLVM IR

SelectionDAG

Backend Assignments

Target Bring-up

Calling Conventions

Frame Lowering

MC Layer

Register Allocation

Scheduling

Clone this wiki locally