Fix polarity
authorEddie Hung <eddie@fpgeh.com>
Fri, 23 Aug 2019 21:49:34 +0000 (14:49 -0700)
committerEddie Hung <eddie@fpgeh.com>
Fri, 23 Aug 2019 21:49:34 +0000 (14:49 -0700)
passes/pmgen/pmgen.py

index 2f2545c2247637a3bfd2599a8e4bca5c85a35b43..c21fe8f87a8e170907cb91e2328b81c094a9502b 100644 (file)
@@ -462,7 +462,7 @@ with open(outfile, "w") as f:
     print("    int i = 0;", file=f)
     print("    pool<Cell*> users;", file=f)
     print("    for (auto bit : sigmap(sig))", file=f)
-    print("      if (unique)", file=f);
+    print("      if (!unique)", file=f);
     print("        i += GetSize(sigusers[bit]);", file=f);
     print("      else", file=f);
     print("        for (auto user : sigusers[bit])", file=f)