This directory contains the library needed to use gem5 TimingSimpleCPU model in an SST-driven simulation.
When compiled, the gem5 library for SST libgem5.so
will be generated, containing the libgem5_*.so
as well as the gem5 Component and the SST Responder SubComponent.
On/Off-chip devs TimingSimpleCPU ^ ^ ^ | | | v v v ==================================== [gem5::NonCoherentXBar] ^ [OutgoingRequestBridge] gem5_system_port | [OutgoingRequestBridge] ^ | | | [SSTResponder] v v [SSTResponder] gem5 Component {SSTResponderSubComponent, SSTResponderSubComponent} ^ ^ | | v v ================================== [SST Bus] ^ | v SST cache <----> SST memory
gem5 Component has the following responsibilities,
SSTResponderSubComponent has the responsibity of receiving requests from gem5, translating requests to an SST Request and sending it to SSTResponder. Upon receiving a response from the memory interface, SSTResponderSubComponent will translate the response to a gem5 Packet and send it to the its OutgoingRequestBridge.
SSTResponder is owned by SSTResponderSubComponent. The responder will receive the request from the SubComponent and send it to the SST memory hierarchy.
See INSTALL.md
.
Downloading the built bootloader containing a Linux Kernel and a workload,
wget http://dist.gem5.org/dist/develop/misc/riscv/bbl-busybox-boot-exit
Running the simulation
sst sst/example.py
bbl-busybox-boot-exit
contains an m5 binary, and m5 exit
will be called upon the booting process reaching the early userspace. More information about building a bootloader containing a Linux Kernel and a customized workload is available at [https://gem5.googlesource.com/public/gem5-resources/+/refs/heads/develop/src/riscv-boot-exit-nodisk/].