Fixed a bug in Am2900; created dlatch8/80; relayouted some components
[Mograsim.git] / net.mograsim.logic.core / src / net / mograsim / logic / core / types / BitVectorFormatter.java
index 4996dcb..5f645a2 100644 (file)
@@ -1,6 +1,6 @@
 package net.mograsim.logic.core.types;
 
-import net.mograsim.logic.core.wires.Wire.ReadEnd;
+import net.mograsim.logic.core.wires.CoreWire.ReadEnd;
 import net.mograsim.preferences.ColorDefinition;
 import net.mograsim.preferences.ColorDefinition.BuiltInColor;
 import net.mograsim.preferences.Preferences;
@@ -28,7 +28,7 @@ public class BitVectorFormatter
        public static ColorDefinition formatAsColor(BitVector bitVector)
        {
                // TODO maybe find a color assignment for multiple-bit bit vectors?
-               if (bitVector == null || bitVector.width() != 1)
+               if (bitVector == null || bitVector.length() != 1)
                        return new ColorDefinition(BuiltInColor.COLOR_BLACK);
                switch (bitVector.getLSBit(0))
                {