From fcc8612ccd1ac57709cb778b982f90f8a528846b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=98yvind=20Harboe?= Date: Fri, 26 Jul 2024 08:55:45 +0200 Subject: [PATCH] makefile: fix yosys-dependencies MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit synthesis runs abc without setting the clock period if a clock period isn't specified or can't be extracted from the .sdc file. During normal ORFS usage, when using dependencies, clock_period.txt was correctly generated and synth_preamble.tcl picked it up, but when running "make do-" variants, clock_period.txt was not generated when running, fixed. make clean_synth do-yosys-canonicalize do-yosys Signed-off-by: Øyvind Harboe --- flow/Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/flow/Makefile b/flow/Makefile index 2bbf0787b0..19a7186cc2 100644 --- a/flow/Makefile +++ b/flow/Makefile @@ -490,7 +490,7 @@ $(SDC_FILE_CLOCK_PERIOD): $(SDC_FILE) echo $(ABC_CLOCK_PERIOD_IN_PS) > $@ .PHONY: yosys-dependencies -yosys-dependencies: $(DONT_USE_LIBS) $(WRAPPED_LIBS) $(DONT_USE_SC_LIB) $(DFF_LIB_FILE) $(VERILOG_FILES) $(CACHED_NETLIST) $(LATCH_MAP_FILE) $(ADDER_MAP_FILE) +yosys-dependencies: $(DONT_USE_LIBS) $(WRAPPED_LIBS) $(DONT_USE_SC_LIB) $(DFF_LIB_FILE) $(VERILOG_FILES) $(CACHED_NETLIST) $(LATCH_MAP_FILE) $(ADDER_MAP_FILE) $(SDC_FILE_CLOCK_PERIOD) .PHONY: do-yosys do-yosys: @@ -503,10 +503,10 @@ do-yosys-canonicalize: yosys-dependencies mkdir -p $(RESULTS_DIR) $(LOG_DIR) $(REPORTS_DIR) $(OBJECTS_DIR) ($(TIME_CMD) $(YOSYS_CMD) $(YOSYS_FLAGS) -c $(SCRIPTS_DIR)/synth_canonicalize.tcl) 2>&1 | tee $(LOG_DIR)/1_1_yosys.log -$(RESULTS_DIR)/1_synth.rtlil: $(SDC_FILE_CLOCK_PERIOD) +$(RESULTS_DIR)/1_synth.rtlil: $(UNSET_AND_MAKE) do-yosys-canonicalize -$(RESULTS_DIR)/1_1_yosys.v: $(RESULTS_DIR)/1_synth.rtlil $(SDC_FILE_CLOCK_PERIOD) +$(RESULTS_DIR)/1_1_yosys.v: $(RESULTS_DIR)/1_synth.rtlil $(UNSET_AND_MAKE) do-yosys $(RESULTS_DIR)/1_synth.sdc: $(SDC_FILE)