com.sun.electric.tool.ncc.netlist
Class NccNetlist

java.lang.Object
  extended by com.sun.electric.tool.ncc.netlist.NccNetlist

public class NccNetlist
extends java.lang.Object

NCC's representation of a netlist.


Field Summary
static Netlist.ShortResistors SHORT_RESISTORS
           
 
Constructor Summary
NccNetlist(Cell root, VarContext context, HierarchyInfo hierInfo, boolean blackBox, NccGlobals globals)
          Build a netlist for Cell root.
 
Method Summary
 boolean cantBuildNetlist()
           
 java.util.ArrayList<Part> getPartArray()
           
 java.util.ArrayList<Port> getPortArray()
           
 Cell getRootCell()
           
 VarContext getRootContext()
           
 java.util.ArrayList<Wire> getWireArray()
           
 boolean userAbort()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SHORT_RESISTORS

public static final Netlist.ShortResistors SHORT_RESISTORS
Constructor Detail

NccNetlist

public NccNetlist(Cell root,
                  VarContext context,
                  HierarchyInfo hierInfo,
                  boolean blackBox,
                  NccGlobals globals)
Build a netlist for Cell root. Mos transistors are represented by Mos. Instances of lower level Cells that have already been checked by NCC are represented by SubCircuit. Instances of lower level Cells that haven't been checked by NCC are flattened.

Parameters:
root - the top Cell
context - the VarContext for the top Cell
hierInfo - information about what's already been checked by NCC
blackBox - we're not actually going to check so just build an empty netlist
globals - variables shared by all parts of NCC
Method Detail

getWireArray

public java.util.ArrayList<Wire> getWireArray()
Returns:
a list of all the Wires

getPartArray

public java.util.ArrayList<Part> getPartArray()
Returns:
a list of all the Parts

getPortArray

public java.util.ArrayList<Port> getPortArray()
Returns:
a list of all the Ports

cantBuildNetlist

public boolean cantBuildNetlist()
Returns:
true if some error prevents us from building a netlist

userAbort

public boolean userAbort()
Returns:
true if user has requested an abort of NCC run

getRootCell

public Cell getRootCell()
Returns:
the root Cell

getRootContext

public VarContext getRootContext()
Returns:
the VarContext of the root Cell