Verilator¶
Useful Links
- Homepage: https://verilator.org/
- Documentation: https://verilator.org/guide/latest
- Current default version: v5.024
Example Build
--
Initialisation¶
To use verilator, load the kissb.verilator package in your build file:
1 |
|
Then you can init the toolchain:
1 |
|
The default runtime will be a pre-build binary downloaded to the toolchain folders.
Specifying Verilator version¶
To quickly load the verilator runtime at a specific version, you can load the following package:
1 2 3 4 5 6 7 8 |
|
Compilation¶
After initialisation, you can call verilator using the verilator.run command:
1 2 |
|
Running¶
To run a compiled model, you can directly execute the binary, or you can execute the binary from the docker image. The verilator.simulate method will run through the correct path.
1 2 |
|