Skip to content

Commit 5cae58d

Browse files
authored
Merge pull request #2374 from Pinata-Consulting/makefile-less-iffy-tapcell-code
makefile: less iffy tapcell code
2 parents 1b2abed + 3157406 commit 5cae58d

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

flow/Makefile

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -706,11 +706,7 @@ $(eval $(call do-step,2_4_floorplan_macro,$(RESULTS_DIR)/2_3_floorplan_tdms.odb
706706

707707
# STEP 5: Tapcell and Welltie insertion
708708
#-------------------------------------------------------------------------------
709-
ifeq ($(TAPCELL_TCL),)
710-
$(eval $(call do-copy,2_5_floorplan_tapcell,2_4_floorplan_macro.odb))
711-
else
712709
$(eval $(call do-step,2_5_floorplan_tapcell,$(RESULTS_DIR)/2_4_floorplan_macro.odb $(TAPCELL_TCL),tapcell))
713-
endif
714710

715711
# STEP 6: PDN generation
716712
#-------------------------------------------------------------------------------

flow/scripts/tapcell.tcl

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
source $::env(SCRIPTS_DIR)/load.tcl
2-
load_design 2_4_floorplan_macro.odb 1_synth.sdc
32

4-
if {[info exist ::env(TAPCELL_TCL)]} {
3+
if {[env_var_exists_and_non_empty TAPCELL_TCL]} {
4+
load_design 2_4_floorplan_macro.odb 1_synth.sdc
55
source $::env(TAPCELL_TCL)
6+
write_db $::env(RESULTS_DIR)/2_5_floorplan_tapcell.odb
7+
} else {
8+
log_cmd exec cp $::env(RESULTS_DIR)/2_4_floorplan_macro.odb $::env(RESULTS_DIR)/2_5_floorplan_tapcell.odb
69
}
7-
8-
write_db $::env(RESULTS_DIR)/2_5_floorplan_tapcell.odb

0 commit comments

Comments
 (0)