diff --git a/openlane/config/pdk_compat.py b/openlane/config/pdk_compat.py index c106d06ac..572e088e8 100644 --- a/openlane/config/pdk_compat.py +++ b/openlane/config/pdk_compat.py @@ -88,7 +88,7 @@ def process_sta(key: str): lib = lib_raw.strip() lib_list = ws.split(lib) if new["PDK"].startswith("gf180mcu"): - lib_list = [l.replace("liberty", "lib") for l in lib_list] + lib_list = [file.replace("liberty", "lib") for file in lib_list] first_lib = os.path.basename(lib_list[0])[:-4] pvt = first_lib.split("__")[1] if default_pvt == "": diff --git a/openlane/flows/cli.py b/openlane/flows/cli.py index 694042fdc..091d719b2 100644 --- a/openlane/flows/cli.py +++ b/openlane/flows/cli.py @@ -153,6 +153,10 @@ def pdk_scl_cb( pdk_family = family.name break + if pdk_family is None: + err(f"Could not resolve the PDK '{ctx.params['pdk']}'.") + ctx.exit(1) + version = volare.fetch( volare_home, pdk_family,