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
 double getFactoryAntennaRatio(ArcProto ap)
          Method to tell the default antenna ratio of this ArcProto.
static int getFactoryNWellCheck()
          Method to tell how much N-Well contact checking the ERC should do by default.
static int getFactoryPWellCheck()
          Method to tell how much P-Well contact checking the ERC should do, by default.
static int getFactoryWellAnalysisNumProc()
          Method to tell the number of processors to use in ERC well analysis, by default.
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.
static int getWellAnalysisNumProc()
          Method to tell the number of processors to use in ERC well analysis.
 void init()
          Method to initialize the ERC tool.
static boolean isDRCCheck()
          Method to tell whether ERC should check DRC Spacing condition.
static boolean isFactoryDRCCheck()
          Method to tell whether ERC should check DRC Spacing condition by default.
static boolean isFactoryFindWorstCaseWell()
          Method to tell whether ERC should find the contact that is farthest from the well edge, by default.
static boolean isFactoryMustConnectNWellToPower()
          Method to tell whether ERC should check that all N-Well contacts connect to power by default.
static boolean isFactoryMustConnectPWellToGround()
          Method to tell whether ERC should check that all P-Well contacts connect to ground, by default.
static boolean isFactoryParallelWellAnalysis()
          Method to tell whether ERC should do well analysis using multiple processors, by default.
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.
static boolean isParallelWellAnalysis()
          Method to tell whether ERC should do well analysis using multiple processors.
 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 setParallelWellAnalysis(boolean on)
          Method to set whether ERC should do well analysis using multiple processors.
static void setPWellCheck(int c)
          Method to set how much P-Well contact checking the ERC should do.
static void setWellAnalysisNumProc(int p)
          Method to set the number of processors to use in ERC well analysis.
 
Methods inherited from class com.sun.electric.tool.Tool
clearAnalysis, clearBackground, clearFixErrors, clearIncremental, clearOn, clearSynthesis, compareTo, findTool, getDiskSettings, getIndex, getListeners, getName, getNumTools, getProjectSettings, getSetting, 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.

getFactoryPWellCheck

public static int getFactoryPWellCheck()
Method to tell how much P-Well contact checking the ERC should do, by default. The values are:

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

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.

isFactoryMustConnectPWellToGround

public static boolean isFactoryMustConnectPWellToGround()
Method to tell whether ERC should check that all P-Well contacts connect to ground, by default.

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

isParallelWellAnalysis

public static boolean isParallelWellAnalysis()
Method to tell whether ERC should do well analysis using multiple processors. The default is "true".

Returns:
true if ERC should do well analysis using multiple processors.

setParallelWellAnalysis

public static void setParallelWellAnalysis(boolean on)
Method to set whether ERC should do well analysis using multiple processors.

Parameters:
on - true if ERC should do well analysis using multiple processors.

isFactoryParallelWellAnalysis

public static boolean isFactoryParallelWellAnalysis()
Method to tell whether ERC should do well analysis using multiple processors, by default.

Returns:
true if ERC should do well analysis using multiple processors, by default.

getWellAnalysisNumProc

public static int getWellAnalysisNumProc()
Method to tell the number of processors to use in ERC well analysis. The default is "0" (as many as there are).

Returns:
the number of processors to use in ERC well analysis.

setWellAnalysisNumProc

public static void setWellAnalysisNumProc(int p)
Method to set the number of processors to use in ERC well analysis.

Parameters:
p - the number of processors to use in ERC well analysis.

getFactoryWellAnalysisNumProc

public static int getFactoryWellAnalysisNumProc()
Method to tell the number of processors to use in ERC well analysis, by default.

Returns:
the number of processors to use in ERC well analysis, by default.

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.

getFactoryNWellCheck

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

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

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.

isFactoryMustConnectNWellToPower

public static boolean isFactoryMustConnectNWellToPower()
Method to tell whether ERC should check that all N-Well contacts connect to power by default.

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

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.

isFactoryFindWorstCaseWell

public static boolean isFactoryFindWorstCaseWell()
Method to tell whether ERC should find the contact that is farthest from the well edge, by default.

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

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.

isFactoryDRCCheck

public static boolean isFactoryDRCCheck()
Method to tell whether ERC should check DRC Spacing condition by default.

Returns:
true if ERC should check DRC Spacing condition by default.

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.

getFactoryAntennaRatio

public double getFactoryAntennaRatio(ArcProto ap)
Method to tell the default 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 default antenna ratio of this ArcProto.