首页 / design / oaCMap

oaCMap

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

概览

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

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

详细说明

The oaCMap class implements a congestion map for use by global routers。 The congestion map is a two-dimensional grid that exists for each layer in the design。 Each grid cell on each layer is called a GCell。 See the class oaGCellPattern for a discussion of how the grid size and coordinates are determined。 Each GCell can hold supply and demand counts for routes that traverse the GCell horizontally, vertically, and up/down through vias。 All of these GCell statistics are set and managed by applications。 The database does not calculate them automatically。 For all of the functions below that get statistics for a specified GCell, the function will return values of oacNullIndex for any value that is not set。 If the specified layer has not had any values set, it throws the exception oacCMapLayerNotExists。 The oaCMap class can be observed by deriving from oaObserver

方法总览

状态 Python 调用
obj.isSupplyDemandValid()
obj.deleteSupplyDemand()
obj.getXYIndex(point, xIndex, yIndex)
obj.getGCell(xIndex, yIndex, layerNum, horizontalSupply, verticalSupply, upSupply, horizontalDemand, verticalDemand, upDemand)
obj.getHorizontalSupply(xIndex, yIndex, layerNum)
obj.getVerticalSupply(xIndex, yIndex, layerNum)
obj.getUpSupply(xIndex, yIndex, layerNum)
obj.getHorizontalDemand(xIndex, yIndex, layerNum)
obj.getVerticalDemand(xIndex, yIndex, layerNum)
obj.getUpDemand(xIndex, yIndex, layerNum)
obj.setGCell(xIndex, yIndex, layerNum, horizontalSupply, verticalSupply, upSupply, horizontalDemand, verticalDemand, upDemand)
obj.setHorizontalSupply(xIndex, yIndex, layerNum, horizontalSupply)
obj.setVerticalSupply(xIndex, yIndex, layerNum, verticalSupply)
obj.setUpSupply(xIndex, yIndex, layerNum, upSupply)
obj.setHorizontalDemand(xIndex, yIndex, layerNum, horizontalDemand)
obj.setVerticalDemand(xIndex, yIndex, layerNum, verticalDemand)
obj.setUpDemand(xIndex, yIndex, layerNum, upDemand)
obj.getNumXGCell()
obj.getNumYGCell()
obj.getTimeStamp()
_design.oaCMap.getCMap(block)

方法说明

obj.isSupplyDemandValid()

绑定状态: 已绑定

Python 调用: obj.isSupplyDemandValid()

This function gets the flag indicating whether this congestion map is valid。 It is valid if any GCell statistics were set since the last change to a GCellPattern or since a call to oaCMap::deleteSupplyDemand 。

Python 示例

from oapy._oa import _design

# assume obj is a oaCMap
obj.isSupplyDemandValid()

obj.deleteSupplyDemand()

绑定状态: 已绑定

Python 调用: obj.deleteSupplyDemand()

This function sets the invalid flag of the congestion map。 All the existing supply and demand values are deleted。 The congestion map remains invalid until the next set of values for some GCell。

Python 示例

from oapy._oa import _design

# assume obj is a oaCMap
obj.deleteSupplyDemand()

obj.getXYIndex(point, xIndex, yIndex)

绑定状态: 已绑定

Python 调用: obj.getXYIndex(point, xIndex, yIndex)

This function returns the GCell indexes for the GCell containg the specified point。 If the point lies outside the coordinates of the GCell grid, the the values returned are oacNullIndex。

Python 示例

from oapy._oa import _design

# assume obj is a oaCMap
obj.getXYIndex(point, xIndex, yIndex)

obj.getGCell(xIndex, yIndex, layerNum, horizontalSupply, verticalSupply, upSupply, horizontalDemand, verticalDemand, upDemand)

绑定状态: 已绑定

Python 调用: obj.getGCell(xIndex, yIndex, layerNum, horizontalSupply, verticalSupply, upSupply, horizontalDemand, verticalDemand, upDemand)

