CAAL Finals — Visual Exam Prep

Computer Architecture & Assembly Language · revision pack with diagrams, formulas, numeric examples, and pointers back into the source PDFs.

RISC-V Pipelining Superscalar / OoO Cache & VM Vector (RVV) Green Computing UVM / DV
⬇️ Download CAAL Notes (ZIP, ~65 MB) 🎯 Take the Quiz 🃏 Flashcards All PDFs · GQ images · pre-MT material · source PowerPoints

Exam composition

Sir's reported breakdown — no descriptive questions, MCQs only. Grand Quiz problems are fair game.

40% Pre-MT

TopicMCQs
Pipelining (SC, perf, hazards)5
Vector / RVV assembly5

60% Post-MT

TopicMCQs
Advanced µArch (deeper pipes, μops, BP, SS, OoO+renaming)10
Memory Systems (cache, VM, perf)20
Green Computing5
Design Verification5
Heads up Memory (20 MCQs) is the heaviest single block. Cache + VM + AMAT math should be muscle memory by exam day.

The one formula that ties it all together

Big idea Cumulative Performance = CPU Performance + Memory Performance
↳ You can't speed up real programs without taming the memory hierarchy. Even a great pipeline stalls if AMAT is high.

Performance cheatsheet

CPU side

Execution Time = #Inst × CPI × T_c
CPI            = Σ (fraction_i × CPI_i)
Speedup        = T_old / T_new

Pipelined ideal CPI = 1. Hazards (RAW, control, structural) push it up.

Memory side

AMAT = t_hit + MissRate × MissPenalty

3-level (cache → MM → VM, no TLB):
AMAT = t_cache
     + MR_cache × (t_MM + MR_MM × t_VM)

With TLB + multi-level page table:
AMAT = t_TLB + MR_TLB × (n × t_pagewalk)
     + (t_cache + MR_cache × (t_MM + MR_MM × t_VM))

Amdahl-style cache speedup

MSCPI_ideal = CPI_base
MSCPI       = CPI_base + f × MR × Penalty

Speedup = MSCPI / MSCPI_ideal
        = (CPI_base + f·MR·Penalty) / CPI_base

f = fraction of memory instructions (loads + stores).

Cache address split

Block offset bits = log2(b)   ; b = words/block × bytes/word
Set index bits    = log2(S)   ; S = #sets = C / (N × b)
Tag bits          = addr_bits − idx − off

N = associativity. Direct-mapped ⇒ N = 1.

How to use this guide

📐 Pipelining + Vector

5-stage pipeline, hazards, CPI math, RVV essentials (VLEN, SEW, vsetvli, vadd.vv).

~10 MCQs

🚀 Advanced µArch

Deeper pipes, µops, 1-bit vs 2-bit branch prediction FSMs, superscalar, OoO + register renaming, ROB.

~10 MCQs

🧠 Memory Systems

Direct/set-assoc/fully-assoc caches, virtual memory, multi-level page tables, TLB, AMAT.

~20 MCQs — heaviest block

🌱 Green Computing + DV

Power vs energy, Dennard scaling, dark silicon, PUE; UVM testbench anatomy.

~10 MCQs (5 each)

🧮 Worked Grand Quiz Examples

Step-by-step walkthroughs of GQ problems — branch mispredictions, ROB stalls, multi-level PT sizing, AMAT, cache config.

Source material map

Where to dig deeper Every page links back to specific PDFs & pages. Quick map:
TopicFileChapter / Pages
Single-cycle, pipelined, hazardsRiscV_Sarah_Harris.pdfCh. 7 (also Microarchitecture/Ch7_MicroArch.pdf)
Branch predictionMicroarchitecture/Branch Prediction.pptx.pdf1-bit, 2-bit FSMs + worked CPI
Advanced µArch (SS / OoO / renaming)Microarchitecture/Advanced_Microarchitecture_Notes.pdf§1-5 (front-end → exec engine → back-end)
Memory hierarchy & cacheMemory Systems/Ch8_Memory.pdf, MemorySystems.pdfCh. 8 — Figures 8.23 (PT), 8.27 (multi-level)
Vector / RVVVector Processing/Vector_concise.pdfProgramming model, vsetvli, worked example
Green ComputingGreen Computing/GreenComputing.pdf, Circuit_Cloud_Carbon.pdfPower wall, DSAs, PUE, carbon
Design VerificationDesignVerification/Demo Session.pdf, Talk_On_Verification.pdfUVM testbench components
Grand Quiz problemsGQ/*.jpegPast quiz handwritten work