3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-04-07 09:55:20 +00:00

Fix unextend method for signed constants

This commit is contained in:
Scott Thibault 2022-02-01 17:55:09 -05:00 committed by Marcelina Kościelnicka
parent bf85dfee5e
commit e04ac4e9e9

View file

@ -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));