Add Verilator version infos
Signed-off-by: Clifford Wolf <clifford@clifford.at>
This commit is contained in:
parent
6d145b708d
commit
f48f5fe970
2
Makefile
2
Makefile
|
@ -70,7 +70,7 @@ testbench_synth.vvp: testbench.v synth.v
|
|||
iverilog -o $@ -DSYNTH_TEST $^
|
||||
chmod -x $@
|
||||
|
||||
testbench_verilator: testbench.v picorv32.v
|
||||
testbench_verilator: testbench.v picorv32.v testbench.cc
|
||||
verilator --cc --exe -Wno-lint -trace --top-module picorv32_wrapper testbench.v picorv32.v testbench.cc \
|
||||
$(subst C,-DCOMPRESSED_ISA,$(COMPRESSED_ISA)) --Mdir testbench_verilator_dir
|
||||
$(MAKE) -C testbench_verilator_dir -f Vpicorv32_wrapper.mk
|
||||
|
|
|
@ -3,6 +3,9 @@
|
|||
|
||||
int main(int argc, char **argv, char **env)
|
||||
{
|
||||
printf("Built with %s %s.\n", Verilated::productName(), Verilated::productVersion());
|
||||
printf("Recommended: Verilator 4.0 or later.\n");
|
||||
|
||||
Verilated::commandArgs(argc, argv);
|
||||
Verilated::traceEverOn(true);
|
||||
Vpicorv32_wrapper* top = new Vpicorv32_wrapper;
|
||||
|
|
Loading…
Reference in New Issue