gowin: Use fast constant value routing

Signed-off-by: gatecat <gatecat@ds0.me>
This commit is contained in:
gatecat 2026-02-03 19:15:42 +01:00
parent 03776796c7
commit d0d2862d1a
2 changed files with 1 additions and 4 deletions

View File

@ -509,10 +509,6 @@ def create_nodes(chip: Chip, db: chipdb):
for node in nodes:
chip.add_node(node)
# VCC and VSS sources in the all tiles
global_nodes.setdefault('GND', []).append(NodeWire(x, y, 'VSS'))
global_nodes.setdefault('VCC', []).append(NodeWire(x, y, 'VCC'))
# add nodes from the apicula db
for node_name, node_hdr in db.nodes.items():
wire_type, node = node_hdr

View File

@ -1740,6 +1740,7 @@ struct GowinPacker
continue;
}
NetInfo *constnet = net->second.get();
constnet->constant_value = (constnet->name == ctx->id("$PACKER_GND")) ? id_VSS : id_VCC;
for (auto user : constnet->users) {
CellInfo *uc = user.cell;
if (is_lut(uc) && (user.port.str(ctx).at(0) == 'I')) {