8000 GitHub - nananapo/bluecore: bluecore - risc-v cpu
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

nananapo/bluecore

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 

Repository files navigation

bluecore

bluecore is 5-stage pipelined RV64IMACZicsr_Zifencei_Zicntr CPU written in Veryl.
It supports Sv39.

Do you want to write CPU in Veryl?
Yes! you can see instruction.

riscv-tests

  • rv64u(i/m/a/c)-(p/v)-*
  • rv64(s/m)i-p-*

build simulator

require Verilator

$ cd core
$ make build
$ make sim
# target is objdir/sim

run your program

compile test.c

$ riscv64-unknown-elf-gcc -nostartfiles -nostdlib -T test/link.ld test.c test/entry.S 

convert elf to hex format

$ riscv64-unknown-elf-objcopy a.out -O binary test.bin
$ python3 test/bin2hex.py 8 test.bin > test.bin.hex

run simulator

$ obj_dir/sim bootrom.hex test.bin.hex

About

bluecore - risc-v cpu

Resources

Stars

Watchers

Forks

Packages

No packages published
0