From 37b0fc17e32d84698b6fa4ccbcff40155351e290 Mon Sep 17 00:00:00 2001 From: Eddie Hung Date: Thu, 19 Sep 2019 15:40:17 -0700 Subject: [PATCH] Re-enable sign extension for C input --- passes/pmgen/xilinx_dsp.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/passes/pmgen/xilinx_dsp.cc b/passes/pmgen/xilinx_dsp.cc index 5af48e4d2..ce75be0e9 100644 --- a/passes/pmgen/xilinx_dsp.cc +++ b/passes/pmgen/xilinx_dsp.cc @@ -322,10 +322,10 @@ void pack_xilinx_dsp(dict &bit_to_driver, xilinx_dsp_pm &pm) opmode[5] = State::S1; if (opmode[4] != State::S0) { - //if (st.postAddMuxAB == "\\A") - // st.sigC.extend_u0(48, st.postAdd->getParam("\\B_SIGNED").as_bool()); - //else - // st.sigC.extend_u0(48, st.postAdd->getParam("\\A_SIGNED").as_bool()); + if (st.postAddMuxAB == "\\A") + st.sigC.extend_u0(48, st.postAdd->getParam("\\B_SIGNED").as_bool()); + else + st.sigC.extend_u0(48, st.postAdd->getParam("\\A_SIGNED").as_bool()); cell->setPort("\\C", st.sigC); } -- 2.30.2