How vlsi-shubh/riscv-32i-processor works
The repository implements two RV32I processor designs: a single-cycle core and a five-stage pipelined core. The documented shared-RTL arrangement has the pipeline core use the SingleCycle ALU, control, register-file, immediate, PC, branch, mux, adder, and instruction-memory modules. Pipeline-specific stages, inter-stage registers, hazard detection, and forwarding are also represented. Source excerpts were not provided, so internal stage-to-stage calls and the single-cycle core’s wiring are not asserted.
Main entry points: core_pip.v Pipeline core · alu.v ALU · alu_control.v ALU control · control.v Control unit
Components 23
Single-cycle RTL
- Single-cycle core
SingleCycle/src/core_sc.v
Shared processor RTL
- ALU
SingleCycle/src/alu.v - ALU control
SingleCycle/src/alu_control.v - Control unit
SingleCycle/src/control.v - Register file
SingleCycle/src/reg_file.v - Immediate generator
SingleCycle/src/imm.v - Program counter
SingleCycle/src/pc.v - Branch unit
SingleCycle/src/branch_unit.v - MUX modules
SingleCycle/src/mux.v - Adder
SingleCycle/src/adder.v - Instruction memory
SingleCycle/src/inst_mem.v
Pipeline RTL
- Pipeline core
PipelineExecution/core/core_pip.v - Stage coordination
PipelineExecution/stages/core_pip.v - Fetch stage
PipelineExecution/stages/fetch.v - Decode stage
PipelineExecution/stages/decode.v - Execute stage
PipelineExecution/stages/execute.v - Memory stage
PipelineExecution/stages/memory.v - IF/ID register
PipelineExecution/stages/if_id_reg.v - ID/EX register
PipelineExecution/stages/id_ex_reg.v - EX/MEM register
PipelineExecution/stages/ex_mem_reg.v - MEM/WB register
PipelineExecution/stages/mem_wb_reg.v - Hazard detection
PipelineExecution/stages/hazard_unit.v - Forwarding unit
PipelineExecution/stages/forwarding_unit.v
Connections 10
- Pipeline core → ALU: uses
README.md - Pipeline core → ALU control: uses
README.md - Pipeline core → Register file: uses
README.md - Pipeline core → Control unit: uses
README.md - Pipeline core → Immediate generator: uses
README.md - Pipeline core → Program counter: uses
README.md - Pipeline core → Branch unit: uses
README.md - Pipeline core → MUX modules: uses
README.md - Pipeline core → Adder: uses
README.md - Pipeline core → Instruction memory: uses
README.md