summaryrefslogtreecommitdiff
path: root/kernel
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2014-12-29 04:06:52 +0100
committerClifford Wolf <clifford@clifford.at>2014-12-29 04:06:52 +0100
commit7d843adef98ec051acc64f4a04c925c468b562c2 (patch)
tree2ca84cf9d7086651757cb599d55e4c766b4b4c33 /kernel
parent662cb549e4e11d15b9c1c7e4d3944a05dab2447f (diff)
dict/pool changes in opt_clean
Diffstat (limited to 'kernel')
-rw-r--r--kernel/sigtools.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/kernel/sigtools.h b/kernel/sigtools.h
index 5281b7a4..c38736e7 100644
--- a/kernel/sigtools.h
+++ b/kernel/sigtools.h
@@ -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;