Branch Prediction and Memory Optimization in a Custom RISC-V Soft Processor
Designed a 5-stage pipelined RV32I CPU in Verilog, running at 50 MHz on a Cyclone II FPGA, with forwarding, branch prediction, and instruction and data caches backed by onboard SRAM. Compared five branch predictors at sizes from 8 bits to 64 Kbit and redesigned the memory system, cutting the cycles spent waiting on memory by 71%.