Skip to content

yang-le/riscv_cpu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 
 
 

Repository files navigation

A Simple Riscv Verilog Implementation

Intro

This is a simple riscv verilog implementation. It can be built successfully using Quartus 20.1 Lite and/or Verilator. It is also passed the riscv-arch-test.

Simulator Build

cd sim
make

Test

You need to get riscv-arch-test and copy test into its riscv-target dir. Then

cd riscv-arch-test
RISCV_TARGET=test SIM_DIR=/PATH/TO/sim make

The test should all pass and output

OK: 38/38 RISCV_TARGET=test RISCV_DEVICE=I XLEN=32

Doc

Chinese document at CSDN.