public interface PortProto
Every port in the database appears as one prototypical object and many instantiative objects. Thus, for a PrimitivePort such as the "poly-left" port on a CMOS P-transistor there is one object (called a PrimitivePort, which is a PortProto) that describes the transistor prototype and there are many objects (called PortInsts), one for every port on an instance of that transistor in a circuit. Similarly, for every Export, there is one object (called an Export, which is a PortProto) that describes the Export on a Cell and there are many objects (also called PortInsts) for every port on a use of that Cell in some other Cell. PrimitivePorts are statically created and placed in the Technology objects, but complex Exports are created by the tools and placed in Library objects.
A PortProto has a descriptive name, which may be overridden by another PortProto at a higher level in the schematic or layout hierarchy. The PortProto also has a parent cell, characteristics, and more.
Modifier and Type | Method and Description |
---|---|
boolean |
connectsTo(ArcProto arc)
Method to return true if the specified ArcProto can connect to this PortProto.
|
PrimitivePort |
getBasePort()
method to return the base-level port that this PortProto is created from.
|
PortCharacteristic |
getCharacteristic()
Method to return the PortCharacteristic of this PortProto.
|
PortProtoId |
getId()
Method to return PortProtoId of this PortProto.
|
java.lang.String |
getName()
Method to return the name of this PortProto.
|
Name |
getNameKey()
Method to return the name key of this PortProto.
|
NodeProto |
getParent()
Method to return the parent NodeProto of this PortProto.
|
int |
getPortIndex()
Method to get the index of this PortProto.
|
boolean |
isGround()
Method to determine whether this PortProto is of type Ground.
|
boolean |
isPower()
Method to determine whether this PortProto is of type Power.
|
PortProtoId getId()
int getPortIndex()
Name getNameKey()
java.lang.String getName()
NodeProto getParent()
PortCharacteristic getCharacteristic()
boolean isPower()
boolean isGround()
PrimitivePort getBasePort()
boolean connectsTo(ArcProto arc)
arc
- the ArcProto to test for connectivity.