首页 / design / oaModVectorInstBit

oaModVectorInstBit

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

概览

oaModVectorInstBitoapy 中可用,可通过 _design 模块访问。

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

详细说明

The oaModVectorInstBit class implements a single bit of a vectorInst in a module。 VectorInstBits are automatically created and destroyed as vectorInsts are created or destroyed。 Implicitly-created vectorInstBits cannot be modified to insure consistency with its defining vectorInst。 Explicitly-created vectorInstBits define a unique bit of a vectorInst definition since the bits of a vectorInst are not allowed to overlap with other vectorInsts。 oaVectorInstBit objects are always in the block domain。 They may be physical-only instances that are only in the block hierarchy, or they can be cross-domain instances that directly correspond to an oaModVectorInstBit in the module domain and an oaOccVectorInstBit in the occurrence domain。

方法总览

状态 Python 调用
obj.getDef()
obj.getBitIndex()
obj.getName(name)
obj.setName(baseName, bitIndex)
obj.getName(name)
obj.getName(ns, name)
_design.oaModVectorInstBit.create(module, master, baseName, bitIndex, params=NULL)
_design.oaModVectorInstBit.create(module, libName, cellName, viewName, baseName, bitIndex, params=NULL)
_design.oaModVectorInstBit.find(module, baseName, bitIndex)
_design.oaModVectorInstBit.isValidName(module, baseName, bitIndex)

方法说明

obj.getDef()

绑定状态: 已绑定

Python 调用: obj.getDef()

此函数返回指向 this vectorInstBit 的 vectorInstDef 的指针。

Python 示例

from oapy._oa import _design

# assume obj is a oaModVectorInstBit
obj.getDef()

obj.getBitIndex()

绑定状态: 已绑定

Python 调用: obj.getBitIndex()

This function returns the bitIndex of this vectorInstBit。

Python 示例

from oapy._oa import _design

# assume obj is a oaModVectorInstBit
obj.getBitIndex()

obj.getName(name)

绑定状态: 已绑定

Python 调用: obj.getName(name)

This function returns the vectorName of this modVectorInstBit。

参数

  • name: The name of the modVectorInstBit to return。

Python 示例

from oapy._oa import _design

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

obj.setName(baseName, bitIndex)

绑定状态: 已绑定

Python 调用: obj.setName(baseName, bitIndex)

This function changes the name of this vectorInstBit。 An exception is thrown if the new baseName is the name of an existing scalar or array instance or if a vectorInstBit already exists with the new name。 An exception is also thrown if the new name would overlap with existing vectorInsts。

参数

  • baseName: The new base name for this instance。
  • bitIndex: The new bit index for this instance。

异常

  • oacCannotSetNameOfImplicitInst

Python 示例

from oapy._oa import _design

# assume obj is a oaModVectorInstBit
obj.setName(baseName, bitIndex)

obj.getName(name)

绑定状态: 已绑定

Python 调用: obj.getName(name)

Python 示例

from oapy._oa import _design

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

obj.getName(ns, name)

绑定状态: 已绑定

Python 调用: obj.getName(ns, name)

Python 示例

from oapy._oa import _design

# assume obj is a oaModVectorInstBit
obj.getName(ns, name)

_design.oaModVectorInstBit.create(module, master, baseName, bitIndex, params=NULL)

绑定状态: 已绑定

Python 调用: _design.oaModVectorInstBit.create(module, master, baseName, bitIndex, params=NULL)

This function creates an oaModVectorInstBit object with the specified attributes。 The given baseName and bitIndex are checked if they are legal and do not specify an instance that already exists。 This version creates an instance of the master implied by the specified library, cell, and view names (the master need not be opened to create instances of it)。 An optional array of parameters may be specified in the case where the master is a pCell。

参数

  • module: The module in which to create the instance。
  • libName: The library name of the instance master。
  • cellName: The cell name of the instance master。
  • viewName: The view name of the instance master。
  • baseName: The base name for the instance。
  • bitIndex: The bit index for the instance。
  • params: Optional parameter array for pCell instances。

异常

  • oacInvalidHierInstName
  • oacVectorInstBitNameMatchesAutoName
  • oacInstNameExists
  • oacInstNameOverlapsOtherInst

Python 示例

from oapy._oa import _design

_design.oaModVectorInstBit.create(module, master, baseName, bitIndex, params=NULL)

_design.oaModVectorInstBit.create(module, libName, cellName, viewName, baseName, bitIndex, params=NULL)

绑定状态: 已绑定

Python 调用: _design.oaModVectorInstBit.create(module, libName, cellName, viewName, baseName, bitIndex, params=NULL)

This function creates an oaModVectorInstBit object with the specified attributes。 The given baseName and bitIndex are checked if they are legal and do not specify an instance that already exists。 This version creates an instance of the specified master design。 An optional array of parameters may be specified in the case where the master is a pCell。

参数

  • module: The module in which to create the instance。
  • master: The master of the design to instantiate。
  • baseName: The base name for the instance。
  • bitIndex: The bit index for the instance。
  • params: Optional parameter array for pCell instances。

异常

  • oacInvalidSuperMaster
  • oacInvalidHierInstName
  • oacVectorInstBitNameMatchesAutoName
  • oacInstNameExists
  • oacInstNameOverlapsOtherInst

Python 示例

from oapy._oa import _design

_design.oaModVectorInstBit.create(module, libName, cellName, viewName, baseName, bitIndex, params=NULL)

_design.oaModVectorInstBit.find(module, baseName, bitIndex)

绑定状态: 已绑定

Python 调用: _design.oaModVectorInstBit.find(module, baseName, bitIndex)

This function searches the specified module looking for a vectorInstBit with the specified baseName and bitIndex。 If the instance is found, it is returned; otherwise, NULL is returned。

参数

  • module: The module to search for the instance。
  • baseName: The base name of the instance to find。
  • bitIndex: The bit index of the instance to find。

Python 示例

from oapy._oa import _design

_design.oaModVectorInstBit.find(module, baseName, bitIndex)

_design.oaModVectorInstBit.isValidName(module, baseName, bitIndex)

绑定状态: 已绑定

Python 调用: _design.oaModVectorInstBit.isValidName(module, baseName, bitIndex)

This function returns a boolean indicating whether the specified baseName and bitIndex would be valid for an oaModVectorInstBit in the specified module。

参数

  • module: The module to check the name against。
  • baseName: The base name to be checked。
  • bitIndex: The bit index to be checked。

Python 示例

from oapy._oa import _design

_design.oaModVectorInstBit.isValidName(module, baseName, bitIndex)