Fix simple_abc9/generate test with 1'bx at MSB
authorEddie Hung <eddie@fpgeh.com>
Fri, 21 Jun 2019 02:37:03 +0000 (19:37 -0700)
committerEddie Hung <eddie@fpgeh.com>
Fri, 21 Jun 2019 02:37:03 +0000 (19:37 -0700)
passes/techmap/abc9.cc

index f652cdf1212752ecfe72b65d930a16b88fa595b7..3f7efa800c37373d4f5244ae110fdafcba3bbf62 100644 (file)
@@ -492,7 +492,7 @@ void abc9_module(RTLIL::Design *design, RTLIL::Module *current_module, std::stri
                        if (w->port_output) {
                                RTLIL::Wire *wire = module->wire(w->name);
                                log_assert(wire);
-                               for (int i = 0; i < GetSize(wire); i++)
+                               for (int i = 0; i < GetSize(w); i++)
                                        output_bits.insert({wire, i});
                        }
                }