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)".
}
}
-int main()
+int main(int argc, char *argv[])
{
void *vdut=NULL;
struct timeval tv;
goto out;
}
+ litex_sim_init_cmdargs(argc, argv);
if(RC_OK != (ret = litex_sim_initialize_all(&vdut, base)))
{
goto out;
dut->eval();
}
+extern "C" void litex_sim_init_cmdargs(int argc, char *argv[])
+{
+ Verilated::commandArgs(argc, argv);
+}
+
extern "C" void litex_sim_init_tracer(void *vdut)
{
Vdut *dut = (Vdut*)vdut;
#define __VERIL_H_
#ifdef __cplusplus
+extern "C" void litex_sim_init_cmdargs(int argc, char *argv[]);
extern "C" void litex_sim_eval(void *vdut);
extern "C" void litex_sim_init_tracer(void *vdut);
extern "C" void litex_sim_tracer_dump();