首页 / design / oaOccScalarTerm

oaOccScalarTerm

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

概览

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

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

详细说明

The oaOccScalarTerm class implements a scalar (single-bit) terminal in the occurrence domain。 oaModScalarTerm , oaOccScalarTerm, and oaScalarTerm each represent scalar terminals on a different kind of master, where in each case the master represents a level of hierarchy in the design。 For oaOccScalarTerm, 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 occScalarTerms。 For oaModScalarTerm , the master is an oaModule 。 For oaScalarTerm , the master is an oaBlock , and the top block for the design will have a set of zero or more oaScalarTerms。 Typically, many of the oaScalarTerms on the top oaBlock have a corresponding oaModScalarTerm on the top oaModule 。 The top oaOccurrence will have a corresponding oaOccScalarTerm for each scalarTerm in the union of the terminals between the top oaModule and the top oaBlock 。 When oaScalarTerm objects are created in the block domain, the corresponding oaOccScalarTerm objects are automatically created on the top oaOccurrence 。

方法总览

状态 Python 调用
obj.getName(name)
obj.getTerm()
obj.getModTerm()
obj.getName(name)
obj.getName(ns, name)
_design.oaOccScalarTerm.find(occurrence, name)

方法说明

obj.getName(name)

绑定状态: 已绑定

Python 调用: obj.getName(name)

This function returns the name of this terminal in the name argument。

参数

  • name: The name of the scalar terminal to return。

Python 示例

from oapy._oa import _design

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

obj.getTerm()

绑定状态: 已绑定

Python 调用: obj.getTerm()

This function returns the corresponding terminal in the block domain, or NULL if the terminal is not visible in the block domain。 从 oaOccTerm 重新实现。

Python 示例

from oapy._oa import _design

# assume obj is a oaOccScalarTerm
obj.getTerm()

obj.getModTerm()

绑定状态: 已绑定

Python 调用: obj.getModTerm()

This function returns the corresponding terminal in the module domain, or NULL if the terminal is not visible in the module domain。 从 oaOccTerm 重新实现。

Python 示例

from oapy._oa import _design

# assume obj is a oaOccScalarTerm
obj.getModTerm()

obj.getName(name)

绑定状态: 已绑定

Python 调用: obj.getName(name)

Python 示例

from oapy._oa import _design

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

obj.getName(ns, name)

绑定状态: 已绑定

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

Python 示例

from oapy._oa import _design

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

_design.oaOccScalarTerm.find(occurrence, name)

绑定状态: 已绑定

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

This function searches the specified occurrence for a scalarTerm with the specified name。 The function returns a pointer to the oaOccScalarTerm if it is found。 Otherwise, NULL is returned。

参数

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

返回

  • A pointer to the scalar terminal, if found; otherwise, NULL is returned。

Python 示例

from oapy._oa import _design

_design.oaOccScalarTerm.find(occurrence, name)