|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbyucc.jhdl.Logic.Modules.helpers.BehavioralPipeline
A helper class for pipelining in behavioral models.
BehavioralPipeline behaviorally simulates a pipeline. This is essentially a fixed-length FIFO queue that outputs the data that was put in n cycles ago.
To see an example, run
java byucc.jhdl.Logic.Modules.helpers.BehavioralPipeline
BehavioralPipeline supports the following data types:
Constructor Summary | |
BehavioralPipeline(int stages)
Creates a new behavioral pipeline. |
Method Summary | |
void |
clock()
Clocks the pipeline one cycle. |
java.lang.Number |
get()
Reads the output value from the last stage of the pipeline. |
long |
getLong()
Reads the output value from the last stage of the pipeline. |
boolean |
isOutputValid()
Returns true if the pipeline has had enough time for a valid output to appear. |
static void |
main(java.lang.String[] argv)
For testing (try it). |
void |
put(java.lang.Number object)
Puts a value on the input of the pipeline. |
void |
putLong(long value)
Puts a value on the input of the pipeline. |
java.lang.String |
toString()
Returns a String representing the contents of the pipeline. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public BehavioralPipeline(int stages)
stages
- The number of stages in the pipeline.
If this is set to zero, the input goes directly to
the output.Method Detail |
public void clock()
public void put(java.lang.Number object)
*** USE IMMUTABLE OBJECTS ONLY! ***
public java.lang.Number get()
public void putLong(long value)
public long getLong()
public boolean isOutputValid()
public java.lang.String toString()
public static void main(java.lang.String[] argv)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |