diff options
author | Eddie Hung <eddie@fpgeh.com> | 2019-12-03 14:48:11 -0800 |
---|---|---|
committer | Eddie Hung <eddie@fpgeh.com> | 2019-12-03 14:48:11 -0800 |
commit | 5897b918b3735e9bd621966fdcf0c52bb11cebc2 (patch) | |
tree | 92b727e3be13e82b5eb66d48f8b36e3836803c5c /passes | |
parent | 8de17877d4073a6e593ea650b8eca0488f653d24 (diff) | |
download | yosys-5897b918b3735e9bd621966fdcf0c52bb11cebc2.tar.gz yosys-5897b918b3735e9bd621966fdcf0c52bb11cebc2.tar.bz2 yosys-5897b918b3735e9bd621966fdcf0c52bb11cebc2.zip |
ice40_wrapcarry to preserve SB_CARRY's attributes
Diffstat (limited to 'passes')
-rw-r--r-- | passes/pmgen/ice40_wrapcarry.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/passes/pmgen/ice40_wrapcarry.cc b/passes/pmgen/ice40_wrapcarry.cc index 69ef3cd82..66054ea42 100644 --- a/passes/pmgen/ice40_wrapcarry.cc +++ b/passes/pmgen/ice40_wrapcarry.cc @@ -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); } |