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

相关推荐
WorkAgent4 小时前
windows下本地部署安装hadoop+scala+spark-【不需要虚拟机】
hadoop·spark·scala
JoneMaster7 天前
[读书日志]从零开始学习Chisel 第十二篇:Scala的抽象成员(敏捷硬件开发语言Chisel与数字系统设计)
开发语言·学习·scala
wlyang6669 天前
4. scala高阶之隐式转换与泛型
大数据·开发语言·后端·spark·scala
一杯拿铁go11 天前
[sparkstreaming]java.lang.NoSuchMethodError:错误以及更改
scala·noclassdeffound
百流11 天前
scala基础学习(数据类型)-集合
开发语言·学习·scala
JoneMaster11 天前
[读书日志]从零开始学习Chisel 第十篇:Scala的模式匹配(敏捷硬件开发语言Chisel与数字系统设计)
开发语言·学习·scala
JoneMaster12 天前
[读书日志]从零开始学习Chisel 第十一篇:Scala的类型参数化(敏捷硬件开发语言Chisel与数字系统设计)
开发语言·学习·scala
小白学大数据12 天前
如何使用Scala和Selenium爬取知乎视频并保存到本地
chrome·python·selenium·scala
小_太_阳12 天前
scala_【JVM】概述
开发语言·jvm·scala
wlyang66612 天前
2. Scala 高阶语法之集合与元组
开发语言·后端·scala