Skip to content

citrus-lemon/riscv-self

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

riscv-self

my own project by lihanyuan (lihanyuan1996@gmail.com)

在这里查看中文说明

Install

git clone https://github.com/WindProphet/riscv-self

Prerequisite

  • java8
  • sbt
  • python3

Usage

# build every part to verilog and firrtl
make compile

# test all
make test

# test only a part
make test-ALU

# clean built resource
make clean

About Build RISC-V toolchains

Build RISC-V toolchains on macOS need a case sensitive file system

hdiutil create -size 20g -type SPARSE -fs "Case-sensitive HFS+" -volname riscv-toolchain riscv-toolchain.sparseimage
hdiutil attach riscv-toolchain.sparseimage
cd /Volumes/riscv-toolchain
brew install gawk gnu-sed gmp mpfr libmpc isl zlib expat
git clone https://github.com/riscv/riscv-gnu-toolchain
cd riscv-gnu-toolchain
git submodule update --init --recursive