bitser.primatives.slice
Class BarDelay

java.lang.Object
  |
  +--com.xilinx.JBits.CoreTemplate.RTPCore
        |
        +--bitser.primatives.slice.BarDelay

public class BarDelay
extends com.xilinx.JBits.CoreTemplate.RTPCore

Core to output a bar signal one cycle after a clockwidth pulse is input. When bar is completely output, bar delay is ready to do it again.

WARNING: If you pass a net to the barOut Net in the constructor, ensure that you connect it or the core will not function properly.

Copyright (c) 2003 by Alex Carreira

Version:
3.0 Added support for larger bars.
Author:
Alex Carreira
See Also:
Serialized Form

Constructor Summary
BarDelay(java.lang.String instanceName, int aBarLength, com.xilinx.JBits.CoreTemplate.Net clk, com.xilinx.JBits.CoreTemplate.Net vcc, com.xilinx.JBits.CoreTemplate.Net gnd, com.xilinx.JBits.CoreTemplate.Net controlIn, com.xilinx.JBits.CoreTemplate.Net barOut)
          Core to output a bar signal one cycle after a clockwidth pulse is input.
 
Method Summary
static int calcHeight(int aBarLength)
          Compute and return the height of a BarDelay core.
static int calcHeightGran()
          Compute and return the vertical granularity of a BarDelay core.
static int calcWidth()
          Compute and return the width of a BarDelay core.
static int calcWidthGran()
          Compute and return the horizontal granularity of a BarDelay core.
 void connect()
          Connect the internal nets of the core.
 int getBarLength()
           
static int getCtrlFO()
           
static int getSerDataFO()
           
 void implement()
          Implement this BarDelay instance.
 
Methods inherited from class com.xilinx.JBits.CoreTemplate.RTPCore
addChild, addChild, addFixedResource, calcAbsoluteOffset, getChild, getFixedResource, getHeight, getHeight, getHeightGran, getHierName, getName, getParent, getPort, getPort, getRelativeOffset, getTag, getWidth, getWidth, getWidthGran, isProtected, newBus, newBus, newInputPort, newInputPort, newNet, newNet, newNet, newNoConnectBus, newOutputPort, newOutputPort, newPort, newPort, numChildren, numFixedResources, numPorts, removeDescendants, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BarDelay

public BarDelay(java.lang.String instanceName,
                int aBarLength,
                com.xilinx.JBits.CoreTemplate.Net clk,
                com.xilinx.JBits.CoreTemplate.Net vcc,
                com.xilinx.JBits.CoreTemplate.Net gnd,
                com.xilinx.JBits.CoreTemplate.Net controlIn,
                com.xilinx.JBits.CoreTemplate.Net barOut)
         throws com.xilinx.JBits.CoreTemplate.CoreException
Core to output a bar signal one cycle after a clockwidth pulse is input. When bar is completely output, bar delay is ready to do it again.
Parameters:
instanceName - The name assigned to this BarDelay instance.
aBarLength - The length of the bar signal.
clk - The external net to connect to the clock port.
vcc - The external net to connect to the vcc port.
gnd - The external net to connect to the gnd port.
controlIn - The external net to connect to the control in port. (This connects to the previous control signal in the bit-serial system.)
barOut - The external net to connect to the bar out port. (This is where the bar signal is output.)
Throws:
com.xilinx.JBits.CoreTemplate.CoreException - is thrown for error occurences.
Method Detail

calcHeightGran

public static int calcHeightGran()
Compute and return the vertical granularity of a BarDelay core.

calcWidthGran

public static int calcWidthGran()
Compute and return the horizontal granularity of a BarDelay core.

calcHeight

public static int calcHeight(int aBarLength)
Compute and return the height of a BarDelay core.

calcWidth

public static int calcWidth()
Compute and return the width of a BarDelay core.

getSerDataFO

public static int getSerDataFO()
Returns:
The fan-out that this core imposes on the serial data input net.

getCtrlFO

public static int getCtrlFO()
Returns:
The fan-out that this core imposes on the control input net.

implement

public final void implement()
                     throws com.xilinx.JBits.CoreTemplate.CoreException
Implement this BarDelay instance. WARNING: You must call the connect() method of this core or internal nets will remain unconnected.
Throws:
com.xilinx.JBits.CoreTemplate.CoreException - is thrown for error occurences.

connect

public void connect()
             throws com.xilinx.JBits.CoreTemplate.CoreException
Connect the internal nets of the core. This separate method allows the routing to be prioritized.
Throws:
com.xilinx.JBits.CoreTemplate.CoreException - is thrown for error occurences.

getBarLength

public int getBarLength()
Returns:
The value of the bar length in bits for this core.