This function gets all of the GCell attributes for the specified GCell in a single call。

异常

  • oacCMapLayerNotExists

Python 示例

from oapy._oa import _design

# assume obj is a oaCMap
obj.getGCell(xIndex, yIndex, layerNum, horizontalSupply, verticalSupply, upSupply, horizontalDemand, verticalDemand, upDemand)

obj.getHorizontalSupply(xIndex, yIndex, layerNum)

绑定状态: 已绑定

Python 调用: obj.getHorizontalSupply(xIndex, yIndex, layerNum)

This function gets the horizontal supply value from the specified gCell。

异常

  • oacCMapLayerNotExists

Python 示例

from oapy._oa import _design

# assume obj is a oaCMap
obj.getHorizontalSupply(xIndex, yIndex, layerNum)

obj.getVerticalSupply(xIndex, yIndex, layerNum)

绑定状态: 已绑定

Python 调用: obj.getVerticalSupply(xIndex, yIndex, layerNum)

This function gets the verticalSupply value from the gCell at the specified X,Y index。

异常

  • oacCMapLayerNotExists

Python 示例

from oapy._oa import _design

# assume obj is a oaCMap
obj.getVerticalSupply(xIndex, yIndex, layerNum)

obj.getUpSupply(xIndex, yIndex, layerNum)

绑定状态: 已绑定

Python 调用: obj.getUpSupply(xIndex, yIndex, layerNum)

This function gets the upSupply value from the gCell at the specified X,Y index。

异常

  • oacCMapLayerNotExists

Python 示例

from oapy._oa import _design

# assume obj is a oaCMap
obj.getUpSupply(xIndex, yIndex, layerNum)

obj.getHorizontalDemand(xIndex, yIndex, layerNum)

绑定状态: 已绑定

Python 调用: obj.getHorizontalDemand(xIndex, yIndex, layerNum)

This function gets the horizontal demand value from the gCell at the specified X,Y index。

异常

  • oacCMapLayerNotExists

Python 示例

from oapy._oa import _design

# assume obj is a oaCMap
obj.getHorizontalDemand(xIndex, yIndex, layerNum)

obj.getVerticalDemand(xIndex, yIndex, layerNum)

绑定状态: 已绑定

Python 调用: obj.getVerticalDemand(xIndex, yIndex, layerNum)

This function gets the verticalDemand value from the gCell at the specified X,Y index。

异常

  • oacCMapLayerNotExists

Python 示例

from oapy._oa import _design

# assume obj is a oaCMap
obj.getVerticalDemand(xIndex, yIndex, layerNum)

obj.getUpDemand(xIndex, yIndex, layerNum)

绑定状态: 已绑定

Python 调用: obj.getUpDemand(xIndex, yIndex, layerNum)

This function gets the upDemand value from the gCell at the specified X,Y index。

异常

  • oacCMapLayerNotExists

Python 示例

from oapy._oa import _design

# assume obj is a oaCMap
obj.getUpDemand(xIndex, yIndex, layerNum)

obj.setGCell(xIndex, yIndex, layerNum, horizontalSupply, verticalSupply, upSupply, horizontalDemand, verticalDemand, upDemand)

绑定状态: 已绑定

Python 调用: obj.setGCell(xIndex, yIndex, layerNum, horizontalSupply, verticalSupply, upSupply, horizontalDemand, verticalDemand, upDemand)

This function sets all of the GCell attributes for the specified GCell in a single call。

Python 示例

from oapy._oa import _design

# assume obj is a oaCMap
obj.setGCell(xIndex, yIndex, layerNum, horizontalSupply, verticalSupply, upSupply, horizontalDemand, verticalDemand, upDemand)

obj.setHorizontalSupply(xIndex, yIndex, layerNum, horizontalSupply)

绑定状态: 已绑定

Python 调用: obj.setHorizontalSupply(xIndex, yIndex, layerNum, horizontalSupply)

