mirror of
https://github.com/YosysHQ/yosys
synced 2025-06-28 17:08:46 +00:00
Fixed all users of SigSpec::chunks_rw() and removed it
This commit is contained in:
parent
85db102e13
commit
4e802eb7f6
11 changed files with 80 additions and 91 deletions
|
@ -62,11 +62,9 @@ struct SplitnetsWorker
|
|||
|
||||
void operator()(RTLIL::SigSpec &sig)
|
||||
{
|
||||
sig.expand();
|
||||
for (auto &c : sig.chunks_rw())
|
||||
if (splitmap.count(c.wire) > 0)
|
||||
c = splitmap.at(c.wire).at(c.offset);
|
||||
sig.optimize();
|
||||
for (auto &bit : sig)
|
||||
if (splitmap.count(bit.wire) > 0)
|
||||
bit = splitmap.at(bit.wire).at(bit.offset);
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue