首页 / design / oaOccBundleNet

oaOccBundleNet

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

概览

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

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

详细说明

This class implements a multi-bit net composed of one or more scalar nets, bus nets, or a combination of both。 When an oaOccBundleNet is created, all member nets specified as part of the bundle name expression are added to it。 The constituent scalar nets and bus nets are automatically created as implicit nets if they do not already exist。

方法总览

状态 Python 调用
obj.getNumMembers()
obj.getRepeat(index)
obj.getMember(index)
obj.getNet()
obj.getModNet()
obj.getName(name)
obj.getPathName(pathName)
obj.getMembers()
obj.getName(name)
obj.getName(ns, name)
obj.getPathName(pathName)
obj.getPathName(ns, pathName)
_design.oaOccBundleNet.find(occurrence, name)

方法说明

obj.getNumMembers()

绑定状态: 已绑定

Python 调用: obj.getNumMembers()

This function returns the number of members in this oaOccBundleNet。 Each member net in an oaOccBundleNet can repeat。

Python 示例

from oapy._oa import _design

# assume obj is a oaOccBundleNet
obj.getNumMembers()

obj.getRepeat(index)

绑定状态: 已绑定

Python 调用: obj.getRepeat(index)

This function returns the repeat count for the specified member of this oaOccBundleNet。 For example, for oaOccBundleNet a,b,c , the repeat count for each member is one。 An oaOccBundleNet x,100*y[0:1] contains two members, and the repeat count for the second member is 100。 The number of bits for the net is 201。

参数

  • memIndex: The member number for which to return the repeat count。

返回

  • An unsigned value indicating the repeat count for the specified member of the oaOccBundleNet。

异常

  • oacInvalidBundleNetMemberIndex

Python 示例

from oapy._oa import _design

# assume obj is a oaOccBundleNet
obj.getRepeat(index)

obj.getMember(index)

绑定状态: 已绑定

Python 调用: obj.getMember(index)

This function returns the specified member of this net at the specified bundle member index。

参数

  • memIndex: The bundle member index of the net to be returned。

返回

  • A pointer to an oaModNet。

异常

  • oacInvalidBundleNetMemberIndex

Python 示例

from oapy._oa import _design

# assume obj is a oaOccBundleNet
obj.getMember(index)

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 oaOccBundleNet
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 oaOccBundleNet
obj.getModNet()

obj.getName(name)

绑定状态: 已绑定

Python 调用: obj.getName(name)

This function returns the name of this occBundleNet。

参数

  • name: The name of the occBundleNet to return。

Python 示例

from oapy._oa import _design

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

obj.getPathName(pathName)

绑定状态: 已绑定

Python 调用: obj.getPathName(pathName)

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

参数

  • pathName: The pathName of the occBundleNet to return。

Python 示例

from oapy._oa import _design

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

obj.getMembers()

绑定状态: 已绑定

Python 调用: obj.getMembers()

This function returns a collection of the member nets in this oaOccBundleNet。

Python 示例

from oapy._oa import _design

# assume obj is a oaOccBundleNet
obj.getMembers()

obj.getName(name)

绑定状态: 已绑定

Python 调用: obj.getName(name)

Python 示例

from oapy._oa import _design

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

obj.getName(ns, name)

绑定状态: 已绑定

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

Python 示例

from oapy._oa import _design

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

obj.getPathName(pathName)

绑定状态: 已绑定

Python 调用: obj.getPathName(pathName)

Python 示例

from oapy._oa import _design

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

obj.getPathName(ns, pathName)

绑定状态: 已绑定

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

Python 示例

from oapy._oa import _design

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

_design.oaOccBundleNet.find(occurrence, name)

绑定状态: 已绑定

Python 调用: _design.oaOccBundleNet.find(occurrence, name)

This function searches the specified occurrence looking for a bundleNet with the specified name。 If the members of name are hierarchical, this function will descend into lower levels of occurrence hierarchy, expanding the hierarchy and binding the master designs as needed。 If any of the members of name are hierarchical, every member must have the same hierarchical path or an exception is thrown。 The bundleNet is returned if found, otherwise NULL is returned。

参数

  • occurrence: The occurrence in which to search。
  • name: The name of the bundle to find。

返回

  • A pointer to the oaOccBundleNet。

Python 示例

from oapy._oa import _design

_design.oaOccBundleNet.find(occurrence, name)