com.sun.electric.tool.erc
Class ERC

java.lang.Object
  extended by com.sun.electric.tool.Tool
      extended by com.sun.electric.tool.erc.ERC
All Implemented Interfaces:
java.lang.Comparable

public class ERC
extends Tool

This is the Electrical Rule Checker tool.


Field Summary
protected static ERC tool
          the ERC tool.
 
Fields inherited from class com.sun.electric.tool.Tool
prefs
 
Method Summary
 double getAntennaRatio(ArcProto ap)
          Method to tell the antenna ratio of this ArcProto.
static ERC getERCTool()
          Method to retrieve singleton associated to ERC tool
static int getNWellCheck()
          Method to tell how much N-Well contact checking the ERC should do.
static int getPWellCheck()
          Method to tell how much P-Well contact checking the ERC should do.
 void init()
          Method to initialize the ERC tool.
static boolean isDRCCheck()
          Method to tell whether ERC should check DRC Spacing condition The default is "false".
static boolean isFindWorstCaseWell()
          Method to tell whether ERC should find the contact that is farthest from the well edge.
static boolean isMustConnectNWellToPower()
          Method to tell whether ERC should check that all N-Well contacts connect to power.
static boolean isMustConnectPWellToGround()
          Method to tell whether ERC should check that all P-Well contacts connect to ground.
 void setAntennaRatio(ArcProto ap, double ratio)
          Method to set the antenna ratio of this ArcProto.
static void setDRCCheck(boolean on)
          Method to tell whether ERC should check DRC Spacing condition
static void setFindWorstCaseWell(boolean on)
          Method to set whether ERC should find the contact that is farthest from the well edge.
static void setMustConnectNWellToPower(boolean on)
          Method to set whether ERC should check that all N-Well contacts connect to power.
static void setMustConnectPWellToGround(boolean on)
          Method to set whether ERC should check that all P-Well contacts connect to ground.
static void setNWellCheck(int c)
          Method to set how much N-Well contact checking the ERC should do.
static void setPWellCheck(int c)
          Method to set how much P-Well contact checking the ERC should do.
 
Methods inherited from class com.sun.electric.tool.Tool
clearAnalysis, clearBackground, clearFixErrors, clearIncremental, clearOn, clearSynthesis, compareTo, findTool, getIndex, getListeners, getName, getNumTools, getProjectSettings, getTools, initAllTools, initProjectSettings, isAnalysis, isBackground, isFixErrors, isIncremental, isOn, isSynthesis, makeBooleanSetting, makeDoubleSetting, makeIntSetting, makeLongSetting, makeStringSetting, setAnalysis, setBackground, setFixErrors, setIncremental, setOn, setSynthesis, setVarInJob, testAll, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

tool

protected static ERC tool
the ERC tool.

Method Detail

init

public void init()
Method to initialize the ERC tool.

Overrides:
init in class Tool

getERCTool

public static ERC getERCTool()
Method to retrieve singleton associated to ERC tool

Returns:
the ERC tool.

getPWellCheck

public static int getPWellCheck()
Method to tell how much P-Well contact checking the ERC should do. The values are: The default is "0".

Returns:
how much P-Well contact checking the ERC should do.

setPWellCheck

public static void setPWellCheck(int c)
Method to set how much P-Well contact checking the ERC should do.

Parameters:
c - how much P-Well contact checking the ERC should do:
  • 0: must have a contact in every well area.
  • 1: must have at least one contact.
  • 2: do not check for contact presence.

isMustConnectPWellToGround

public static boolean isMustConnectPWellToGround()
Method to tell whether ERC should check that all P-Well contacts connect to ground. The default is "true".

Returns:
true if ERC should check that all P-Well contacts connect to ground.

setMustConnectPWellToGround

public static void setMustConnectPWellToGround(boolean on)
Method to set whether ERC should check that all P-Well contacts connect to ground.

Parameters:
on - true if ERC should check that all P-Well contacts connect to ground.

getNWellCheck

public static int getNWellCheck()
Method to tell how much N-Well contact checking the ERC should do. The values are: The default is "0".

Returns:
how much N-Well contact checking the ERC should do.

setNWellCheck

public static void setNWellCheck(int c)
Method to set how much N-Well contact checking the ERC should do.

Parameters:
c - how much N-Well contact checking the ERC should do:
  • 0: must have a contact in every well area.
  • 1: must have at least one contact.
  • 2: do not check for contact presence.

isMustConnectNWellToPower

public static boolean isMustConnectNWellToPower()
Method to tell whether ERC should check that all N-Well contacts connect to power. The default is "true".

Returns:
true if ERC should check that all N-Well contacts connect to power.

setMustConnectNWellToPower

public static void setMustConnectNWellToPower(boolean on)
Method to set whether ERC should check that all N-Well contacts connect to power.

Parameters:
on - true if ERC should check that all N-Well contacts connect to power.

isFindWorstCaseWell

public static boolean isFindWorstCaseWell()
Method to tell whether ERC should find the contact that is farthest from the well edge. The default is "false".

Returns:
true if ERC should find the contact that is farthest from the well edge.

setFindWorstCaseWell

public static void setFindWorstCaseWell(boolean on)
Method to set whether ERC should find the contact that is farthest from the well edge.

Parameters:
on - true if ERC should find the contact that is farthest from the well edge.

isDRCCheck

public static boolean isDRCCheck()
Method to tell whether ERC should check DRC Spacing condition The default is "false".

Returns:
true if ERC should check DRC Spacing condition

setDRCCheck

public static void setDRCCheck(boolean on)
Method to tell whether ERC should check DRC Spacing condition

Parameters:
on - true if ERC should check DRC Spacing condition

setAntennaRatio

public void setAntennaRatio(ArcProto ap,
                            double ratio)
Method to set the antenna ratio of this ArcProto. Antenna ratios are used in antenna checks that make sure the ratio of the area of a layer is correct.

Parameters:
ratio - the antenna ratio of this ArcProto.

getAntennaRatio

public double getAntennaRatio(ArcProto ap)
Method to tell the antenna ratio of this ArcProto. Antenna ratios are used in antenna checks that make sure the ratio of the area of a layer is correct.

Returns:
the antenna ratio of this ArcProto.