From: Eddie Hung Date: Thu, 5 Dec 2019 15:01:18 +0000 (-0800) Subject: Merge SB_CARRY+SB_LUT4's attributes when creating $__ICE40_CARRY_WRAPPER X-Git-Tag: working-ls180~931^2~7 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a7e0cca48003dbb212326c37c0b8a5580c2e6d2c;p=yosys.git Merge SB_CARRY+SB_LUT4's attributes when creating $__ICE40_CARRY_WRAPPER --- diff --git a/passes/pmgen/ice40_wrapcarry.cc b/passes/pmgen/ice40_wrapcarry.cc index 66054ea42..b84790d8f 100644 --- a/passes/pmgen/ice40_wrapcarry.cc +++ b/passes/pmgen/ice40_wrapcarry.cc @@ -51,6 +51,7 @@ void create_ice40_wrapcarry(ice40_wrapcarry_pm &pm) cell->setParam("\\LUT", st.lut->getParam("\\LUT_INIT")); cell->attributes = std::move(st.carry->attributes); + cell->attributes.insert(st.lut->attributes.begin(), st.lut->attributes.end()); pm.autoremove(st.carry); pm.autoremove(st.lut);