首页 / tech / oaViaSpec

oaViaSpec

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

概览

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

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

详细说明

The oaViaSpec class and corresponding infrastructure are deprecated and superseded by the LEFSpecialRouteSpec and the oacValidRoutingVias constraints it contains。 The oaViaSpec class provides a mechanism for defining the valid vias that can be used when routing geometric nets。 A ViaSpec object is defined for a pair of layers, and potentially has two values associated with it: a default value (an oaViaDefArrayValue , which is a default array of pointers to oaViaDefs) and a lookup table value (an oaViaDef2DTblValue , which contains an oaViaDefArrayValue for each width-based key pair in the two-dimensional table)。 If the width-based lookup table is available, the user should lookup the list of valid vias using the width of layer1 and the width of layer2。 If this returns NULL or if no lookup table is available, the default value should be used。 Note that the valid list of oaViaDefs pointed to in an oaViaDefArray is ordered by priority since power-via and other geometric routing applications choose the first viaDef in the array that matches the layers, size and other requirements of the via needed by the application。 The oaViaSpec class can be observed by deriving from oaObserver

方法总览

状态 Python 调用
obj.destroy()
obj.getLayer1()
obj.getLayer2()
obj.getLayer1Num()
obj.getLayer2Num()
obj.getValue()
obj.getDefaultValue()
obj.setValue(value)
obj.setDefaultValue(value)
_tech.oaViaSpec.create(layer1, layer2, defaultValue)
_tech.oaViaSpec.create(layer1, layer2, value)
_tech.oaViaSpec.create(layer1, layer2, defaultValue, value)
_tech.oaViaSpec.create(tech, layer1, layer2, defaultValue)
_tech.oaViaSpec.create(tech, layer1, layer2, value)
_tech.oaViaSpec.create(tech, layer1, layer2, defaultValue, value)
_tech.oaViaSpec.find(layer1, layer2)
_tech.oaViaSpec.find(tech, layer1Num, layer2Num, local=false)

方法说明

obj.destroy()

绑定状态: 已绑定

Python 调用: obj.destroy()

This function destroys this viaSpec, removing it from the technology database and destroying its associated values。

Python 示例

from oapy._oa import _tech

# assume obj is a oaViaSpec
obj.destroy()

obj.getLayer1()

绑定状态: 已绑定

Python 调用: obj.getLayer1()

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

Python 示例

from oapy._oa import _tech

# assume obj is a oaViaSpec
obj.getLayer1()

obj.getLayer2()

绑定状态: 已绑定

Python 调用: obj.getLayer2()

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

Python 示例

from oapy._oa import _tech

# assume obj is a oaViaSpec
obj.getLayer2()

obj.getLayer1Num()

绑定状态: 已绑定

Python 调用: obj.getLayer1Num()

This function returns the layer1 number of this viaSpec object even if the tech database containing the layer is unbound。

Python 示例

from oapy._oa import _tech

# assume obj is a oaViaSpec
obj.getLayer1Num()

obj.getLayer2Num()

绑定状态: 已绑定

Python 调用: obj.getLayer2Num()

This function returns the layer2 number of this viaSpec object even if the tech database containing the layer is unbound。

Python 示例

from oapy._oa import _tech

# assume obj is a oaViaSpec
obj.getLayer2Num()

obj.getValue()

绑定状态: 已绑定

Python 调用: obj.getValue()

This function returns the width base lookup table associated with this viaSpec。

Python 示例

from oapy._oa import _tech

# assume obj is a oaViaSpec
obj.getValue()

obj.getDefaultValue()

绑定状态: 已绑定

Python 调用: obj.getDefaultValue()

This function returns the default list of valid viaDefs associated with this viaSpec。

Python 示例

from oapy._oa import _tech

# assume obj is a oaViaSpec
obj.getDefaultValue()

obj.setValue(value)

绑定状态: 已绑定

Python 调用: obj.setValue(value)

This function sets the width based lookup table for this viaSpec to the value specified。

参数

  • value: Value to set。

异常

  • oacViaSpecAndViaDefNotInSameTech
  • oacValueAlreadyOwned

Python 示例

from oapy._oa import _tech

