From: Eddie Hung Date: Tue, 3 Sep 2019 23:37:59 +0000 (-0700) Subject: st.ffP from if to assert X-Git-Tag: working-ls180~1039^2~209 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=80aec0f006b91b0163c8be94f2450223e6e97a52;p=yosys.git st.ffP from if to assert --- diff --git a/passes/pmgen/xilinx_dsp.cc b/passes/pmgen/xilinx_dsp.cc index 17e05c39c..95105275b 100644 --- a/passes/pmgen/xilinx_dsp.cc +++ b/passes/pmgen/xilinx_dsp.cc @@ -59,7 +59,8 @@ void pack_xilinx_dsp(dict &bit_to_driver, xilinx_dsp_pm &pm) log(" adder %s (%s)\n", log_id(st.postAdd), log_id(st.postAdd->type)); SigSpec &opmode = cell->connections_.at("\\OPMODE"); - if (st.ffP && st.postAddMux) { + if (st.postAddMux) { + log_assert(st.ffP); opmode[4] = st.postAddMux->getPort("\\S"); pm.autoremove(st.postAddMux); }