1
0
mirror of synced 2026-04-28 21:09:08 +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));