st.ffP from if to assert

This commit is contained in:
Eddie Hung 2019-09-03 16:37:59 -07:00
parent 16316aa05d
commit 80aec0f006
1 changed files with 2 additions and 1 deletions

View File

@ -59,7 +59,8 @@ void pack_xilinx_dsp(dict<SigBit, Cell*> &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);
}