|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbyucc.jhdl.apps.Stimulator.functions.Pulse
This class implements the ValueProvider interface to provide a pulse function for wire stimulus.
Constructor Summary | |
Pulse(long pulseStart,
int pulseDuration)
The cycle count will start at zero, so this constructor should usually only be used to add the Pulse function at the beginning of simulation. |
|
Pulse(long pulseStart,
int pulseDuration,
boolean inverted)
The cycle count will start at zero, so this constructor should usually only be used to add the Pulse function at the beginning of simulation. |
|
Pulse(long pulseStart,
int pulseDuration,
long cycleCountStart)
The signal will be non-inverted. |
|
Pulse(long pulseStart,
int pulseDuration,
long cycleCountStart,
boolean inverted)
|
Method Summary | |
java.lang.String |
getForceSchedule(int radix)
Used by Stimulator to get a nicely printed view of the function or series of values that are scheduled to be put on the wire |
java.lang.String |
getForceSchedule(java.lang.String format)
Used by Stimulator to get a nicely printed view of the function or series of values that are scheduled to be put on the wire |
boolean |
getNextBooleanValue()
|
boolean |
getResetBooleanValue()
Resets the cycle count and returns the proper value for the reset condition. |
boolean |
isDrivingOutput()
This method is used if the wire being driven is a tri-state bus wire. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Pulse(long pulseStart, int pulseDuration)
pulseStart
- the starting cycle number for the pulse (zero
if it should start at reset)pulseDuration
- the length of the pulsepublic Pulse(long pulseStart, int pulseDuration, boolean inverted)
pulseStart
- the starting cycle number for the pulse (zero
if it should start at reset)pulseDuration
- the length of the pulseinverted
- if true, then the non-pulse signal will true and
the pulse will go down to false.public Pulse(long pulseStart, int pulseDuration, long cycleCountStart)
pulseStart
- the starting cycle number for the pulse (zero
if it should start at reset)pulseDuration
- the length of the pulsecycleCountStart
- the cycle count at which this value
provider should start. This is useful if adding this
ValueProvider later in the simulation so that if a reset occurs,
this provider can take that into account to provide the same
pulse function as if this ValueProvider was added at the
beginning of simulationpublic Pulse(long pulseStart, int pulseDuration, long cycleCountStart, boolean inverted)
pulseStart
- the starting cycle number for the pulse (zero
if it should start at reset)pulseDuration
- the length of the pulsecycleCountStart
- the cycle count at which this value
provider should start. This is useful if adding this
ValueProvider later in the simulation so that if a reset occurs,
this provider can take that into account to provide the same
pulse function as if this ValueProvider was added at the
beginning of simulationinverted
- if true, then the non-pulse signal will true and
the pulse will go down to false.Method Detail |
public boolean getNextBooleanValue()
getNextBooleanValue
in interface BooleanValueProvider
public boolean getResetBooleanValue()
getResetBooleanValue
in interface BooleanValueProvider
public java.lang.String getForceSchedule(int radix)
getForceSchedule
in interface ValueProvider
radix
- the custom ValueProvider may use this value to
change the radix in which values will be shown in the schedulepublic java.lang.String getForceSchedule(java.lang.String format)
getForceSchedule
in interface ValueProvider
format
- the custom ValueProvider may use this value to
change the way values are shown in the schedule. This parameter
is meant to be a BV format string.public boolean isDrivingOutput()
isDrivingOutput
in interface ValueProvider
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |