Skip to content

Commit abbaff4

Browse files
authored
Merge pull request #4399 from The-OpenROAD-Project-staging/preserve-sdc-timestamp
Preserve SDC timestamp in synth step
2 parents c2cdadd + 9b2ec82 commit abbaff4

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

‎flow/Makefile‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,10 @@ yosys-dependencies: $(YOSYS_DEPENDENCIES)
264264
.PHONY: do-yosys
265265
do-yosys: yosys-dependencies
266266
$(SCRIPTS_DIR)/synth.sh $(SYNTH_SCRIPT) $(LOG_DIR)/1_2_yosys.log
267-
cp $(SDC_FILE) $(RESULTS_DIR)/1_2_yosys.sdc
267+
268+
$(RESULTS_DIR)/1_2_yosys.sdc: $(SDC_FILE)
269+
cp $(SDC_FILE) $@
270+
touch -r $(SDC_FILE) $@
268271

269272
.PHONY: do-yosys-canonicalize
270273
do-yosys-canonicalize: yosys-dependencies
@@ -273,7 +276,7 @@ do-yosys-canonicalize: yosys-dependencies
273276
$(RESULTS_DIR)/1_1_yosys_canonicalize.rtlil: $(YOSYS_DEPENDENCIES)
274277
$(UNSET_AND_MAKE) do-yosys-canonicalize
275278

276-
$(RESULTS_DIR)/1_2_yosys.v $(RESULTS_DIR)/1_2_yosys.sdc: $(RESULTS_DIR)/1_1_yosys_canonicalize.rtlil
279+
$(RESULTS_DIR)/1_2_yosys.v: $(RESULTS_DIR)/1_1_yosys_canonicalize.rtlil
277280
$(UNSET_AND_MAKE) do-yosys
278281
.PHONY: clean_synth
279282
clean_synth:

0 commit comments

Comments
 (0)