mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-13 04:28:18 +00:00
Fixed "flatten" for unconnected inout ports
This commit is contained in:
parent
ba4cce9f19
commit
eb1e3caae7
|
@ -257,7 +257,7 @@ struct TechmapWorker
|
||||||
} else {
|
} else {
|
||||||
SigSpec sig_tpl = w, sig_tpl_pf = w, sig_mod = it.second;
|
SigSpec sig_tpl = w, sig_tpl_pf = w, sig_mod = it.second;
|
||||||
apply_prefix(cell->name.str(), sig_tpl_pf, module);
|
apply_prefix(cell->name.str(), sig_tpl_pf, module);
|
||||||
for (int i = 0; i < GetSize(sig_tpl); i++) {
|
for (int i = 0; i < GetSize(sig_tpl) && i < GetSize(sig_mod); i++) {
|
||||||
if (tpl_written_bits.count(tpl_sigmap(sig_tpl[i]))) {
|
if (tpl_written_bits.count(tpl_sigmap(sig_tpl[i]))) {
|
||||||
c.first.append(sig_mod[i]);
|
c.first.append(sig_mod[i]);
|
||||||
c.second.append(sig_tpl_pf[i]);
|
c.second.append(sig_tpl_pf[i]);
|
||||||
|
|
Loading…
Reference in a new issue