-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Salvatore
committed
May 1, 2021
1 parent
eba9fdc
commit 8e93e2d
Showing
2 changed files
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
``` | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters