首页 / tech / oaViaDef

oaViaDef

模块: oapy._oa._tech 导入: from oapy._oa import _tech

概览

oaViaDefoapy 中可用,可通过 _tech 模块访问。

本页汇总 oaViaDef 当前在 oapy 中可用的 Python 接口。

详细说明

The oaViaDef class implements an oaViaDef object。 An oaViaDef object defines a via design in a technology database。 A via in a route must point to an oaViaDef object in the technology database associated with the design where the route resides。 The oaViaDef class can be observed by deriving from oaObserver 。 For information about creating oaViaDef objects and using them in the creation of vias, refer to Representing Vias in OpenAccess in the Programmers Guide。

方法总览

状态 Python 调用
obj.destroy()
obj.getName(name)
obj.getLayers(layer1, layer2)
obj.getLayer1()
obj.getLayer2()
obj.getLayer1Num()
obj.getLayer2Num()
obj.getResistancePerCut()
obj.hasLayer(layerNum)
obj.setResistancePerCut(resPerCut)
obj.getUsedIn()
_tech.oaViaDef.find(tech, name)
_tech.oaViaDef.find(tech, name, local)

方法说明

obj.destroy()

绑定状态: 已绑定

Python 调用: obj.destroy()

This function destroys this viaDef, removing it from the technology database。

Python 示例

from oapy._oa import _tech

# assume obj is a oaViaDef
obj.destroy()

obj.getName(name)

绑定状态: 已绑定

Python 调用: obj.getName(name)

This function fills out name with the name of this viaDef。

Python 示例

from oapy._oa import _tech

# assume obj is a oaViaDef
obj.getName(name)

obj.getLayers(layer1, layer2)

绑定状态: 已绑定

Python 调用: obj.getLayers(layer1, layer2)

This function fills out layer1 and layer2 with the physical layers associated with this viaDef object。

Python 示例

from oapy._oa import _tech

# assume obj is a oaViaDef
obj.getLayers(layer1, layer2)

obj.getLayer1()

绑定状态: 已绑定

Python 调用: obj.getLayer1()

This function returns the first layer associated with this viaDef。 To get the layer1 number associated with this viaDef even if the tech database containing the layer is unbound, refer to getLayer1Num 。

Python 示例

from oapy._oa import _tech

# assume obj is a oaViaDef
obj.getLayer1()

obj.getLayer2()

绑定状态: 已绑定

Python 调用: obj.getLayer2()

This function returns the second layer associated with this viaDef。 To get the layer2 number associated with this viaDef even if the tech database containing the layer is unbound, refer to getLayer2Num 。

Python 示例

from oapy._oa import _tech

# assume obj is a oaViaDef
obj.getLayer2()

obj.getLayer1Num()

绑定状态: 已绑定

Python 调用: obj.getLayer1Num()

This function returns the layer1 number associated with this viaDef, even if the tech database containing the layer is unbound。

Python 示例

from oapy._oa import _tech

# assume obj is a oaViaDef
obj.getLayer1Num()

obj.getLayer2Num()

绑定状态: 已绑定

Python 调用: obj.getLayer2Num()

This function returns the layer2 number associated with this viaDef, even if the tech database containing the layer is unbound。

Python 示例

from oapy._oa import _tech

# assume obj is a oaViaDef
obj.getLayer2Num()

obj.getResistancePerCut()

绑定状态: 已绑定

Python 调用: obj.getResistancePerCut()

This function returns the resistancePerCut attribute on this viaDef。 The oaFloat return value specifies resistance in Ohms。

Python 示例

from oapy._oa import _tech

# assume obj is a oaViaDef
obj.getResistancePerCut()

obj.hasLayer(layerNum)

绑定状态: 已绑定

Python 调用: obj.hasLayer(layerNum)

This function returns a boolean value that indicates if this viaDef is associated with the layer of the specified layer number。

Python 示例

from oapy._oa import _tech

# assume obj is a oaViaDef
obj.hasLayer(layerNum)

obj.setResistancePerCut(resPerCut)

绑定状态: 已绑定

Python 调用: obj.setResistancePerCut(resPerCut)

This function sets the resistancePerCut attribute on this viaDef。 The resPerCut value should be specified in Ohms。

Python 示例

from oapy._oa import _tech

# assume obj is a oaViaDef
obj.setResistancePerCut(resPerCut)

obj.getUsedIn()

绑定状态: 已绑定

Python 调用: obj.getUsedIn()

This function returns a collection of viaHeaders in all open designs that refer to this viaDef object。

Python 示例

from oapy._oa import _tech

# assume obj is a oaViaDef
obj.getUsedIn()

_tech.oaViaDef.find(tech, name)

绑定状态: 已绑定

Python 调用: _tech.oaViaDef.find(tech, name)

This function searches for a viaDef 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 found, the viaDef 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。

参数

  • tech: The technology database to search。
  • name: Name of the viaDef 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.oaViaDef.find(tech, name)

_tech.oaViaDef.find(tech, name, local)

绑定状态: 已绑定

Python 调用: _tech.oaViaDef.find(tech, name, local)

This function searches the technology database for a viaDef with the specified name。 If the specified technology database references other technology databases, those are searched as well and the first matching viaDef is returned。 To find a viaDef in the current technology database only, refer to the find overload that accepts the local argument。 This function returns the viaDef, if found。 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。

参数

  • tech: Tech database to search。
  • name: Name of the viaDef to find。

Python 示例

from oapy._oa import _tech

_tech.oaViaDef.find(tech, name, local)