Skip to content

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
package require kissb.eda.verilator

Then you can init the toolchain:

1
verilator.init

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
# This package downloads a local binary version of verilator
package require kissb.eda.verilator.local VERSION

# For example:
package require kissb.eda.verilator.local 5.032

# To use the official verilator docker image
package require kissb.eda.verilator.docker 5.032

Compilation

After initialisation, you can call verilator using the verilator.run command:

1
2
# For example to compile
verilator.verilate --binary counter.sv

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
# Run
verilator.simulate Vcounter

Pre-Build Binaries

Version System URL
GIT master linux https://kissb.s3.de.io.cloud.ovh.net/hdl/verilator/verilator-master.zip
GIT stable linux https://kissb.s3.de.io.cloud.ovh.net/hdl/verilator/verilator-stable.zip
v5.032 linux https://kissb.s3.de.io.cloud.ovh.net/hdl/verilator/verilator-v5.032.zip
v5.030 linux https://kissb.s3.de.io.cloud.ovh.net/hdl/verilator/verilator-v5.030.zip
v5.028 linux https://kissb.s3.de.io.cloud.ovh.net/hdl/verilator/verilator-v5.028.zip
v5.026 linux https://kissb.s3.de.io.cloud.ovh.net/hdl/verilator/verilator-v5.026.zip
v5.024 linux https://kissb.s3.de.io.cloud.ovh.net/hdl/verilator/verilator-v5.024.zip
v5.022 linux https://kissb.s3.de.io.cloud.ovh.net/hdl/verilator/verilator-v5.022.zip
v5.020 linux https://kissb.s3.de.io.cloud.ovh.net/hdl/verilator/verilator-v5.020.zip