Skip to content

Commit 670914f

Browse files
committed
fixup! variables: handle append semantics better
1 parent ded41a3 commit 670914f

File tree

3 files changed

+14
-15
lines changed

3 files changed

+14
-15
lines changed

flow/Makefile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,9 +215,15 @@ $(foreach line,$(shell \
215215
BC_ADDITIONAL_LIBS="$(BC_ADDITIONAL_LIBS)" \
216216
WC_ADDITIONAL_LIBS="$(WC_ADDITIONAL_LIBS)" \
217217
ASAP7_USELVT=$(ASAP7_USELVT) \
218+
ASAP7_USESLVT=$(ASAP7_USESLVT) \
218219
FLOW_VARIANT=$(FLOW_VARIANT) \
219220
$(SCRIPTS_DIR)/defaults.py make),$(eval export $(subst __SPACE__, ,$(line))))
220221

222+
# late expansion of $(ADDITIONAL_LIBS) since DESIGN_CONFIG can use
223+
# forward references in ADDITIONAL_LIBS. This is only to support
224+
# the "make" use-case.
225+
export LIB_FILES += $(ADDITIONAL_LIBS)
226+
221227
KLAYOUT_FOUND = $(if $(KLAYOUT_CMD),,$(error KLayout not found in PATH))
222228

223229
ifneq ($(shell command -v stdbuf),)

flow/platforms/asap7/config.py

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -31,16 +31,6 @@ def get_defaults(environment):
3131
]
3232
+ list_if_exists(environment, "BC_ADDITIONAL_LIBS")
3333
),
34-
"BC_NLDM_LIB_FILES": " ".join(
35-
[
36-
f"{lib_dir}/asap7sc7p5t_AO_RVT_FF_nldm_211120.lib.gz",
37-
f"{lib_dir}/asap7sc7p5t_INVBUF_RVT_FF_nldm_220122.lib.gz",
38-
f"{lib_dir}/asap7sc7p5t_OA_RVT_FF_nldm_211120.lib.gz",
39-
f"{lib_dir}/asap7sc7p5t_SIMPLE_RVT_FF_nldm_211120.lib.gz",
40-
f"{lib_dir}/asap7sc7p5t_SEQ_RVT_FF_nldm_220123.lib",
41-
]
42-
+ list_if_exists(environment, "BC_ADDITIONAL_LIBS")
43-
),
4434
"BC_NLDM_DFF_LIB_FILE": f"{lib_dir}/asap7sc7p5t_SEQ_RVT_FF_nldm_220123.lib",
4535
"BC_CCS_LIB_FILES": " ".join(
4636
[
@@ -104,7 +94,6 @@ def get_defaults(environment):
10494
if environment.get("CLUSTER_FLOPS") == "1"
10595
else []
10696
)
107-
+ list_if_exists(environment, "ADDITIONAL_LEFS")
10897
),
10998
"BC_TEMPERATURE": "25C",
11099
"TC_TEMPERATURE": "0C",
@@ -303,9 +292,9 @@ def get_defaults(environment):
303292
list_if_exists(environment, "LIB_FILES")
304293
+ list_if_exists(
305294
variables,
306-
f"{variables['CORNER']}_{variables.get('LIB_MODEL', 'NLDM')}_LIB_FILES",
295+
f"{variables['CORNER']}_{variables.get('LIB_MODEL')}_LIB_FILES",
307296
)
308-
+ list_if_exists(variables, "ADDITIONAL_LIBS")
297+
+ list_if_exists(environment, "ADDITIONAL_LIBS")
309298
),
310299
"DB_FILES": " ".join(
311300
list_if_exists(variables, f"{variables['CORNER']}_DB_FILES")

flow/scripts/defaults.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,13 +131,17 @@ def main():
131131
variables["FLOW_VARIANT"],
132132
)
133133

134-
append_semantics = (
134+
append_semantics = [
135135
"ADDITIONAL_LEFS",
136136
"ADDITIONAL_LIBS",
137137
"ADDITIONAL_GDS",
138138
"LIB_FILES",
139139
"GDS_FILES",
140-
)
140+
]
141+
142+
for key in ["ASAP7_USELVT", "ASAP7_USESLVT", "CLUSTER_FLOPS"]:
143+
if key in env_canonical:
144+
variables[key] = env_canonical[key]
141145

142146
# the platform overrides the defaults from variables.yaml, but need
143147
# OBJECTS_DIR. make handles such dependencies differently, it has

0 commit comments

Comments
 (0)