在ubuntu20.04上面跑通rocket-chip仿真,用rocket-tools工具

12 篇文章 0 订阅
4 篇文章 3 订阅

先为ubuntu20.04安装下列工具和库

$ sudo apt-get install autoconf automake autotools-dev curl libmpc-dev libmpfr-dev libgmp-dev libusb-1.0-0-dev gawk build-essential bison flex texinfo gperf libtool patchutils bc zlib1g-dev device-tree-compiler pkg-config libexpat-dev libfl-dev

-----------------------------------------------------------------------------------------------------------

$ git clone https://github.com/freechipsproject/rocket-tools

$ cd rocket-tools
$ git checkout 2022.12.26

$ git submodule update --init --recursive


$ export RISCV=/path/to/install/riscv/toolchain
$ export PATH=$RISCV/bin:$PATH 
$ export MAKEFLAGS="$MAKEFLAGS -jN"
$ ./build.sh

------------------------------------------------------------------------------------------------------------
$ git clone https://github.com/chipsalliance/rocket-chip

$ cd rocket-chip

$ git checkout 281e5c8f2

$ git submodule update --init

$ cd rocket-chip/emulator
$ make -jN
$ make -jN run-asm-tests
$ make -jN run-bmark-tests

$ cd emulator
$ make debug
$ make -jN run-asm-tests-debug
$ make -jN run-bmark-tests-debug

-------------------------------------------------------------------------------------------------------------

$ cd rocket-chip/vsim
$ make verilog
$ make verilog CONFIG=freechips.rocketchip.system.DefaultFPGAConfig
$ make -jN run CONFIG=freechips.rocketchip.system.DefaultFPGAConfig
if you have access to VCS, you can run assembly tests and benchmarks with the following commands (again assuming you have N cores on your host machine):

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值