HIFIVE1-VP/README.md

52 lines
1.6 KiB
Markdown
Raw Permalink Normal View History

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
* you need to have a C++11 capable compiler (e.g. gcc >= 4.8), make, python, and cmake installed
* 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
2023-05-06 11:14:00 +02:00
pip3 install --user conan==1.59
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
2023-05-06 11:14:00 +02:00
pip3 install --user conan==1.59
2022-11-05 20:56:15 +01:00
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
```
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
```
2022-11-05 20:56:15 +01:00
### Build the ISS
```
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
```