From: Scott Thibault Date: Tue, 1 Feb 2022 22:55:09 +0000 (-0500) Subject: Fix unextend method for signed constants X-Git-Tag: yosys-0.14~9 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e04ac4e9e9658d80aa125332ec538f16f5f0f0c1;p=yosys.git Fix unextend method for signed constants --- diff --git a/passes/pmgen/ice40_dsp.pmg b/passes/pmgen/ice40_dsp.pmg index 7a01cbd51..378f251c0 100644 --- a/passes/pmgen/ice40_dsp.pmg +++ b/passes/pmgen/ice40_dsp.pmg @@ -29,8 +29,7 @@ code sigA sigB sigH if (sig[i] != sig[i-1]) break; // Do not remove non-const sign bit - if (sig[i].wire) - ++i; + ++i; return sig.extract(0, i); }; sigA = unextend(port(mul, \A));