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


    先为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):

  • 相关阅读:
    七、OCR-PaddlePaddle训练源码解析系列-文字识别
    页错误异常处理(page fault)的实现
    docker安装UnlockMusic(音乐格式转换工具 )
    Spring Security整体架构
    java date操作
    Go1.9.3跑GinDemo
    CentOS 7 安装 JDK11(注意版本号要与自己的版本一致)
    Flutter: 自动登录
    [附源码]计算机毕业设计springboot咖啡销售平台
    【PB续命05】WinHttp.WinHttpRequest的介绍与使用
  • 原文地址:https://blog.csdn.net/weixin_39548025/article/details/133296210