|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.cmpware.tools.AutoModelVLIW.Field
public static final class AutoModelVLIW.Field
This class defines an instruction field. The field is given the number of bits and the start of the field. It also may contain a list of symbols which may map to the values of the bits in this field.
| Field Summary | |
|---|---|
int |
bits
The number of bits in the field |
boolean |
isDecode
The decode field (used only in the assembler) |
int |
start
The start bit fo the field |
java.util.Hashtable |
symbolNameLookup
This looks up symbols by name |
java.util.Hashtable |
symbolValueLookup
This looks up symbols by value |
int |
val
A temporary place to store the value of the field |
| Constructor Summary | |
|---|---|
AutoModelVLIW.Field(int bits,
int start)
Constructor |
|
AutoModelVLIW.Field(int bits,
int start,
AutoModelVLIW.Symbol[] symbols)
Constructor |
|
AutoModelVLIW.Field(int bits,
int start,
boolean isDecode)
Constructor |
|
| Method Summary | |
|---|---|
int |
get(java.math.BigInteger instr)
This method extracts the field data from an instruction. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public int bits
public int start
public boolean isDecode
public int val
public java.util.Hashtable symbolNameLookup
public java.util.Hashtable symbolValueLookup
| Constructor Detail |
|---|
public AutoModelVLIW.Field(int bits,
int start,
AutoModelVLIW.Symbol[] symbols)
bits - The number of bits in the fieldstart - The start bit of the fieldsymbols - a symbol table associated with
this field.
public AutoModelVLIW.Field(int bits,
int start)
bits - The number of bits in the fieldstart - The start bit of the field
public AutoModelVLIW.Field(int bits,
int start,
boolean isDecode)
bits - The number of bits in the fieldstart - The start bit of the fieldisDecode - True if this is a decode field. This
is used by the assembler and disassembler to
ignore the decode fields. This could also be
used to tag any fields which the assembler
and disassembler should ignore.| Method Detail |
|---|
public int get(java.math.BigInteger instr)
instr - The instruction containing the field.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||