From 3573fcca80669c390b002c17ede911fb73c8bbbf Mon Sep 17 00:00:00 2001 From: Sylvain Munaut Date: Fri, 24 Apr 2020 16:11:53 +0200 Subject: design_utils: Set port.net to null when disconnecting Without this the python bindings can't actually connect anything else to a disconnected port since the assert in connect_ports will think it's still connected Signed-off-by: Sylvain Munaut --- common/design_utils.cc | 1 + 1 file changed, 1 insertion(+) (limited to 'common') diff --git a/common/design_utils.cc b/common/design_utils.cc index 10212a03..dd866758 100644 --- a/common/design_utils.cc +++ b/common/design_utils.cc @@ -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; } } -- cgit v1.2.3