diff options
author | Eddie Hung <eddie@fpgeh.com> | 2019-09-06 15:11:41 -0700 |
---|---|---|
committer | Eddie Hung <eddie@fpgeh.com> | 2019-09-06 15:11:41 -0700 |
commit | ef56f8596fdd9753e93dbd654493497be8902691 (patch) | |
tree | 4b89d4ed9b967eedbc3682d9f67dd9a0fd3abb1f | |
parent | 0d1d8b4d24d3cce071e7c7e3c6284ba2cb874bd0 (diff) | |
download | yosys-ef56f8596fdd9753e93dbd654493497be8902691.tar.gz yosys-ef56f8596fdd9753e93dbd654493497be8902691.tar.bz2 yosys-ef56f8596fdd9753e93dbd654493497be8902691.zip |
Fine tune nusers when postAdd
-rw-r--r-- | passes/pmgen/xilinx_dsp.pmg | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/passes/pmgen/xilinx_dsp.pmg b/passes/pmgen/xilinx_dsp.pmg index d91072868..7d943b16f 100644 --- a/passes/pmgen/xilinx_dsp.pmg +++ b/passes/pmgen/xilinx_dsp.pmg @@ -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 |