edu.byu.ece.edif.tools.replicate.wiring
Class NetManager

java.lang.Object
  extended by edu.byu.ece.edif.tools.replicate.wiring.NetManager

public class NetManager
extends java.lang.Object

The NetManager class wires PortConnections together. It is also responsible for creating new nets when there is no existing net already associated with a source PortConnection. When creating new nets, the name associated with the source PortConnection will be used for the net name. If there is no name associated with a source PortConnection, a uniquified default net name will be used.


Field Summary
protected  java.util.Map<PortConnection,EdifNet> _connectionNets
          Keep track of which source PortConnections already have nets created for them
(package private)  EdifCell _topCell
          The EdifCell where the nets are being created
 
Constructor Summary
NetManager(EdifCell topCell)
           
 
Method Summary
 EdifNet getNet(PortConnection source)
          Get the net associated with source PortConnection.
 EdifCell getTopCell()
           
 void wirePortConnections(PortConnection source, PortConnection sink)
          Connect the given source and sink PortConnections, creating a new net only if there isn't one already created for the given source.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_topCell

EdifCell _topCell
The EdifCell where the nets are being created


_connectionNets

protected java.util.Map<PortConnection,EdifNet> _connectionNets
Keep track of which source PortConnections already have nets created for them

Constructor Detail

NetManager

public NetManager(EdifCell topCell)
Method Detail

wirePortConnections

public void wirePortConnections(PortConnection source,
                                PortConnection sink)
Connect the given source and sink PortConnections, creating a new net only if there isn't one already created for the given source.

Parameters:
source -
sink -

getNet

public EdifNet getNet(PortConnection source)
Get the net associated with source PortConnection. If there is no associated net, create one and return it.

Parameters:
source -
Returns:

getTopCell

public EdifCell getTopCell()