/microarchitecture-and-memory-systems:uarch-isa-simulation-measurement-roofline-and-specializationfrom microarchitecture-and-memory-systems
Covers ISA design trade-offs, simulation and modelling techniques, honest performance counter measurement, roofline analysis for fundamental performance limits, and specialization decisions for fixed-function hardware.
Ships in microarchitecture-and-memory-systems. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Part 5 of 6 of the CPU, GPU, NPU and Memory Microarchitecture reference (plugin
microarchitecture-and-memory-systems), covering §20–§24. Sibling skills:uarch-pipelining-out-of-order-branch-prediction-and-simd(§0–§5),uarch-caches-coherence-consistency-and-virtual-memory(§6–§10),uarch-gpu-npu-dataflow-and-numeric-formats(§11–§14),uarch-dram-memory-controllers-power-and-security(§15–§19),uarch-reference(§25–§30). Section numbers are shared across the set; a reference written as §N →skillpoints into that sibling skill.Currency: The principles are stable. Two areas moved. See §25 →
uarch-referencefor low-precision numeric formats, and next-generation memory standards.
⚠️ SCOPE, because this sits between two neighbours. ⚠️ A semiconductor reference covers device physics and fabrication — how a transistor works and how it's made. A computer-hardware reference covers system integration — components, builds, facilities. ⚠️ THIS file is the layer in between: how billions of transistors are ORGANIZED into something that executes instructions fast, and why memory systems are the hard part. ⚠️ It assumes the other two rather than repeating them.
⚠️ GOTCHA boxes mark where architectural intuition is wrong and where the abstraction leaks.
The three ideas that organize this document:
- ⚠️ THE PROCESSOR LIES TO YOU, DELIBERATELY (§2–§4 →
uarch-pipelining-out-of-order-branch-prediction-and-simd). Instructions do not execute in program order, memory operations do not become visible in program order, and the architecture works hard to maintain the illusion that they do. Every performance surprise and several security disasters live in the gap.- ⚠️ MOVING DATA COSTS FAR MORE THAN COMPUTING ON IT (§6 →
uarch-caches-coherence-consistency-and-virtual-memory, §13 →uarch-gpu-npu-dataflow-and-numeric-formats, §23). Energy per arithmetic operation has fallen enormously; energy per byte moved has not. Modern architecture is organized around minimizing data movement, and that single fact explains caches, dataflow accelerators, quantization and HBM alike.- ⚠️ PARALLELISM IS EXTRACTED AT EVERY LEVEL, AND EACH HAS A DIFFERENT LIMIT (§3 →
uarch-pipelining-out-of-order-branch-prediction-and-simd, §11 →uarch-gpu-npu-dataflow-and-numeric-formats, §14 →uarch-gpu-npu-dataflow-and-numeric-formats). ILP is limited by dependencies and branches, DLP by divergence and memory, TLP by synchronization and coherence traffic. Knowing which one you're hitting is the entire diagnostic skill.
⚠️ The RISC/CISC distinction is largely historical at the microarchitecture level —
⚠️ x86 decodes into internal micro-operations, so the execution core resembles a RISC
machine regardless.
⚠️ Where the ISA still matters: ⚠️ DECODE COMPLEXITY (⚠️ x86's variable-length
instructions make parallel decode genuinely harder, which is a real width constraint),
code density, the MEMORY MODEL (§8 → uarch-caches-coherence-consistency-and-virtual-memory), and extensibility.
⚠️ ARM's server rise demonstrates that the ISA was never the barrier — ⚠️ execution,
ecosystem and economics were.
⚠️ RISC-V: ⚠️ open, modular, extensible — with fragmentation as the standing risk and
profiles as the response.
⚠️ Extensions as the real battleground: ⚠️ vector, matrix, crypto and virtualization
extensions are where architectural competition actually happens now.
⚠️ How architecture is evaluated before silicon exists. ⚠️ Cycle-accurate simulators (gem5) are accurate and extremely slow; ⚠️ trace-driven and analytical models are fast and lossy; ⚠️ FPGA prototyping sits between. ⚠️ The methodology problems are severe and well documented: ⚠️ benchmark selection bias, simulation of short samples that miss warm-up and phase behaviour, and validation against real hardware that is often not done. ⚠️ The honest position: ⚠️ simulator results are hypotheses about relative ordering, not predictions of absolute performance (see a manufacturing reference on treating simulation as a hypothesis generator).
⚠️ The practical skill that makes everything above actionable.
⚠️ HARDWARE PERFORMANCE COUNTERS ⚠️ cycles, instructions, cache
misses at each level, branch mispredicts, TLB misses, stall
cycles by reason
⚠️ perf, VTune, uProf, Nsight, and vendor equivalents
⚠️ ⚠️ TOP-DOWN MICROARCHITECTURE ANALYSIS is the right method:
classify each issue slot as ⚠️ RETIRING · BAD SPECULATION ·
⚠️ FRONTEND BOUND · ⚠️ BACKEND BOUND, then drill down.
⚠️ This tells you WHICH of §3, §4, §6 or §15 is your problem,
rather than guessing
⚠️ IPC ALONE IS MISLEADING ⚠️ high IPC on wasted work is not
good, and low IPC on a memory-bound kernel may be optimal
⚠️ THE PITFALLS ⚠️ frequency scaling during measurement (§18) ·
⚠️ cold caches and TLBs · ⚠️ counter multiplexing when you ask
for too many events · ⚠️ observer effect · NUMA placement ·
⚠️ and comparing across mitigation states (§19)
⚠️ ROOFLINE (§23) tells you the CEILING; counters tell you where
you actually are
⚠️ ARITHMETIC INTENSITY = FLOPs performed per byte moved from memory.
⚠️ Plot achievable performance against it: a sloped region where you're
BANDWIDTH-BOUND, and a flat region where you're COMPUTE-BOUND.
⚠️ The uncomfortable truth: ⚠️ most real kernels sit in the bandwidth-bound region,
which means peak FLOPS numbers are irrelevant to them and adding compute units does
nothing.
⚠️ The levers, in order of usefulness: ⚠️ raise arithmetic intensity through blocking
and fusion; reduce bytes moved through quantization (§14 → uarch-gpu-npu-dataflow-and-numeric-formats) and compression; improve locality
(§6 → uarch-caches-coherence-consistency-and-virtual-memory); and only then worry about compute.
⚠️ Amdahl and Gustafson bound parallel speedup from opposite directions — ⚠️ fixed
problem versus fixed time — and both are worth having in mind because they answer different
questions.
⚠️ The energy roofline matters increasingly, given §18 → uarch-dram-memory-controllers-power-and-security.
⚠️ Why fixed-function hardware exists: ⚠️ removing generality removes fetch, decode, speculation and coherence overhead, and the energy efficiency gain over a general-purpose core can be orders of magnitude for a well-matched task. ⚠️ The trade is flexibility, and ⚠️ the risk is that the workload moves faster than the silicon cycle — a genuine problem for AI accelerators specifically, where model architectures change faster than chips ship. ⚠️ The spectrum: ⚠️ CPU → SIMD → GPU → programmable accelerator → FPGA → fixed-function ASIC, with programmability falling and efficiency rising. ⚠️ Domain-specific architecture (Hennessy and Patterson's framing) is ⚠️ the mainstream answer to the end of Dennard scaling — since you cannot power all the transistors anyway (dark silicon), spend them on specialized units used intermittently.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
6 skills in this plugin
/uarch-caches-coherence-consistency-and-virtual-memoryUse when memory behaviour is the performance story: cache organization with associativity, line size and replacement, cache coherence and the MESI-family protocols, memory consistency models and what the hardware may reorder underneath your code, virtual memory, TLBs and page-table walks, and prefetching including what hardware prefetchers can and cannot detect./uarch-dram-memory-controllers-power-and-securityUse for the memory system and its side effects: DRAM internals with banks, rows, timings and refresh, memory controllers and scheduling, the emerging memory interfaces including CXL and high-bandwidth stacks, power and clocking with DVFS and thermal limits, and microarchitectural security — speculative execution attacks, side channels and Rowhammer-class problems./uarch-gpu-npu-dataflow-and-numeric-formatsUse for accelerators: GPU microarchitecture including warps, occupancy and divergence, GPU memory systems with coalescing and the bandwidth hierarchy, NPUs and dataflow architectures such as systolic arrays and why they suit tensor workloads, and numeric formats from FP32 down to FP8 and the block-scaled formats with their accuracy and throughput trade-offs.npx claudepluginhub the-vibey-project/vibey --plugin microarchitecture-and-memory-systems