oaOccBusTerm
模块: oapy._oa._design
导入: from oapy._oa import _design
概览
oaOccBusTerm 在 oapy 中可用,可通过 _design 模块访问。
本页汇总 oaOccBusTerm 当前在 oapy 中可用的 Python 接口。
详细说明
The oaOccBusTerm class implements a terminal in the occurrence domain that represents one or more bits that are associated by a common baseName and vector-range specification。 An oaOccBusTerm object has a corresponding oaOccBusTermDef object that manages all oaOccBusTerm objects that share the same baseName。 oaModBusTerm , oaOccBusTerm, and oaBusTerm each represent bus terminals on a different kind of master, where in each case the master represents a level of hierarchy in the design。 For oaOccBusTerm, 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 occBusTerms。 For oaModBusTerm , the master is an oaModule 。 For oaBusTerm , the master is an oaBlock , and the top block for the design will have a set of zero or more modBusTerms。 Typically, many of the oaBusTerms on the top oaBlock have a corresponding oaModBusTerm on the top oaModule 。 The top oaOccurrence will have a corresponding oaOccBusTerm for each busTerm in the union of the terminals between the top oaModule and the top oaBlock 。 When oaBusTerm objects are created in the block domain, the corresponding oaOccBusTerm objects are automatically created on the top oaOccurrence 。
方法总览
| 状态 | Python 调用 |
|---|---|
| ✅ | obj.getDef() |
| ✅ | obj.getStart() |
| ✅ | obj.getStop() |
| ✅ | obj.getStep() |
| ✅ | obj.getTerm() |
| ✅ | obj.getModTerm() |
| ✅ | obj.getName(name) |
| ✅ | obj.getName(name) |
| ✅ | obj.getName(ns, name) |
| ✅ | _design.oaOccBusTerm.find(occurrence, name, start, stop, step) |
方法说明
obj.getDef()
绑定状态: 已绑定
Python 调用: obj.getDef()
This function returns the oaOccBusTermDef for this oaOccBusTerm object。
返回
- A pointer to an oaOccBusTermDef。
Python 示例
from oapy._oa import _design
# assume obj is a oaOccBusTerm
obj.getDef()
obj.getStart()
绑定状态: 已绑定
Python 调用: obj.getStart()
This function returns the starting index for this oaOccBusTerm object。
返回
- The starting index for this oaOccBusTerm。
Python 示例
from oapy._oa import _design
# assume obj is a oaOccBusTerm
obj.getStart()
obj.getStop()
绑定状态: 已绑定
Python 调用: obj.getStop()
This function returns the ending index for this oaOccBusTerm object。
返回
- The ending index for this oaOccBusTerm。
Python 示例
from oapy._oa import _design
# assume obj is a oaOccBusTerm
obj.getStop()
obj.getStep()
绑定状态: 已绑定
Python 调用: obj.getStep()
This function returns the stepping index for this oaOccBusTerm object。
返回
- The step value for this oaOccBusTerm。
Python 示例
from oapy._oa import _design
# assume obj is a oaOccBusTerm
obj.getStep()
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 oaOccBusTerm
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 oaOccBusTerm
obj.getModTerm()
obj.getName(name)
绑定状态: 已绑定
Python 调用: obj.getName(name)
This function returns the name of this occBusTerm。
参数
name: The name of the occBusTerm to return。
Python 示例
from oapy._oa import _design
# assume obj is a oaOccBusTerm
obj.getName(name)
obj.getName(name)
绑定状态: 已绑定
Python 调用: obj.getName(name)
Python 示例
from oapy._oa import _design
# assume obj is a oaOccBusTerm
obj.getName(name)
obj.getName(ns, name)
绑定状态: 已绑定
Python 调用: obj.getName(ns, name)
Python 示例
from oapy._oa import _design
# assume obj is a oaOccBusTerm
obj.getName(ns, name)
_design.oaOccBusTerm.find(occurrence, name, start, stop, step)
绑定状态: 已绑定
Python 调用: _design.oaOccBusTerm.find(occurrence, name, start, stop, step)
This function searches the specified occ for an oaOccBusTerm object with the specified baseName and start, stop, and step indices。 The oaOccBusTerm object is returned if found。 Otherwise, NULL is returned。
参数
occ: The occurrence to search for the oaOccBusTerm。baseName: The baseName for the oaOccBusTerm。start: The starting index of the oaOccBusTerm。stop: The stopping index of the oaOccBusTerm。step: The step value of the oaOccBusTerm。
返回
- A pointer to an oaOccBusTerm。
Python 示例
from oapy._oa import _design
_design.oaOccBusTerm.find(occurrence, name, start, stop, step)