oaModScalarTerm
模块: oapy._oa._design
导入: from oapy._oa import _design
概览
oaModScalarTerm 在 oapy 中可用,可通过 _design 模块访问。
本页汇总 oaModScalarTerm 当前在 oapy 中可用的 Python 接口。
详细说明
The oaModScalarTerm class implements a scalar (single-bit) terminal in the module 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 oaModScalarTerm, the master is an oaModule , and each module in a design will have a set of zero or more modScalarTerms。 For oaOccScalarTerm , the master is an oaOccurrence 。 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 。 All of the oaScalarTerms on the top oaBlock have a corresponding oaOccScalarTerm on the top oaOccurrence 。 When oaScalarTerm objects are created in the block domain, the corresponding oaModScalarTerm objects are automatically created on the top oaModule 。
方法总览
| 状态 | Python 调用 |
|---|---|
| ✅ | obj.getName(name) |
| ✅ | obj.setName(name) |
| ✅ | obj.getName(name) |
| ✅ | obj.getName(ns, name) |
| ✅ | _design.oaModScalarTerm.create(modNet, name, type=oacInputOutputTermType) |
| ✅ | _design.oaModScalarTerm.find(module, name) |
| ✅ | _design.oaModScalarTerm.isValidName(module, 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 oaModScalarTerm
obj.getName(name)
obj.setName(name)
绑定状态: 已绑定
Python 调用: obj.setName(name)
This function sets the name of this oaModScalarTerm object。 The name is also updated for each occurrence that the term appears in。
参数
name: The new name to be set for this term。
异常
oacCannotSetNameOfImplicitTerm。oacCannotSetNameOfOverriddenTerm。oacCannotSetNameOfTermInBundleTerm。
Python 示例
from oapy._oa import _design
# assume obj is a oaModScalarTerm
obj.setName(name)
obj.getName(name)
绑定状态: 已绑定
Python 调用: obj.getName(name)
Python 示例
from oapy._oa import _design
# assume obj is a oaModScalarTerm
obj.getName(name)
obj.getName(ns, name)
绑定状态: 已绑定
Python 调用: obj.getName(ns, name)
Python 示例
from oapy._oa import _design
# assume obj is a oaModScalarTerm
obj.getName(ns, name)
_design.oaModScalarTerm.create(modNet, name, type=oacInputOutputTermType)
绑定状态: 已绑定
Python 调用: _design.oaModScalarTerm.create(modNet, name, type=oacInputOutputTermType)
This function creates a terminal with the given scalar name connected to the specified module net。
参数
modNet: The module bitNet to create the terminal with。name: The name to use for the terminal。type: The type of terminal to create。
异常
oacCannotCreateTermWithImplicitNet。
Python 示例
from oapy._oa import _design
_design.oaModScalarTerm.create(modNet, name, type=oacInputOutputTermType)
_design.oaModScalarTerm.find(module, name)
绑定状态: 已绑定
Python 调用: _design.oaModScalarTerm.find(module, name)
This function searches the specified module for a scalarTerm with the specified name。 The function returns a pointer to the oaModScalarTerm if it is found。 Otherwise, NULL is returned。
参数
module: The module 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.oaModScalarTerm.find(module, name)
_design.oaModScalarTerm.isValidName(module, name)
绑定状态: 已绑定
Python 调用: _design.oaModScalarTerm.isValidName(module, name)
This function returns a boolean value that indicates if specified name is valid for a new oaModScalarTerm on the specified module。
参数
module: The module to search。name: The name of the scalar terminal to return。
Python 示例
from oapy._oa import _design
_design.oaModScalarTerm.isValidName(module, name)