3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-07-31 16:33:19 +00:00

Retry on fixing TODOs

This commit is contained in:
Eddie Hung 2019-10-04 13:38:09 -07:00
parent 52583ecff8
commit 77d7a5c14a
2 changed files with 1 additions and 13 deletions

View file

@ -100,14 +100,10 @@ code sigA sigB sigC sigD sigM clock
sigM.append(P[i]);
}
log_assert(nusers(P.extract_end(i)) <= 1);
log_assert(!sigM.empty());
}
else
sigM = P;
// TODO: Check if necessary
// This sigM could have no users if downstream $add
// is narrower than $mul result, for example
if (sigM.empty())
reject;
clock = port(dsp, \CLK, SigBit());
endcode
@ -160,12 +156,9 @@ match preAdd
endmatch
code sigA sigD
// TODO: Check if this is necessary?
if (preAdd) {
sigA = port(preAdd, \A);
sigD = port(preAdd, \B);
if (GetSize(sigA) < GetSize(sigD))
std::swap(sigA, sigD);
}
endcode