mirror of https://github.com/YosysHQ/yosys.git
Fix ffP just like ffPmux
This commit is contained in:
parent
5344bfe637
commit
b69512a5b9
|
@ -440,10 +440,10 @@ endmatch
|
||||||
match ffP
|
match ffP
|
||||||
if !ffP_enable
|
if !ffP_enable
|
||||||
if param(dsp, \PREG).as_int() == 0
|
if param(dsp, \PREG).as_int() == 0
|
||||||
// If ffMmux, input net must have exactly three users: ffMmux, ffM and ffP
|
// If ffMmux and no postAdd new-value net must have exactly three users: ffMmux, ffM and ffPmux
|
||||||
if !ffMmux || nusers(sigP) == 3
|
if !ffMmux || postAdd || nusers(sigP) == 3
|
||||||
// Otherwise input net must have exactly two users: dsp and ffP
|
// Otherwise new-value net must have exactly two users: dsp and ffPmux
|
||||||
if ffMmux || nusers(sigP) == 2
|
if (ffMmux && !postAdd) || nusers(sigP) == 2
|
||||||
|
|
||||||
select ffP->type.in($dff)
|
select ffP->type.in($dff)
|
||||||
// DSP48E1 does not support clock inversion
|
// DSP48E1 does not support clock inversion
|
||||||
|
|
Loading…
Reference in New Issue