mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-13 04:28:18 +00:00
Fine tune nusers when postAdd
This commit is contained in:
parent
0d1d8b4d24
commit
ef56f8596f
|
@ -345,10 +345,10 @@ endcode
|
||||||
|
|
||||||
match ffPmux
|
match ffPmux
|
||||||
if param(dsp, \PREG).as_int() == 0
|
if param(dsp, \PREG).as_int() == 0
|
||||||
// If ffMmux, new-value net must have exactly three users: ffMmux, ffM and ffPmux
|
// 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 new-value net must have exactly two users: dsp and ffPmux
|
// 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)
|
select ffPmux->type.in($mux)
|
||||||
// ffPmux output must have two users: ffPmux and ffP.D
|
// ffPmux output must have two users: ffPmux and ffP.D
|
||||||
|
|
Loading…
Reference in a new issue