Preserve internal wires for external nets
authorMiodrag Milanovic <mmicko@gmail.com>
Fri, 1 Apr 2022 10:07:15 +0000 (12:07 +0200)
committerMiodrag Milanovic <mmicko@gmail.com>
Fri, 1 Apr 2022 10:07:15 +0000 (12:07 +0200)
frontends/verific/verific.cc

index b30a5baa0bddea05896a4d0c1ab4e72a6599c66a..44196a3103b8593a4b769d911407e0bef9da4050 100644 (file)
@@ -2041,7 +2041,7 @@ struct VerificExtNets
                        string name = stringf("___extnets_%d", portname_cnt++);
                        Port *new_port = new Port(name.c_str(), drive_up ? DIR_OUT : DIR_IN);
                        nl->Add(new_port);
-                       net->Connect(new_port);
+                       nl->Buf(net)->Connect(new_port);
 
                        // create new Net in up Netlist
                        Net *new_net = final_net;