Public Repository

Last pushed: a year ago
Short Description
(Unofficial) Verilator is the fastest free Verilog HDL simulator.
Full Description

Docker Image for Verilator

Builds Docker images for Verilator.

Currently, builds are based on Debian, and are of specific versions. Both
Alpine Linux builds and nightly builds are planned.

rweda/verilator points at the latest stable version published.

rweda/verilator:3 points at the latest stable minor version under major version 3.

Minor Versions

Version Debian Image
3.886

Usage


docker pull rweda/verilator

mkdir example
cd example

cat <<EOF >example.v
  module example;
    initial begin $display("Example"); $finish; end
  endmodule
EOF

cat <<EOF >sim_main.cpp
  #include "Vexample.cpp"
  #include "verilated.h"
  int main(int argc, char **argv, char **env) {
    Verilated::commandArgs(argc, argv);
    Vexample* top = new Vexample;
    while (!Verilated::gotFinish()) { top-> eval(); }
    delete top;
    exit(0);
  }
EOF

docker run --rm -v $(pwd):/data rweda/verilator "cd /data; verilator -Wall --cc example.v --exe sim_main.cpp; cd obj_dir; make -j -f Vexample.mk Vexample"

ls # -> example.v obj_dir sim_main.cpp
ls obj_dir
# sim_main.d  verilated.o     Vexample__ALLcls.cpp Vexample__ALLsup.cpp Vexample_classes.mk Vexample.mk        Vexample__ver.d
# sim_main.o  Vexample        Vexample__ALLcls.d   Vexample__ALLsup.d   Vexample.cpp        Vexample__Syms.cpp Vexample__verFiles.dat
# verilated.d Vexample__ALL.a Vexample__ALLcls.o   Vexample__ALLsup.o   Vexample.h          Vexample__Syms.h
Docker Pull Command
Owner
rweda

Comments (0)