projects
/
yosys.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
151c5c9
)
Eliminate warnings by sizing O correctly
author
Eddie Hung
<eddie@fpgeh.com>
Tue, 23 Jul 2019 22:13:30 +0000
(15:13 -0700)
committer
Eddie Hung
<eddie@fpgeh.com>
Tue, 23 Jul 2019 22:13:30 +0000
(15:13 -0700)
passes/pmgen/ice40_dsp.cc
patch
|
blob
|
history
diff --git
a/passes/pmgen/ice40_dsp.cc
b/passes/pmgen/ice40_dsp.cc
index ee4e4f5e8df06d2f3096725fc341b8a365d45b5f..3ceffdbf6419027e6482dd1978e40767119b998e 100644
(file)
--- a/
passes/pmgen/ice40_dsp.cc
+++ b/
passes/pmgen/ice40_dsp.cc
@@
-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) {