oaArrayInst
模块: oapy._oa._design
导入: from oapy._oa import _design
概览
oaArrayInst 在 oapy 中可用,可通过 _design 模块访问。
本页汇总 oaArrayInst 当前在 oapy 中可用的 Python 接口。
详细说明
The oaArrayInst class implements an oaArrayInst database object that represents an array of instances of one master design。 Every cell in the array has the same orientation。 The oaArrayInst object is primarily used in the physical layout design -- for example, it can be used to represent an array of memory cells。 Note that oaArrayInsts do not provide any mechanism for specifying the connectivity between elements of the array。 They act just like oaScalarInsts in that there is a single copy of their terminals, and the width of the nets connecting to them is unaffected by the array dimensions。
方法总览
| 状态 | Python 调用 |
|---|---|
| ✅ | obj.getDX() |
| ✅ | obj.getDY() |
| ✅ | obj.getNumRows() |
| ✅ | obj.getNumCols() |
| ✅ | obj.getName(name) |
| ✅ | obj.getName(ns, name) |
| ✅ | obj.getBBox(row, col, bBox) |
| ✅ | obj.getTransform(row, col, xform) |
| ✅ | obj.getOverlap(region, xMin, xMax, yMin, yMax) |
| ✅ | obj.setDX(dX) |
| ✅ | obj.setDY(dY) |
| ✅ | obj.setNumRows(numRows) |
| ✅ | obj.setNumCols(numCols) |
| ✅ | obj.setName(name) |
| ✅ | obj.copy(name, xform) |
| ✅ | obj.copy(name, xform, block) |
| ✅ | _design.oaArrayInst.create(block, master, name, xform, dX, dY, numRows, numCols, params=NULL, status=oacNonePlacementStatus) |
| ✅ | _design.oaArrayInst.create(block, master, xform, dX, dY, numRows, numCols, params=NULL, status=oacNonePlacementStatus) |
| ✅ | _design.oaArrayInst.create(block, libName, cellName, viewName, name, xform, dX, dY, numRows, numCols, params=NULL, status=oacNonePlacementStatus) |
| ✅ | _design.oaArrayInst.create(block, libName, cellName, viewName, xform, dX, dY, numRows, numCols, params=NULL, status=oacNonePlacementStatus) |
| ✅ | _design.oaArrayInst.find(block, name) |
| ✅ | _design.oaArrayInst.isValidName(block, name) |
方法说明
obj.getDX()
绑定状态: 已绑定
Python 调用: obj.getDX()
This function returns the spacing between columns of this arrayInst。
Python 示例
from oapy._oa import _design
# assume obj is a oaArrayInst
obj.getDX()
obj.getDY()
绑定状态: 已绑定
Python 调用: obj.getDY()
This function returns the spacing between rows of this arrayInst。
Python 示例
from oapy._oa import _design
# assume obj is a oaArrayInst
obj.getDY()
obj.getNumRows()
绑定状态: 已绑定
Python 调用: obj.getNumRows()
This function returns the number of rows in this arrayInst。
Python 示例
from oapy._oa import _design
# assume obj is a oaArrayInst
obj.getNumRows()
obj.getNumCols()
绑定状态: 已绑定
Python 调用: obj.getNumCols()
This function returns the number of columns in this arrayInst。
Python 示例
from oapy._oa import _design
# assume obj is a oaArrayInst
obj.getNumCols()
obj.getName(name)
绑定状态: 已绑定
Python 调用: obj.getName(name)
This function returns the name of this arrayInst in the specified nameSpace。 从 oaInst 重新实现。
Python 示例
from oapy._oa import _design
# assume obj is a oaArrayInst
obj.getName(name)
obj.getName(ns, name)
绑定状态: 已绑定
Python 调用: obj.getName(ns, name)
This function returns the name of this arrayInst。
Python 示例
from oapy._oa import _design
# assume obj is a oaArrayInst
obj.getName(ns, name)
obj.getBBox(row, col, bBox)
绑定状态: 已绑定
Python 调用: obj.getBBox(row, col, bBox)
This function fills out bBox with the effective bounding box of the specified element of this arrayInst。
Python 示例
from oapy._oa import _design
# assume obj is a oaArrayInst
obj.getBBox(row, col, bBox)
obj.getTransform(row, col, xform)
绑定状态: 已绑定
Python 调用: obj.getTransform(row, col, xform)
This function fills out xform with the effective transform of the specified element of the arrayInst represented by this arrayInstData。
Python 示例
from oapy._oa import _design
# assume obj is a oaArrayInst
obj.getTransform(row, col, xform)
obj.getOverlap(region, xMin, xMax, yMin, yMax)
绑定状态: 已绑定
Python 调用: obj.getOverlap(region, xMin, xMax, yMin, yMax)
This function calculates the elements of this arrayInst that are overlapped, either fully or partially, by the specified region。 If region does not overlap any elements, this function fills out xMin, xMax, yMin and yMax with values such as xMin > xMax and yMin > yMax。
Python 示例
from oapy._oa import _design
# assume obj is a oaArrayInst
obj.getOverlap(region, xMin, xMax, yMin, yMax)
obj.setDX(dX)
绑定状态: 已绑定
Python 调用: obj.setDX(dX)
This function sets the offset spacing between columns of this arrayInst。
Python 示例
from oapy._oa import _design
# assume obj is a oaArrayInst
obj.setDX(dX)
obj.setDY(dY)
绑定状态: 已绑定
Python 调用: obj.setDY(dY)
This function sets the offset spacing between rows of this arrayInst。
Python 示例
from oapy._oa import _design
# assume obj is a oaArrayInst
obj.setDY(dY)
obj.setNumRows(numRows)
绑定状态: 已绑定
Python 调用: obj.setNumRows(numRows)
This function sets the number of rows in this arrayInst。
异常
oacInvalidArrayInstRows。
Python 示例
from oapy._oa import _design
# assume obj is a oaArrayInst
obj.setNumRows(numRows)
obj.setNumCols(numCols)
绑定状态: 已绑定
Python 调用: obj.setNumCols(numCols)
This function sets the number of columns in this arrayInst。
异常
oacInvalidArrayInstCols。
Python 示例
from oapy._oa import _design
# assume obj is a oaArrayInst
obj.setNumCols(numCols)
obj.setName(name)
绑定状态: 已绑定
Python 调用: obj.setName(name)
This function changes the name of this instance to the specified name。 Exceptions are thrown if: the specified name does not imply a scalar name an instance already exists with the specified name a vectorInstDef exists with the specified name。
异常
oacInvalidHierInstName。oacInstNameExists。oacInstNameOverlapsOtherInst。
Python 示例
from oapy._oa import _design
# assume obj is a oaArrayInst
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 oaArrayInst
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 oaArrayInst
obj.copy(name, xform, block)
_design.oaArrayInst.create(block, master, name, xform, dX, dY, numRows, numCols, params=NULL, status=oacNonePlacementStatus)
绑定状态: 已绑定
Python 调用: _design.oaArrayInst.create(block, master, name, xform, dX, dY, numRows, numCols, params=NULL, status=oacNonePlacementStatus)
) This function creates an oaArrayInst object with the specified attributes, automatically assigning a unique name。 The libName, cellName, and viewName arguments for the master are required。 The master does not need to be open to create instances。
参数
block: The block in which to place the instance。libName: The name of an existing library。cellName: The name of an existing cell。viewName: The name of an existing design。xform: An instance transform that applies to the entire array。dX: The offset spacing between instance placements in the X direction。dY: The offset spacing between instance placements in the Y direction。numRows: The number of rows in the Y direction。numCols: The number of columns in the X direction。params: Optionally makes an array of parameterized instances。status: Specifies the placement status of this instance。
返回
- oaArrayInst* if the instance was created。
异常
oacInvalidArrayInstRows。oacInvalidArrayInstCols。oacParamsSuppliedForNonPCellInstMaster。
Python 示例
from oapy._oa import _design
_design.oaArrayInst.create(block, master, name, xform, dX, dY, numRows, numCols, params=NULL, status=oacNonePlacementStatus)
_design.oaArrayInst.create(block, master, xform, dX, dY, numRows, numCols, params=NULL, status=oacNonePlacementStatus)
绑定状态: 已绑定
Python 调用: _design.oaArrayInst.create(block, master, xform, dX, dY, numRows, numCols, params=NULL, status=oacNonePlacementStatus)
This function creates an oaArrayInst object with the specified attributes and a unique name that you specify。 The libName, cellName, and viewName arguments for the master are required。 The master does not need to be open to create instances。 Exceptions are thrown if: the specified name does not imply a scalar name an instance already exists with the specified name a vectorInstDef exists with the specified name。
参数
block: The block in which to place the instance。libName: The name of an existing library。cellName: The name of an existing cell。viewName: The name of an existing design。name: A unique name to give to the instance。xform: An instance transform that applies to the entire array。dX: The offset spacing between instance placements in the X direction。dY: The offset spacing between instance placements in the Y direction。numRows: The number of rows in the Y direction。numCols: The number of columns in the X direction。params: Optionally makes an array of parameterized instances。status: Specifies the placement status of this instance。
返回
- oaArrayInst* if the instance was created。
异常
oacInvalidArrayInstRows。oacInvalidArrayInstCols。oacParamsSuppliedForNonPCellInstMaster。oacInvalidHierInstName。oacInstNameExists。oacInstNameOverlapsOtherInst。
Python 示例
from oapy._oa import _design
_design.oaArrayInst.create(block, master, xform, dX, dY, numRows, numCols, params=NULL, status=oacNonePlacementStatus)
_design.oaArrayInst.create(block, libName, cellName, viewName, name, xform, dX, dY, numRows, numCols, params=NULL, status=oacNonePlacementStatus)
绑定状态: 已绑定
Python 调用: _design.oaArrayInst.create(block, libName, cellName, viewName, name, xform, dX, dY, numRows, numCols, params=NULL, status=oacNonePlacementStatus)
This function creates an oaArrayInst object with the specified attributes, automatically assigning a unique name。
参数
block: The block in which to place the instance。master: The design used as the master。xform: An instance transform that applies to the entire array。dX: The offset spacing between instance placements in the X direction。dY: The offset spacing between instance placements in the Y direction。numRows: The number of rows in the Y direction。numCols: The number of columns in the X direction。params: Optionally makes an array of parameterized instances。status: Specifies the placement status of this instance。
返回
- oaArrayInst* if the instance was created。
异常
oacInvalidArrayInstRows。oacInvalidArrayInstCols。oacInvalidSuperMaster。oacParamsSuppliedForNonPCellInstMaster。
Python 示例
from oapy._oa import _design
_design.oaArrayInst.create(block, libName, cellName, viewName, name, xform, dX, dY, numRows, numCols, params=NULL, status=oacNonePlacementStatus)
_design.oaArrayInst.create(block, libName, cellName, viewName, xform, dX, dY, numRows, numCols, params=NULL, status=oacNonePlacementStatus)
绑定状态: 已绑定
Python 调用: _design.oaArrayInst.create(block, libName, cellName, viewName, xform, dX, dY, numRows, numCols, params=NULL, status=oacNonePlacementStatus)
This function creates an oaArrayInst object with the specified attributes, with a unique name you specify。 Exceptions are thrown if: the specified name does not imply a scalar name an instance already exists with the specified name a vectorInstDef exists with the specified name。
参数
block: The block in which to place the instance。master: The design used as the master。name: A unique name to give to the instance。xform: An instance transform that applies to the entire array。dX: The offset spacing between instance placements in the X direction。dY: The offset spacing between instance placements in the Y direction。numRows: The number of rows in the Y direction。numCols: The number of columns in the X direction。params: Optionally makes an array of parameterized instances。status: Specifies the placement status of this instance。
返回
- oaArrayInst* if the instance was created。
异常
oacInvalidArrayInstRows。oacInvalidArrayInstCols。oacInvalidSuperMaster。oacParamsSuppliedForNonPCellInstMaster。oacInvalidHierInstName。oacInstNameExists。oacInstNameOverlapsOtherInst。
Python 示例
from oapy._oa import _design
_design.oaArrayInst.create(block, libName, cellName, viewName, xform, dX, dY, numRows, numCols, params=NULL, status=oacNonePlacementStatus)
_design.oaArrayInst.find(block, name)
绑定状态: 已绑定
Python 调用: _design.oaArrayInst.find(block, name)
This function searches the specified block for an arrayInst with the specified name。 If found, the arrayInst is returned。 Otherwise, NULL is returned。 A NULL return does not guarantee the arrayInst name is not used by another type of instance。
参数
block: The block to search。name: The name to find。
返回
- oaArrayInst* if the instance was found。
Python 示例
from oapy._oa import _design
_design.oaArrayInst.find(block, name)
_design.oaArrayInst.isValidName(block, name)
绑定状态: 已绑定
Python 调用: _design.oaArrayInst.isValidName(block, name)
This function returns a boolean value that indicates if the specified name is valid for a new oaArrayInst in the specified block。
Python 示例
from oapy._oa import _design
_design.oaArrayInst.isValidName(block, name)