mirror of
https://github.com/YosysHQ/yosys
synced 2025-06-24 14:53:42 +00:00
SigSpec refactoring: change RTLIL::SigSpec::chunks() to be read-only, created interim RTLIL::SigSpec::chunks_rw()
This commit is contained in:
parent
7bffde6abd
commit
28b3fd05fa
20 changed files with 29 additions and 34 deletions
|
@ -63,7 +63,7 @@ struct SplitnetsWorker
|
|||
void operator()(RTLIL::SigSpec &sig)
|
||||
{
|
||||
sig.expand();
|
||||
for (auto &c : sig.chunks())
|
||||
for (auto &c : sig.chunks_rw())
|
||||
if (splitmap.count(c.wire) > 0)
|
||||
c = splitmap.at(c.wire).at(c.offset);
|
||||
sig.optimize();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue