ice40_wrapcarry to preserve SB_CARRY's attributes
authorEddie Hung <eddie@fpgeh.com>
Tue, 3 Dec 2019 22:48:11 +0000 (14:48 -0800)
committerEddie Hung <eddie@fpgeh.com>
Tue, 3 Dec 2019 22:48:11 +0000 (14:48 -0800)
passes/pmgen/ice40_wrapcarry.cc

index 69ef3cd8253f911dd64bdff0f70c4dcd03ae97f2..66054ea42da20266d254bfc17e7417b91a6617be 100644 (file)
@@ -50,6 +50,8 @@ void create_ice40_wrapcarry(ice40_wrapcarry_pm &pm)
        cell->setPort("\\O", st.lut->getPort("\\O"));
        cell->setParam("\\LUT", st.lut->getParam("\\LUT_INIT"));
 
+       cell->attributes = std::move(st.carry->attributes);
+
        pm.autoremove(st.carry);
        pm.autoremove(st.lut);
 }