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
1 changed files with 1 additions and 2 deletions

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