|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface InputSignal
Represents an input signal (or multiple-bit input signal bus). It provides methods that:
| Method Summary | |
|---|---|
Event |
getChangeEvent(BitVector mask,
boolean async)
Returns an event that will be notified each time any of the signal bits corresponding to the given mask changes value. |
Event |
getEdgeEvent(com.newisys.verilog.EdgeSet edges,
int bit,
boolean async)
Returns an event that will be notified each time the given bit of this signal reaches an edge in the given set. |
int |
getInputDepth()
Returns the sample buffer depth for this signal, which is the number of samples stored for back-references. |
com.newisys.verilog.EdgeSet |
getInputEdges()
Returns the set of clock edges this signal is sampled at. |
int |
getInputSkew()
Returns the skew (in simulator ticks) relative to the clock edge at which this signal is sampled. |
BitVector |
sample()
Samples the value of this signal, after synchronizing to the sample edge of the clock, as if by a call to syncSample(). |
BitVector |
sampleAsync()
Samples the value of this signal immediately, without synchronizing to the sample edge of the clock. |
BitVector |
sampleDepth(int depth)
Returns the value of this signal the given number of cycles in the past, after synchronizing to the sample edge of the clock, as if by a call to syncSample(). |
BitVector |
sampleDepthAsync(int depth)
Returns the value of this signal the given number of cycles in the past, without synchronizing to the sample edge of the clock. |
void |
syncChange()
Suspends this thread until a) (any bit of) this signal changes value and then b) the clock for this signal reaches its next sample edge. |
void |
syncChange(BitVector mask)
Suspends this thread until a) one of the signal bits corresponding to the given mask changes value and then b) the clock for this signal reaches its next sample edge. |
void |
syncChangeAsync()
Suspends this thread until (any bit of) this signal changes value. |
void |
syncChangeAsync(BitVector mask)
Suspends this thread until one of the signal bits corresponding to the given mask changes value. |
void |
syncEdge(com.newisys.verilog.EdgeSet edges)
Suspends this thread until a) (the low bit of) this signal reaches an edge in the given set and then b) the clock for this signal reaches its next sample edge. |
void |
syncEdge(com.newisys.verilog.EdgeSet edges,
int bit)
Suspends this thread until a) the given bit of this signal reaches an edge in the given set and then b) the clock for this signal reaches its next sample edge. |
void |
syncEdgeAsync(com.newisys.verilog.EdgeSet edges)
Suspends this thread until (the low bit of) this signal reaches an edge in the given set. |
void |
syncEdgeAsync(com.newisys.verilog.EdgeSet edges,
int bit)
Suspends this thread until the given bit of this signal reaches an edge in the given set. |
void |
syncSample()
Suspends this thread until the clock for this signal is at the sample edge. |
void |
syncSampleDelay(int cycles)
Suspends this thread until the clock for this signal reaches the sample edge the given number of times. |
| Methods inherited from interface com.newisys.dv.Signal |
|---|
getClock, getName, getSize |
| Method Detail |
|---|
com.newisys.verilog.EdgeSet getInputEdges()
int getInputSkew()
int getInputDepth()
sampleDepth(int)BitVector sample()
syncSample()BitVector sampleDepth(int depth)
depth - the number of cycles in the past
syncSample(),
getInputDepth()BitVector sampleAsync()
BitVector sampleDepthAsync(int depth)
depth - the number of cycles in the past
getInputDepth()void syncSample()
void syncSampleDelay(int cycles)
cycles - the number of times the sample edge must be observedvoid syncEdge(com.newisys.verilog.EdgeSet edges)
edges - the set of edges to wait forsyncEdge(EdgeSet, int)
void syncEdge(com.newisys.verilog.EdgeSet edges,
int bit)
edges - the set of edges to wait forbit - the index of the bit to wait for the edge onvoid syncEdgeAsync(com.newisys.verilog.EdgeSet edges)
edges - the set of edges to wait forsyncEdgeAsync(EdgeSet, int)
void syncEdgeAsync(com.newisys.verilog.EdgeSet edges,
int bit)
edges - the set of edges to wait forbit - the index of the bit to wait for the edge on
Event getEdgeEvent(com.newisys.verilog.EdgeSet edges,
int bit,
boolean async)
edges - the set of edges to wait forbit - the index of the bit to wait for edges onasync - indicates not to wait for the next sample edge
void syncChange()
void syncChange(BitVector mask)
mask - a bit vector containing a ONE for each signal bit to watch,
or null to watch the entire signalvoid syncChangeAsync()
void syncChangeAsync(BitVector mask)
mask - a bit vector containing a ONE for each signal bit to watch,
or null to watch the entire signal
Event getChangeEvent(BitVector mask,
boolean async)
mask - a bit vector containing a ONE for each signal bit to watch,
or null to watch the entire signalasync - indicates not to wait for the next sample edge
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||