From 72960a052e0f286619e4e65ccadae43be5f3e403 Mon Sep 17 00:00:00 2001 From: Miodrag Milanovic Date: Thu, 11 Sep 2025 11:07:48 +0200 Subject: [PATCH] add plane info for node pips --- himbaechel/uarch/gatemate/gen/arch_gen.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/himbaechel/uarch/gatemate/gen/arch_gen.py b/himbaechel/uarch/gatemate/gen/arch_gen.py index 89439b5f..b868fd5c 100644 --- a/himbaechel/uarch/gatemate/gen/arch_gen.py +++ b/himbaechel/uarch/gatemate/gen/arch_gen.py @@ -275,6 +275,14 @@ def main(): if type_name in new_wires: for wire in sorted(new_wires[type_name]): pp = tt.create_pip(wire+"_n", wire) + plane = 0 + if wire.startswith("IM"): + plane = int(wire[4:6]) + if wire.startswith("SB_SML") or wire.startswith("SB_BIG"): + plane = int(wire[8:10]) + if wire.startswith("SB_DRIVE"): + plane = int(wire[10:12]) + pp.extra_data = PipExtraData(PIP_EXTRA_MUX, ch.strs.id(""), 0, 0, 0, plane) # Setup tile grid for x in range(dev.max_col() + 3):