From 700057d9ebcd1b8c8a24a2f60405c0ac7c38a0d1 Mon Sep 17 00:00:00 2001 From: Nayiri Date: Mon, 13 Nov 2023 13:33:24 -0800 Subject: [PATCH] changed chiptop dut name, set FSDB=1 when needed --- vlsi/Makefile | 2 +- vlsi/sim.mk | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/vlsi/Makefile b/vlsi/Makefile index b3901fe6..074ec66a 100644 --- a/vlsi/Makefile +++ b/vlsi/Makefile @@ -42,7 +42,7 @@ HAMMER_EXEC ?= $(if $(filter $(tech_name),sky130),\ ./example-vlsi-sky130,\ ./example-vlsi) VLSI_TOP ?= $(TOP) -VLSI_MODEL_DUT_NAME ?= chiptop +VLSI_MODEL_DUT_NAME ?= chiptop0 # If overriding, this should be relative to $(vlsi_dir) VLSI_OBJ_DIR ?= build ifneq ($(CUSTOM_VLOG),) diff --git a/vlsi/sim.mk b/vlsi/sim.mk index ea2c76d7..1da6f0bc 100644 --- a/vlsi/sim.mk +++ b/vlsi/sim.mk @@ -51,7 +51,11 @@ $(SIM_DEBUG_CONF): $(sim_common_files) check-binary mkdir -p $(dir $@) mkdir -p $(output_dir) echo "sim.inputs:" > $@ - echo " defines: ['DEBUG']" >> $@ + echo " defines:" >> $@ + echo " - 'DEBUG'" >> $@; +ifndef USE_VPD + echo " - 'FSDB=1'" >> $@; +endif echo " defines_meta: 'append'" >> $@ echo " execution_flags:" >> $@ for x in $(VERBOSE_FLAGS) $(call get_waveform_flag,$(call get_sim_out_name,$(BINARY))); do \