Skip to content

gem5 diagrams

Each diagram is the SimObject tree of one gem5 configuration for the XuanTie C906: every SimObject gem5 instantiates and every scalar parameter, generated from the config.json that gem5 writes into the injection directory. Open a file to see it at full size; the Ruby trees are up to 12,000 px wide, so use the browser zoom.

Build specification

Diagram Shows
C906 build spec the SE-mode system as fim_system.py and board_builder.py construct it: the parameters passed to m5.instantiate() and the port connections

Classic memory system

Diagram CPU Memory Used by
Atomic + classic memory AtomicSimpleCPU MemCtrl + DRAMInterface, no caches register and memory campaigns
Timing + L1/L2 caches TimingSimpleCPU L1/L2 Cache between CPU and membus cache and ECC campaigns
DRAMsim3 backend AtomicSimpleCPU DRAMsim3 in place of MemCtrl mem_backend: dramsim3
NVMain backend AtomicSimpleCPU NVMainMemCtrl with its nvmain_runtime.config mem_backend: nvmain

Ruby (MESI_Two_Level)

Diagram Memory below the directory
Ruby classic DRAM; RubySystem, L1 and L2 SLICC controllers, RubySequencer, directory, SimpleNetwork buffers
Ruby + NVMain PCM NVMain PCM as main memory
Ruby + NVMain DRAM cache NVMain 3D DRAM cache
Ruby + NVMain, datapath only the CPU to memory path, other SimObjects pruned
NVMain inside dir_cntrl0 NVMain owned by directory 0
NVMain inside dir_cntrl0, full tree the same, unpruned
Hybrid NVM and DRAM NVMain inside directory 0, DRAMsim3 in the system
NVMain in directory and L2 NVMain in dir_cntrl0 and in l2_cntrl0, DRAMsim3 in the system

Ruby campaigns (fault: ruby_*) boot one of these trees. Parameters: gem5 backend, Ruby.

Regenerating a diagram

From an HFIM checkout, pass the config.json from your gem5 run to the diagram generator:

python3 scripts/gen_simobj_diagram.py /path/to/config.json -o tree.svg