Merge SB_CARRY+SB_LUT4's attributes when creating $__ICE40_CARRY_WRAPPER
authorEddie Hung <eddie@fpgeh.com>
Thu, 5 Dec 2019 15:01:18 +0000 (07:01 -0800)
committerEddie Hung <eddie@fpgeh.com>
Thu, 5 Dec 2019 15:01:18 +0000 (07:01 -0800)
passes/pmgen/ice40_wrapcarry.cc

index 66054ea42da20266d254bfc17e7417b91a6617be..b84790d8fab8d01936ed32565dbf211fe5096acf 100644 (file)
@@ -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);