2022-02-25 19:56:36 +08:00
|
|
|
# VexRiscV
|
|
|
|
|
|
|
|
## install special OpenOCD to support VexRiscV
|
|
|
|
|
|
|
|
```bash
|
|
|
|
https://github.com/SpinalHDL/openocd_riscv.git
|
|
|
|
|
|
|
|
sudo apt-get install libtool automake libusb-1.0.0-dev texinfo libusb-dev libyaml-dev pkg-config
|
|
|
|
|
|
|
|
./bootstrap
|
|
|
|
./configure --enable-ftdi --enable-dummy --enable-cmsis-dap --enable-remote-bitbang --enable-jtag_vpi --enable-ftdi --enable-jlink
|
|
|
|
make -j
|
|
|
|
sudo make install
|
|
|
|
```
|
|
|
|
|
2022-02-26 22:34:25 +08:00
|
|
|
## install sbt to gen the VexRiscv core
|
2022-02-25 19:56:36 +08:00
|
|
|
|
|
|
|
```
|
|
|
|
# JAVA JDK 8
|
|
|
|
sudo add-apt-repository -y ppa:openjdk-r/ppa
|
|
|
|
sudo apt-get update
|
|
|
|
sudo apt-get install openjdk-8-jdk -y
|
|
|
|
sudo update-alternatives --config java
|
|
|
|
sudo update-alternatives --config javac
|
|
|
|
|
|
|
|
# Install SBT - https://www.scala-sbt.org/
|
|
|
|
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-get update
|
|
|
|
sudo apt-get install sbt
|
|
|
|
```
|
|
|
|
|
|
|
|
## VexRiscv
|
|
|
|
|
|
|
|
```bash
|
|
|
|
# To generate the SoC without any content in the ram
|
|
|
|
sbt "runMain vexriscv.demo.Murax"
|
|
|
|
|
|
|
|
# To generate the SoC with a demo program already in ram
|
|
|
|
sbt "runMain vexriscv.demo.MuraxWithRamInit"
|
|
|
|
```
|