fix(precheck): adapt for new IHP def files

TopMetal1 is allowed now, and the power pins moved from Metal5 to TopMetal1.
This commit is contained in:
Uri Shaked
2025-11-24 14:20:04 +02:00
parent 6d72ed6d6a
commit c813d4796a
2 changed files with 2 additions and 5 deletions
-1
View File
@@ -328,7 +328,6 @@ def main():
raise PrecheckFailure("info.yaml not found") raise PrecheckFailure("info.yaml not found")
yaml_file = f"{yaml_dir}/info.yaml" yaml_file = f"{yaml_dir}/info.yaml"
yaml_data = yaml.safe_load(open(yaml_file)) yaml_data = yaml.safe_load(open(yaml_file))
logging.info("info.yaml data:" + str(yaml_data))
wokwi_id = yaml_data["project"].get("wokwi_id", 0) wokwi_id = yaml_data["project"].get("wokwi_id", 0)
top_module = yaml_data["project"].get("top_module", f"tt_um_wokwi_{wokwi_id}") top_module = yaml_data["project"].get("top_module", f"tt_um_wokwi_{wokwi_id}")
+2 -4
View File
@@ -129,6 +129,7 @@ valid_lef_port_layers = {
"Metal3.pin": (30, 2), "Metal3.pin": (30, 2),
"Metal4.pin": (50, 2), "Metal4.pin": (50, 2),
"Metal5.pin": (67, 2), "Metal5.pin": (67, 2),
"TopMetal1.pin": (126, 2),
}, },
} }
forbidden_layers = { forbidden_layers = {
@@ -138,9 +139,6 @@ forbidden_layers = {
"met5.label", "met5.label",
], ],
"ihp-sg13g2": [ "ihp-sg13g2": [
"TopMetal1.drawing",
"TopMetal1.pin",
"TopMetal1.label",
"TopMetal2.drawing", "TopMetal2.drawing",
"TopMetal2.pin", "TopMetal2.pin",
"TopMetal2.label", "TopMetal2.label",
@@ -152,7 +150,7 @@ forbidden_layers = {
} }
power_pins_layer = { power_pins_layer = {
"sky130A": "met4", "sky130A": "met4",
"ihp-sg13g2": "Metal5", "ihp-sg13g2": "TopMetal1",
"gf180mcuD": "Metal4", "gf180mcuD": "Metal4",
} }
boundary_layer = { boundary_layer = {