mirror of
https://github.com/YosysHQ/nextpnr.git
synced 2026-04-26 20:26:32 +00:00
Merge pull request #432 from smunaut/fix_disconnect
design_utils: Set port.net to null when disconnecting
This commit is contained in:
@@ -111,6 +111,7 @@ void disconnect_port(const Context *ctx, CellInfo *cell, IdString port_name)
|
||||
port.net->users.end());
|
||||
if (port.net->driver.cell == cell && port.net->driver.port == port_name)
|
||||
port.net->driver.cell = nullptr;
|
||||
port.net = nullptr;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user