Skip to content

Commit 3157406

Browse files
committed
makefile: less iffy tapcell code
Signed-off-by: Øyvind Harboe <[email protected]>
1 parent ad1c669 commit 3157406

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
@@ -715,11 +715,7 @@ $(eval $(call do-step,2_4_floorplan_macro,$(RESULTS_DIR)/2_3_floorplan_tdms.odb
715715

716716
# STEP 5: Tapcell and Welltie insertion
717717
#-------------------------------------------------------------------------------
718-
ifeq ($(TAPCELL_TCL),)
719-
$(eval $(call do-copy,2_5_floorplan_tapcell,2_4_floorplan_macro.odb))
720-
else
721718
$(eval $(call do-step,2_5_floorplan_tapcell,$(RESULTS_DIR)/2_4_floorplan_macro.odb $(TAPCELL_TCL),tapcell))
722-
endif
723719

724720
# STEP 6: PDN generation
725721
#-------------------------------------------------------------------------------

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)