Skip to content

Commit fb3188a

Browse files
authored
Merge pull request #2369 from Pinata-Consulting/makefile-global-route-fix
Makefile global route fix
2 parents 999352c + 59b4ee2 commit fb3188a

File tree

2 files changed

+10
-11
lines changed

2 files changed

+10
-11
lines changed

flow/Makefile

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -844,13 +844,7 @@ $(eval $(call do-step,5_1_grt,$(RESULTS_DIR)/4_cts.odb $(FASTROUTE_TCL) $(PRE_GL
844844
#-------------------------------------------------------------------------------
845845
$(eval $(call do-step,5_2_route,$(RESULTS_DIR)/5_1_grt.odb,detail_route))
846846

847-
# SEP 3: Filler cell insertion
848-
# ------------------------------------------------------------------------------
849-
ifeq ($(FILL_CELLS),)
850-
$(eval $(call do-copy,5_3_fillcell,5_2_route.odb))
851-
else
852847
$(eval $(call do-step,5_3_fillcell,$(RESULTS_DIR)/5_2_route.odb,fillcell))
853-
endif
854848

855849
$(eval $(call do-copy,5_route,5_3_fillcell.odb))
856850

flow/scripts/fillcell.tcl

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,16 @@ if {[expr [file exists $::env(REPORTS_DIR)/congestion.rpt] && \
55
}
66

77
source $::env(SCRIPTS_DIR)/load.tcl
8-
load_design 5_2_route.odb 4_cts.sdc
98

10-
set_propagated_clock [all_clocks]
9+
if {[env_var_exists_and_non_empty FILL_CELLS]} {
10+
load_design 5_2_route.odb 4_cts.sdc
1111

12-
filler_placement $::env(FILL_CELLS)
13-
check_placement
12+
set_propagated_clock [all_clocks]
1413

15-
write_db $::env(RESULTS_DIR)/5_3_fillcell.odb
14+
filler_placement $::env(FILL_CELLS)
15+
check_placement
16+
17+
write_db $::env(RESULTS_DIR)/5_3_fillcell.odb
18+
} else {
19+
log_cmd exec cp $::env(RESULTS_DIR)/5_2_route.odb $::env(RESULTS_DIR)/5_3_fillcell.odb
20+
}

0 commit comments

Comments
 (0)