mirror of https://github.com/YosysHQ/yosys.git
Fine tune nusers when postAdd
This commit is contained in:
parent
0d1d8b4d24
commit
ef56f8596f
|
@ -345,10 +345,10 @@ endcode
|
|||
|
||||
match ffPmux
|
||||
if param(dsp, \PREG).as_int() == 0
|
||||
// If ffMmux, new-value net must have exactly three users: ffMmux, ffM and ffPmux
|
||||
if !ffMmux || nusers(sigP) == 3
|
||||
// If ffMmux and no postAdd new-value net must have exactly three users: ffMmux, ffM and ffPmux
|
||||
if !ffMmux || postAdd || nusers(sigP) == 3
|
||||
// Otherwise new-value net must have exactly two users: dsp and ffPmux
|
||||
if ffMmux || nusers(sigP) == 2
|
||||
if (ffMmux && !postAdd) || nusers(sigP) == 2
|
||||
|
||||
select ffPmux->type.in($mux)
|
||||
// ffPmux output must have two users: ffPmux and ffP.D
|
||||
|
|
Loading…
Reference in New Issue