Skip to content

amichai-bd/rvc_asap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rvc_asap | riscv-core-as-simple-as-passible

RISCV CPU compatible with RV32I unprivileged spec.
https://riscv.org/technical/specifications/

Builed the model - SW, RTL, simulation, FPGA

Read the "HOW_TO" and make sure you have all tools installed:

  • modelsim - system verilog compiler & simulator (lite free version)
  • gcc - RISCV compiler & tools chains for SW

building the model:

./buildl.sh all | tee last_build.log

  1. Compile with GCC the source code C/Asembly, link it together, genreate .sv for simulation, .mif for FPGA.
  2. Compile the RTL & run simulation for the level0 tests
  3. Automated scripts will report the simulation results
  4. Use the quartus GUI to load the model to the DE10-lite FPGA

RISCV core capabile running programs compatible with the RV32I Spec.

Demonstration running on DE10-lite FPGA:

Steps for designing your own RISCV core

  1. Follow the "HOW_TO" under documentation
  2. Study the RISCV spec.
  3. Design RISCV block diagram.
  4. Write SystemVerilog Core (RTL)
  5. Write a TB. (validation & Stimuli)
  6. Write c/assembly programs to run on the core.
  7. Add MMIO & other FPGA capabilities such as VGA, SWITCH, 7SEG display, LED

Single Cycle:

5 Stage Pipe Line