mirror of
https://github.com/YosysHQ/yosys
synced 2025-11-04 13:29:12 +00:00
rtlil: replace SigSig actions with new type SyncAction
This commit is contained in:
parent
37875fdedf
commit
1eb696c786
19 changed files with 305 additions and 252 deletions
|
|
@ -66,8 +66,8 @@ struct PruneWorker
|
|||
assigned.insert(sw_assigned.begin(), sw_assigned.end());
|
||||
}
|
||||
for (auto it = cs->actions.rbegin(); it != cs->actions.rend(); ) {
|
||||
RTLIL::SigSpec lhs = sigmap(it->first);
|
||||
RTLIL::SigSpec rhs = sigmap(it->second);
|
||||
RTLIL::SigSpec lhs = sigmap(it->lhs);
|
||||
RTLIL::SigSpec rhs = sigmap(it->rhs);
|
||||
SigSpec new_lhs, new_rhs;
|
||||
SigSpec conn_lhs, conn_rhs;
|
||||
for (int i = 0; i < GetSize(lhs); i++) {
|
||||
|
|
@ -93,8 +93,8 @@ struct PruneWorker
|
|||
removed_count++;
|
||||
it = decltype(cs->actions)::reverse_iterator(cs->actions.erase(it.base() - 1));
|
||||
} else {
|
||||
it->first = new_lhs;
|
||||
it->second = new_rhs;
|
||||
it->lhs = new_lhs;
|
||||
it->rhs = new_rhs;
|
||||
it++;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue