首页 / design / oaScalarInst

oaScalarInst

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

概览

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

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

详细说明

The oaScalarInst class implements a scalar (single-bit) instance。 This is the most common kind of instance。 This class has a simple name with no index。 oaScalarInst 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 oaModScalarInst in the module domain and an oaOccScalarInst in the occurrence domain。

方法总览

状态 Python 调用
obj.getName(name)
obj.setName(name)
obj.copy(name, xform)
obj.copy(name, xform, block)
obj.getName(name)
obj.getName(ns, name)
_design.oaScalarInst.create(block, master, name, xform, params=NULL, view=oacInheritFromTopBlock, status=oacNonePlacementStatus)
_design.oaScalarInst.create(block, master, xform, params=NULL, view=oacInheritFromTopBlock, status=oacNonePlacementStatus)
_design.oaScalarInst.create(block, libName, cellName, viewName, name, xform, params=NULL, view=oacInheritFromTopBlock, status=oacNonePlacementStatus)
_design.oaScalarInst.create(block, libName, cellName, viewName, xform, params=NULL, view=oacInheritFromTopBlock, status=oacNonePlacementStatus)
_design.oaScalarInst.find(block, name)
_design.oaScalarInst.isValidName(block, name)

方法说明

obj.getName(name)

绑定状态: 已绑定

Python 调用: obj.getName(name)

This function returns the name of this scalarInst in the name argument。

Python 示例

from oapy._oa import _design

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

obj.setName(name)

绑定状态: 已绑定

Python 调用: obj.setName(name)

This function changes the name of this instance to the specified name。 Exceptions are thrown if: the new name does not imply a scalar name an instance already exists with the given name a vectorInstDef exists with the given name。

异常

  • oacInvalidHierInstName
  • oacInstNameExists
  • oacInstNameOverlapsOtherInst

Python 示例

from oapy._oa import _design

# assume obj is a oaScalarInst
obj.setName(name)

obj.copy(name, xform)

绑定状态: 已绑定

Python 调用: obj.copy(name, xform)

This function creates a copy of this instance。 The name of the new instance is specified in name。 The new copied instance is copied to the location based on the specified transform。 This function creates a copy of the instance in the specified block which may be in a different design。

参数

  • name: The name for the new instance。
  • xform: The transform for the new instance。
  • block: The oaBlock for the new instance。

Python 示例

from oapy._oa import _design

# assume obj is a oaScalarInst
obj.copy(name, xform)

obj.copy(name, xform, block)

绑定状态: 已绑定

Python 调用: obj.copy(name, xform, block)

This function creates a copy of this instance。 The name of the new instance is specified in name。 The new copied instance is copied to the location based on the specified transform。 This function creates a copy of the instance within the same block。

参数

  • name: The name for the new instance。
  • xform: The transform for the new instance。

Python 示例

from oapy._oa import _design

# assume obj is a oaScalarInst
obj.copy(name, xform, block)

obj.getName(name)

绑定状态: 已绑定

Python 调用: obj.getName(name)

Python 示例

from oapy._oa import _design

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

obj.getName(ns, name)

绑定状态: 已绑定

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

Python 示例

from oapy._oa import _design

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

_design.oaScalarInst.create(block, master, name, xform, params=NULL, view=oacInheritFromTopBlock, status=oacNonePlacementStatus)

绑定状态: 已绑定

Python 调用: _design.oaScalarInst.create(block, master, name, xform, params=NULL, view=oacInheritFromTopBlock, status=oacNonePlacementStatus)

This function creates an oaScalarInst object with the specified attributes。 The name for the instance is generated automatically by this create function, with the default name prefix I__%d, where d refers to an integer it will generate to make this name unique。

参数

  • block: The block in which to create the instance。
  • libName: The libName of the instance master。
  • cellName: The cellName of the instance master。
  • viewName: The viewName of the instance master。
  • xform: The transform for the instance。
  • params: Optional parameter array for pCell instances。
  • view: Specifies whether this instance is visible in the module domain。
  • status: Specifies the placement status of this instance。

异常

  • oacParamsSuppliedForNonPCellInstMaster

Python 示例

from oapy._oa import _design

_design.oaScalarInst.create(block, master, name, xform, params=NULL, view=oacInheritFromTopBlock, status=oacNonePlacementStatus)

