-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
5 additions
and
212 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,72 +1 @@ | ||
[![Review Assignment Due Date](https://classroom.github.com/assets/deadline-readme-button-24ddc0f5d75046c5622901739e7c5dd533143b0c8e959d652212380cedb1ea36.svg)](https://classroom.github.com/a/b79484lS) | ||
<p align="center"> | ||
<h1 align="center"> ChampSim </h1> | ||
<p> ChampSim is a trace-based simulator for a microarchitecture study. If you have questions about how to use ChampSim, we encourage you to search the threads in the Discussions tab or start your own thread. If you are aware of a bug or have a feature request, open a new Issue. <p> | ||
</p> | ||
|
||
# TODO> | ||
|
||
> Task 1: Generate plots for **prefetcher/ip_stride/ip_stride.cc**. | ||
> __mee__: I will run and upload the results sometime. | ||
> Task 2: Implement stream prefetcher | ||
> Task 3: Implement prefetch throttling | ||
|
||
# Using ChampSim | ||
|
||
ChampSim is the result of academic research. To support its continued growth, please cite our work when you publish results that use ChampSim by clicking "Cite this Repository" in the sidebar. | ||
|
||
# Compile | ||
|
||
ChampSim takes a JSON configuration script. Examine `champsim_config.json` for a fully-specified example. All options described in this file are optional and will be replaced with defaults if not specified. The configuration scrip can also be run without input, in which case an empty file is assumed. | ||
``` | ||
$ ./config.sh <configuration file> | ||
$ make | ||
``` | ||
|
||
# Run simulation | ||
|
||
Execute the binary directly. | ||
``` | ||
$ bin/champsim --warmup_instructions 200000000 --simulation_instructions 500000000 ~/path/to/traces/600.perlbench_s-210B.champsimtrace.xz | ||
``` | ||
|
||
The number of warmup and simulation instructions given will be the number of instructions retired. Note that the statistics printed at the end of the simulation include only the simulation phase. | ||
|
||
# Add your own branch predictor, data prefetchers, and replacement policy | ||
**Copy an empty template** | ||
``` | ||
$ mkdir prefetcher/mypref | ||
$ cp prefetcher/no_l2c/no.cc prefetcher/mypref/mypref.cc | ||
``` | ||
|
||
**Work on your algorithms with your favorite text editor** | ||
``` | ||
$ vim prefetcher/mypref/mypref.cc | ||
``` | ||
|
||
**Compile and test** | ||
Add your prefetcher to the configuration file. | ||
``` | ||
{ | ||
"L2C": { | ||
"prefetcher": "mypref" | ||
} | ||
} | ||
``` | ||
Note that the example prefetcher is an L2 prefetcher. You might design a prefetcher for a different level. | ||
|
||
``` | ||
$ ./config.sh <configuration file> | ||
$ make | ||
$ bin/champsim --warmup_instructions 200000000 --simulation_instructions 500000000 600.perlbench_s-210B.champsimtrace.xz | ||
``` | ||
|
||
# Evaluate Simulation | ||
|
||
ChampSim measures the IPC (Instruction Per Cycle) value as a performance metric. <br> | ||
There are some other useful metrics printed out at the end of simulation. <br> | ||
|
||
Good luck and be a champion! <br> | ||
# These are the traces for my impementation for various configurations |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters