ECEdge

Exam: GATE 2027 exams are on 6, 7, 13, 14, 20 and 21 February 2027. Official GATE 2027 site

Single-cycle RISC-V (RV32I) processor

Build a processor that runs real RISC-V machine code: fetch, decode, register file, ALU and memory, then run a C program compiled with the RISC-V GCC toolchain.

What this proves to recruiters

  • You understand how a CPU really executes instructions.
  • You can build and debug a large design.
  • You can use a real compiler toolchain with your own hardware.

Skills you will use

The datapath of a single-cycle corePCnext addressInstr. memoryfetchDecodecontrol + immRegistersx0–x31ALUcomputeData memoryload / store
Every instruction passes through these blocks in one clock cycle.

What you need

Nothing to buy: this project only needs a computer and the free software below.

Free software

  • Icarus Verilog or Verilator
  • RISC-V GNU toolchain
  • Venus or RARS simulator to check results

Steps

  1. Read the RV32I base instruction formats (R, I, S, B, U, J) and list the 37 instructions you will support.
  2. Build the register file (32 × 32-bit, x0 always zero) and the ALU first, each with its own testbench.
  3. Add the program counter, instruction memory and an immediate generator.
  4. Write the control unit that decodes opcode, funct3 and funct7 into control signals.
  5. Load a program from a hex file and compare register values with RARS after each instruction.
  6. Compile a small C program (for example a Fibonacci loop) and run it on your core.

Make it stand out

  • Turn it into a 5-stage pipeline with forwarding.
  • Run it on an FPGA and print through a memory-mapped UART.

Put it on your resume

Designed a single-cycle RV32I processor in Verilog; ran GCC-compiled C programs and verified results against the RARS simulator.

Replace each [x] with a number you measured. Real numbers make a line believable.

Keep going

This project fits stage 3, “Computer architecture and interfaces”, of the RTL and digital design roadmap. See also how freshers get into FPGA design engineer jobs.

More RTL and digital design projects

All 49 project ideas