changed chiptop dut name, set FSDB=1 when needed

This commit is contained in:
Nayiri
2023-11-13 13:33:24 -08:00
parent f0edd18c32
commit 700057d9eb
2 changed files with 6 additions and 2 deletions

View File

@@ -42,7 +42,7 @@ HAMMER_EXEC ?= $(if $(filter $(tech_name),sky130),\
./example-vlsi-sky130,\ ./example-vlsi-sky130,\
./example-vlsi) ./example-vlsi)
VLSI_TOP ?= $(TOP) VLSI_TOP ?= $(TOP)
VLSI_MODEL_DUT_NAME ?= chiptop VLSI_MODEL_DUT_NAME ?= chiptop0
# If overriding, this should be relative to $(vlsi_dir) # If overriding, this should be relative to $(vlsi_dir)
VLSI_OBJ_DIR ?= build VLSI_OBJ_DIR ?= build
ifneq ($(CUSTOM_VLOG),) ifneq ($(CUSTOM_VLOG),)

View File

@@ -51,7 +51,11 @@ $(SIM_DEBUG_CONF): $(sim_common_files) check-binary
mkdir -p $(dir $@) mkdir -p $(dir $@)
mkdir -p $(output_dir) mkdir -p $(output_dir)
echo "sim.inputs:" > $@ echo "sim.inputs:" > $@
echo " defines: ['DEBUG']" >> $@ echo " defines:" >> $@
echo " - 'DEBUG'" >> $@;
ifndef USE_VPD
echo " - 'FSDB=1'" >> $@;
endif
echo " defines_meta: 'append'" >> $@ echo " defines_meta: 'append'" >> $@
echo " execution_flags:" >> $@ echo " execution_flags:" >> $@
for x in $(VERBOSE_FLAGS) $(call get_waveform_flag,$(call get_sim_out_name,$(BINARY))); do \ for x in $(VERBOSE_FLAGS) $(call get_waveform_flag,$(call get_sim_out_name,$(BINARY))); do \