The goal of this project is to create a simple system using gem5. In this system, we have only one simple CPU core. This CPU core will be connected to a memory bus and we have a memory channel, also connected to the memory bus.
-
The required dependencies can be installed:
$ sudo apt-get install swig gcc m4 python python-dev libgoogle-perftools-dev mercurial scons g++ build-essential
-
Clone gem5 source and build gem5 by using scons:
$ hg clone http://repo.gem5.org/gem5
$ cd gem5/
$ scons build/X86/gem5.opt -j + NUMBER OF CPUs ON YOUR PLATFORM ( for example -j2 )
-
Clone the repository.
-
Run gem5 from the root gem5 directory as:
$ gem5/build/X86/gem5.opt system/simple_system.py --cmd=test/bin/test1