How benwin-dev/super-scalar-pipeline works
This is a small C++ superscalar-pipeline simulator prototype. Its implemented workflow reads instructions from a trace, decodes and queues them, issues instructions while tracking register dependencies, then dispatches, executes, and writes back reservation-station entries for one cycle. Load and store queues are allocated and populated during issue, but this entry point does not process them further. The runtime is contained in main.cpp; the edges shown reflect calls and state transfers visible in that file.
Main entry points: main.cpp Instruction issue
Components 14
Other components
- Instruction trace
- Cycle driver
main.cpp - Fetch and decode
main.cpp - Opcode parser
main.cpp - Instruction queue
main.cpp - Instruction issue
main.cpp - Latency lookup
main.cpp - Reservation station
main.cpp - Load queue
main.cpp - Store queue
main.cpp - Register status
main.cpp - Operand dispatch
main.cpp - Instruction execution
main.cpp - Writeback and retire
main.cpp
Connections 18
- Instruction trace → Fetch and decode: supplies input
main.cpp - Cycle driver → Fetch and decode: calls
main.cpp - Fetch and decode → Opcode parser: parses opcode
main.cpp - Fetch and decode → Instruction queue: enqueues instructions
main.cpp - Cycle driver → Instruction issue: calls
main.cpp - Instruction issue → Instruction queue: dequeues instructions
main.cpp - Instruction issue → Latency lookup: gets latency
main.cpp - Instruction issue → Reservation station: enqueues entries
main.cpp - Instruction issue → Load queue: enqueues loads
main.cpp - Instruction issue → Store queue: enqueues stores
main.cpp - Instruction issue → Register status: tracks producers
main.cpp - Cycle driver → Operand dispatch: calls
main.cpp - Operand dispatch → Reservation station: marks ready entries
main.cpp - Cycle driver → Instruction execution: calls
main.cpp - Instruction execution → Reservation station: advances entries
main.cpp - Cycle driver → Writeback and retire: calls
main.cpp - Writeback and retire → Reservation station: wakes and retires
main.cpp - Writeback and retire → Register status: clears producers
main.cpp