_design.oaScalarInst.create(block, master, xform, params=NULL, view=oacInheritFromTopBlock, status=oacNonePlacementStatus)

绑定状态: 已绑定

Python 调用: _design.oaScalarInst.create(block, master, xform, params=NULL, view=oacInheritFromTopBlock, status=oacNonePlacementStatus)

This function creates an oaScalarInst object with the specified attributes。 The name for the instance is specified。 Exceptions are thrown if: the new name does not imply a scalar name an instance already exists with the given name a vectorInstDef exists with the given name。

参数

  • block: The block in which to create the instance。
  • libName: The libName of the instance master。
  • cellName: The cellName of the instance master。
  • viewName: The viewName of the instance master。
  • name: The instance name。
  • xform: The transform for the instance。
  • params: Optional parameter array for pCell instances。
  • view: Specifies whether this instance is visible in the module domain。
  • status: Specifies the placement status of this instance。

异常

  • oacParamsSuppliedForNonPCellInstMaster
  • oacInvalidHierInstName
  • oacInstNameExists
  • oacInstNameOverlapsOtherInst

Python 示例

from oapy._oa import _design

_design.oaScalarInst.create(block, master, xform, params=NULL, view=oacInheritFromTopBlock, status=oacNonePlacementStatus)

_design.oaScalarInst.create(block, libName, cellName, viewName, name, xform, params=NULL, view=oacInheritFromTopBlock, status=oacNonePlacementStatus)

绑定状态: 已绑定

Python 调用: _design.oaScalarInst.create(block, libName, cellName, viewName, name, xform, params=NULL, view=oacInheritFromTopBlock, status=oacNonePlacementStatus)

This function create an oaScalarInst object with the specified attributes。 This function lets you specify the master design。 A name for the new instance is automatically generated。

参数

  • block: The block in which to create the instance。
  • master: A pointer to the instance master。
  • xform: The transform for the instance。
  • params: Optional parameter array for pCell instances。
  • view: Specifies whether this instance is visible in the module domain。
  • status: Specifies the placement status of this instance。

异常

  • oacInvalidSuperMaster
  • oacParamsSuppliedForNonPCellInstMaster

Python 示例

from oapy._oa import _design

_design.oaScalarInst.create(block, libName, cellName, viewName, name, xform, params=NULL, view=oacInheritFromTopBlock, status=oacNonePlacementStatus)

_design.oaScalarInst.create(block, libName, cellName, viewName, xform, params=NULL, view=oacInheritFromTopBlock, status=oacNonePlacementStatus)

绑定状态: 已绑定

Python 调用: _design.oaScalarInst.create(block, libName, cellName, viewName, xform, params=NULL, view=oacInheritFromTopBlock, status=oacNonePlacementStatus)

This function create an oaScalarInst object with the specified attributes。 This function lets you specify the master design and name for the new instance。 Exceptions are thrown if: the new name does not imply a scalar name an instance already exists with the given name a vectorInstDef exist with the given name。

参数

  • block: The block in which to create the instance。
  • master: A pointer to the instance master。
  • name: The instance name。
  • xform: The transform for the instance。
  • params: Optional parameter array for pCell instances。
  • view: Specifies whether this instance is visible in the module domain。
  • status: Specifies the placement status of this instance。

异常

  • oacInvalidSuperMaster
  • oacParamsSuppliedForNonPCellInstMaster
  • oacInvalidHierInstName
  • oacInstNameExists
  • oacInstNameOverlapsOtherInst

Python 示例

from oapy._oa import _design

_design.oaScalarInst.create(block, libName, cellName, viewName, xform, params=NULL, view=oacInheritFromTopBlock, status=oacNonePlacementStatus)

_design.oaScalarInst.find(block, name)

绑定状态: 已绑定

Python 调用: _design.oaScalarInst.find(block, name)

This function searches the specified design for a scalarInst with the specified name。 If the name is found, the function returns the scalar instance。 Otherwise, NULL is returned。

返回

  • The oaScalarInst pointer or NULL。

Python 示例

from oapy._oa import _design

_design.oaScalarInst.find(block, name)

_design.oaScalarInst.isValidName(block, name)

绑定状态: 已绑定

Python 调用: _design.oaScalarInst.isValidName(block, name)

This function returns a boolean value that indicates if the specified name is valid for a new oaScalarInst in the specified block。

Python 示例

from oapy._oa import _design

_design.oaScalarInst.isValidName(block, name)