mirror of https://github.com/YosysHQ/yosys.git
ice40_dsp: tolerant of fanout-less outputs, as well as all-zero inputs
This commit is contained in:
parent
2bda51ac34
commit
6692e5d558
|
@ -57,6 +57,9 @@ code sigA sigB sigH
|
|||
sigH.append(O[i]);
|
||||
}
|
||||
log_assert(nusers(O.extract_end(i)) <= 1);
|
||||
|
||||
if (sigH.empty())
|
||||
reject;
|
||||
endcode
|
||||
|
||||
code argQ ffA ffAholdmux ffArstmux ffAholdpol ffArstpol sigA clock clock_pol
|
||||
|
@ -328,6 +331,8 @@ arg argD argQ clock clock_pol
|
|||
|
||||
code
|
||||
dff = nullptr;
|
||||
if (argQ.empty())
|
||||
reject;
|
||||
for (auto c : argQ.chunks()) {
|
||||
if (!c.wire)
|
||||
reject;
|
||||
|
|
Loading…
Reference in New Issue