riscv

an RV32I simulator and related experiments
git clone http://frotz.net/git/riscv.git
Log | Files | Refs | README

README.md (580B)


      1 # riscv
      2 A sandbox for some riscv experiments.
      3 
      4 ### building the toolchain
      5 
      6 It's assumed there's a riscv32 toolchain in a sibling directory.
      7 
      8 This recipe grabs @travisg's scripts for building gcc and uses them
      9 
     10 ```
     11 $ cd ..
     12 $ git clone git@github.com:travisg/toolchains.git
     13 $ cd toolchain
     14 $ ./doit -a riscv32 -j32 -f
     15 ```
     16 
     17 ### building and running the simulator and test program
     18 
     19 ```
     20 $ make
     21 $ ./bin/rvsim out/hello.bin
     22 ```
     23 
     24 ### running the riscv compliance tests
     25 
     26 Check out https://github.com/riscv-non-isa/riscv-arch-test adjacent to this directory.
     27 
     28 ```
     29 make -f Makefile.test
     30 ```
     31