mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-23 09:05:32 +00:00
Eliminate warnings by sizing O correctly
This commit is contained in:
parent
151c5c96c0
commit
79fd6edc5a
1 changed files with 5 additions and 1 deletions
|
@ -144,7 +144,11 @@ void create_ice40_dsp(ice40_dsp_pm &pm)
|
|||
|
||||
// SB_MAC16 Output Interface
|
||||
|
||||
cell->setPort("\\O", st.sigO);
|
||||
SigSpec O = st.sigO;
|
||||
if (GetSize(O) < 32)
|
||||
O.append(pm.module->addWire(NEW_ID, 32-GetSize(O)));
|
||||
|
||||
cell->setPort("\\O", O);
|
||||
|
||||
bool accum = false;
|
||||
if (st.addAB) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue