Below is the file structure and descriptions of each component in the project:
The whole simulator is located under Simulator Folder
core/- The simulator itself, including the LLC, CPU, GPU, and SYSTEM components.header/- Header files used within the Simulator.Test/- Unit tests for each module within the Simulator.Testcase/- Test cases for the entire system and scripts to analyze the results.top/- Python scripts to run the simulator. Configuration settings can be adjusted inTop.py.utility/- Contains all the primitives used for the simulator and the debug class.
To run the simulation, follow these steps:
- Execute the Test
- Run the command below in your terminal. This will execute the simulation and save the output to
output.txt.cd Simulator python3 -m top.Top > output.txt
- Run the command below in your terminal. This will execute the simulation and save the output to
To change the test case you want to run, you need to modify the main function in the top/Top.py file.
-
If you want to run test 6, change the
mainfunction tomain_test6(). Here’s how you can do it:- Open
top/Top.pyin your favorite text editor. - Locate the
mainfunction. - Replace the existing
mainfunction call withmain_test6().
- Open