Skip to content
Snippets Groups Projects
user avatar
Mikhail Khalilov authored
29e75dac

PsPIN/OSMOSIS

Running the code with Docker

  1. $ git clone git@spclgitlab.ethz.ch:mkhalilov/pspin-osmosis.git
  2. $ cd ./pspin-osmosis/ && git submodule update --init --recursive
  3. $ docker-compose up -d
  4. $ docker ps # get the containerID
  5. $ docker exec -it <containerID> bash
  6. $ cd /opt/pspin/
    $ cat sourceme-template.sh | \ 
    sed "s%RISCV_GCC=%RISCV_GCC=/tools/riscv-gcc/bin/%g" | \
    sed "s%PSPIN_HW=%PSPIN_HW=/opt/pspin/hw/%g" | \
    sed "s%PSPIN_RT=%PSPIN_RT=/opt/pspin/sw%g" > sourceme.sh
  1. $ source ./sourceme.sh
  2. $ cd ./hw/verilator_model/
  3. $ VERILATOR_COMPILER_WORKERS=$(nproc) make release
  4. $ cd ../../examples/empty/
  5. $ make deploy && make driver
  6. $ make run