unextend only used in init

This commit is contained in:
Eddie Hung 2019-09-25 14:05:59 -07:00
parent 53ea5daa42
commit 486dd7c483
1 changed files with 1 additions and 2 deletions

View File

@ -1,6 +1,5 @@
pattern ice40_dsp
udata <std::function<SigSpec(const SigSpec&)>> unextend
state <SigBit> clock
state <bool> clock_pol cd_signed o_lo
state <SigSpec> sigA sigB sigCD sigH sigO
@ -28,7 +27,7 @@ match mul
endmatch
code sigA sigB sigH
unextend = [](const SigSpec &sig) {
auto unextend = [](const SigSpec &sig) {
int i;
for (i = GetSize(sig)-1; i > 0; i--)
if (sig[i] != sig[i-1])