|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.electric.technology.Technology
com.sun.electric.technology.technologies.Schematics
public class Schematics
This is the Schematics technology.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.sun.electric.technology.Technology |
---|
Technology.ArcLayer, Technology.Distance, Technology.DistanceContext, Technology.DistanceRule, Technology.MultiCutData, Technology.NodeLayer, Technology.SizeCorrector, Technology.TechPoint, Technology.TechSetting |
Fields inherited from class com.sun.electric.technology.Technology |
---|
cachedRules, DISK_VERSION_1, DISK_VERSION_2, EMPTY_CONTEXT, EMPTY_LIST, factoryNodeGroups, foundries, LAYERS_BY_HEIGHT, LAYERS_BY_HEIGHT_LIFT_CONTACTS, LAYERS_BY_ZVALUE, N_TYPE, nodeGroups, NULL_ARRAY, oldArcNames, oldNodeNames, P_TYPE, SPECIALMENUCELL, SPECIALMENUEXPORT, SPECIALMENUHIGH, SPECIALMENUMISC, SPECIALMENUPORT, SPECIALMENUPURE, SPECIALMENUSPICE, SPECIALMENUTEXT, sysArtwork, sysFPGA, sysGeneric, sysSchematics, TECH_TMPVAR, TRANS_CONTACT, xmlTech |
Constructor Summary | |
---|---|
Schematics(Generic generic)
|
Method Summary | |
---|---|
PrimitivePort |
convertOldPortName(java.lang.String portName,
PrimitiveNode np)
Method to convert old primitive port names to their proper PortProtos. |
java.lang.Object[][] |
getDefaultNodesGrouped()
Method to construct a default group of elements for the palette. |
static Technology |
getDefaultSchematicTechnology()
Method to determine the default schematic technology. |
static double |
getNegatingBubbleSize()
Method to tell the size of negating bubbles. |
ERectangle |
getNodeInstBaseRectangle(NodeInst ni)
Method to get the base (highlight) ERectangle associated with a NodeInst in this PrimitiveNode. |
PrimitiveNode.Function |
getPrimitiveFunction(PrimitiveNode pn,
int techBits)
Method to return the pure "PrimitiveNode Function" a primitive NodeInst in this Technology. |
static int |
getPrimitiveFunctionBits(PrimitiveNode.Function function)
Method to return the technology-specific function bits for a given PrimitiveNode.Function. |
PrimitiveNodeSize |
getResistorSize(NodeInst ni,
VarContext context)
Method to return the size of a resistor-type NodeInst in this Technology. |
protected Poly[] |
getShapeOfNode(NodeInst ni,
boolean electrical,
boolean reasonable,
Technology.NodeLayer[] primLayers,
Layer layerOverride)
Method to return a list of Polys that describe a given NodeInst. |
Poly |
getShapeOfPort(NodeInst ni,
PrimitivePort pp,
java.awt.geom.Point2D selectPt)
Returns a polygon that describes a particular port on a NodeInst. |
PortInst |
getTransistorDrainPort(NodeInst ni)
Method to return a gate PortInst for this transistor NodeInst. |
TransistorSize |
getTransistorSize(NodeInst ni,
VarContext context)
Method to return the size of a transistor NodeInst in this Technology. |
static java.lang.String |
getVHDLNames(PrimitiveNode np)
Method to tell the VHDL names for a primitive in this technology. |
static void |
setNegatingBubbleSize(double s)
Method to set the size of negating bubbles. |
void |
setPrimitiveFunction(NodeInst ni,
PrimitiveNode.Function function)
Method to set the pure "PrimitiveNode Function" for a primitive NodeInst in this Technology. |
void |
setPrimitiveNodeSize(NodeInst ni,
double width,
double length)
Method to set the size of a transistor NodeInst in this technology. |
void |
setPrimitiveNodeSize(NodeInst ni,
java.lang.Object width,
java.lang.Object length)
Method to set the size of a transistor NodeInst in this technology. |
static void |
setVHDLNames(PrimitiveNode np,
java.lang.String v)
Method to set the VHDL names for a primitive in this technology. |
static Schematics |
tech()
the Schematics Technology object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final Variable.Key SCHEM_GLOBAL_NAME
public static final Variable.Key SCHEM_RESISTANCE
public static final Variable.Key SCHEM_CAPACITANCE
public static final Variable.Key SCHEM_INDUCTANCE
public static final Variable.Key SCHEM_DIODE
public static final Variable.Key SCHEM_FUNCTION
public static final Variable.Key ATTR_WIDTH
public static final Variable.Key ATTR_LENGTH
public static final Variable.Key ATTR_AREA
public Layer node_lay
public ArcProto wire_arc
public ArcProto bus_arc
public PrimitiveNode wirePinNode
public PrimitiveNode busPinNode
public PrimitiveNode wireConNode
public PrimitiveNode bufferNode
public PrimitiveNode andNode
public PrimitiveNode orNode
public PrimitiveNode xorNode
public PrimitiveNode flipflopNode
public PrimitiveNode muxNode
public PrimitiveNode bboxNode
public PrimitiveNode switchNode
public PrimitiveNode offpageNode
public PrimitiveNode powerNode
public PrimitiveNode groundNode
public PrimitiveNode sourceNode
public PrimitiveNode transistorNode
public PrimitiveNode resistorNode
public PrimitiveNode capacitorNode
public PrimitiveNode diodeNode
public PrimitiveNode inductorNode
public PrimitiveNode meterNode
public PrimitiveNode wellNode
public PrimitiveNode substrateNode
public PrimitiveNode twoportNode
public PrimitiveNode transistor4Node
public PrimitiveNode globalNode
public PrimitiveNode globalPartitionNode
Constructor Detail |
---|
public Schematics(Generic generic)
Method Detail |
---|
public static Schematics tech()
public java.lang.Object[][] getDefaultNodesGrouped()
getDefaultNodesGrouped
in class Technology
protected Poly[] getShapeOfNode(NodeInst ni, boolean electrical, boolean reasonable, Technology.NodeLayer[] primLayers, Layer layerOverride)
getShapeOfNode
in class Technology
ni
- the NodeInst to describe.electrical
- true to get the "electrical" layers.
This makes no sense for Schematics primitives.reasonable
- true to get only a minimal set of contact cuts in large contacts.
This makes no sense for Schematics primitives.primLayers
- an array of NodeLayer objects to convert to Poly objects.layerOverride
- the layer to use for all generated polygons (if not null).
public Poly getShapeOfPort(NodeInst ni, PrimitivePort pp, java.awt.geom.Point2D selectPt)
getShapeOfPort
in class Technology
ni
- the NodeInst that has the port of interest.
The prototype of this NodeInst must be a PrimitiveNode and not a Cell.pp
- the PrimitivePort on that NodeInst that is being described.selectPt
- if not null, it requests a new location on the port,
away from existing arcs, and close to this point.
This is useful for "area" ports such as the left side of AND and OR gates.
public ERectangle getNodeInstBaseRectangle(NodeInst ni)
getNodeInstBaseRectangle
in class Technology
ni
- the NodeInst to query.
public PrimitivePort convertOldPortName(java.lang.String portName, PrimitiveNode np)
convertOldPortName
in class Technology
portName
- the unknown port name, read from an old Library.np
- the PrimitiveNode on which this port resides.
public PrimitiveNode.Function getPrimitiveFunction(PrimitiveNode pn, int techBits)
getPrimitiveFunction
in class Technology
pn
- PrimitiveNode to check.techBits
- tech bits
public static int getPrimitiveFunctionBits(PrimitiveNode.Function function)
function
- the universal function description
public void setPrimitiveFunction(NodeInst ni, PrimitiveNode.Function function)
setPrimitiveFunction
in class Technology
ni
- the NodeInst to check.function
- the PrimitiveNode.Function to set on the NodeInst.public PrimitiveNodeSize getResistorSize(NodeInst ni, VarContext context)
getResistorSize
in class Technology
ni
- the NodeInst.context
- the VarContext in which any vars will be evaluated,
pass in VarContext.globalContext if no context needed, or set to null
to avoid evaluation of variables (if any).
public TransistorSize getTransistorSize(NodeInst ni, VarContext context)
getTransistorSize
in class Technology
ni
- the NodeInst.context
- the VarContext, set to VarContext.globalContext if not needed.
set to Null to avoid evaluation of variable.
public void setPrimitiveNodeSize(NodeInst ni, double width, double length)
setPrimitiveNodeSize
in class Technology
ni
- the NodeInstwidth
- the new widthlength
- the new lengthpublic void setPrimitiveNodeSize(NodeInst ni, java.lang.Object width, java.lang.Object length)
ni
- the NodeInstwidth
- the new widthlength
- the new lengthpublic static Technology getDefaultSchematicTechnology()
public PortInst getTransistorDrainPort(NodeInst ni)
getTransistorDrainPort
in class Technology
ni
- the NodeInst
public static double getNegatingBubbleSize()
public static void setNegatingBubbleSize(double s)
s
- the negating bubble size (the diameter).public static java.lang.String getVHDLNames(PrimitiveNode np)
np
- the primitive to query.
public static void setVHDLNames(PrimitiveNode np, java.lang.String v)
np
- the primitive to set.v
- the VHDL names for the primitive.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |