From e7f4d18c3d29fca4f70cff6a1819598241d391f7 Mon Sep 17 00:00:00 2001 From: Wilson Snyder Date: Mon, 3 Jan 2011 13:30:33 -0500 Subject: [PATCH] First test is verilator -V --- test_c/Makefile | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/test_c/Makefile b/test_c/Makefile index 23ce64703..2b9c84a8a 100644 --- a/test_c/Makefile +++ b/test_c/Makefile @@ -12,7 +12,7 @@ # #****************************************************************************/ -default: test_default +default: show_config test_default # This must point to the root of the VERILATOR kit VERILATOR_ROOT := $(shell pwd)/.. @@ -34,7 +34,12 @@ test_valgrind: prep_vg compile run VERILATOR_FLAGS = --cc -f $(VERILATOR_ROOT)/test_v/input.vc top.v VERILATOR_FLAGS += --trace -#prep: Is the very first time we've executed Verilator after building +#show_config: Is the very first time we've executed Verilator after building +#so we make sure to run with --gdbbt, so if it dumps we'll get a trace. +show_config: + $(PERL) $(VERILATOR_ROOT)/bin/verilator $(DEBUG_QUIET) -V + +#prep: Is the very first time we're running a Verilation #so we make sure to run with --gdbbt, so if it dumps we'll get a trace. prep: $(PERL) $(VERILATOR_ROOT)/bin/verilator $(DEBUG_QUIET) $(VERILATOR_FLAGS)