首页 / design / oaBlockage

oaBlockage

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

概览

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

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

详细说明

The oaBlockage class of objects indicate areas in a design where certain object types cannot be located。 The type of objects to exclude from these areas depends on the blockage type, as indicated by oaBlockageType 。 Note: LayerBlockages (both oaLayerBlockage and oaLayerHalo ) will never have a blockageType of oacPlacementBlockageType。 AreaBlockages (both oaAreaBlockage and oaAreaHalo ) always will be of type oacPlacementBlockageType, and this type is automatically set on oaAreaBlockages。 For additional information on blockage types, see oaBlockageType 。 All blockage types may be associated with an owner。 The type of owner allowed depends on the type blockage 。 If a blockage has an associated owner, it will be moved and destroyed along with its owner。 The optional pushdown attribute indicates that this blockage has been pushed down from a higher level in the hierarchy。 This is used in hierarchical designs where the blockage represents geometry that is in a parent block on top of a lower level block。 The screen, placement, and fill blockage types can have an optional density value, indicating the percentage of the area specified by the blockage that can be used by nets or fills respectively。 Blockages are not enforced by the database。 The restrictions they specify are implemented by place and route tools。 The oaBlockage class can be observed by deriving from oaObserver

方法总览

状态 Python 调用
obj.getBlockageType()
obj.getOwner()
obj.getNumPoints()
obj.getPoints(points)
obj.getDensity()
obj.setOwner(owner)
obj.setPushedDown(flag)
obj.setDensity(density)
obj.isPushedDown()

方法说明

obj.getBlockageType()

绑定状态: 已绑定

Python 调用: obj.getBlockageType()

This function returns the type of this blockage。 The type determines which kinds of objects are being blocked。

Python 示例

from oapy._oa import _design

# assume obj is a oaBlockage
obj.getBlockageType()

obj.getOwner()

绑定状态: 已绑定

Python 调用: obj.getOwner()

This function returns the owner of this blockage。

Python 示例

from oapy._oa import _design

# assume obj is a oaBlockage
obj.getOwner()

obj.getNumPoints()

绑定状态: 已绑定

Python 调用: obj.getNumPoints()

This function returns the number of points in the point array for this blockage。

Python 示例

from oapy._oa import _design

# assume obj is a oaBlockage
obj.getNumPoints()

obj.getPoints(points)

绑定状态: 已绑定

Python 调用: obj.getPoints(points)

This function fills out points with the points of this blockage。 For halo blockages, the point array is determined by applying each offset to all edges of the corresponding type defined by the pointArray for the owner。 For a rectilinear boundary there may be multiple such edges。 The left and bottom offsets are subtracted, while the right and bottom offsets are added。 When the owner of a halo blockage is an instance, the points in the blockage are calculated from the prBoundary of the instance's master。 The instance's transform is included in the points for the halo blockage。 When the owner of a halo blockage is a prBoundary, the blockage represents a master-based blockage that is the default for all instances of the master。 Master-based blockages are defined within the design for the master, but are used in the design that instantiates the master。 The application is responsible for applying the instance's transform to a master-based blockage。 For area blockages, the points correspond directly to the point array specified for the blockage。

参数

  • points: The point array to fill out。

Python 示例

from oapy._oa import _design

# assume obj is a oaBlockage
obj.getPoints(points)

obj.getDensity()

绑定状态: 已绑定

Python 调用: obj.getDensity()

This function returns the value of the density attribute for this blockage as an integer percentage from 0 to 100。 If a density attribute has not been set, the default value of 0 percent is returned。

Python 示例

from oapy._oa import _design

# assume obj is a oaBlockage
obj.getDensity()

obj.setOwner(owner)

绑定状态: 已绑定

Python 调用: obj.setOwner(owner)

This function sets the owner of this blockage to the specified blockObject。

参数

  • owner: The blockObject to use as owner for this blockage。

Python 示例

from oapy._oa import _design

# assume obj is a oaBlockage
obj.setOwner(owner)

obj.setPushedDown(flag)

绑定状态: 已绑定

Python 调用: obj.setPushedDown(flag)

This function sets or unsets the flag that indicates if this blockage has been pushed down from a cell higher in the view hierarchy。

参数

  • flag: Boolean to indicate push down status。

Python 示例

from oapy._oa import _design

# assume obj is a oaBlockage
obj.setPushedDown(flag)

obj.setDensity(density)

绑定状态: 已绑定

Python 调用: obj.setDensity(density)

This function sets the density attribute of this blockage。 The density value is a percentage that must be between 0 and 100 inclusive。 If density is not explicitly set, the density value defaults to 0。

参数

  • density: The density value。

Python 示例

from oapy._oa import _design

# assume obj is a oaBlockage
obj.setDensity(density)

obj.isPushedDown()

绑定状态: 已绑定

Python 调用: obj.isPushedDown()

This function returns a boolean value that indicates if this blockage has been pushed down from a higher level block。

Python 示例

from oapy._oa import _design

# assume obj is a oaBlockage
obj.isPushedDown()