https://github.com/csp02/rv32i
https://github.com/csp02/rv32i
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/csp02/rv32i
- Owner: CSP02
- License: mit
- Created: 2026-02-19T14:06:46.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2026-03-27T02:35:31.000Z (3 months ago)
- Last Synced: 2026-03-27T15:08:50.565Z (3 months ago)
- Language: Verilog
- Size: 104 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ๐ง RV32I Pipelined Processor (Verilog)
## ๐ Overview
This project implements a 5-stage pipelined RISC-V (RV32I subset) processor using Verilog.
The design demonstrates instruction-level parallelism through pipelining and includes core components such as ALU, register file, control unit, and memory modules.
---
## ๐๏ธ Architecture
The processor is divided into the following pipeline stages:
1. **IF (Instruction Fetch)**
2. **ID (Instruction Decode)**
3. **EX (Execute)**
4. **MEM (Memory Access)**
5. **WB (Write Back)**
Pipeline registers are used between each stage to ensure proper data flow.
---
## โ๏ธ Features
- 5-stage pipelined architecture
- Instruction execution using RV32I base subset
- Modular RTL design (ALU, Control Unit, Register File, Memory)
- Simulation-based verification
- Clean separation of datapath and control logic
---
## ๐ Current Status
โ
Base pipeline implementation completed
โ
Instruction execution verified through simulation
๐ง Hazard handling (data/control hazards) โ In Progress
๐ง Branch prediction โ Planned
---
## ๐งช Simulation & Results
- Functional verification performed using testbenches
- Instruction flow validated across pipeline stages
- Waveforms confirm correct execution of instructions
---
## ๐งฑ Modules
- ALU
- Register File
- Control Unit
- Instruction Memory
- Data Memory
- Pipeline Registers
---
## ๐ Applications
- Understanding pipelined processor design
- Instruction-level parallelism concepts
- Foundation for advanced CPU design (hazards, forwarding, branch prediction)
---
## ๐ Future Work
- Implement hazard detection and forwarding unit
- Add branch prediction mechanism
- Extend instruction support
- Optimize pipeline performance
---
## ๐ ๏ธ Tools Used
- Verilog HDL
- Xilinx Vivado
- Simulation Testbenches
---
## ๐ Repository Structure
/source -> RTL design files
/testbench -> Simulation testbenches
/docs -> Diagrams and explanations