2022-11-05 20:56:15 +01:00
# HIFIVE1-VP
2017-08-27 12:10:38 +02:00
2022-11-05 20:56:15 +01:00
An instruction set simulator based on DBT-RISE implementing the RISC-V ISA. The project is hosted at https://github.com/Minres/HIFIVE1-VP.
2017-08-27 12:10:38 +02:00
2022-11-05 20:56:15 +01:00
## HIFIVE1-VP README
2017-08-27 12:10:38 +02:00
2022-11-05 20:56:15 +01:00
This is work in progress, so use at your own risk. Goal is to implement an open-source ISS which can easily embedded e.g. into SystemC Virtual Prototypes. It uses code generation to allow easy extension and adaptation of the used instruction. Please see also [https://github.com/Minres/DBT-RISE-RISCV ](https://github.com/Minres/DBT-RISE-RISCV )
The RISC-V ISS reaches about 65MIPS running on a decent Intel Processor.
2017-08-27 12:10:38 +02:00
2022-11-05 20:56:15 +01:00
HIFIVE1-VP uses libGIS (https://github.com/vsergeev/libGIS) under MIT license
2017-08-27 12:10:38 +02:00
2022-11-05 20:56:15 +01:00
## Setup steps
2017-08-27 12:10:38 +02:00
2019-06-29 15:04:58 +02:00
* you need to have a C++11 capable compiler (e.g. gcc >= 4.8), make, python, and cmake installed
2017-10-29 20:56:20 +01:00
* install conan.io (see also http://docs.conan.io/en/latest/installation.html):
2020-03-30 21:41:35 +02:00
2022-11-05 20:56:15 +01:00
### prepare Ubuntu 18.04/20.04
2020-03-30 21:41:35 +02:00
2017-10-26 11:41:35 +02:00
```
2022-11-05 20:56:15 +01:00
sudo apt-get install -y git python3-pip build-essential cmake libloki-dev zlib1g-dev libncurses5-dev \
libboost-dev libboost-program-options-dev libboost-system-dev libboost-thread-dev llvm-dev llvm-doc
pip3 install --user conan
2017-10-26 11:41:35 +02:00
```
2020-03-30 21:41:35 +02:00
2022-11-05 20:56:15 +01:00
### prepare Fedora 28
2020-03-30 21:41:35 +02:00
2017-10-26 11:41:35 +02:00
```
2022-11-05 20:56:15 +01:00
#prepare system
dnf install @development -tools gcc-c++ boost-devel zlib-devel loki-lib-devel cmake python2 python3 llvm-devel llvm-static
#install conan
pip3 install --user conan
export PATH=${PATH}:$HOME/.local/bin
2017-10-26 11:41:35 +02:00
```
2022-11-05 20:56:15 +01:00
### Build the ISS
2018-07-12 15:28:34 +02:00
```
2022-11-05 20:56:15 +01:00
# checkout source from git:
git clone --recursive https://github.com/Minres/HIFIVE1-VP.git
# build ISS:
cd HIFIVE1-VP
cmake -S . -B build
cmake --build build -j8
2018-07-12 15:28:34 +02:00
```
2022-11-05 20:56:15 +01:00
### Build the ISS
2018-07-12 15:28:34 +02:00
```
2022-11-05 20:56:15 +01:00
build/platform/src/riscv-vp < elf file > -v4 -m 500ms
2020-11-27 17:05:11 +01:00
2018-07-12 15:28:34 +02:00
```