Maybe needs review: fixed bug in ManualSwitch concerning the input
[Mograsim.git] / net.mograsim.logic.model.am2900 / test / net / mograsim / logic / model / am2900 / TestUtil.java
index cd682f2..46a4b92 100644 (file)
@@ -92,11 +92,11 @@ public final class TestUtil
                return sb.reverse().toString();
        }
 
-       public static BitVector of(int value, int width)
+       public static BitVector of(int value, int length)
        {
-               BitVectorMutator mutator = BitVectorMutator.ofWidth(width);
+               BitVectorMutator mutator = BitVectorMutator.ofLength(length);
                int val = value;
-               for (int i = width - 1; i >= 0; i--)
+               for (int i = length - 1; i >= 0; i--)
                {
                        mutator.setMSBit(i, Bit.lastBitOf(val));
                        val >>>= 1;