首页 / design / oaModBundleTerm

oaModBundleTerm

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

概览

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

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

详细说明

The oaModBundleTerm class implements a multi-bit terminal for an oaModule 。 It is composed of a list of scalarTerms and busTerms and repeated copies of those elements。 When a bundleTerm is created, the constituent scalarTerms and busNetBits are automatically created if they do not already exist。 oaModBundleTerm objects are associated with oaModNets that may be oaModBundleNets but aren't required to be。 The number of bits implied by the names of the oaModBundleTerm and its oaModNet must match to be valid。 oaModBundleTerm, oaOccBundleTerm , and oaBundleTerm each represent bundle terminals in a different hierarchy domain, where in each case the master represents a level of hierarchy in the design。 For oaModBundleTerm, the master is an oaModule , and each module in a cellview will have a set of zero or more modBundleTerms。 For oaOccBundleTerm , the master is an oaOccurrence 。 For oaBundleTerm , the master is an oaBlock , and the top block for the cellView will have a set of zero or more bundleTerms。 In the typical case where all block objects are visible to the module domain, the oaModBundleTerms on the top oaModule will have corresponding oaBundleTerms on the top oaBlock 。 All of the oaModBundleTerms on the top module have a corresponding oaOccBundleTerm on the top oaOccurrence 。

方法总览

状态 Python 调用
obj.getNumMembers()
obj.getMember(index)
obj.getName(name)
obj.getMembers()
obj.getName(name)
obj.getName(ns, name)
_design.oaModBundleTerm.create(modNet, name, termType=oacInputOutputTermType)
_design.oaModBundleTerm.find(module, name)
_design.oaModBundleTerm.isValidName(module, 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 oaModBundleTerm
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 oaModTerm。

异常

  • oacInvalidBundleTermMemberIndex

Python 示例

from oapy._oa import _design

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

obj.getName(name)

绑定状态: 已绑定

Python 调用: obj.getName(name)

This function returns the name of this modBundleTerm。

参数

  • name: The name of the modBundleTerm to return。

Python 示例

from oapy._oa import _design

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

obj.getName(name)

绑定状态: 已绑定

Python 调用: obj.getName(name)

Python 示例

from oapy._oa import _design

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

obj.getName(ns, name)

绑定状态: 已绑定

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

Python 示例

from oapy._oa import _design

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

_design.oaModBundleTerm.create(modNet, name, termType=oacInputOutputTermType)

绑定状态: 已绑定

Python 调用: _design.oaModBundleTerm.create(modNet, name, termType=oacInputOutputTermType)

This function adds a new oaModBundleTerm to the specified modNet。 The bundle name must imply the same number of bits as the width of the modNet。

参数

  • modNet: A pointer to the modNet to associate with the terminal; the bits of the modNet are associated with the constituent bits of the automatically created member terminals。
  • name: The name of the terminal。
  • termType: The type of the terminal to create。

异常

  • oacCannotCreateTermWithImplicitNet
  • oacTermNetMismatchInRepeatedMembers

Python 示例

from oapy._oa import _design

_design.oaModBundleTerm.create(modNet, name, termType=oacInputOutputTermType)

_design.oaModBundleTerm.find(module, name)

绑定状态: 已绑定

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

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

参数

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

返回

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

Python 示例

from oapy._oa import _design

_design.oaModBundleTerm.find(module, name)

_design.oaModBundleTerm.isValidName(module, net, name)

绑定状态: 已绑定

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

This function returns a boolean value that indicates if the specified name is valid for a new oaModBundleTerm object associated with the specified net。

参数

  • module: The module 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.oaModBundleTerm.isValidName(module, net, name)