ice40_wrapcarry to preserve SB_CARRY's attributes

This commit is contained in:
Eddie Hung 2019-12-03 14:48:11 -08:00
parent 8de17877d4
commit 5897b918b3
1 changed files with 2 additions and 0 deletions

View 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);
}