# assume obj is a oaViaSpec
obj.setValue(value)

obj.setDefaultValue(value)

绑定状态: 已绑定

Python 调用: obj.setDefaultValue(value)

This function sets the default list of valid viaDefs for this viaSpec to the specified value。

参数

  • value: Value to set。

异常

  • oacViaSpecAndViaDefNotInSameTech
  • oacValueAlreadyOwned

Python 示例

from oapy._oa import _tech

# assume obj is a oaViaSpec
obj.setDefaultValue(value)

_tech.oaViaSpec.create(layer1, layer2, defaultValue)

绑定状态: 已绑定

Python 调用: _tech.oaViaSpec.create(layer1, layer2, defaultValue)

This function creates an viaSpec object with the specified attributes in the specified tech database。 layer1 and layer2 can be in different tech databases, but those databases must be in the graph of techs rooted at the tech in which the viaSpec will be created。 Refer to Incremental Technology Databases in the Using Technology Databases section of the Programmers Guide for more information about referenced tech databases。 Exceptions are thrown if the viaSpec of the given two layers already exists or if the value is already owned。

参数

  • tech: Technology database in which to create the viaSpec object。
  • layer1: First layer for creating the viaSpec。
  • layer2: Second layer for creating the viaSpec。
  • defaultValue: Default list of valid viaDefs。
  • value: Width-based viaDef lookup table。

异常

  • oacLayerNotInReferencedTech
  • oacConflictingLayerNamesInTech
  • oacConflictingLayerNumbersInTech
  • oacViaSpecAndViaDefNotInSameTech
  • oacValueAlreadyOwned
  • oacViaSpecExists

Python 示例

from oapy._oa import _tech

_tech.oaViaSpec.create(layer1, layer2, defaultValue)

_tech.oaViaSpec.create(layer1, layer2, value)

绑定状态: 已绑定

Python 调用: _tech.oaViaSpec.create(layer1, layer2, value)

This function creates a viaSpec object with the specified attributes in the specified tech database。 layer1 and layer2 can be in different tech databases, but those databases must be in the graph of techs rooted at the tech in which the viaSpec will be created。 Refer to Incremental Technology Databases in the Using Technology Databases section of the Programmers Guide for more information about referenced tech databases Exceptions are thrown if the viaSpec of the given two layers already exists or if the value is already owned。

参数

  • tech: Technology database in which to create the viaSpec object。
  • layer1: First layer for creating the viaSpec。
  • layer2: Second layer for creating the viaSpec。
  • value: Width-based viaDef lookup table。

异常

  • oacLayerNotInReferencedTech
  • oacConflictingLayerNamesInTech
  • oacConflictingLayerNumbersInTech
  • oacViaSpecAndViaDefNotInSameTech
  • oacValueAlreadyOwned
  • oacViaSpecExists

Python 示例

from oapy._oa import _tech

_tech.oaViaSpec.create(layer1, layer2, value)

_tech.oaViaSpec.create(layer1, layer2, defaultValue, value)

绑定状态: 已绑定

Python 调用: _tech.oaViaSpec.create(layer1, layer2, defaultValue, value)

This function creates a viaSpec object with the specified attributes in the specified tech database。 layer1 and layer2 can be in different tech databases, but those databases must be in the graph of techs rooted at the tech in which the viaSpec will be created。 Refer to Incremental Technology Databases in the Using Technology Databases section of the Programmers Guide for more information about referenced tech databases。 Exceptions are thrown if the viaSpec of the given two layers already exists or if the value is already owned。

参数

  • tech: Technology database in which to create the viaSpec object。
  • layer1: The first layer for creating the viaSpec。
  • layer2: The second layer for creating the viaSpec。
  • defaultValue: Default list of valid viaDefs。

异常

  • oacLayerNotInReferencedTech
  • oacConflictingLayerNamesInTech
  • oacConflictingLayerNumbersInTech
  • oacViaSpecAndViaDefNotInSameTech
  • oacValueAlreadyOwned
  • oacViaSpecExists

Python 示例

from oapy._oa import _tech

_tech.oaViaSpec.create(layer1, layer2, defaultValue, value)

_tech.oaViaSpec.create(tech, layer1, layer2, defaultValue)

