abc9 -- multiple connections for inouts
authorEddie Hung <eddieh@ece.ubc.ca>
Tue, 26 Feb 2019 20:18:28 +0000 (12:18 -0800)
committerEddie Hung <eddieh@ece.ubc.ca>
Tue, 26 Feb 2019 20:18:28 +0000 (12:18 -0800)
passes/techmap/abc9.cc

index de47de92e5433541565f7168dc499603dc2a0364..3ec365bc0bd9b9d0fbad180c841f68e31fbaab09 100644 (file)
@@ -898,13 +898,14 @@ void abc9_module(RTLIL::Design *design, RTLIL::Module *current_module, std::stri
                                conn.first = remap_wire;
                                conn.second = signal;
                                in_wires++;
+                               module->connect(conn);
                        }
                        if (w->port_output) {
                                conn.first = signal;
                                conn.second = remap_wire;
                                out_wires++;
+                               module->connect(conn);
                        }
-                       module->connect(conn);
                }
 
                //log("ABC RESULTS:        internal signals: %8d\n", int(signal_list.size()) - in_wires - out_wires);