aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--passes/pmgen/xilinx_dsp.pmg6
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