This function sets the horizontalSupply value to the gCell at the specified X,Y index。

Python 示例

from oapy._oa import _design

# assume obj is a oaCMap
obj.setHorizontalSupply(xIndex, yIndex, layerNum, horizontalSupply)

obj.setVerticalSupply(xIndex, yIndex, layerNum, verticalSupply)

绑定状态: 已绑定

Python 调用: obj.setVerticalSupply(xIndex, yIndex, layerNum, verticalSupply)

This function sets the verticalSupply value to the gCell at the specified X,Y index。

Python 示例

from oapy._oa import _design

# assume obj is a oaCMap
obj.setVerticalSupply(xIndex, yIndex, layerNum, verticalSupply)

obj.setUpSupply(xIndex, yIndex, layerNum, upSupply)

绑定状态: 已绑定

Python 调用: obj.setUpSupply(xIndex, yIndex, layerNum, upSupply)

This function sets the upSupply value to the gCell at the specified X,Y index。

Python 示例

from oapy._oa import _design

# assume obj is a oaCMap
obj.setUpSupply(xIndex, yIndex, layerNum, upSupply)

obj.setHorizontalDemand(xIndex, yIndex, layerNum, horizontalDemand)

绑定状态: 已绑定

Python 调用: obj.setHorizontalDemand(xIndex, yIndex, layerNum, horizontalDemand)

This function sets the horizontalDemand value to the gCell at the specified X,Y index。

Python 示例

from oapy._oa import _design

# assume obj is a oaCMap
obj.setHorizontalDemand(xIndex, yIndex, layerNum, horizontalDemand)

obj.setVerticalDemand(xIndex, yIndex, layerNum, verticalDemand)

绑定状态: 已绑定

Python 调用: obj.setVerticalDemand(xIndex, yIndex, layerNum, verticalDemand)

This function sets the verticalDemand value to the gCell at the specified X,Y index。

Python 示例

from oapy._oa import _design

# assume obj is a oaCMap
obj.setVerticalDemand(xIndex, yIndex, layerNum, verticalDemand)

obj.setUpDemand(xIndex, yIndex, layerNum, upDemand)

绑定状态: 已绑定

Python 调用: obj.setUpDemand(xIndex, yIndex, layerNum, upDemand)

This function sets the upDemand value to the gCell at the specified X,Y index。

Python 示例

from oapy._oa import _design

# assume obj is a oaCMap
obj.setUpDemand(xIndex, yIndex, layerNum, upDemand)

obj.getNumXGCell()

绑定状态: 已绑定

Python 调用: obj.getNumXGCell()

This function gets the total number of gCells in the X direction。 This number is determined by the oaGCellPattern objects with isHorizontal set。 If there are no such oaGCellPatterns, oacNullIndex is returned。

Python 示例

from oapy._oa import _design

# assume obj is a oaCMap
obj.getNumXGCell()

obj.getNumYGCell()

绑定状态: 已绑定

Python 调用: obj.getNumYGCell()

This function gets the total number of gCells in the Y direction。 This number is determined by the oaGCellPattern objects with isHorizontal unset。 If there are no such oaGCellPatterns, oacNullIndex is returned。

Python 示例

from oapy._oa import _design

# assume obj is a oaCMap
obj.getNumYGCell()

obj.getTimeStamp()

绑定状态: 已绑定

Python 调用: obj.getTimeStamp()

This function gets the timeStamp of the congestion map。

Python 示例

from oapy._oa import _design

# assume obj is a oaCMap
obj.getTimeStamp()

_design.oaCMap.getCMap(block)

绑定状态: 已绑定

Python 调用: _design.oaCMap.getCMap(block)

This function gets the congestion map in the specified design。 If the congestion map exists, it is returned。 If the congestion map does not exist, it is created。 There is only one congestion map per design。

Python 示例

from oapy._oa import _design

_design.oaCMap.getCMap(block)