build/sim/core: Initialize Verilator commandArgs
authorGabriel L. Somlo <gsomlo@gmail.com>
Wed, 17 Apr 2019 14:39:35 +0000 (10:39 -0400)
committerGabriel L. Somlo <gsomlo@gmail.com>
Wed, 17 Apr 2019 14:39:35 +0000 (10:39 -0400)
commite1683078ece9914c4619879a5fdef46300ac64a4
treec156ad952d89513255408c96932026ba379646cf
parent017147c623c77fbb7be5615b8435f03cc5bdddd7
build/sim/core: Initialize Verilator commandArgs

Required when DUT is using plusargs. Prevents Verilator simulation
from crashing with "Verilog called $test$plusargs or $value$plusargs
without testbench C first calling Verilated::commandArgs(argc,argv)".
litex/build/sim/core/sim.c
litex/build/sim/core/veril.cpp
litex/build/sim/core/veril.h