首页 / design / oaModBundleNet

oaModBundleNet

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

概览

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

本页汇总 oaModBundleNet 当前在 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 oaModBundleNet 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.getName(name)
obj.getMembers()
obj.getName(name)
obj.getName(ns, name)
_design.oaModBundleNet.create(module, name, type=oacSignalSigType, isGlobal=false)
_design.oaModBundleNet.find(module, name)
_design.oaModBundleNet.isValidName(module, name)

方法说明

obj.getNumMembers()

绑定状态: 已绑定

Python 调用: obj.getNumMembers()

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

Python 示例

from oapy._oa import _design

# assume obj is a oaModBundleNet
obj.getNumMembers()

obj.getRepeat(index)

绑定状态: 已绑定

Python 调用: obj.getRepeat(index)

This function returns the repeat count for the specified member of this oaModBundleNet。 For example, for oaModBundleNet a,b,c , the repeat count for each member is one。 An oaModBundleNet 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 oaModBundleNet。

异常

  • oacInvalidBundleNetMemberIndex

Python 示例

from oapy._oa import _design

# assume obj is a oaModBundleNet
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 oaModBundleNet
obj.getMember(index)

obj.getName(name)

绑定状态: 已绑定

Python 调用: obj.getName(name)

This function returns the name of this modBundleNet。

参数

  • name: The name of the modBundleNet to return。

Python 示例

from oapy._oa import _design

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

obj.getMembers()

绑定状态: 已绑定

Python 调用: obj.getMembers()

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

Python 示例

from oapy._oa import _design

# assume obj is a oaModBundleNet
obj.getMembers()

obj.getName(name)

绑定状态: 已绑定

Python 调用: obj.getName(name)

Python 示例

from oapy._oa import _design

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

obj.getName(ns, name)

绑定状态: 已绑定

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

Python 示例

from oapy._oa import _design

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

_design.oaModBundleNet.create(module, name, type=oacSignalSigType, isGlobal=false)

绑定状态: 已绑定

Python 调用: _design.oaModBundleNet.create(module, name, type=oacSignalSigType, isGlobal=false)

This function creates an oaModBundleNet object in the specified module with the specified attributes。 The name specifies the members of the oaBundleNet object and these member nets are automatically created if they do not already exist in the specified block。 An exception is thrown if an oaModBundleNet object with the given name already exists。

参数

  • module: The module in which to create the oaModBundleNet。
  • name: The name of this oaModBundleNet。 The members of the bundleNet are derived from the name。
  • sigType: The signal type to associate with this net。
  • isGlobal: Specifies if this is a global net。

返回

  • A pointer to an oaModBundleNet。

异常

  • oacNetExists

Python 示例

from oapy._oa import _design

_design.oaModBundleNet.create(module, name, type=oacSignalSigType, isGlobal=false)

_design.oaModBundleNet.find(module, name)

绑定状态: 已绑定

Python 调用: _design.oaModBundleNet.find(module, name)

This function searches the specified module for an oaModBundleNet with the specified name。

参数

  • module: The module to search。
  • name: The name of the oaModBundleNet to find。

返回

  • A pointer to an oaModBundleNet; NULL is returned if found。

Python 示例

from oapy._oa import _design

_design.oaModBundleNet.find(module, name)

_design.oaModBundleNet.isValidName(module, name)

绑定状态: 已绑定

Python 调用: _design.oaModBundleNet.isValidName(module, name)

This function returns a boolean value indicating whether the specified name is valid for a new oaModBundleNet in the specified module。

参数

  • module: The module in which to check the oaModBundleNet name。
  • name: The name of the new oaModBundleNet that might be created。

Python 示例

from oapy._oa import _design

_design.oaModBundleNet.isValidName(module, name)