mirror of https://github.com/YosysHQ/yosys.git
Check if RHS is empty first
This commit is contained in:
parent
e22a752242
commit
802470746c
|
@ -11,6 +11,7 @@ match ffA
|
||||||
select ffA->type.in($dff, $dffe)
|
select ffA->type.in($dff, $dffe)
|
||||||
// DSP48E1 does not support clock inversion
|
// DSP48E1 does not support clock inversion
|
||||||
select param(ffA, \CLK_POLARITY).as_bool()
|
select param(ffA, \CLK_POLARITY).as_bool()
|
||||||
|
filter !port(dsp, \A).remove_const().empty()
|
||||||
filter includes(port(ffA, \Q).to_sigbit_set(), port(dsp, \A).remove_const().to_sigbit_set())
|
filter includes(port(ffA, \Q).to_sigbit_set(), port(dsp, \A).remove_const().to_sigbit_set())
|
||||||
optional
|
optional
|
||||||
endmatch
|
endmatch
|
||||||
|
@ -24,6 +25,7 @@ match ffB
|
||||||
select ffB->type.in($dff, $dffe)
|
select ffB->type.in($dff, $dffe)
|
||||||
// DSP48E1 does not support clock inversion
|
// DSP48E1 does not support clock inversion
|
||||||
select param(ffB, \CLK_POLARITY).as_bool()
|
select param(ffB, \CLK_POLARITY).as_bool()
|
||||||
|
filter !port(dsp, \B).remove_const().empty()
|
||||||
filter includes(port(ffB, \Q).to_sigbit_set(), port(dsp, \B).remove_const().to_sigbit_set())
|
filter includes(port(ffB, \Q).to_sigbit_set(), port(dsp, \B).remove_const().to_sigbit_set())
|
||||||
optional
|
optional
|
||||||
endmatch
|
endmatch
|
||||||
|
|
Loading…
Reference in New Issue