engine
Class RegisterDescription
java.lang.Object
|
+--engine.Symbol
|
+--engine.RegisterDescription
- Direct Known Subclasses:
- IntegerDescription
- class RegisterDescription
- extends Symbol
- implements MemoryDescription
Contains alll the infomation about a register or integer, or a memory
of the above types.
- See Also:
- Serialized Form
| Fields inherited from class engine.Symbol |
blockType,
connType,
funcType,
intType,
lineNo,
moduleArType,
moduleType,
name,
paramType,
portType,
realType,
regType,
taskType,
udpType,
wireType |
|
Constructor Summary |
(package private) |
RegisterDescription(java.lang.String name,
int lineNo,
ExpressionDescription msb,
ExpressionDescription lsb,
ExpressionDescription arrayStart,
ExpressionDescription arrayEnd)
|
(package private) |
RegisterDescription(java.lang.String name,
int lineNo,
ExpressionDescription msb,
ExpressionDescription lsb,
ExpressionDescription arrayStart,
ExpressionDescription arrayEnd,
boolean sign)
|
| Methods inherited from class java.lang.Object |
,
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
registerNatives,
wait,
wait,
wait |
nStart
int nStart
nEnd
int nEnd
nMemStart
int nMemStart
nMemEnd
int nMemEnd
msb
ExpressionDescription msb
lsb
ExpressionDescription lsb
arrayStart
ExpressionDescription arrayStart
arrayEnd
ExpressionDescription arrayEnd
sign
boolean sign
- This makes the difference beteween reg and integer.
RegisterDescription
RegisterDescription(java.lang.String name,
int lineNo,
ExpressionDescription msb,
ExpressionDescription lsb,
ExpressionDescription arrayStart,
ExpressionDescription arrayEnd)
RegisterDescription
RegisterDescription(java.lang.String name,
int lineNo,
ExpressionDescription msb,
ExpressionDescription lsb,
ExpressionDescription arrayStart,
ExpressionDescription arrayEnd,
boolean sign)
setRange
public void setRange(int nStart,
int nEnd)
instantiate
public java.lang.Object instantiate(NameSpace ns,
ScopeNode thisScope)
throws ParseException
- Overrides:
- instantiate in class Symbol
getArrayStart
public int getArrayStart()
- Specified by:
- getArrayStart in interface MemoryDescription
getArrayEnd
public int getArrayEnd()
- Specified by:
- getArrayEnd in interface MemoryDescription
getType
public int getType()
- Overrides:
- getType in class Symbol
isMemory
public boolean isMemory()
- Specified by:
- isMemory in interface MemoryDescription