bitser.primatives.slice
Class CarrySaveAdderSlice

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

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

Implements a carry save addition for two LSB (Least Significant Bit) first serial data inputs.

The control signal must be asserted HI during the LSB to ensure proper reseting of the core for the next data word.

Copyright (c) 2001 by Alex Carreira

Version:
2.0 Added separate connect method for prioritizing routing
Author:
Alex Carreira
See Also:
Serialized Form

Constructor Summary
CarrySaveAdderSlice(java.lang.String instanceName, com.xilinx.JBits.CoreTemplate.Net clk, com.xilinx.JBits.CoreTemplate.Net control, com.xilinx.JBits.CoreTemplate.Net sampleIn, com.xilinx.JBits.CoreTemplate.Net dataIn, com.xilinx.JBits.CoreTemplate.Net sumOut)
          Creates an instance of a CarrySaveAdderSlice.
 
Method Summary
static int calcHeight()
          Compute and return the height of a CarrySaveAdderSlice core.
static int calcHeightGran()
          Compute and return the vertical granularity of a CarrySaveAdderSlice core.
static int calcWidth()
          Compute and return the width of a CarrySaveAdderSlice core.
static int calcWidthGran()
          Compute and return the horizontal granularity of a CarrySaveAdderSlice core.
 void connect()
          Connect the internal nets of the core.
static int getCtrlFO()
           
static int getSerDataFO()
           
 void implement()
          Implement this CarrySaveAdderSlice 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

CarrySaveAdderSlice

public CarrySaveAdderSlice(java.lang.String instanceName,
                           com.xilinx.JBits.CoreTemplate.Net clk,
                           com.xilinx.JBits.CoreTemplate.Net control,
                           com.xilinx.JBits.CoreTemplate.Net sampleIn,
                           com.xilinx.JBits.CoreTemplate.Net dataIn,
                           com.xilinx.JBits.CoreTemplate.Net sumOut)
                    throws com.xilinx.JBits.CoreTemplate.CoreException
Creates an instance of a CarrySaveAdderSlice.
Parameters:
instanceName - The name assigned to this CarrySaveAdderSlice instance.
clk - The external net to be connected to the clock port.
control - The external net to be connected to the control port.
sampleIn - The external net to be connected to the sample in port. This net is not zeroed by the control signal.
dataIn - The external net to be connected to the data in port. This net is zeroed by the control signal.
sumOut - The external net to be connected to the sum out port.
Throws:
Throws - a CoreException when things go wrong.
Method Detail

calcHeightGran

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

calcWidthGran

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

calcHeight

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

calcWidth

public static int calcWidth()
Compute and return the width of a CarrySaveAdderSlice 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 CarrySaveAdderSlice 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.