A SystemVerilog implementation of a multi-cycle RISC-V controller unit, designed and verified using QuestaSim.
This project implements the control logic for a RISC-V multi-cycle processor. It handles the instruction lifecycle across multiple clock cycles using a Finite State Machine (FSM).
- Architecture: RISC-V Multi-cycle
- Language: SystemVerilog
- Simulation: QuestaSim / ModelSim
- Validation: 40 Test Vectors (R-Type, I-Type, Load/Store, Branch, Jump)
The simulation successfully passes all 40 test vectors with 0 errors.
The waveform confirms correct state transitions. I tracked instructions moving from FETCH (0) through DECODE (1) to their respective execution and WRITEBACK (8) states.
mainfsm.sv: Primary Finite State Machine logic.aludec.sv: Updated ALU control signals for testbench compatibility.controller.sv: Top-level controller module.

