oaLayer
模块: oapy._oa._tech
导入: from oapy._oa import _tech
概览
oaLayer 在 oapy 中可用,可通过 _tech 模块访问。
本页汇总 oaLayer 当前在 oapy 中可用的 Python 接口。
详细说明
The oaLayer class defines a layer that is later referenced to create a layer that is ultimately referenced when creating physical design data。 An oaShape or an oaFig can be placed on a layer。 Layers are used for multiple purposes and frequently correspond to the different manufacturing layers that exist on chips。 A shape refers to a layer using a layer number -- it is not bound to a layer object。 The oaLayer class can be observed by deriving from oaObserver
方法总览
| 状态 | Python 调用 |
|---|---|
| ✅ | obj.destroy() |
| ✅ | obj.getNumber() |
| ✅ | obj.getName(name) |
| ✅ | obj.getPeakACCurrentDensity() |
| ✅ | obj.getAvgACCurrentDensity() |
| ✅ | obj.getRmsACCurrentDensity() |
| ✅ | obj.getAvgDCCurrentDensity() |
| ✅ | obj.setNumber(number) |
| ✅ | obj.setName(name) |
| ✅ | obj.setPeakACCurrentDensity(value) |
| ✅ | obj.setAvgACCurrentDensity(value) |
| ✅ | obj.setRmsACCurrentDensity(value) |
| ✅ | obj.setAvgDCCurrentDensity(value) |
| ✅ | _tech.oaLayer.find(tech, name) |
| ✅ | _tech.oaLayer.find(tech, number) |
| ✅ | _tech.oaLayer.find(tech, name, local) |
| ✅ | _tech.oaLayer.find(tech, number, local) |
方法说明
obj.destroy()
绑定状态: 已绑定
Python 调用: obj.destroy()
This function destroys this layer, removing it from the technology database。 This function unbinds any layer and lpp headers in open designs that are bound to this layer。 This function also destroys derived layers, viaDefs, viaSpecs that are dependent on this layer in the same oaTech ,。
Python 示例
from oapy._oa import _tech
# assume obj is a oaLayer
obj.destroy()
obj.getNumber()
绑定状态: 已绑定
Python 调用: obj.getNumber()
This function returns the number of the specified layer。
Python 示例
from oapy._oa import _tech
# assume obj is a oaLayer
obj.getNumber()
obj.getName(name)
绑定状态: 已绑定
Python 调用: obj.getName(name)
This function returns the name of the specified layer。
Python 示例
from oapy._oa import _tech
# assume obj is a oaLayer
obj.getName(name)
obj.getPeakACCurrentDensity()
绑定状态: 已绑定
Python 调用: obj.getPeakACCurrentDensity()
This function returns the peakACCurrentDensity value of this layer。 The returned value can be an oaFltValue , oaFlt1DTblValue , or oaFltIntFltTblValue 。 For a more detailed explanation of the usage of oaValues on this function, see Peak AC Current Density。
Python 示例
from oapy._oa import _tech
# assume obj is a oaLayer
obj.getPeakACCurrentDensity()
obj.getAvgACCurrentDensity()
绑定状态: 已绑定
Python 调用: obj.getAvgACCurrentDensity()
This function returns the avgACCurrentDensity value of this layer。 The returned value can be an oaFltValue , oaFlt1DTblValue , or oaFltIntFltTblValue 。 For a more detailed explanation of the usage of oaValues on this function, see Average AC Current Density。
Python 示例
from oapy._oa import _tech
# assume obj is a oaLayer
obj.getAvgACCurrentDensity()
obj.getRmsACCurrentDensity()
绑定状态: 已绑定
Python 调用: obj.getRmsACCurrentDensity()
This function returns the rmsACCurrentDensity value of this layer。 Valid value types are: oaFltValue , oaFlt1DTblValue , and oaFltIntFltTblValue 。 For a more detailed explanation of the usage of oaValues on this function, see RMS AC Current Density。
Python 示例
from oapy._oa import _tech
# assume obj is a oaLayer
obj.getRmsACCurrentDensity()
obj.getAvgDCCurrentDensity()
绑定状态: 已绑定
Python 调用: obj.getAvgDCCurrentDensity()
This function returns the avgDCCurrentDensity value of this layer。 The returned value can be an oaFltValue or oaFlt1DTblValue 。 For a more detailed explanation of the usage of oaValues on this function, see Average DC Current Density。
Python 示例
from oapy._oa import _tech
# assume obj is a oaLayer
obj.getAvgDCCurrentDensity()
obj.setNumber(number)
绑定状态: 已绑定
Python 调用: obj.setNumber(number)
This function sets the number of this layer to the specified value。 If the specified layer number exists, an oacLayerNumberExists exception is thrown。 Note: If this function modifies a layer number (a new number is set on a layer, which replaces a previous number set on this layer), this function unbinds the layer headers in all open designs that are bound to this layer。 If any layer headers exist in the opened designs with the new layer number, those headers are bound to this layer。 Similarly, this function will unbind any LPPHeaders that are bound to this layer in those designs, and will bind any LPPHeaders with the new layer number。 The function will destroy any derived sized layers, viaDefs, or viaSpecs in the same tech that depend on this layer。 The dependent objects are destroyed because they are bound to the layer by number (when the layer number changes, the binding is no longer valid)。
异常
oacLayerNumberExists。
Python 示例
from oapy._oa import _tech
# assume obj is a oaLayer
obj.setNumber(number)
obj.setName(name)
绑定状态: 已绑定
Python 调用: obj.setName(name)
This function sets the name of this layer to the specified value。
异常
oacLayerNameExists。
Python 示例
from oapy._oa import _tech
# assume obj is a oaLayer
obj.setName(name)
obj.setPeakACCurrentDensity(value)
绑定状态: 已绑定
Python 调用: obj.setPeakACCurrentDensity(value)
This function sets the peakACCurrentDensity of this layer to the specified value。 Valid value types are: oaFltValue , oaFlt1DTblValue , and oaFltIntFltTblValue 。 A NULL argument can be passed-in for the value parameter for a reset。 Note that the previous value, if any, will get destroyed if this function is successful。
参数
value: The peakACCurrentDensity value to set。
异常
oacValueAlreadyOwned。oacValueNotInSameDatabase。oacInvalidACCurrentDensityValue。
Python 示例
from oapy._oa import _tech
# assume obj is a oaLayer
obj.setPeakACCurrentDensity(value)
obj.setAvgACCurrentDensity(value)
绑定状态: 已绑定
Python 调用: obj.setAvgACCurrentDensity(value)
This function sets the avgACCurrentDensity of this layer to the specified value。 Valid value types are: oaFltValue , oaFlt1DTblValue , and oaFltIntFltTblValue 。 A NULL argument can be passed-in for the value parameter for a reset。 Note that the previous value, if any, will get destroyed if this function is successful。
参数
value: The avgACCurrentDensity value to set。
异常
oacValueAlreadyOwned。oacValueNotInSameDatabase。oacInvalidACCurrentDensityValue。
Python 示例
from oapy._oa import _tech
# assume obj is a oaLayer
obj.setAvgACCurrentDensity(value)
obj.setRmsACCurrentDensity(value)
绑定状态: 已绑定
Python 调用: obj.setRmsACCurrentDensity(value)
This function sets the rmsACCurrentDensity of this layer to the specified value。 Valid value types are: oaFltValue , oaFlt1DTblValue , and oaFltIntFltTblValue 。 A NULL argument can be passed-in for the value parameter for a reset。 Note that the previous value, if any, will get destroyed if this function is successful。
参数
value: The rmsACCurrentDensity value to set。
异常
oacValueAlreadyOwned。oacValueNotInSameDatabase。oacInvalidACCurrentDensityValue。
Python 示例
from oapy._oa import _tech
# assume obj is a oaLayer
obj.setRmsACCurrentDensity(value)
obj.setAvgDCCurrentDensity(value)
绑定状态: 已绑定
Python 调用: obj.setAvgDCCurrentDensity(value)
This function sets the avgDCCurrentDensity of this layer to the specified value。 Valid value types are: oaFltValue , and oaIntFltTblValue 。 A NULL argument can be passed-in for the value parameter for a reset。 Note that the previous value, if any, will get destroyed if this function is successful。
参数
value: The avgDCCurrentDensity value to set。
异常
oacValueAlreadyOwned。oacValueNotInSameDatabase。oacInvalidDCCurrentDensityValue。
Python 示例
from oapy._oa import _tech
# assume obj is a oaLayer
obj.setAvgDCCurrentDensity(value)
_tech.oaLayer.find(tech, name)
绑定状态: 已绑定
Python 调用: _tech.oaLayer.find(tech, name)
This function searches the specified technology database for a layer with the specified number。 The local argument specifies whether (if true) to look only in the specified technology database or (if false) to search the specified technology database and all of its referenced technology databases。 If the layer is found, a pointer to the layer object is returned, otherwise NULL is returned。 Refer to Incremental Technology Databases in the Using Technology Databases section of the Programmers Guide for more information about referenced tech databases。 在 oaDerivedLayer 和 oaPhysicalLayer 中重新实现。
参数
tech: Technology database to search。number: Layer number to find。local: Specifies whether (if true) to look only in the specified technology database or (if false) to look in the specified technology database and all of its referenced databases。
Python 示例
from oapy._oa import _tech
_tech.oaLayer.find(tech, name)
_tech.oaLayer.find(tech, number)
绑定状态: 已绑定
Python 调用: _tech.oaLayer.find(tech, number)
This function searches the specified technology database looking for a layer with the specified name。 The local argument specifies whether (if true) to look only in the specified technology database or (if false) to look in the specified technology database and all of its referenced databases。 If the layer is found, a pointer to the layer object is returned, otherwise NULL is returned。 Refer to Incremental Technology Databases in the Using Technology Databases section of the Programmers Guide for more information about referenced tech databases。 在 oaDerivedLayer 和 oaPhysicalLayer 中重新实现。
参数
tech: Technology database to search。name: Layer name to find。local: Specifies whether (if true) to look only in the specified technology database or (if false) to look in the specified technology database and all of its referenced databases。
Python 示例
from oapy._oa import _tech
_tech.oaLayer.find(tech, number)
_tech.oaLayer.find(tech, name, local)
绑定状态: 已绑定
Python 调用: _tech.oaLayer.find(tech, name, local)
This function searches the specified technology database for a layer with the specified number。 If the specified technology database references other technology databases, those are searched as well and the first matching layer is returned。 To find a layer in the current technology database only, refer to the find function that accepts the local argument。 If the function finds the specified layer, the function returns a pointer to the oaLayer object。 Otherwise, the function returns NULL。 Refer to Incremental Technology Databases in the Using Technology Databases section of the Programmers Guide for more information about referenced tech databases。 在 oaDerivedLayer、oaPhysicalLayer 和 oaSizedLayer 中重新实现。
参数
tech: Technology database to search。number: Layer number to find。
Python 示例
from oapy._oa import _tech
_tech.oaLayer.find(tech, name, local)
_tech.oaLayer.find(tech, number, local)
绑定状态: 已绑定
Python 调用: _tech.oaLayer.find(tech, number, local)
This function searches the specified technology database for a layer with the specified name。 If the specified technology database references other technology databases, those are searched as well and the first matching layer is returned。 To find a layer in the current technology database only, refer to the find function that accepts the local argument。 If the function finds the specified layer, the function returns a pointer to the oaLayer object。 Otherwise, the function returns NULL。 Refer to Incremental Technology Databases in the Using Technology Databases section of the Programmers Guide for more information about referenced tech databases。 在 oaDerivedLayer、oaPhysicalLayer 和 oaSizedLayer 中重新实现。
参数
tech: Technology database to search。name: Layer name to find。
Python 示例
from oapy._oa import _tech
_tech.oaLayer.find(tech, number, local)