mirror of https://github.com/YosysHQ/nextpnr.git
gowin: Use fast constant value routing
Signed-off-by: gatecat <gatecat@ds0.me>
This commit is contained in:
parent
03776796c7
commit
d0d2862d1a
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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')) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue