All Packages Class Hierarchy This Package Previous Next Index
java.lang.Object
|
+----byucc.jhdl.base.Nameable
|
+----byucc.jhdl.base.Node
|
+----byucc.jhdl.base.Cell
|
+----byucc.jhdl.base.Structural
|
+----byucc.jhdl.Logic.Logic
|
+----byucc.jhdl.modgen.delay
Generic Delay Line

This delays a data word for a given number of cycles. The delay line can be stalled by setting clk_en=0. The delay can be for any number of cycles, and is specified at construction time. The input and output can each be up to 64 bits wide and must be the same width.
This module uses rams to store the data and a 4-bit downcounter to access the various addresses on the rams. To get more than 16 delay cycles, the number of delay cycles needed is divided as evenly as possible into blocks of <= 16 cycles. These blocks are placed into cascading 16x1 rams. If each block is exactly the same size, a single downcounter is used to control the rams. If the blocks can't be divided evenly, some of the rams will store the information for one more cycle than the others and 2 downcounterss are used. To get more than 64 cycles of delay, this class recursively stacks 64-cycle versions of itself together and then has a delay line taking care of the remaining cycles at the end.
CLB count:
CLB placement:
public static CellInterface cell_interface[]
public static final String cellname
public delay(Node parent,
int num_of_cyc,
Wire in,
Wire clk_en,
Wire out)
parent - parent of the class (this)
num_of_cyc - the number of clock cycles of delay
in - input signal
clk_en - if low, the contents of the delay rams remain
unchanged
out - output signal
public String getCellName()
public BigInteger[] getMemoryRange(int sIndex,
int elements)
public BigInteger getMemoryElement(int addr)
public long getSize()
public int getMemoryWidth()
public void reset()
public void clock()
public void propagate()
protected boolean defaultSimulationModelIsBehavioral()
public static int compute()
All Packages Class Hierarchy This Package Previous Next Index