RISCV-MINI环境安装与编译指南

======== setup basic environment =========

install ubuntu20.04-LTS

sudo apt install default-jre

sudo apt install git curl build-essential cmake flex bison gawk

sudo apt install libgmp-dev libmpfr-dev libmpc-dev

========= install scala-sbt ==============

refer to http://www.scala-sbt.org/download.html

echo "deb https://repo.scala-sbt.org/scalasbt/debian all main" | sudo tee /etc/apt/sources.list.d/sbt.list

echo "deb https://repo.scala-sbt.org/scalasbt/debian /" | sudo tee /etc/apt/sources.list.d/sbt_old.list

curl -sL "https://keyserver.ubuntu.com/pks/lookup?op=get\&search=0x2EE0EA64E40A89B84B2DF73499E82A75642AC823" | sudo apt-key add

sudo apt update

sudo apt install sbt

sbt --version

> sbt version in this project: 1.9.4

> sbt script version: 1.9.4

========= install verilator v4.218 ==========

git clone https://github.com/verilator/verilator

git checkout -b v4.218

git branch

autoconf

./configure

make

sudo make install

======== compile and run riscv-mini ========

git clone https://github.com/ucb-bar/riscv-mini

cd riscv-mini

make

make verilator

make run-tests

make sbt

>testOnly mini.TileBmarkTests

>testOnly mini.CoreISATests

>testOnly mini.TileSimpleTests

>test

==================================

export RISCV=/home/hemin/cad/RISCV

./build-riscv-tools.sh

make run-custom-bmark

相关推荐
今天我又学废了9 小时前
scala学习记录,Set,Map
开发语言·学习·scala
富能量爆棚2 天前
scala的属性访问权限
scala
富能量爆棚2 天前
Scala的包及其导入
开发语言·后端·scala
睎zyl2 天前
Scala的访问权限。
开发语言·后端·scala
富能量爆棚3 天前
Scala的属性访问权限(一)默认访问权限
开发语言·后端·scala
富能量爆棚3 天前
scala的控制方法作用域
scala
2401_871290583 天前
Scala 的例题:银行账户钱存取功能
scala
白总Server5 天前
Ribbon解说
后端·spring cloud·微服务·云原生·ribbon·架构·scala
白总Server6 天前
Ribbon的轮询策略实现方法
开发语言·后端·spring cloud·ribbon·架构·scala·1024程序员节
anqi276 天前
Scala 的trait
开发语言·后端·scala