Add Verilator version infos

Signed-off-by: Clifford Wolf <clifford@clifford.at>
This commit is contained in:
Clifford Wolf 2019-03-19 14:33:50 +01:00
parent 6d145b708d
commit f48f5fe970
2 changed files with 4 additions and 1 deletions

View File

@ -70,7 +70,7 @@ testbench_synth.vvp: testbench.v synth.v
iverilog -o $@ -DSYNTH_TEST $^ iverilog -o $@ -DSYNTH_TEST $^
chmod -x $@ 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 \ 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 $(subst C,-DCOMPRESSED_ISA,$(COMPRESSED_ISA)) --Mdir testbench_verilator_dir
$(MAKE) -C testbench_verilator_dir -f Vpicorv32_wrapper.mk $(MAKE) -C testbench_verilator_dir -f Vpicorv32_wrapper.mk

View File

@ -3,6 +3,9 @@
int main(int argc, char **argv, char **env) 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::commandArgs(argc, argv);
Verilated::traceEverOn(true); Verilated::traceEverOn(true);
Vpicorv32_wrapper* top = new Vpicorv32_wrapper; Vpicorv32_wrapper* top = new Vpicorv32_wrapper;