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

相关推荐
啊喜拔牙5 小时前
1. hadoop 集群的常用命令
java·大数据·开发语言·python·scala
企鹅不耐热.11 小时前
Scala基础知识6
开发语言·后端·scala
一元钱面包11 小时前
scala课后总结(6)
scala
凉白开3382 天前
Scala基础知识
开发语言·后端·scala
不要不开心了2 天前
Scala内容
开发语言·pytorch·flask·scala·dash
2401_824256862 天前
Scala的函数式编程
开发语言·后端·scala
sho_re2 天前
第 3 章 运算符Scala 运算符的使用
scala
Gvemis⁹3 天前
Scala总结(三)
开发语言·后端·scala
星辰瑞云3 天前
Scala(2)
开发语言·后端·scala
苏小夕夕3 天前
Scala(二)
scala