edu.byu.ece.edif.tools.replicate.nmr.xilinx
Class XilinxDWCComparator

java.lang.Object
  extended by edu.byu.ece.edif.tools.replicate.nmr.AbstractOrgan
      extended by edu.byu.ece.edif.tools.replicate.nmr.xilinx.XilinxDWCComparator
All Implemented Interfaces:
Organ, java.io.Serializable

public class XilinxDWCComparator
extends AbstractOrgan

This class implements a single XOR2 comparator. Dual-rail comparison can be accomplished by creating an OrganSpecification with an organCount of 2 instead of 1.

See Also:
Serialized Form

Field Summary
protected static XilinxDWCComparator _instance
           
protected static java.lang.String[] COMPARATOR_INPUT_NAMES
           
 
Fields inherited from class edu.byu.ece.edif.tools.replicate.nmr.AbstractOrgan
_createdOrgans, _organCell, _organOutputs, _organSuffix
 
Constructor Summary
protected XilinxDWCComparator()
           
 
Method Summary
 void createOrgan(OrganSpecification organSpec, EdifNet origNet, EdifCell newCell)
           
static XilinxDWCComparator getInstance()
           
protected  EdifCell getXOR2ComparatorCell(EdifCell parent)
           
private  java.lang.Object readResolve()
          This method ensures that during deserialization, the _instance variable will be referred to and possibly modified so that extra instances (more than necessary) don't get created.
 void wireInputs(OrganSpecification organSpecification, EdifNet origNet, java.util.List<PortConnection> driverConnections, NetManager netManager, ReplicationType replicationType)
           
 
Methods inherited from class edu.byu.ece.edif.tools.replicate.nmr.AbstractOrgan
createOrgan, getOrganCell, getOrganSuffix, getOutputs, toString, wireInputs
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_instance

protected static XilinxDWCComparator _instance

COMPARATOR_INPUT_NAMES

protected static java.lang.String[] COMPARATOR_INPUT_NAMES
Constructor Detail

XilinxDWCComparator

protected XilinxDWCComparator()
Method Detail

getInstance

public static XilinxDWCComparator getInstance()

createOrgan

public void createOrgan(OrganSpecification organSpec,
                        EdifNet origNet,
                        EdifCell newCell)

wireInputs

public void wireInputs(OrganSpecification organSpecification,
                       EdifNet origNet,
                       java.util.List<PortConnection> driverConnections,
                       NetManager netManager,
                       ReplicationType replicationType)

getXOR2ComparatorCell

protected EdifCell getXOR2ComparatorCell(EdifCell parent)

readResolve

private java.lang.Object readResolve()
                              throws java.io.ObjectStreamException
This method ensures that during deserialization, the _instance variable will be referred to and possibly modified so that extra instances (more than necessary) don't get created.

Returns:
Throws:
java.io.ObjectStreamException