首页 / design / oaSnapBoundary

oaSnapBoundary

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

概览

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

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

详细说明

The oaSnapBoundary class is used for the designs that implement standard cells。 An oaSnapBoundary must be a rectangle。 Placement tools use the oaSnapBoundary to place instances of the design in rows, abutting the oaSnapBoundary edges and aligning the oaSnapBoundary corners。 oaSnapBoundaries are optional adjuncts to oaPRBoundaries。 If the oaPRBoundary is rectangular then it will suffice for these purposes and no oaSnapBoundary need be created。 oaSnapBoundaries are needed for cells with rectilinear (but non-rectangular) oaPRBoundaries。

方法总览

状态 Python 调用
_design.oaSnapBoundary.create(block, bBox, edgeNames=NULL)
_design.oaSnapBoundary.find(block)
_design.oaSnapBoundary.create(block, bBox, edgeNames)

方法说明

_design.oaSnapBoundary.create(block, bBox, edgeNames=NULL)

绑定状态: 已绑定

Python 调用: _design.oaSnapBoundary.create(block, bBox, edgeNames=NULL)

This function creates a new snap boundary object in the specified design with the specified attributes。 Note that the number of edge names must be equal to the number of points or an oacBoundaryInvalidEdgeNames exception is thrown。 Note: The order of the points actually set on the oaSnapBoundary is not guaranteed to be the same as the order of points inbBox passed to the create() function。 Consequently, the order of points returned by a subsequent oaSnapBoundary::getPoints() may be different from the order of points specified in bBox。

参数

  • block: The block in which to create the snap boundary。
  • bBox: The bounding box of the snap boundary。
  • edgeNames: The boundary edge names; If you supply an empty array, the edges are automatically named using the form EDGE_ n, where n starts at zero and increments by one。

异常

  • oacBoundaryHasExtraPoints
  • oacSnapBoundaryExists
  • oacSnapBoundaryNotRectangle
  • oacBoundaryInvalidEdgeNames

Python 示例

from oapy._oa import _design

_design.oaSnapBoundary.create(block, bBox, edgeNames=NULL)

_design.oaSnapBoundary.find(block)

绑定状态: 已绑定

Python 调用: _design.oaSnapBoundary.find(block)

This function searches the specified block for a snap boundary。 If found, the boundary is returned。 Otherwise, NULL is returned。

Python 示例

from oapy._oa import _design

_design.oaSnapBoundary.find(block)

_design.oaSnapBoundary.create(block, bBox, edgeNames)

绑定状态: 已绑定

Python 调用: _design.oaSnapBoundary.create(block, bBox, edgeNames)

This function is deprecated。 Refer to the create function that takes a reference to an oaStringArray for edgeNames。 This function creates a new snap boundary object in the specified design with the specified attributes。 If the boundary edgeNames are not supplied, the edges are automatically named, using the form EDGE_n, where n starts at zero and increments by one for each edge。 Note that the number of edge names is assumed to be equal to the number of points。 Note: The order of the points actually set on the oaSnapBoundary is not guaranteed to be the same as the order of points inbBox passed to the create() function。 Consequently, the order of points returned by a subsequent oaSnapBoundary::getPoints() may be different from the order of points specified in bBox。

参数

  • block: The block in which to create the snap boundary。
  • bBox: The bounding box of the snap boundary。
  • edgeNames: The boundary edge names; if omitted, the edges are automatically named, using the form EDGE_ n, where n starts at zero and increments by one。

异常

  • oacBoundaryHasExtraPoints
  • oacSnapBoundaryExists
  • oacSnapBoundaryNotRectangle

Python 示例

from oapy._oa import _design

_design.oaSnapBoundary.create(block, bBox, edgeNames)