Skip to content

Commit 8116e3b

Browse files
committed
flow: platforms: ihp-sg13g2: Use Weaker Assignment
Use a weaker assignment for TECH_LEF, SC_LEF, LIB_FILES and GDS_FILES. This allows to overwrite those values from other .mk files. Also enable a new flag to not set all three ADDITIONAL_x variables. One use-case is to use files directly from the PDK instead of those here. Signed-off-by: Daniel Schultz <[email protected]>
1 parent 6798b49 commit 8116e3b

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

flow/platforms/ihp-sg13g2/config.mk

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,23 @@ export PROCESS = ihp-sg13g2
66
# ----------------------------------------------------
77
# Add IO related files when a TCL script is assigned to 'FOOTPRINT_TCL'.
88
# This variable is used to pass IO information.
9+
export LOAD_ADDITIONAL_FILES ?= yes
910
ifdef FOOTPRINT_TCL
11+
ifdef LOAD_ADDITIONAL_FILES
1012
export ADDITIONAL_LEFS += $(PLATFORM_DIR)/lef/sg13g2_io.lef \
1113
$(PLATFORM_DIR)/lef/bondpad_70x70.lef
1214
export ADDITIONAL_LIBS += $(PLATFORM_DIR)/lib/sg13g2_io_typ_1p2V_3p3V_25C.lib
1315
export ADDITIONAL_GDS += $(PLATFORM_DIR)/gds/sg13g2_io.gds \
1416
$(PLATFORM_DIR)/gds/bondpad_70x70.gds
1517
endif
16-
export TECH_LEF = $(PLATFORM_DIR)/lef/sg13g2_tech.lef
17-
export SC_LEF = $(PLATFORM_DIR)/lef/sg13g2_stdcell.lef
18+
endif
19+
export TECH_LEF ?= $(PLATFORM_DIR)/lef/sg13g2_tech.lef
20+
export SC_LEF ?= $(PLATFORM_DIR)/lef/sg13g2_stdcell.lef
1821

19-
export LIB_FILES = $(PLATFORM_DIR)/lib/sg13g2_stdcell_typ_1p20V_25C.lib \
20-
$(ADDITIONAL_LIBS)
21-
export GDS_FILES = $(PLATFORM_DIR)/gds/sg13g2_stdcell.gds \
22-
$(ADDITIONAL_GDS)
22+
export LIB_FILES ?= $(PLATFORM_DIR)/lib/sg13g2_stdcell_typ_1p20V_25C.lib \
23+
$(ADDITIONAL_LIBS)
24+
export GDS_FILES ?= $(PLATFORM_DIR)/gds/sg13g2_stdcell.gds \
25+
$(ADDITIONAL_GDS)
2326

2427
# Dont use cells to ease congestion
2528
# Specify at least one filler cell if none

0 commit comments

Comments
 (0)