feat(precheck/gf180mcuD): analog template selection + pin check

This commit is contained in:
Uri Shaked
2026-05-31 15:40:42 +03:00
parent ad17dca51b
commit d5b156e241
2 changed files with 19 additions and 3 deletions
+11
View File
@@ -119,6 +119,17 @@ def analog_pin_rects(tech: str, uses_3v3: bool):
x2, y2 = x1 + 1.75, y1 + 2.0
rect = ((x1, y1), (x2, y2))
yield (rect, pin_layer, via_layers)
elif tech == "gf180mcuD":
pin_layer = (46, 0) # Metal4
via_layers = [(40, 0)] # Via3
for pin_number in range(8):
if uses_3v3:
x1, y1 = 307.90 - 43.68 * pin_number, 0.0
else:
x1, y1 = 325.82 - 43.68 * pin_number, 0.0
x2, y2 = x1 + 3.0, y1 + 1.0
rect = ((x1, y1), (x2, y2))
yield (rect, pin_layer, via_layers)
elif tech in tech_names:
raise NotImplementedError
else: