mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-23 17:15:33 +00:00
dict/pool changes in opt_clean
This commit is contained in:
parent
662cb549e4
commit
7d843adef9
2 changed files with 14 additions and 5 deletions
|
@ -195,6 +195,15 @@ struct SigSet
|
|||
}
|
||||
}
|
||||
|
||||
void find(RTLIL::SigSpec sig, pool<T> &result)
|
||||
{
|
||||
for (auto &bit : sig)
|
||||
if (bit.wire != NULL) {
|
||||
auto &data = bits[bit];
|
||||
result.insert(data.begin(), data.end());
|
||||
}
|
||||
}
|
||||
|
||||
std::set<T> find(RTLIL::SigSpec sig)
|
||||
{
|
||||
std::set<T> result;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue