From: Clifford Wolf Date: Tue, 13 Oct 2015 08:30:23 +0000 (+0200) Subject: Fixed "flatten" for unconnected inout ports X-Git-Tag: yosys-0.6~122 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=eb1e3caae7e0eeff9d5010748ff77250bab9ae51;p=yosys.git Fixed "flatten" for unconnected inout ports --- diff --git a/passes/techmap/techmap.cc b/passes/techmap/techmap.cc index 30a6d784f..592710eda 100644 --- a/passes/techmap/techmap.cc +++ b/passes/techmap/techmap.cc @@ -257,7 +257,7 @@ struct TechmapWorker } else { SigSpec sig_tpl = w, sig_tpl_pf = w, sig_mod = it.second; 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]))) { c.first.append(sig_mod[i]); c.second.append(sig_tpl_pf[i]);