From: Eddie Hung Date: Fri, 26 Jul 2019 17:27:30 +0000 (-0700) Subject: Pop the CO bit from O X-Git-Tag: working-ls180~1039^2~294 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4c25d1a76fc006cac0d9e2038617f41ca90685c1;p=yosys.git Pop the CO bit from O --- diff --git a/passes/pmgen/ice40_dsp.cc b/passes/pmgen/ice40_dsp.cc index c5655ad20..369cb211e 100644 --- a/passes/pmgen/ice40_dsp.cc +++ b/passes/pmgen/ice40_dsp.cc @@ -144,8 +144,10 @@ void create_ice40_dsp(ice40_dsp_pm &pm) // SB_MAC16 Output Interface SigSpec O = st.sigO; - if (GetSize(O) == 33) + if (GetSize(O) == 33) { cell->setPort("\\CO", st.sigO[32]); + O.remove(32); + } else { log_assert(GetSize(O) <= 32); cell->setPort("\\CO", pm.module->addWire(NEW_ID));