From: Clifford Wolf Date: Mon, 31 Aug 2015 14:42:19 +0000 (+0200) Subject: Added SigMap::allbits() X-Git-Tag: yosys-0.6~174 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ee8f6f31f4b3d66b7ea07584d35d9beff96f893f;p=yosys.git Added SigMap::allbits() --- 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