How compilemylife/mips-lite works
Project type and purpose
• This is a command-line educational simulator (“MIPS Lite Simulator”) that models an in-order 5-stage MIPS pipeline.
• It reads an assembly or memory image file, decodes instructions, and simulates IF, ID, EX, MEM, and WB stages in separate threads.
File structure
• Top‐level:
• Makefile & README.md – build and usage instructions
• hazardTest*.txt – sample input and explanation files for verifying pipeline hazards
• noHazardTest.txt – control test case
• / – public headers for each pipeline stage thread (IF_thread.h, ID_thread.h, …), TSqueue (thread-safe FIFO), decoder, masterHelpers, and sys_core
• src/ – implementation files for each component mirror the headers, plus main.cpp to launch the simulation
• Key configuration: Makefile defines compile/link steps; no external deployment descriptors
README
• Confirms purpose and build/run commands
Detail
• Thread-safe queue pattern and highlight that each queue enforces FIFO between producer and consumer threads