add fsim-tracegen rule to makefile

This commit is contained in:
Howard Mao 2019-10-16 15:51:02 -07:00
parent 7ef9b0da31
commit da4d8cd9fd
1 changed files with 17 additions and 0 deletions

View File

@ -164,3 +164,20 @@ $(OUTPUT_DIR)/%.vpd: $(OUTPUT_DIR)/% $(EMUL)-debug
./$(notdir $($(EMUL)_debug)) $< +sample=$<.sample +waveform=$@ $($*_ARGS) $($(EMUL)_args) $(COMMON_SIM_ARGS) $(MIDAS_LEVEL_SIM_ARGS) $(EXTRA_SIM_ARGS) \
$(disasm) $(patsubst %.vpd,%.out,$@) && [ $$PIPESTATUS -eq 0 ]
# TraceGen rules
AXE_DIR=$(chipyard_dir)/tools/axe/src
AXE=$(AXE_DIR)/axe
$(OUTPUT_DIR)/tracegen.out: $($(EMUL))
mkdir -p $(OUTPUT_DIR) && \
cd $(dir $($(EMUL))) && \
./$(notdir $($(EMUL))) +sample=$<.sample $($(EMUL)_args) $(COMMON_SIM_ARGS) $(MIDAS_LEVEL_SIM_ARGS) $(EXTRA_SIM_ARGS) \
2> /dev/null 2> $@ && [ $$PIPESTATUS -eq 0 ]
$(OUTPUT_DIR)/tracegen.result: $(OUTPUT_DIR)/tracegen.out $(AXE)
$(chipyard_dir)/scripts/check-tracegen.sh $< > $@
fsim-tracegen: $(OUTPUT_DIR)/tracegen.result
.PHONY: fsim-tracegen