| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
A MIPS-style CPU simulator written in Python that interprets and executes basic assembly-like instructions. It supports arithmetic, branching, memory operations, jump-and-link functionality, cache simulation, and visual output for registers and memory.
Figure: CPU state visualized after a test run.
cpu_simulator.py # Main simulator code instruction_input.txt # Instruction input file cpu_simulator.log # Log file with execution trace README.md # Project documentation
Clone the Repository
git clone https://github.com/yourusername/cpu-simulator.git
cd cpu-simulatorRun the Test Suite
python cpu_simulator.pyView Graphical Output Uncomment the run_graphical_demo() line at the bottom of the file to generate live Matplotlib charts.
This simulator includes 12+ rigorous test cases:
Each test logs results to both the console and a log file.
Built as part of my computer architecture portfolio project to deepen my understanding of instruction flow, caching, and memory interaction.
MIT License — feel free to fork, extend, and build upon it.
| Back | FazBrowse Home | New Git URL |