首页 / design / oaBundleTerm

oaBundleTerm

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

概览

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

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

详细说明

The oaBundleTerm class implements a multi-bit terminal for a block composed of one or more scalarTerms, one or more busTerms, or a combination of scalarTerms and busTerms。 When a bundleTerm is created, the constituent scalarTerms and busNetBits are automatically created if they do not already exist。 Bundle terms are associated with bundle nets ( oaBundleNet ) to represent connectivity。 The number of bits implied by the name of the bundle term and bundle net must match to be meaningful。

方法总览

状态 Python 调用
obj.getNumMembers()
obj.getMember(index)
obj.getName(name)
obj.getMembers()
obj.getName(name)
obj.getName(ns, name)
_design.oaBundleTerm.create(net, name, termType=oacInputOutputTermType, view=oacInheritFromTopBlock)
_design.oaBundleTerm.find(block, name)
_design.oaBundleTerm.isValidName(block, net, name)

方法说明

obj.getNumMembers()

绑定状态: 已绑定

Python 调用: obj.getNumMembers()

This function returns the number of members in this bundleTerm。

返回

  • The number of member terminals in this bundleTerm。

Python 示例

from oapy._oa import _design

# assume obj is a oaBundleTerm
obj.getNumMembers()

obj.getMember(index)

绑定状态: 已绑定

Python 调用: obj.getMember(index)

This function returns the memIndex member of this bundleTerm。

参数

  • memIndex: The bundle member index of the member term to get。

返回

  • A pointer to an oaTerm。

异常

  • oacInvalidBundleTermMemberIndex

Python 示例

from oapy._oa import _design

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

obj.getName(name)

绑定状态: 已绑定

Python 调用: obj.getName(name)

This function returns the name of this oaBundleTerm。

参数

  • name: The name of the oaBundleTerm to return。

Python 示例

from oapy._oa import _design

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

obj.getMembers()

绑定状态: 已绑定

Python 调用: obj.getMembers()

This function returns a collection of member terms in this bundleTerm。

Python 示例

from oapy._oa import _design

# assume obj is a oaBundleTerm
obj.getMembers()

obj.getName(name)

绑定状态: 已绑定

Python 调用: obj.getName(name)

Python 示例

from oapy._oa import _design

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

obj.getName(ns, name)

绑定状态: 已绑定

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

Python 示例

from oapy._oa import _design

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

_design.oaBundleTerm.create(net, name, termType=oacInputOutputTermType, view=oacInheritFromTopBlock)

绑定状态: 已绑定

Python 调用: _design.oaBundleTerm.create(net, name, termType=oacInputOutputTermType, view=oacInheritFromTopBlock)

This function creates an oaBundleTerm object on the specified net with the specified attributes。 The given name specifies the members of the bundleTerm。 These member terminals are automatically created if they do not already exist。 The number of bits implied by the name must match the number of bits in the given net。

参数

  • net: A pointer to the net to associate with the terminal; the bits of the net are associated with the constituent bits of the automatically created member terminals。
  • name: The name of the terminal。
  • termType: The type of terminal to create。
  • view: Specifies whether this net is visible in the module domain。

返回

  • A pointer to an oaBundleTerm。

异常

  • oacNetTermWidthMismatch
  • oacTermExists
  • oacCannotCreateTermWithImplicitNet
  • oacTermNetMustBeInUniqueOccHier
  • oacPhysOnlyTermNetMustBeInSameOcc
  • oacTermNetMismatchInRepeatedMembers

Python 示例

from oapy._oa import _design

_design.oaBundleTerm.create(net, name, termType=oacInputOutputTermType, view=oacInheritFromTopBlock)

_design.oaBundleTerm.find(block, name)

绑定状态: 已绑定

Python 调用: _design.oaBundleTerm.find(block, name)

This function searches the specified block for a bundleTerm with the given name。 The bundleTerm is returned if it exists。 Otherwise, NULL is returned。 If the specified term is hidden, that is the term returned。

参数

  • block: The block to search。
  • name: The name of the terminal。

返回

  • A pointer to an oaBundleTerm if found; otherwise, NULL is returned。

Python 示例

from oapy._oa import _design

_design.oaBundleTerm.find(block, name)

_design.oaBundleTerm.isValidName(block, net, name)

绑定状态: 已绑定

Python 调用: _design.oaBundleTerm.isValidName(block, net, name)

This function returns a boolean value indicating whether the specified name is valid for a new oaBundleTerm object associated with the specified net。 This function returns true if the specified bundleTerm is hidden but not overridden。

参数

  • block: The block in which to create the new bundle terminal。
  • net: The net with which to associate the new bundle terminal。
  • name: The name of the new bundle terminal。

Python 示例

from oapy._oa import _design

_design.oaBundleTerm.isValidName(block, net, name)