abstractaccelerator/Cores-SweRV/demo
colin 8e190efed0 Split from soc.mk to soc_sim.mk and soc_top.mk 2022-02-15 08:31:00 +00:00
..
helloworld Split from soc.mk to soc_sim.mk and soc_top.mk 2022-02-15 08:31:00 +00:00
jtag Split from soc.mk to soc_sim.mk and soc_top.mk 2022-02-15 08:31:00 +00:00
Readme.md remove axi4 in demo soc use ahb as default 2022-02-10 12:17:10 +00:00

Readme.md

Demo

helloworld

This a demo for llvm build and sim with verilator.

jtag

This is a demo of jtag simulation by openocd running on verilator.

install verilator

sudo apt install verilator

install openocd

git clone https://github.com/riscv/riscv-openocd.git
cd riscv-openocd
./bootstrap
./configure --prefix=$RISCV --enable-remote-bitbang --enable-jtag_vpi --enable-ftdi --enable-jlink
make
sudo make install

install ninja

sudo apt-get install -y ninja-build

build and install riscv tools

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/chipsalliance/rocket-tools.git
git submodule update --init --recursive
# riscv-isa-sim and openocd may be checkout to main branch to avoid compile error
sudo su
export RISCV=/opt/riscv
export MAKEFLAGS="-j12"
./build-rv32ima.sh