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.verilator

Then you can init the toolchain:

1
verilator.init

The default runtime will be a pre-build binary downloaded to the toolchain folders.

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 (v5.026) linux https://kissb.s3.de.io.cloud.ovh.net/hdl/verilator/verilator-stable.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