Skip to content

Latest commit

 

History

History
21 lines (14 loc) · 754 Bytes

README.md

File metadata and controls

21 lines (14 loc) · 754 Bytes

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.