How maze-0508/rv32i_core works
This repository implements an RV32I processor: instructions enter a five-stage pipeline and produce register and memory updates. The README documents stage order, each stage’s responsibilities, hazard handling, and the supporting RTL modules. The graph follows those documented relationships; source excerpts were unavailable, so it does not claim additional wiring beyond the README.
Main entry points: rv32i_pipeline.v Instruction decode · hazard_unit.v Load-use detection · regfile.v Register file · control.v Opcode control
Components 15
Pipeline stages
- Pipeline core
rtl/rv32i_pipeline.v - Instruction fetch
rtl/rv32i_pipeline.v - Instruction decode
rtl/rv32i_pipeline.v - Execute stage
rtl/rv32i_pipeline.v - Memory stage
rtl/rv32i_pipeline.v - Write-back stage
rtl/rv32i_pipeline.v
Execution and control
- Opcode control
rtl/control.v - ALU
rtl/alu.v - Data forwarding
rtl/forward_unit.v - Load-use detection
rtl/hazard_unit.v
Processor state
- Register file
rtl/regfile.v - Instruction memory
rtl/rv32i_pipeline.v - Data memory
rtl/rv32i_pipeline.v
Other components
- Instruction program
- CPU state
Connections 17
- Instruction program → Instruction memory: provides instructions
README.md - Instruction fetch → Instruction memory: looks up instruction
README.md - Instruction fetch → Instruction decode: passes instruction
README.md - Instruction decode → Execute stage: passes operands
README.md - Execute stage → Memory stage: passes result
README.md - Memory stage → Write-back stage: passes data
README.md - Instruction decode → Opcode control: decodes opcode
README.md - Instruction decode → Register file: reads registers
README.md - Execute stage → ALU: performs operation
README.md - Execute stage → Data forwarding: selects operands
README.md - Load-use detection → Instruction fetch: freezes PC
README.md - Load-use detection → Instruction decode: stalls fetch/decode
README.md - Load-use detection → Execute stage: inserts bubble
README.md - Memory stage → Data memory: reads or writes
README.md - Write-back stage → Register file: writes register
README.md - Write-back stage → CPU state: updates state
README.md - Memory stage → CPU state: updates memory
README.md