import static net.mograsim.logic.core.types.BitVector.SINGLE_0;
import static net.mograsim.logic.core.types.BitVector.SINGLE_1;
-import static net.mograsim.logic.core.types.BitVector.SINGLE_X;
+import static net.mograsim.logic.core.types.BitVector.SINGLE_U;
import net.mograsim.machine.mi.parameters.MicroInstructionParameter.ParameterType;
public BooleanClassification(boolean defaultValue, String trueName, String falseName)
{
- super(defaultValue ? trueName : falseName, new MnemonicPair("X", SINGLE_X), new MnemonicPair(trueName, SINGLE_1),
+ super(defaultValue ? trueName : falseName, new MnemonicPair("X", SINGLE_U), new MnemonicPair(trueName, SINGLE_1),
new MnemonicPair(falseName, SINGLE_0));
this.trueName = trueName;
this.falseName = falseName;
public BooleanClassification(String trueName, String falseName)
{
- super("X", new MnemonicPair("X", SINGLE_X), new MnemonicPair(trueName, SINGLE_1), new MnemonicPair(falseName, SINGLE_0));
+ super("X", new MnemonicPair("X", SINGLE_U), new MnemonicPair(trueName, SINGLE_1), new MnemonicPair(falseName, SINGLE_0));
this.trueName = trueName;
this.falseName = falseName;
}
package net.mograsim.machine.mi.parameters;
-import static net.mograsim.logic.core.types.Bit.X;
+import static net.mograsim.logic.core.types.Bit.U;
import java.math.BigInteger;
*/
public IntegerImmediate(IntegerClassification owner, BigInteger value, int bits)
{
- this(owner, value == null ? BitVector.of(X, bits) : BitVector.from(value, bits));
+ this(owner, value == null ? BitVector.of(U, bits) : BitVector.from(value, bits));
}
public IntegerImmediate(IntegerClassification owner, BitVector value)
public boolean isX()
{
- return value.equals(BitVector.of(X, value.length()));
+ return value.equals(BitVector.of(U, value.length()));
}
/**
package net.mograsim.machine.mi.parameters;
-import static net.mograsim.logic.core.types.Bit.X;
+import static net.mograsim.logic.core.types.Bit.U;
import java.util.Arrays;
import java.util.LinkedList;
public MnemonicFamilyBuilder addX()
{
- pairs.add(new MnemonicPair("X", BitVector.of(X, bits)));
+ pairs.add(new MnemonicPair("X", BitVector.of(U, bits)));
return this;
}