mirror of
https://github.com/YosysHQ/yosys
synced 2025-07-31 08:23:19 +00:00
Revert "Fix TODOs"
This reverts commit 8674a6c68d563908014d16671567459499c6dc99.
This commit is contained in:
parent
6d68972619
commit
52583ecff8
2 changed files with 20 additions and 0 deletions
|
@ -103,6 +103,11 @@ code sigA sigB sigC sigD sigM clock
|
|||
}
|
||||
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
|
||||
|
@ -154,6 +159,16 @@ match preAdd
|
|||
optional
|
||||
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
|
||||
|
||||
// (4) If pre-adder was present, find match 'A' input for A2REG
|
||||
// If pre-adder was not present, move ADREG to A2REG
|
||||
// Then match 'A' input for A1REG
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue