Skip to content

Commit 725d142

Browse files
committed
makefile: .sdc is copied in synthesis, consistent with other stages
Signed-off-by: Øyvind Harboe <[email protected]>
1 parent 387ac09 commit 725d142

File tree

2 files changed

+8
-9
lines changed

2 files changed

+8
-9
lines changed

flow/Makefile

Lines changed: 4 additions & 9 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)
@@ -645,17 +640,17 @@ endef
645640

646641
# STEP 1: Translate verilog to odb
647642
#-------------------------------------------------------------------------------
648-
$(eval $(call do-step,2_1_floorplan,$(RESULTS_DIR)/1_synth.v $(RESULTS_DIR)/1_synth.sdc $(TECH_LEF) $(SC_LEF) $(ADDITIONAL_LEFS) $(FOOTPRINT) $(SIG_MAP_FILE) $(FOOTPRINT_TCL),floorplan))
643+
$(eval $(call do-step,2_1_floorplan,$(RESULTS_DIR)/1_synth.v $(TECH_LEF) $(SC_LEF) $(ADDITIONAL_LEFS) $(FOOTPRINT) $(SIG_MAP_FILE) $(FOOTPRINT_TCL),floorplan))
649644

650645
$(eval $(call do-step,2_2_floorplan_io,$(RESULTS_DIR)/2_1_floorplan.odb $(IO_CONSTRAINTS),io_placement_random))
651646

652647
# STEP 3: Timing Driven Mixed Sized Placement
653648
#-------------------------------------------------------------------------------
654-
$(eval $(call do-step,2_3_floorplan_tdms,$(RESULTS_DIR)/2_2_floorplan_io.odb $(RESULTS_DIR)/1_synth.v $(RESULTS_DIR)/1_synth.sdc $(LIB_FILES),tdms_place))
649+
$(eval $(call do-step,2_3_floorplan_tdms,$(RESULTS_DIR)/2_2_floorplan_io.odb $(RESULTS_DIR)/1_synth.v $(LIB_FILES),tdms_place))
655650

656651
# STEP 4: Macro Placement
657652
#-------------------------------------------------------------------------------
658-
$(eval $(call do-step,2_4_floorplan_macro,$(RESULTS_DIR)/2_3_floorplan_tdms.odb $(RESULTS_DIR)/1_synth.v $(RESULTS_DIR)/1_synth.sdc $(MACRO_PLACEMENT) $(MACRO_PLACEMENT_TCL),macro_place))
653+
$(eval $(call do-step,2_4_floorplan_macro,$(RESULTS_DIR)/2_3_floorplan_tdms.odb $(RESULTS_DIR)/1_synth.v $(MACRO_PLACEMENT) $(MACRO_PLACEMENT_TCL),macro_place))
659654

660655
# STEP 5: Tapcell and Welltie insertion
661656
#-------------------------------------------------------------------------------

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)