Skip to content

Commit a7b72d2

Browse files
authored
Merge pull request #2453 from Pinata-Consulting/makefile-synth-simplify
makefile: .sdc is copied in synthesis, consistent with other stages
2 parents 7a07f56 + 3e35415 commit a7b72d2

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

flow/Makefile

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -448,8 +448,7 @@ $(WRAPPED_LIBS):
448448
# |____/ |_| |_| \_| |_| |_| |_|_____|____/___|____/
449449
#
450450
.PHONY: synth
451-
synth: $(RESULTS_DIR)/1_synth.v \
452-
$(RESULTS_DIR)/1_synth.sdc
451+
synth: $(RESULTS_DIR)/1_synth.v
453452

454453
.PHONY: synth-report
455454
synth-report: synth
@@ -506,10 +505,6 @@ $(RESULTS_DIR)/1_synth.rtlil: $(YOSYS_DEPENDENCIES)
506505
$(RESULTS_DIR)/1_1_yosys.v: $(RESULTS_DIR)/1_synth.rtlil
507506
$(UNSET_AND_MAKE) do-yosys-keep-hierarchy do-yosys
508507

509-
$(RESULTS_DIR)/1_synth.sdc: $(SDC_FILE)
510-
mkdir -p $(RESULTS_DIR)
511-
cp $(SDC_FILE) $(RESULTS_DIR)/1_synth.sdc
512-
513508
.PHONY: do-synth
514509
do-synth:
515510
mkdir -p $(RESULTS_DIR) $(LOG_DIR) $(REPORTS_DIR)

flow/scripts/synth.tcl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,3 +76,7 @@ tee -o $::env(REPORTS_DIR)/synth_stat.txt stat {*}$stat_libs
7676

7777
# Write synthesized design
7878
write_verilog -noexpr -nohex -nodec $::env(RESULTS_DIR)/1_1_yosys.v
79+
# One day a more sophisticated synthesis will write out a modified
80+
# .sdc file after synthesis. For now, just copy the input .sdc file,
81+
# making synthesis more consistent with other stages.
82+
log_cmd exec cp $::env(SDC_FILE) $::env(RESULTS_DIR)/1_synth.sdc

0 commit comments

Comments
 (0)