updated permissive naming | small bugfix for vcd/vpd dumping

This commit is contained in:
abejgonzalez
2019-05-20 17:19:46 -07:00
parent 30d54a6851
commit cc0d33ee4d
3 changed files with 9 additions and 9 deletions

View File

@@ -25,8 +25,8 @@ sim_prefix = simulator
sim = $(sim_dir)/$(sim_prefix)-$(MODEL_PACKAGE)-$(CONFIG)
sim_debug = $(sim_dir)/$(sim_prefix)-$(MODEL_PACKAGE)-$(CONFIG)-debug
PERMISSIVEON=
PERMISSIVEOFF=
PERMISSIVE_ON=
PERMISSIVE_OFF=
.PHONY: default debug
default: $(sim)

View File

@@ -25,8 +25,8 @@ sim_prefix = simv
sim = $(sim_dir)/$(sim_prefix)-$(MODEL_PACKAGE)-$(CONFIG)
sim_debug = $(sim_dir)/$(sim_prefix)-$(MODEL_PACKAGE)-$(CONFIG)-debug
PERMISSIVEON=+permissive
PERMISSIVEOFF=+permissive-off
PERMISSIVE_ON=+permissive
PERMISSIVE_OFF=+permissive-off
.PHONY: default debug
default: $(sim)
@@ -90,13 +90,13 @@ $(sim_debug) : $(sim_vsrcs) $(sim_dotf)
# helper rules to run simulator with debug
#########################################################################################
run-binary-debug: $(sim_debug)
$(sim_debug) $(PERMISSIVEON) $(SIM_FLAGS) +vcdplusfile=$(sim_out_name).vpd $(PERMISSIVEOFF) $(BINARY) 3>&1 1>&2 2>&3 | spike-dasm > $(sim_out_name).out
$(sim_debug) $(PERMISSIVE_ON) $(SIM_FLAGS) +vcdplusfile=$(sim_out_name).vpd $(PERMISSIVE_OFF) $(BINARY) 3>&1 1>&2 2>&3 | spike-dasm > $(sim_out_name).out
#########################################################################################
# create a vcs vpd rule
#########################################################################################
$(output_dir)/%.vpd: $(output_dir)/% $(sim_debug)
$(sim_debug) +vcdplusfile=$@ +max-cycles=$(timeout_cycles) $<
$(sim_debug) $(PERMISSIVE_ON) +vcdplusfile=$@ +max-cycles=$(timeout_cycles) $(PERMISSIVE_OFF) $<
#########################################################################################
# general cleanup rule