mirror of
https://github.com/YosysHQ/yosys
synced 2025-10-05 07:24:01 +00:00
Fixes for reverting SigSpec helper functions
This commit is contained in:
parent
2f04beeeb5
commit
aad97168b0
2 changed files with 14 additions and 10 deletions
|
@ -155,9 +155,9 @@ void create_ice40_dsp(ice40_dsp_pm &pm)
|
|||
// If we have a signed multiply-add, then perform sign extension
|
||||
// TODO: Need to check CD[31:16] is sign extension of CD[15:0]?
|
||||
if (st.addAB->getParam("\\A_SIGNED").as_bool() && st.addAB->getParam("\\B_SIGNED").as_bool())
|
||||
pm.module->connect(O[-1], O[-2]);
|
||||
pm.module->connect(O[32], O[31]);
|
||||
else
|
||||
cell->setPort("\\CO", O[-1]);
|
||||
cell->setPort("\\CO", O[32]);
|
||||
O.remove(O_width-1);
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue