Completely changed the structure and switched to Eclipse Plugin.
[Mograsim.git] / net.mograsim.logic.core / src / net / mograsim / logic / core / types / Bit.java
index fbfd0d5..707c5ad 100644 (file)
@@ -81,6 +81,11 @@ public enum Bit implements StrictLogicType<Bit>
                return symbol;
        }
 
+       public static Bit lastBitOf(int value)
+       {
+               return values()[2 + (value & 1)];
+       }
+
        public static Bit parse(String s)
        {
                Bit bit = SYMBOL_MAP.get(s);