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

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

public class PartTypeTable
extends java.lang.Object

Transistor and resistor types have long and short names. In Electric, schematic and layout primitive transistors have different names. NCC uses the long name to match types between the schematic and layout. Except for the basic NMOS and PMOS types, each schematic transistor contains an annotation specifying which layout transistor it matches. The short names are used internally for NCC print-outs because the long names are too verbose. Scalable transistors, in the layout, have a different long name than regular transistor but map to the same type as ordinary layout transistors.


Constructor Summary
PartTypeTable(java.lang.String[][] typeNames)
           
 
Method Summary
 PartType get(java.lang.String nm)
           
 PartType getTypeFromLongName(java.lang.String nm)
           
 java.util.Iterator<PartType> iterator()
           
 int log2NumTypes()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PartTypeTable

public PartTypeTable(java.lang.String[][] typeNames)
Method Detail

log2NumTypes

public int log2NumTypes()

iterator

public java.util.Iterator<PartType> iterator()

get

public PartType get(java.lang.String nm)

getTypeFromLongName

public PartType getTypeFromLongName(java.lang.String nm)