bitser.primatives.slice
Class TapDelaySliceMulti

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

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

Implements a delay for a serial data stream. The delay must be at least 1 bit long. WARNING: No connection is made for ground nets when delay length is whole number multiples of 16. 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 TapDelaySlice cores, that conveniently sets their lengths and connects them up.

Copyright (c) 2003 by Alex Carreira

Version:
1.0
Author:
Alex Carreira
See Also:
Serialized Form

Constructor Summary
TapDelaySliceMulti(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 TapDelaySliceMulti.
 
Method Summary
static int calcHeight(int aDelayLength)
          Compute and return the height of a TapDelaySliceMulti core.
static int calcHeightGran()
          Compute and return the vertical granularity of a TapDelaySliceMulti core.
static int calcWidth()
          Compute and return the width of a TapDelaySliceMulti core.
static int calcWidthGran()
          Compute and return the horizontal granularity of a TapDelaySliceMulti core.
static int getCtrlFO()
           
 int getDelayLength()
           
static int getSerDataFO()
           
 void implement()
          Implement this TapDelaySliceMulti 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

TapDelaySliceMulti

public TapDelaySliceMulti(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 TapDelaySliceMulti.
Parameters:
instanceName - The name assigned to this TapDelaySliceMulti 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.
Method Detail

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 TapDelaySliceMulti instance.
Throws:
com.xilinx.JBits.CoreTemplate.CoreException - is thrown for error occurences.

calcHeightGran

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

calcWidthGran

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

calcHeight

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

calcWidth

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

getDelayLength

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