绑定状态: 已绑定

Python 调用: _tech.oaViaSpec.create(tech, layer1, layer2, defaultValue)

This function creates a new viaSpec for the two layers specified。 Both layer1 and layer2 must be defined in the same tech database。 The viaSpec is created in the same tech databases as the specified layers。 The default list, and the width-based lookup table of valid viaDefs, are set to the values specified。

参数

  • layer1: First layer。
  • layer2: Second layer。
  • defaultValue: Default list of valid viaDefs。
  • value: Width based viaDef lookup table。

异常

  • oacLayerNotInReferencedTech
  • oacConflictingLayerNamesInTech
  • oacConflictingLayerNumbersInTech
  • oacLayer1Layer2NotInSameTech
  • oacViaSpecAndViaDefNotInSameTech
  • oacValueAlreadyOwned
  • oacViaSpecExists

Python 示例

from oapy._oa import _tech

_tech.oaViaSpec.create(tech, layer1, layer2, defaultValue)

_tech.oaViaSpec.create(tech, layer1, layer2, value)

绑定状态: 已绑定

Python 调用: _tech.oaViaSpec.create(tech, layer1, layer2, value)

This function creates a new viaSpec for the two layers specified。 Both layer1 and layer2 must be defined in the same tech database。 The viaSpec is created in the same tech databases as the specified layers。 The width-based lookup table of valid viaDefs is set to the value specified。

参数

  • layer1: First layer。
  • layer2: Second layer。
  • value: Width-based viaDef lookup table。

异常

  • oacLayerNotInReferencedTech
  • oacConflictingLayerNamesInTech
  • oacConflictingLayerNumbersInTech
  • oacLayer1Layer2NotInSameTech
  • oacViaSpecAndViaDefNotInSameTech
  • oacValueAlreadyOwned
  • oacViaSpecExists

Python 示例

from oapy._oa import _tech

_tech.oaViaSpec.create(tech, layer1, layer2, value)

_tech.oaViaSpec.create(tech, layer1, layer2, defaultValue, value)

绑定状态: 已绑定

Python 调用: _tech.oaViaSpec.create(tech, layer1, layer2, defaultValue, value)

This function creates a new viaSpec for the two layers specified。 Both layer1 and layer2 must be defined in the same tech database。 The viaSpec is created in the same tech databases as the specified layers。 The default list of valid viaDefs is set to the value specified。

参数

  • layer1: First layer。
  • layer2: Second layer。
  • defaultValue: Default list of valid viaDefs。

异常

  • oacLayerNotInReferencedTech
  • oacConflictingLayerNamesInTech
  • oacConflictingLayerNumbersInTech
  • oacLayer1Layer2NotInSameTech
  • oacViaSpecAndViaDefNotInSameTech
  • oacValueAlreadyOwned
  • oacViaSpecExists

Python 示例

from oapy._oa import _tech

_tech.oaViaSpec.create(tech, layer1, layer2, defaultValue, value)

_tech.oaViaSpec.find(layer1, layer2)

绑定状态: 已绑定

Python 调用: _tech.oaViaSpec.find(layer1, layer2)

This function searches the specified technology database looking for an oaViaSpec with the specified layer1 and layer2 numbers。 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 a viaSpec is found, a pointer to the viaSpec 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。
  • layer1Num: The layer number of the first layer。
  • layer2Num: The layer number of the second layer。
  • 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.oaViaSpec.find(layer1, layer2)

_tech.oaViaSpec.find(tech, layer1Num, layer2Num, local=false)

绑定状态: 已绑定

Python 调用: _tech.oaViaSpec.find(tech, layer1Num, layer2Num, local=false)

This function searches the technology database associated with the given layers looking for an oaViaSpec with those layers。 For this variant of the find function, the given layers must be in the same technology database, and the oaViaSpec lookup is local to that database。 If a viaSpec is found, a pointer to the viaSpec is returned, otherwise NULL is returned。

参数

  • layer1: First layer。
  • layer2: Second layer。

异常

  • oacLayer1Layer2NotInSameTech

Python 示例

from oapy._oa import _tech

_tech.oaViaSpec.find(tech, layer1Num, layer2Num, local=false)