首页 / design / oaOccBusNetBit

oaOccBusNetBit

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

概览

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

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

详细说明

The oaOccBusNetBit class implements an oaOccBitNet that represents a single bit of an oaOccBusNet which is a busNet in the occurrence domain。 When a busNet is created in either the block or module domain, a corresponding set of busNetBits is automatically created and corresponding occurrence busNetBits are also created。 When the busNet is destroyed, the automatically created busNetBits are also destroyed。 oaModBusNetBit , oaOccBusNetmBit, and oaBusNetBit each represent a bit of a busNet on a different kind of master, where in each case the master represents a level of hierarchy in the design。 For oaModBusNetBit , the master is a module, and each module in a design will have a set of zero or more oaModBusNetBits。 For oaOccBusNetBit, the master is an oaOccurrence 。 For oaBusNet , the master is an oaBlock , and the top block for the design will have a set of zero or more modBusNetBits。 Typically, many of the oaBusNetBits on the top oaBlock have a corresponding oaModBusNetBit on the top oaModule 。 All of the oaBusNetBits on the top oaBlock have a corresponding oaOccBusNetBit on the top oaOccurrence 。 When oaBusNetBit objects are created in the block domain, the corresponding oaModBusNetBit objects are automatically created on the top oaModule 。

方法总览

状态 Python 调用
obj.getNet()
obj.getModNet()
obj.getDef()
obj.getBitIndex()
obj.getName(name)
obj.getPathName(pathName)
obj.getName(name)
obj.getName(ns, name)
obj.getPathName(pathName)
obj.getPathName(ns, pathName)
_design.oaOccBusNetBit.find(occurrence, baseName, bitIndex)

方法说明

obj.getNet()

绑定状态: 已绑定

Python 调用: obj.getNet()

This function returns a pointer to the corresponding net in the block domain。 NULL is returned if this occurrence net is not visible to the block domain。 从 oaOccNet 重新实现。

返回

  • A pointer to an oaNet。

Python 示例

from oapy._oa import _design

# assume obj is a oaOccBusNetBit
obj.getNet()

obj.getModNet()

绑定状态: 已绑定

Python 调用: obj.getModNet()

This function returns a pointer to the corresponding net in the module domain。 NULL will be returned if this net is an occurrence of a physical-only net。 从 oaOccNet 重新实现。

返回

  • A pointer to an oaModNet。

Python 示例

from oapy._oa import _design

# assume obj is a oaOccBusNetBit
obj.getModNet()

obj.getDef()

绑定状态: 已绑定

Python 调用: obj.getDef()

This function returns the busNetDef associated with this busNetBit。

Python 示例

from oapy._oa import _design

# assume obj is a oaOccBusNetBit
obj.getDef()

obj.getBitIndex()

绑定状态: 已绑定

Python 调用: obj.getBitIndex()

This function returns the index for this busNetBit。 Returns can include non-consecutive numbers。

Python 示例

from oapy._oa import _design

# assume obj is a oaOccBusNetBit
obj.getBitIndex()

obj.getName(name)

绑定状态: 已绑定

Python 调用: obj.getName(name)

This function returns the name of this occBusNetBit。

参数

  • name: The name of the occBusNetBit to return。

Python 示例

from oapy._oa import _design

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

obj.getPathName(pathName)

绑定状态: 已绑定

Python 调用: obj.getPathName(pathName)

This function returns the full path name of this busNetBit, relative to the top occurrence in the occurrence hierarchy containing this busNetBit。

参数

  • pathName: The pathName of the occBusNetBit to return。

Python 示例

from oapy._oa import _design

# assume obj is a oaOccBusNetBit
obj.getPathName(pathName)

obj.getName(name)

绑定状态: 已绑定

Python 调用: obj.getName(name)

Python 示例

from oapy._oa import _design

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

obj.getName(ns, name)

绑定状态: 已绑定

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

Python 示例

from oapy._oa import _design

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

obj.getPathName(pathName)

绑定状态: 已绑定

Python 调用: obj.getPathName(pathName)

Python 示例

from oapy._oa import _design

# assume obj is a oaOccBusNetBit
obj.getPathName(pathName)

obj.getPathName(ns, pathName)

绑定状态: 已绑定

Python 调用: obj.getPathName(ns, pathName)

Python 示例

from oapy._oa import _design

# assume obj is a oaOccBusNetBit
obj.getPathName(ns, pathName)

_design.oaOccBusNetBit.find(occurrence, baseName, bitIndex)

绑定状态: 已绑定

Python 调用: _design.oaOccBusNetBit.find(occurrence, baseName, bitIndex)

This function searches the specified occurrence looking for a busNetBit with the specified baseName and bitIndex。 If baseName is hierarchical, this function will descend into lower levels of occurrence hierarchy, expanding the hierarchy and binding the master designs as needed。 The busNetBit is returned if found, otherwise NULL is returned。

参数

  • occurrence: The occurrence in which to search。
  • baseName: The base name of the busNetBit to find。
  • bitIndex: The bit index of the busNetBit to find。

返回

  • A pointer to the oaOccBusNetBit。

Python 示例

from oapy._oa import _design

_design.oaOccBusNetBit.find(occurrence, baseName, bitIndex)