summaryrefslogtreecommitdiff
path: root/kernel
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2014-07-27 15:38:02 +0200
committerClifford Wolf <clifford@clifford.at>2014-07-27 15:38:02 +0200
commit0c86d6106c3ff4cd7628b1206281eb6080f8bf51 (patch)
treec5f0b406e7b77434b97fb704c90377892bb1b059 /kernel
parentddd31a0b66259a458f7bfb3475f53c30aa859bc8 (diff)
Added SigPool::check(bit)
Diffstat (limited to 'kernel')
-rw-r--r--kernel/sigtools.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/kernel/sigtools.h b/kernel/sigtools.h
index 7035db73..52e4aa0f 100644
--- a/kernel/sigtools.h
+++ b/kernel/sigtools.h
@@ -93,6 +93,11 @@ struct SigPool
return result;
}
+ bool check(RTLIL::SigBit bit)
+ {
+ return bit.wire != NULL && bits.count(bit);
+ }
+
bool check_any(RTLIL::SigSpec sig)
{
for (auto &bit : sig)