com.cmpware.tools
Class Decode

java.lang.Object
  extended by com.cmpware.tools.Decode

public class Decode
extends java.lang.Object

This class describes an instruction decode for the FastModel Instruction class.

Copyright (c) 2008 Cmpware, Inc. All Rights Reserved.

Author:
SAG

Constructor Summary
Decode()
          Constructor
Decode(int startBit, int bits, long a)
          Constructor
 
Method Summary
 Decode add(int startBit, int bits, long a)
          This method is used to define the opcode and other bits used to decode an instruction.
 long getDecodeMask()
          This method returns the decode mask.
 long getDecodeSig()
          This method returns the decode signature.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Decode

public Decode()
Constructor


Decode

public Decode(int startBit,
              int bits,
              long a)
Constructor

Parameters:
startBit - the start bit of the field.
bits - the number of bits in the field.
a - the value of the decode field.
Method Detail

add

public final Decode add(int startBit,
                        int bits,
                        long a)
This method is used to define the opcode and other bits used to decode an instruction. It may be called repeatedly to add the various fields. The object (this) is returned to permit chaining of this call in the form: Decode(x,y,z).add(a,b,c);

Parameters:
startBit - the start bit of the field.
bits - the number of bits in the field.
a - the value of the decode bits
Returns:
a decoder

getDecodeMask

public long getDecodeMask()
This method returns the decode mask. It is primarily for internal use.

Returns:
this method returns the decode mask.

getDecodeSig

public long getDecodeSig()
This method returns the decode signature. It is primarily for internal use.

Returns:
this method returns the decode signature.