Skip to content

Commit

Permalink
docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Salvatore committed May 1, 2021
1 parent eba9fdc commit 8e93e2d
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
31 changes: 31 additions & 0 deletions docs/compile.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# Verilating the hardware

Verilating the hardware is needed whenever you want test new hardware changes that are not available in the relased packeges. The verilation process can take quite long time (20-30 minutes on a Xeon X7550) and can require up to 16 GB of memory. Consider to use the prebuilt libraries if they fit your use case.

### Requirements:
Verilator >= 4.108

### 1) Clone the repository

```bash
git clone https://github.com/spcl/pspin
```

### 2) Define `VERILATOR_HOME`
```bash
export VERILATOR_HOME=<path to verilator installation>
```

### 3) Verilate

```bash
cd hw/verilator_model/

# Compile `libpspin.so`
make release

# (Optional) Compile `libpspin_debug.so`
make debug
```


5 changes: 5 additions & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
site_name: PsPIN
repo_url: https://github.com/spcl/pspin
theme:
name: material

nav:
- Home: 'index.md'
- Getting started:
Expand Down

0 comments on commit 8e93e2d

Please sign in to comment.