engine
Class UDPDescription
java.lang.Object
|
+--engine.DefaultNameSpaceDescription
|
+--engine.UserModuleDescription
|
+--engine.UDPDescription
- class UDPDescription
- extends UserModuleDescription
The description of an User Defined Primitive.
- See Also:
- Serialized Form
| Fields inherited from class engine.DefaultNameSpaceDescription |
always,
connectionHash,
connectionList,
events,
functions,
initial,
monitors,
name,
ports,
regs,
regsVector,
subScopes |
|
Constructor Summary |
(package private) |
UDPDescription(java.lang.String name,
int line,
java.lang.String fileName)
|
|
Method Summary |
void |
addAlways(InstructionDescription ins,
int lineNo)
|
void |
addEvent(java.lang.String name,
int lineNo)
|
void |
addInteger(java.lang.String name,
int lineNo,
ExpressionDescription arrayStart,
ExpressionDescription arrayEnd)
|
void |
addModuleArray(java.lang.String moduleName,
int lineNo,
java.lang.String descName,
ExpressionDescription arrayStart,
ExpressionDescription arrayEnd,
java.util.Vector portsVector,
java.util.Hashtable portsHash,
java.util.Vector parameters,
byte strength,
Delay3Description delays)
|
void |
addPort(java.lang.String name,
int lineNo,
int type,
ExpressionDescription msb,
ExpressionDescription lsb)
|
void |
addReal(java.lang.String name,
int lineNo)
|
void |
addRealTime(java.lang.String name,
int lineNo)
|
void |
addScope(NameSpaceDescription theScope,
int lineNo)
|
void |
addSubModule(java.lang.String moduleName,
int lineNo,
java.lang.String descName,
java.util.Vector portsVector,
java.util.Hashtable portsHash,
java.util.Vector parameters,
byte strength)
|
void |
addTableEntry(java.lang.String ent,
int lineNo)
Adds an entry into the table. |
void |
addTime(java.lang.String name,
int lineNo)
|
void |
checkup()
|
java.lang.Object |
createNewModule(NameSpace parent,
ModuleInstanceDescription miDesc,
byte strength,
ScopeNode thisScope)
|
java.lang.Object |
createNewModuleArray(NameSpace parent,
ModuleInstanceDescription miDesc,
byte strength,
ScopeNode thisScope,
int ars,
int are,
int n,
int increment)
|
java.lang.String |
getFileName()
|
boolean |
isTop()
|
void |
setParams(java.util.Vector results,
Delay3 delay)
What ModuleInstanceDescription whinks to be paarmeters,
are actually delay values in this case. |
java.lang.String |
toString()
|
java.lang.String |
toString(int line)
|
void |
unsetParams()
|
| Methods inherited from class engine.DefaultNameSpaceDescription |
addConnection,
addConnection,
addFunction,
addInitial,
addParameter,
addPort,
addRegister,
addSubModule,
addWire,
breakLinks,
checkPorts,
checkSymbolUnique,
checkSymbolUnique,
defParam,
instantiateAll,
isPort,
name |
| Methods inherited from class java.lang.Object |
,
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
registerNatives,
wait,
wait,
wait |
Table
java.util.Vector Table
entries
UDPTableEntry[] entries
- Used instead of Table for faster
access during simulation.
UNKType
public static final byte UNKType
SEQType
public static final byte SEQType
COMType
public static final byte COMType
type
byte type
fileName
java.lang.String fileName
line
int line
initialState
BitVector initialState
delay
Delay3 delay
inputExpression
SelectionExpressionDescription inputExpression
- An exprssion that contains all the inputs
(including the current state for the sequentials) .
outputExpression
SelectionExpressionDescription outputExpression
- An exprssion that contains all the inputs
(including the current state for the sequentials) .
UDPDescription
UDPDescription(java.lang.String name,
int line,
java.lang.String fileName)
isTop
public boolean isTop()
- Overrides:
- isTop in class DefaultNameSpaceDescription
addPort
public void addPort(java.lang.String name,
int lineNo,
int type,
ExpressionDescription msb,
ExpressionDescription lsb)
throws ParseException
- Overrides:
- addPort in class DefaultNameSpaceDescription
addTableEntry
public void addTableEntry(java.lang.String ent,
int lineNo)
throws ParseException
- Adds an entry into the table. Note that no sanity check is made:
we heavily rely on paring decision.
checkup
public void checkup()
throws ParseException
- Overrides:
- checkup in class DefaultNameSpaceDescription
toString
public java.lang.String toString()
- Overrides:
- toString in class java.lang.Object
toString
public java.lang.String toString(int line)
- Overrides:
- toString in class DefaultNameSpaceDescription
getFileName
public java.lang.String getFileName()
- Overrides:
- getFileName in class DefaultNameSpaceDescription
addSubModule
public void addSubModule(java.lang.String moduleName,
int lineNo,
java.lang.String descName,
java.util.Vector portsVector,
java.util.Hashtable portsHash,
java.util.Vector parameters,
byte strength)
throws ParseException
addModuleArray
public void addModuleArray(java.lang.String moduleName,
int lineNo,
java.lang.String descName,
ExpressionDescription arrayStart,
ExpressionDescription arrayEnd,
java.util.Vector portsVector,
java.util.Hashtable portsHash,
java.util.Vector parameters,
byte strength,
Delay3Description delays)
throws ParseException
- Overrides:
- addModuleArray in class DefaultNameSpaceDescription
addScope
public void addScope(NameSpaceDescription theScope,
int lineNo)
throws ParseException
- Overrides:
- addScope in class DefaultNameSpaceDescription
addAlways
public void addAlways(InstructionDescription ins,
int lineNo)
- Overrides:
- addAlways in class DefaultNameSpaceDescription
addInteger
public void addInteger(java.lang.String name,
int lineNo,
ExpressionDescription arrayStart,
ExpressionDescription arrayEnd)
throws ParseException
- Overrides:
- addInteger in class DefaultNameSpaceDescription
addReal
public void addReal(java.lang.String name,
int lineNo)
throws ParseException
- Overrides:
- addReal in class DefaultNameSpaceDescription
addTime
public void addTime(java.lang.String name,
int lineNo)
throws ParseException
- Overrides:
- addTime in class DefaultNameSpaceDescription
addRealTime
public void addRealTime(java.lang.String name,
int lineNo)
throws ParseException
- Overrides:
- addRealTime in class DefaultNameSpaceDescription
addEvent
public void addEvent(java.lang.String name,
int lineNo)
throws ParseException
- Overrides:
- addEvent in class DefaultNameSpaceDescription
setParams
public void setParams(java.util.Vector results,
Delay3 delay)
throws ParseException
- What ModuleInstanceDescription whinks to be paarmeters,
are actually delay values in this case. So proceed so:
unsetParams
public void unsetParams()
createNewModule
public java.lang.Object createNewModule(NameSpace parent,
ModuleInstanceDescription miDesc,
byte strength,
ScopeNode thisScope)
throws ParseException
- See Also:
ModuleFactory
createNewModuleArray
public java.lang.Object createNewModuleArray(NameSpace parent,
ModuleInstanceDescription miDesc,
byte strength,
ScopeNode thisScope,
int ars,
int are,
int n,
int increment)
throws ParseException