diff options
author | Scott Thibault <sathibault@yahoo.com> | 2022-02-01 17:55:09 -0500 |
---|---|---|
committer | Marcelina KoĆcielnicka <mwk@0x04.net> | 2022-02-02 03:21:09 +0100 |
commit | e04ac4e9e9658d80aa125332ec538f16f5f0f0c1 (patch) | |
tree | 632f30dda602fb597e588a7b1442fb26595e6dae | |
parent | bf85dfee5e0cceaed8f6f6782afe2d1803039e6a (diff) | |
download | yosys-e04ac4e9e9658d80aa125332ec538f16f5f0f0c1.tar.gz yosys-e04ac4e9e9658d80aa125332ec538f16f5f0f0c1.tar.bz2 yosys-e04ac4e9e9658d80aa125332ec538f16f5f0f0c1.zip |
Fix unextend method for signed constants
-rw-r--r-- | passes/pmgen/ice40_dsp.pmg | 3 |
1 files changed, 1 insertions, 2 deletions
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)); |