Casper Neo
MPCS 52010 Computer Architecture
2018 February 2
This is my cache emulator project for MPCS 52010 Computer Architecture.
See Jupyter notebook analysis.ipynb
or the pdf version analysis.pdf
.
Installation: https://www.rust-lang.org/en-US/install.html
- First change to
cache_emulator
directory - The emulator
- To build debug version:
cargo build
- To build optimized (release) version:
cargo build --release
- To test:
cargo test
- To Run:
cargo run
- To Run with logs:
RUST_LOG=[LOG LEVEL] ./target/[VERSION]/cache_emulator [FLAGS]
- To clean:
cargo clean
- To build debug version:
- Analysis
- To run analysis notebook:
jupyter notebook
, use gui to openanalysis.ipynb
- To convert analysis to pdf
jupyter nbconvert --to pdf analysis.ipynb
- To run analysis notebook:
File | Purpose |
---|---|
Cargo.toml |
cargo uses this file to handle external crates (packages) |
Cargo.lock |
I have no idea what this does. Cargo did it. |
src/main.rs |
Entry point to the program: parses flags and runs |
src/cli.yml |
Defines the command line flags |
src/cpu.rs |
Implementation of cpu |
src/algorithms.rs |
Implementation of dot product, matrix multiply, etc |
analysis.ipynb |
IPython notebook that conducts analysis |