oaCustomVia
模块: oapy._oa._design
导入: from oapy._oa import _design
概览
oaCustomVia 在 oapy 中可用,可通过 _design 模块访问。
本页汇总 oaCustomVia 当前在 oapy 中可用的 Python 接口。
详细说明
The oaCustomVia class implements an object that represents a custom via。 A custom via is an instance of a custom via definition which is implemented by the oaCustomViaDef object。 A custom via definition is associated with a via master which is another design that defines the custom via。 The via master may be parameterized and its parameters are specified through the use of an oaParamArray object。 A Pcell custom via can be created with a subset of the parameters defined in the superMaster。 Any parameters not specified will become default parameters which will track changes in the superMaster's parameter value。 When a parameter is specified during creation or any subsequence calls to setParam(), this parameter will not be classified as a default parameter even though its values equals to the default value in the superMaster。 A custom via may be used as an object associated with an oaRoute 。
方法总览
| 状态 | Python 调用 |
|---|---|
| ✅ | obj.getLibName(libName) |
| ✅ | obj.getCellName(cellName) |
| ✅ | obj.getViewName(viewName) |
| ✅ | obj.getLibName(ns, libName) |
| ✅ | obj.getCellName(ns, cellName) |
| ✅ | obj.getViewName(ns, viewName) |
| ✅ | obj.getHeader() |
| ✅ | obj.getParams(params) |
| ✅ | obj.setParams(params) |
| ✅ | _design.oaCustomVia.create(block, viaDef, xform, params=NULL) |
方法说明
obj.getLibName(libName)
绑定状态: 已绑定
Python 调用: obj.getLibName(libName)
This function returns the library name in the given namespace for the master design referenced by this custom via。
参数
ns: The namespace for the library name。libName: The library name for the master design。
Python 示例
from oapy._oa import _design
# assume obj is a oaCustomVia
obj.getLibName(libName)
obj.getCellName(cellName)
绑定状态: 已绑定
Python 调用: obj.getCellName(cellName)
This function returns the cell name in the given namespace for the master design referenced by this custom via。
参数
ns: The namespace for the name。cellName: The cell name for the master design。
Python 示例
from oapy._oa import _design
# assume obj is a oaCustomVia
obj.getCellName(cellName)
obj.getViewName(viewName)
绑定状态: 已绑定
Python 调用: obj.getViewName(viewName)
This function returns the view name in the given namespace for the master design referenced by this custom via。
参数
ns: The namespace for the name。viewName: The view name for the master design。
Python 示例
from oapy._oa import _design
# assume obj is a oaCustomVia
obj.getViewName(viewName)
obj.getLibName(ns, libName)
绑定状态: 已绑定
Python 调用: obj.getLibName(ns, libName)
This function returns the library name for the master design referenced by this custom via。
参数
libName: The library name for the master design。
Python 示例
from oapy._oa import _design
# assume obj is a oaCustomVia
obj.getLibName(ns, libName)
obj.getCellName(ns, cellName)
绑定状态: 已绑定
Python 调用: obj.getCellName(ns, cellName)
This function returns the cell name for the master design referenced by this custom via。
参数
cellName: The cell name for the master design。
Python 示例
from oapy._oa import _design
# assume obj is a oaCustomVia
obj.getCellName(ns, cellName)
obj.getViewName(ns, viewName)
绑定状态: 已绑定
Python 调用: obj.getViewName(ns, viewName)
This function returns the view name for the master design referenced by this custom via。
参数
viewName: The view name for the master design。
Python 示例
from oapy._oa import _design
# assume obj is a oaCustomVia
obj.getViewName(ns, viewName)
obj.getHeader()
绑定状态: 已绑定
Python 调用: obj.getHeader()
This function returns the custom via header associated with this custom via。 This call only returns the parameters that is specified during creation or calls to setParams() 。 从 oaVia 重新实现。
Python 示例
from oapy._oa import _design
# assume obj is a oaCustomVia
obj.getHeader()
obj.getParams(params)
绑定状态: 已绑定
Python 调用: obj.getParams(params)
This function fills out params with the parameters of this custom via。 Only Pcell custom vias have parameters。 This call only returns parameters that were specified during creation or through calls setParams() 。 If invoked on a custom via that is not a Pcell or if no parameter is specified for the custom via, the returned params paramArray will have zero numParams。
Python 示例
from oapy._oa import _design
# assume obj is a oaCustomVia
obj.getParams(params)
obj.setParams(params)
绑定状态: 已绑定
Python 调用: obj.setParams(params)
This function changes the values of the custom via parameters associated with this custom via。
Python 示例
from oapy._oa import _design
# assume obj is a oaCustomVia
obj.setParams(params)
_design.oaCustomVia.create(block, viaDef, xform, params=NULL)
绑定状态: 已绑定
Python 调用: _design.oaCustomVia.create(block, viaDef, xform, params=NULL)
This function creates a custom via with the specified attributes。 An exception is thrown if the via to be created uses a viaDef from a technology database that is not included in the referenced graph of technology databases for the technology database bound to the design containing the via。 An exception is thrown if the via to be created uses a customViaDef with the same name as an existing stdViaHeader。
参数
block: The block to create the custom via in。viaDef: The viaDef to reference; it specifies the default values for the related custom via parameters。xform: The transform to apply to the standard via。params: A pointer to the custom via parameters; a NULL value specifies that default parameters are to be used。
异常
oacViaDefNotInTechAssociatedWithDesign。oacParamsSuppliedForNonPCellViaMaster。oacCustomViaDefSameNameAsStdViaDef。
Python 示例
from oapy._oa import _design
_design.oaCustomVia.create(block, viaDef, xform, params=NULL)