Skip to content

Commit 3173fd8

Browse files
committed
Write 3_place.sdc and 6_final.sdc from their stage scripts
place and final were the only stages whose SDC was produced by a Makefile do-copy of a prior stage's file (3_place.sdc <- 2_floorplan.sdc, 6_final.sdc <- 5_route.sdc) rather than written by the stage script itself. Every other stage self-writes its SDC via orfs_write_sdc (synth, floorplan, cts, grt), and the single-process flow.tcl already wrote 3_place.sdc / 6_final.sdc directly. Retire the copy-forward special case so SDC production is uniform and co-located with the .odb write, mirroring how synth writes 1_synth.sdc alongside 1_synth.odb. - detail_place.tcl writes 3_place.sdc after 3_5_place_dp.odb - final_report.tcl writes 6_final.sdc after 6_final.odb (after the orfs_* procs are in scope, i.e. after final_connect.tcl) - Makefile: drop the two do-copy .sdc recipes; tie each aggregate .sdc to the step that now writes it via a recipe-less order rule (3_place.sdc: 3_5_place_dp.odb ; 6_final.sdc: 6_report.log), the same shape as the existing 1_synth.sdc: 1_synth.odb rule - flow.tcl: move the single-process 6_final.sdc write to just after the 6_final.odb write so both flows write it from identical design state, preserving the final-stage byte-equivalence invariant Constraints do not change during placement or finishing, so the serialized SDC is unchanged: on nangate45/gcd the new 3_place.sdc and 6_final.sdc are byte-identical (constraints) to the files the do-copy previously produced. Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
1 parent afad87d commit 3173fd8

4 files changed

Lines changed: 12 additions & 6 deletions

File tree

‎flow/Makefile‎

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -477,11 +477,13 @@ $(eval $(call do-step,3_5_place_dp,$(RESULTS_DIR)/3_4_place_resized.odb,detail_p
477477

478478
$(eval $(call do-copy,3_place,3_5_place_dp.odb,))
479479

480-
$(eval $(call do-copy,3_place,2_floorplan.sdc,,.sdc))
480+
# detail_place writes 3_place.sdc alongside 3_5_place_dp.odb (constraints
481+
# are unchanged during placement), mirroring how synth writes 1_synth.sdc.
482+
$(RESULTS_DIR)/3_place.sdc: $(RESULTS_DIR)/3_5_place_dp.odb
481483

482484
.PHONY: do-place
483485
do-place:
484-
$(UNSET_AND_MAKE) do-3_1_place_gp_skip_io do-3_2_place_iop do-3_3_place_gp do-3_4_place_resized do-3_5_place_dp do-3_place do-3_place.sdc
486+
$(UNSET_AND_MAKE) do-3_1_place_gp_skip_io do-3_2_place_iop do-3_3_place_gp do-3_4_place_resized do-3_5_place_dp do-3_place
485487

486488
# Clean Targets
487489
#-------------------------------------------------------------------------------
@@ -614,10 +616,12 @@ $(eval $(call do-step,6_1_fill,$(RESULTS_DIR)/5_route.odb $(RESULTS_DIR)/5_route
614616

615617
$(eval $(call do-copy,6_1_fill,5_route.sdc,,.sdc))
616618

617-
$(eval $(call do-copy,6_final,5_route.sdc,,.sdc))
618-
619619
$(eval $(call do-step,6_report,$(RESULTS_DIR)/6_1_fill.odb $(RESULTS_DIR)/6_1_fill.sdc,final_report,.log,$(LOG_DIR)))
620620

621+
# final_report writes 6_final.sdc alongside 6_final.odb (constraints are
622+
# unchanged during finishing), mirroring how synth writes 1_synth.sdc.
623+
$(RESULTS_DIR)/6_final.sdc: $(LOG_DIR)/6_report.log
624+
621625
$(RESULTS_DIR)/6_final.def: $(LOG_DIR)/6_report.log
622626

623627
# The final results are called 6_final.*, so it is convenient when scripting
@@ -630,7 +634,7 @@ final: finish
630634

631635
.PHONY: do-finish
632636
do-finish:
633-
$(UNSET_AND_MAKE) do-6_1_fill do-6_1_fill.sdc do-6_final.sdc do-6_report elapsed
637+
$(UNSET_AND_MAKE) do-6_1_fill do-6_1_fill.sdc do-6_report elapsed
634638

635639
.PHONY: generate_abstract
636640
generate_abstract: $(RESULTS_DIR)/6_final.gds $(RESULTS_DIR)/6_final.def $(RESULTS_DIR)/6_final.v $(RESULTS_DIR)/6_final.sdc

‎flow/scripts/detail_place.tcl‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,4 @@ report_metrics 3 "detailed place" true false
4444
source_step_tcl POST DETAIL_PLACE
4545

4646
orfs_write_db $::env(RESULTS_DIR)/3_5_place_dp.odb
47+
orfs_write_sdc $::env(RESULTS_DIR)/3_place.sdc

‎flow/scripts/final_report.tcl‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@
33
# at the same point.
44
source $::env(SCRIPTS_DIR)/final_connect.tcl
55
orfs_write_db $::env(RESULTS_DIR)/6_final.odb
6+
orfs_write_sdc $::env(RESULTS_DIR)/6_final.sdc
67
source $::env(SCRIPTS_DIR)/final_outputs.tcl

‎flow/scripts/flow.tcl‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ flow_write_sdc 5_route.sdc
9494
flow_source density_fill.tcl
9595
flow_write_db 6_1_fill.odb
9696
flow_write_sdc 6_1_fill.sdc
97-
flow_write_sdc 6_final.sdc
9897
flow_source final_connect.tcl
9998
flow_write_db 6_final.odb
99+
flow_write_sdc 6_final.sdc
100100
flow_source final_outputs.tcl

0 commit comments

Comments
 (0)