From: Eddie Hung Date: Fri, 6 Sep 2019 22:11:41 +0000 (-0700) Subject: Fine tune nusers when postAdd X-Git-Tag: working-ls180~1039^2~174 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ef56f8596fdd9753e93dbd654493497be8902691;p=yosys.git Fine tune nusers when postAdd --- 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