This is an RISC-V 64I inorder toy CPU in Chisel which is built via mill.
For mill use
mill mill.bsp.BSP/installthen open by Intellij IDEA.
We wrote several Scala functions to read the binary file as the sequencer of CPU-Test. To execute the Chisel tests or DiffTest Framework, you need to build the binary files firstly:
cd ./AM/am-kernels/tests/cpu-tests
make ARCH=riscv64-mycpuAlso, the AM Test:
cd ./AM/am-kernels/tests/am-tests
make ARCH=riscv64-mycpucd ./AM/fceux-am/
make ARCH=riscv64-mycpu mainargs=marioThis RISC-V CPU also is connected to DiffTest Framework to verify the function.
To use is, compile the NEMU firstly:
make -C dependencies/difftest emuThen use the binary file xxx.bin:
./build/emu -i xxx.bin- difftestSim
- nucpu
- axi
- nucpu.testers
- axi.testers