rename output | helper rules to run binaries

This commit is contained in:
abejgonzalez
2019-05-20 16:15:08 -07:00
parent 6177191eed
commit 65d6a900c3
4 changed files with 25 additions and 1 deletions

View File

@@ -67,6 +67,12 @@ $(SMEMS_FILE) $(SMEMS_FIR): $(SMEMS_CONF)
.PHONY: verilog .PHONY: verilog
verilog: $(sim_vsrcs) verilog: $(sim_vsrcs)
#########################################################################################
# helper rules to run simulator
#########################################################################################
run-binary: $(sim)
$(sim) $(PERMISSIVEON) $(SIM_FLAGS) $(PERMISSIVEOFF) $(BINARY)
######################################################################################### #########################################################################################
# run assembly/benchmarks rules # run assembly/benchmarks rules
######################################################################################### #########################################################################################

View File

@@ -80,6 +80,12 @@ $(sim): $(model_mk)
$(sim_debug): $(model_mk_debug) $(sim_debug): $(model_mk_debug)
$(MAKE) VM_PARALLEL_BUILDS=1 -C $(build_dir)/$(long_name).debug -f V$(VLOG_MODEL).mk $(MAKE) VM_PARALLEL_BUILDS=1 -C $(build_dir)/$(long_name).debug -f V$(VLOG_MODEL).mk
#########################################################################################
# helper rules to run simulator with debug
#########################################################################################
run-binary-debug: $(sim_debug)
$(sim_debug) $(SIM_FLAGS) -v$(long_name).vcd $(BINARY)
######################################################################################### #########################################################################################
# create a verisim vpd rule # create a verisim vpd rule
######################################################################################### #########################################################################################

View File

@@ -86,6 +86,12 @@ $(sim_debug) : $(sim_vsrcs) $(sim_dotf)
rm -rf csrc && $(VCS) $(VCS_OPTS) -o $@ \ rm -rf csrc && $(VCS) $(VCS_OPTS) -o $@ \
+define+DEBUG -debug_pp +define+DEBUG -debug_pp
#########################################################################################
# helper rules to run simulator with debug
#########################################################################################
run-binary-debug: $(sim_debug)
$(sim_debug) $(PERMISSIVEON) $(SIM_FLAGS) +vcdplusfile=$(long_name).vpd $(PERMISSIVEOFF) $(BINARY)
######################################################################################### #########################################################################################
# create a vcs vpd rule # create a vcs vpd rule
######################################################################################### #########################################################################################

View File

@@ -138,7 +138,13 @@ SBT ?= java $(JAVA_ARGS) -jar $(ROCKETCHIP_DIR)/sbt-launch.jar ++$(SCALA_VERSION
######################################################################################### #########################################################################################
# output directory for tests # output directory for tests
######################################################################################### #########################################################################################
output_dir=$(sim_dir)/output output_dir=$(sim_dir)/output/$(long_name)
#########################################################################################
# helper variables to run binaries
#########################################################################################
BINARY ?= none
SIM_FLAGS ?= +verbose
######################################################################################### #########################################################################################
# build output directory for compilation # build output directory for compilation