From ee8f6f31f4b3d66b7ea07584d35d9beff96f893f Mon Sep 17 00:00:00 2001 From: Clifford Wolf Date: Mon, 31 Aug 2015 16:42:19 +0200 Subject: [PATCH] Added SigMap::allbits() --- kernel/sigtools.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/kernel/sigtools.h b/kernel/sigtools.h index 7082ace4c..a9419f876 100644 --- a/kernel/sigtools.h +++ b/kernel/sigtools.h @@ -421,6 +421,14 @@ struct SigMap apply(sig); return sig; } + + RTLIL::SigSpec allbits() const + { + RTLIL::SigSpec sig; + for (auto &it : bits) + sig.append(SigBit(it.first.first, it.first.second)); + return sig; + } }; YOSYS_NAMESPACE_END -- 2.30.2