From: Eddie Hung Date: Fri, 23 Aug 2019 21:49:34 +0000 (-0700) Subject: Fix polarity X-Git-Tag: working-ls180~1085^2~38 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9cd23cf0feda3e12ceda1f8fa5d28d2b38f2314d;p=yosys.git Fix polarity --- diff --git a/passes/pmgen/pmgen.py b/passes/pmgen/pmgen.py index 2f2545c22..c21fe8f87 100644 --- a/passes/pmgen/pmgen.py +++ b/passes/pmgen/pmgen.py @@ -462,7 +462,7 @@ with open(outfile, "w") as f: print(" int i = 0;", file=f) print(" pool 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)