Skip to content

Commit fcc8612

Browse files
committed
makefile: fix yosys-dependencies
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 <[email protected]>
1 parent 69767b6 commit fcc8612

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

flow/Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -490,7 +490,7 @@ $(SDC_FILE_CLOCK_PERIOD): $(SDC_FILE)
490490
echo $(ABC_CLOCK_PERIOD_IN_PS) > $@
491491

492492
.PHONY: yosys-dependencies
493-
yosys-dependencies: $(DONT_USE_LIBS) $(WRAPPED_LIBS) $(DONT_USE_SC_LIB) $(DFF_LIB_FILE) $(VERILOG_FILES) $(CACHED_NETLIST) $(LATCH_MAP_FILE) $(ADDER_MAP_FILE)
493+
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)
494494

495495
.PHONY: do-yosys
496496
do-yosys:
@@ -503,10 +503,10 @@ do-yosys-canonicalize: yosys-dependencies
503503
mkdir -p $(RESULTS_DIR) $(LOG_DIR) $(REPORTS_DIR) $(OBJECTS_DIR)
504504
($(TIME_CMD) $(YOSYS_CMD) $(YOSYS_FLAGS) -c $(SCRIPTS_DIR)/synth_canonicalize.tcl) 2>&1 | tee $(LOG_DIR)/1_1_yosys.log
505505

506-
$(RESULTS_DIR)/1_synth.rtlil: $(SDC_FILE_CLOCK_PERIOD)
506+
$(RESULTS_DIR)/1_synth.rtlil:
507507
$(UNSET_AND_MAKE) do-yosys-canonicalize
508508

509-
$(RESULTS_DIR)/1_1_yosys.v: $(RESULTS_DIR)/1_synth.rtlil $(SDC_FILE_CLOCK_PERIOD)
509+
$(RESULTS_DIR)/1_1_yosys.v: $(RESULTS_DIR)/1_synth.rtlil
510510
$(UNSET_AND_MAKE) do-yosys
511511

512512
$(RESULTS_DIR)/1_synth.sdc: $(SDC_FILE)

0 commit comments

Comments
 (0)