diff options
author | Clifford Wolf <clifford@clifford.at> | 2014-07-26 16:14:02 +0200 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2014-07-26 16:14:02 +0200 |
commit | 3f4e3ca8ad480c2e73e2072ada77078ffd95e08f (patch) | |
tree | 3117545be59991dc797086c5d273ed97220c75ef /passes/techmap | |
parent | 97a59851a6c411ccb06162d4b31725bf89262378 (diff) | |
download | yosys-3f4e3ca8ad480c2e73e2072ada77078ffd95e08f.tar.gz yosys-3f4e3ca8ad480c2e73e2072ada77078ffd95e08f.tar.bz2 yosys-3f4e3ca8ad480c2e73e2072ada77078ffd95e08f.zip |
More RTLIL::Cell API usage cleanups
Diffstat (limited to 'passes/techmap')
-rw-r--r-- | passes/techmap/extract.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/passes/techmap/extract.cc b/passes/techmap/extract.cc index 6439302cd..b8c349f5c 100644 --- a/passes/techmap/extract.cc +++ b/passes/techmap/extract.cc @@ -128,7 +128,7 @@ namespace for (auto &conn : needleCell->connections()) { RTLIL::SigSpec needleSig = conn.second; - RTLIL::SigSpec haystackSig = haystackCell->connections().at(portMapping.at(conn.first)); + RTLIL::SigSpec haystackSig = haystackCell->get(portMapping.at(conn.first)); for (int i = 0; i < std::min(needleSig.size(), haystackSig.size()); i++) { RTLIL::Wire *needleWire = needleSig[i].wire, *haystackWire = haystackSig[i].wire; @@ -324,7 +324,7 @@ namespace if (mapping.portMapping.count(conn.first) > 0 && sig2port.has(sigmap(sig))) { for (int i = 0; i < sig.size(); i++) for (auto &port : sig2port.find(sig[i])) { - RTLIL::SigSpec bitsig = haystack_cell->connections().at(mapping.portMapping[conn.first]).extract(i, 1); + RTLIL::SigSpec bitsig = haystack_cell->get(mapping.portMapping[conn.first]).extract(i, 1); RTLIL::SigSpec new_sig = cell->get(port.first); new_sig.replace(port.second, bitsig); cell->set(port.first, new_sig); |