hades.simulator
Class SimEvent1164
java.lang.Object
hades.simulator.SimEvent
hades.simulator.SimEvent1164
- All Implemented Interfaces:
- java.io.Serializable
- public class SimEvent1164
- extends SimEvent
- implements java.io.Serializable
SimEvent1164 - a Hades simulation event for StdLogic1164 values.
This class is written for maximum simulation performance, and without
concern for readability.
SimEvent1164 maintains an internal pool (stack) of pre-created
simulation event objects, and tries to allocate new event objects
out of this pool - to spare the garbage collector of finding a few
dozen free event objects in a background of some 100000 long-lived
gates and other objects.
If possible, use one of the createNewSimEvent1164() methods instead of
calling the constructors directly, to allow for efficient
SimEvent1164 recycling.
- Object source the object which generated this event
- double time the event time (simulation time)
- Object arg the StdLogic1164 value of this event, e.g. 'H'
- Simulatable target the target object
- Port targetPort the port of the target object.
This will only be zero for StdLogic-type
signals distributed to multiple input ports
on the same target object.
- See Also:
- Serialized Form
Methods inherited from class hades.simulator.SimEvent |
createNewSimEvent, createNewSimEvent, evaluate, getArg, getDebug, getSource, getTargetPort, getTime, setDebug, setTargetPort, toShortString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
__const1164
public static final Const1164[] __const1164
enable_recycling
public static boolean enable_recycling
STACK_SIZE
public static int STACK_SIZE
STACK_SIZE_1
public static int STACK_SIZE_1
SimEvent1164
public SimEvent1164(Simulatable target,
double time,
StdLogic1164 arg,
java.lang.Object source)
SimEvent1164
public SimEvent1164(Simulatable target,
double time,
java.lang.Object arg,
java.lang.Object source)
createNewSimEvent
public static SimEvent1164 createNewSimEvent(Simulatable target,
double time,
StdLogic1164 arg,
java.lang.Object source)
recycle
public void recycle()
- Overrides:
recycle
in class SimEvent
getNumberOfAvailableRecycledSimEvents
public static long getNumberOfAvailableRecycledSimEvents()
getNumberOfRecycledSimEvents
public static long getNumberOfRecycledSimEvents()
getNumberOfSimEvents
public static long getNumberOfSimEvents()
clearRecycleStack
public static void clearRecycleStack()
msg
public static void msg(java.lang.String s)
toString
public java.lang.String toString()
- toString() - the usual info method
- Overrides:
toString
in class SimEvent