Shortcut for single bit BitVector creation added to Bit
[Mograsim.git] / net.mograsim.logic.core / src / net / mograsim / logic / core / types / Bit.java
index 119ee53..752fbb8 100644 (file)
@@ -87,6 +87,11 @@ public enum Bit implements StrictLogicType<Bit>
                return bits;
        }
 
+       public BitVector toVector()
+       {
+               return BitVector.of(this, 1);
+       }
+
        public BitVector toVector(int length)
        {
                return BitVector.of(this, length);