com.cmpware.tools
Class AutoModelVLIW.Decode

java.lang.Object
  extended by com.cmpware.tools.AutoModelVLIW.Decode
Enclosing class:
AutoModelVLIW

public static final class AutoModelVLIW.Decode
extends java.lang.Object

The Decode class describes a field / value pair used to decode an instruction. Decode can use one or more such fields per instruction.


Field Summary
 java.math.BigInteger mask
          The decode mask
 java.math.BigInteger sig
          The decode signature
 
Constructor Summary
AutoModelVLIW.Decode(AutoModelVLIW.Field field, int value)
          Constructor
 
Method Summary
 AutoModelVLIW.Decode add(AutoModelVLIW.Field field, int value)
          This method returns a decoder with new values added.
static AutoModelVLIW.Decode primary(AutoModelVLIW.Field field, int value)
          This factory method returns a decoder with new values added.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mask

public java.math.BigInteger mask
The decode mask


sig

public java.math.BigInteger sig
The decode signature

Constructor Detail

AutoModelVLIW.Decode

public AutoModelVLIW.Decode(AutoModelVLIW.Field field,
                            int value)
Constructor

Parameters:
field - The field to be decoded.
value - the value of the decode field.
Method Detail

primary

public static AutoModelVLIW.Decode primary(AutoModelVLIW.Field field,
                                           int value)
This factory method returns a decoder with new values added. This permits a syntax like new Decode.primary(x,y).add(z,a) to be used for multi-level decode.

Parameters:
field - The field to be decoded.
value - the value of the decode field.
Returns:
a decoder is returned.

add

public AutoModelVLIW.Decode add(AutoModelVLIW.Field field,
                                int value)
This method returns a decoder with new values added. This permits a syntax like new Decode(x,y).add(z,a) to be used for multi-level decode.

Parameters:
field - The field to be decoded.
value - the value of the decode field.
Returns:
a decoder