Added SigMap::allbits()
authorClifford Wolf <clifford@clifford.at>
Mon, 31 Aug 2015 14:42:19 +0000 (16:42 +0200)
committerClifford Wolf <clifford@clifford.at>
Mon, 31 Aug 2015 14:42:19 +0000 (16:42 +0200)
kernel/sigtools.h

index 7082ace4c988cab3647c7cee4588e0759f063b0b..a9419f876038874125239badb5b46e7026a04d7c 100644 (file)
@@ -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