mirror of
https://github.com/YosysHQ/yosys.git
synced 2026-08-29 01:24:25 +02:00
Fixed all users of SigSpec::chunks_rw() and removed it
This commit is contained in:
@@ -755,11 +755,11 @@ struct ExtractPass : public Pass {
|
||||
newCell->type = cell->type;
|
||||
newCell->parameters = cell->parameters;
|
||||
for (auto &conn : cell->connections) {
|
||||
RTLIL::SigSpec sig = sigmap(conn.second);
|
||||
for (auto &chunk : sig.chunks_rw())
|
||||
std::vector<RTLIL::SigChunk> chunks = sigmap(conn.second);
|
||||
for (auto &chunk : chunks)
|
||||
if (chunk.wire != NULL)
|
||||
chunk.wire = newMod->wires.at(chunk.wire->name);
|
||||
newCell->connections[conn.first] = sig;
|
||||
newCell->connections[conn.first] = chunks;
|
||||
}
|
||||
newMod->add(newCell);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user