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

相关推荐
小坏讲微服务2 天前
Spring Cloud Alibaba 整合 Scala 教程完整使用
java·开发语言·分布式·spring cloud·sentinel·scala·后端开发
Kiri霧2 天前
Scala 循环控制:掌握 while 和 for 循环
大数据·开发语言·scala
pale_moonlight3 天前
十、 Scala 应用实践 (上)
大数据·开发语言·scala
小坏讲微服务3 天前
SpringCloud整合Scala实现MybatisPlus实现业务增删改查
java·spring·spring cloud·scala·mybatis plus
今天没有盐4 天前
Scala Map集合完全指南:从入门到实战应用
后端·scala·编程语言
BD_Marathon5 天前
sbt 编译打包 scala
开发语言·后端·scala
92745 天前
26 trait-多继承详解
scala
渣渣盟6 天前
Flink分布式文件Sink实战解析
分布式·flink·scala·1024程序员节
-大头.6 天前
Scala全链路实战:零基础到生产级
开发语言·scala
今天没有盐7 天前
Scala 访问权限详解:private、protected 与 private
scala