How cs683-iitb-autumn-2026/pa2 works
ChampSim is a trace-driven microarchitecture simulator. A user supplies a trace and warmup/simulation lengths; the runtime processes instructions through an out-of-order core and memory hierarchy, then reports IPC and other statistics. The graph separates core execution, translation, cache behavior, and uncore memory. Some internal wiring—especially policy callbacks and lower-level request routing—is not shown in the excerpts, so those links are omitted rather than inferred.
Main entry points: ooo_cpu.cc Out-of-order core · main.cc Simulation driver · cache.cc L1 caches · prefetcher Prefetch policies
Components 14
Simulation runtime
- Simulation driver
src/main.cc - Metrics output
src/main.cc
Core execution
- Out-of-order core
src/ooo_cpu.cc - Branch predictor
branch/branch_predictor.cc - Page-table walker
src/page_table_walker.cc
Memory hierarchy
- TLB caches
src/cache.cc - L1 caches
src/cache.cc - L2 cache
src/cache.cc - Last-level cache
src/cache.cc - DRAM controller
src/dram_controller.cc
Configurable policies
- Prefetch policies
prefetcher - Replacement policies
replacement
Other components
- Researcher
- Instruction trace
Connections 19
- Researcher → Simulation driver: configures and runs
README.md - Researcher → Instruction trace: provides
README.md - Instruction trace → Simulation driver: read by
README.md - Simulation driver → Out-of-order core: executes instructions
src/main.cc - Simulation driver → Metrics output: prints metrics
README.md - Out-of-order core → Branch predictor: predicts branches
- Out-of-order core → Page-table walker: requests translation
- Out-of-order core → TLB caches: accesses
- Out-of-order core → L1 caches: issues memory accesses
- Page-table walker → TLB caches: uses translation caches
- L1 caches → L2 cache: forwards misses
src/cache.cc - L2 cache → Last-level cache: forwards misses
src/cache.cc - Last-level cache → DRAM controller: services misses
- Prefetch policies → L1 caches: prefetches for
- Prefetch policies → L2 cache: prefetches for
- Prefetch policies → Last-level cache: prefetches for
- Replacement policies → L1 caches: selects victims
- Replacement policies → L2 cache: selects victims
- Replacement policies → Last-level cache: selects victims