首页 / design / oaOccBundleTerm

oaOccBundleTerm

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

概览

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

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

详细说明

The oaOccBundleTerm class implements a multi-bit terminal for an occurrence with a name that is composed of one or more scalars or one or more busses, or a combination of scalars and busses。 Its constituent occScalarTerms and occBusTermBits are automatically created as implicit terminals if they do not already exist。 oaOccBundleTerm objects are associated with occurrence nets ( oaOccNet ) to represent connectivity。 The number of bits implied by the name of the oaOccBundleTerm and the name of its oaOccNet must match。 oaModBundleTerm , oaOccBundleTerm, and oaBundleTerm each represent bundle terminals in a different kind of hierarchy。 In each case the master represents a level of hierarchy in the design。 For oaOccBundleTerm, the master is an oaOccurrence , which corresponds to a unique usage of a module or a block in a design。 Each oaOccurrence in a design will have a set of zero or more occBundleTerms。 oaOccTerms are created automatically to reflect oaTerms and oaModTerms。 When an oaBundleTerm is created in the block domain an oaOccBundleTerm is created automatically in the occurrence domain。 When an oaModBundleTerm is created in the module domain an oaOccBundleTerm is created if that module is in the hierarchy under its design's top module。

方法总览

状态 Python 调用
obj.getNumMembers()
obj.getMember(index)
obj.getTerm()
obj.getModTerm()
obj.getName(name)
obj.getMembers()
obj.getName(name)
obj.getName(ns, name)
_design.oaOccBundleTerm.find(occurrence, 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 oaOccBundleTerm
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 oaOccTerm。

异常

  • oacInvalidBundleTermMemberIndex

Python 示例

from oapy._oa import _design

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

obj.getTerm()

绑定状态: 已绑定

Python 调用: obj.getTerm()

This function returns the bundle terminal in the block domain that corresponds to this occurrence terminal if there is one。 There is always either a module terminal ( oaModBundleTerm ) or a block terminal or both。 It returns NULL if there is no corresponding oaBundleTerm 。 从 oaOccTerm 重新实现。

Python 示例

from oapy._oa import _design

# assume obj is a oaOccBundleTerm
obj.getTerm()

obj.getModTerm()

绑定状态: 已绑定

Python 调用: obj.getModTerm()

This function returns the module terminal corresponding to this occurrence terminal if there is one。 There is always either a module terminal or a block terminal ( oaBundleTerm ) or both。 It returns NULL if there is no corresponding oaModBundleTerm 。 从 oaOccTerm 重新实现。

Python 示例

from oapy._oa import _design

# assume obj is a oaOccBundleTerm
obj.getModTerm()

obj.getName(name)

绑定状态: 已绑定

Python 调用: obj.getName(name)

This function returns the name of this occBundleTerm。

参数

  • name: The name of the occBundleTerm to return。

Python 示例

from oapy._oa import _design

# assume obj is a oaOccBundleTerm
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 oaOccBundleTerm
obj.getMembers()

obj.getName(name)

绑定状态: 已绑定

Python 调用: obj.getName(name)

Python 示例

from oapy._oa import _design

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

obj.getName(ns, name)

绑定状态: 已绑定

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

Python 示例

from oapy._oa import _design

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

_design.oaOccBundleTerm.find(occurrence, name)

绑定状态: 已绑定

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

This function searches the specified occurrence for a bundleTerm with the given name。 The bundleTerm is returned if it exists。 Otherwise, NULL is returned。

参数

  • occ: The occurrence to search。
  • name: The name of the terminal。

返回

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

Python 示例

from oapy._oa import _design

_design.oaOccBundleTerm.find(occurrence, name)