bitser.primatives.slice
Class TapDelaySlice

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

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

Implements a delay for a serial data stream. The delay must be between 1 and 32 bits long. WARNING: No connection is made for ground nets when delay length is 16 || 32. An exception will be thrown if trying to connect the ground net and it is not connected to another physical sink pin.

Essentially this core is a wrapper for up to 2 SRL16 cores, that conveniently sets their lengths and connects them up.

Copyright (c) 2001 by Alex Carreira

Version:
3.0 Added detection for non-CLB boundary vertical placement.
Author:
Alex Carreira
See Also:
Serialized Form

Constructor Summary
TapDelaySlice(java.lang.String instanceName, int delayLength, com.xilinx.JBits.CoreTemplate.Net clk, com.xilinx.JBits.CoreTemplate.Net vcc, com.xilinx.JBits.CoreTemplate.Net gnd, com.xilinx.JBits.CoreTemplate.Net delayIn, com.xilinx.JBits.CoreTemplate.Net delayOut)
          Creates an instance of a TapDelaySlice.
 
Method Summary
static int calcHeight()
          Compute and return the height of a TapDelaySlice core.
static int calcHeightGran()
          Compute and return the vertical granularity of a TapDelaySlice core.
static int calcWidth()
          Compute and return the width of a TapDelaySlice core.
static int calcWidthGran()
          Compute and return the horizontal granularity of a TapDelaySlice core.
static int getCtrlFO()
           
static int getSerDataFO()
           
 void implement()
          Implement this TapDelaySlice 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

TapDelaySlice

public TapDelaySlice(java.lang.String instanceName,
                     int delayLength,
                     com.xilinx.JBits.CoreTemplate.Net clk,
                     com.xilinx.JBits.CoreTemplate.Net vcc,
                     com.xilinx.JBits.CoreTemplate.Net gnd,
                     com.xilinx.JBits.CoreTemplate.Net delayIn,
                     com.xilinx.JBits.CoreTemplate.Net delayOut)
              throws com.xilinx.JBits.CoreTemplate.CoreException
Creates an instance of a TapDelaySlice.
Parameters:
instanceName - The name assigned to this TapDelaySlice instance.
delayLength - The number of clock delays for the serial input to be delayed by. Must be an integer value from 1 to 32.
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.
delayIn - The external net to connect to the delay in port. (This is the serial data that you want to delay by delayLength.)
delayOut - The external net to connect to the delay out port. (This is the delayed input data.)
Throws:
Throws - a CoreParameterException if delayLength < 1 or delayLength > 32.
Method Detail

calcHeightGran

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

calcWidthGran

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

calcHeight

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

calcWidth

public static int calcWidth()
Compute and return the width of a TapDelaySlice 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 TapDelaySlice instance.
Throws:
com.xilinx.JBits.CoreTemplate.CoreException - is thrown for error occurences.