edu.byu.ece.edif.tools.sterilize.lutreplace
Interface ReplacementContext

All Known Implementing Classes:
BasicReplacementContext, HalfLatchReplacementContext, TemplateCellReplacementContext

public interface ReplacementContext


Method Summary
 void addOldSBPortNewNetAssociation(EdifSingleBitPort oldSBPort, EdifNet newNet)
           
 EdifNet getNewNetToConnect(EdifSingleBitPort oldPort)
          This method will provide the "new" net that was created in the new EdifCell That would have otherwise been hooked up to the given Port if replacement did not occur.
 EdifNet getNewNetToConnect(java.lang.String portName)
          Return the new net.
 EdifNet getNewNetToConnect(java.lang.String portName, int bitNum)
          This method will provide the "new" net that was created in the new EdifCell that would have otherwise been hooked up to the given port.
 EdifCell getNewParentCell()
           
 EdifCell getOldCellToReplace()
          Returns the EdifCell in the old environment that is being replaced.
 EdifCellInstance getOldInstanceToReplace()
          Returns the EdifCellInstance in the old design that needs to be replaced This provides the replacer with any property information (such as INIT)
 java.util.Collection<EdifSingleBitPort> getOldSBPorts()
           
 

Method Detail

addOldSBPortNewNetAssociation

void addOldSBPortNewNetAssociation(EdifSingleBitPort oldSBPort,
                                   EdifNet newNet)

getNewParentCell

EdifCell getNewParentCell()
Returns:
the new EdifCell where the replacement logic should be added. This EdifCell is needed so that new logic can be added.

getOldInstanceToReplace

EdifCellInstance getOldInstanceToReplace()
Returns the EdifCellInstance in the old design that needs to be replaced This provides the replacer with any property information (such as INIT)


getOldCellToReplace

EdifCell getOldCellToReplace()
Returns the EdifCell in the old environment that is being replaced.


getNewNetToConnect

EdifNet getNewNetToConnect(EdifSingleBitPort oldPort)
This method will provide the "new" net that was created in the new EdifCell That would have otherwise been hooked up to the given Port if replacement did not occur. The replacer should use this net and hook it up to the new appropriate port. Note that the arguments are the "old" single bit port (i.e. the port in the old cell, not the new cell).


getNewNetToConnect

EdifNet getNewNetToConnect(java.lang.String portName,
                           int bitNum)
This method will provide the "new" net that was created in the new EdifCell that would have otherwise been hooked up to the given port. The port list of the old cell type will be searched using the given port name. The bit number of the port will be determined by the bitNum parameter. If a port does not exist with the given name or there is no single bit port with the given bit number then method will return a null.


getNewNetToConnect

EdifNet getNewNetToConnect(java.lang.String portName)
Return the new net. Assumes a "0" bit number. Will return a null if the string does not exist.


getOldSBPorts

java.util.Collection<EdifSingleBitPort> getOldSBPorts()