HARDWARE · H3
Course project
RISC-V CPU (RV32I)
Multi-cycle core on an FPGA
- Area
- Hardware
- Role
- Designer
- Context
- CPE 233
- Team
- Course project
- Dates
- Coursework
- Status
- Course project
- Tools
- SystemVerilog, Vivado, Basys-3 (Artix-7)
The problem
Build a working RISC-V processor from the RTL up and run it on real hardware.
What I built
- Full RV32I base ISA with a 10-operation ALU and a 2-state FSM control unit (fetch, execute).
- 32 × 32 register file with two read ports and one write port, dual-port memory.
- 4-source PC mux (PC+4, jalr, branch, jal) and I/S/B/U/J immediate generation.
- Synthesis, placement, routing, and static timing in Vivado; brought up on a Basys-3.
On the bench

Results
RV32Ifull base ISA
10ALU operations
2FSM states
32 × 32register file
What I learned
Branch targets came out wrong. At the waveform level the cause was the PC-source mux not being gated by PCWrite. Asserting PCWrite only in the execute state fixed it.