Do not double count cells in abc
authorEddie Hung <eddie@fpgeh.com>
Fri, 12 Jul 2019 15:22:26 +0000 (08:22 -0700)
committerEddie Hung <eddie@fpgeh.com>
Fri, 12 Jul 2019 15:22:26 +0000 (08:22 -0700)
passes/techmap/abc.cc

index 15e79f9d131881f7424b5a5bfc30a709e58d9ecd..65c7d1bb82ffc4d44171efead21fd4c62cfa7f59 100644 (file)
@@ -1172,8 +1172,8 @@ void abc_module(RTLIL::Design *design, RTLIL::Module *current_module, std::strin
                                        continue;
                                }
                        }
-
-                       cell_stats[RTLIL::unescape_id(c->type)]++;
+                       else
+                               cell_stats[RTLIL::unescape_id(c->type)]++;
 
                        if (c->type == "\\_const0_" || c->type == "\\_const1_") {
                                RTLIL::SigSig conn;