Skip to content

Commit 8a0f9b7

Browse files
authored
Merge pull request #1555 from eder-matheus/test-repair_antennas
enable repair_antennas after global route
2 parents b6fb383 + cd2f1bc commit 8a0f9b7

File tree

6 files changed

+26
-20
lines changed

6 files changed

+26
-20
lines changed

flow/Makefile

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -683,18 +683,14 @@ cts: $(RESULTS_DIR)/4_cts.odb \
683683
# ------------------------------------------------------------------------------
684684
$(eval $(call do-step,4_1_cts,$(RESULTS_DIR)/3_place.odb $(RESULTS_DIR)/3_place.sdc,cts))
685685

686-
# Filler cell insertion
687-
# ------------------------------------------------------------------------------
688-
$(eval $(call do-step,4_2_cts_fillcell,$(RESULTS_DIR)/4_1_cts.odb,fillcell))
689-
690686
$(RESULTS_DIR)/4_cts.sdc: $(RESULTS_DIR)/4_cts.odb
691687

692-
$(eval $(call do-copy,4_cts,4_2_cts_fillcell.odb))
688+
$(eval $(call do-copy,4_cts,4_1_cts.odb))
693689

694690
.PHONY: do-cts
695691
do-cts:
696692
mkdir -p $(LOG_DIR) $(REPORTS_DIR)
697-
$(UNSET_AND_MAKE) do-4_1_cts do-4_2_cts_fillcell do-4_cts
693+
$(UNSET_AND_MAKE) do-4_1_cts do-4_cts
698694

699695
.PHONY: clean_cts
700696
clean_cts:
@@ -720,22 +716,26 @@ route: $(RESULTS_DIR)/5_route.odb \
720716
#-------------------------------------------------------------------------------
721717
$(eval $(call do-step,5_1_grt,$(RESULTS_DIR)/4_cts.odb $(FASTROUTE_TCL) $(PRE_GLOBAL_ROUTE),global_route))
722718

723-
# STEP 2: Run detailed route
719+
# SEP 2: Filler cell insertion
720+
# ------------------------------------------------------------------------------
721+
$(eval $(call do-step,5_2_fillcell,$(RESULTS_DIR)/5_1_grt.odb,fillcell))
722+
723+
# STEP 3: Run detailed route
724724
#-------------------------------------------------------------------------------
725725
ifeq ($(USE_WXL),)
726-
$(eval $(call do-step,5_2_route,$(RESULTS_DIR)/5_1_grt.odb,detail_route))
726+
$(eval $(call do-step,5_3_route,$(RESULTS_DIR)/5_2_fillcell.odb,detail_route))
727727
else
728-
$(eval $(call do-step,5_2_route,$(RESULTS_DIR)/4_cts.odb,detail_route))
728+
$(eval $(call do-step,5_3_route,$(RESULTS_DIR)/4_cts.odb,detail_route))
729729
endif
730730

731-
$(eval $(call do-copy,5_route,5_2_route.odb))
731+
$(eval $(call do-copy,5_route,5_3_route.odb))
732732

733733
$(eval $(call do-copy,5_route,4_cts.sdc,,.sdc))
734734

735735
.PHONY: do-route
736736
do-route:
737-
mkdir -p $(LOG_DIR) $(REPORTS_DIR)
738-
$(UNSET_AND_MAKE) do-5_1_grt do-5_2_route do-5_route do-5_route.sdc
737+
mkdir -p $(RESULTS_DIR) $(LOG_DIR) $(REPORTS_DIR)
738+
$(UNSET_AND_MAKE) do-5_1_grt do-5_2_fillcell do-5_3_route do-5_route do-5_route.sdc
739739

740740
$(RESULTS_DIR)/5_route.v:
741741
@export OR_DB=5_route ;\

flow/scripts/detail_route.tcl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ source $::env(SCRIPTS_DIR)/load.tcl
33
if { [info exists ::env(USE_WXL)]} {
44
set db_file 4_cts.odb
55
} else {
6-
set db_file 5_1_grt.odb
6+
set db_file 5_2_fillcell.odb
77
}
88
load_design $db_file 4_cts.sdc "Starting detailed routing"
99
set_propagated_clock [all_clocks]
@@ -74,5 +74,5 @@ if { [info exists ::env(POST_DETAIL_ROUTE_TCL)] } {
7474
}
7575

7676
if {![info exists save_checkpoint] || $save_checkpoint} {
77-
write_db $::env(RESULTS_DIR)/5_2_route.odb
77+
write_db $::env(RESULTS_DIR)/5_3_route.odb
7878
}

flow/scripts/fillcell.tcl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
utl::set_metrics_stage "cts__{}"
1+
utl::set_metrics_stage "globalroute__{}"
22
source $::env(SCRIPTS_DIR)/load.tcl
3-
load_design 4_1_cts.odb 3_place.sdc "Starting fill cell"
3+
load_design 5_1_grt.odb 4_cts.sdc "Starting fill cell"
44

55
set_propagated_clock [all_clocks]
66

77
filler_placement $::env(FILL_CELLS)
88
check_placement
99

1010
if {![info exists save_checkpoint] || $save_checkpoint} {
11-
write_db $::env(RESULTS_DIR)/4_2_cts_fillcell.odb
11+
write_db $::env(RESULTS_DIR)/5_2_fillcell.odb
1212
}

flow/scripts/global_route.tcl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,12 @@ global_route -guide_file $env(RESULTS_DIR)/route.guide \
2727
{-congestion_iterations 30 -congestion_report_iter_step 5 -verbose}}]
2828

2929

30+
set_placement_padding -global \
31+
-left $::env(CELL_PAD_IN_SITES_DETAIL_PLACEMENT) \
32+
-right $::env(CELL_PAD_IN_SITES_DETAIL_PLACEMENT)
33+
repair_antennas -iterations 5
34+
check_placement -verbose
35+
3036
set_propagated_clock [all_clocks]
3137
estimate_parasitics -global_routing
3238

flow/util/genMetrics.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -315,9 +315,9 @@ def extract_metrics(cwd, platform, design, flow_variant, output, hier_json):
315315
extractGnuTime('placeopt', metrics_dict, logPath + '/3_4_place_resized.log')
316316
extractGnuTime('detailedplace', metrics_dict, logPath + '/3_5_place_dp.log')
317317
extractGnuTime('cts', metrics_dict, logPath + '/4_1_cts.log')
318-
extractGnuTime('cts_fill', metrics_dict, logPath + '/4_2_cts_fillcell.log')
319318
extractGnuTime('globalroute', metrics_dict, logPath + '/5_1_grt.log')
320-
extractGnuTime('detailedroute', metrics_dict, logPath + '/5_2_route.log')
319+
extractGnuTime('fillcell', metrics_dict, logPath + '/5_2_fillcell.log')
320+
extractGnuTime('detailedroute', metrics_dict, logPath + '/5_3_route.log')
321321
extractGnuTime('finish_merge', metrics_dict, logPath + '/6_1_merge.log')
322322
extractGnuTime('finish', metrics_dict, logPath + '/6_report.log')
323323

tools/OpenROAD

Submodule OpenROAD updated 90 files

0 commit comments

Comments
 (0)