oaBusTerm
模块: oapy._oa._design
导入: from oapy._oa import _design
概览
oaBusTerm 在 oapy 中可用,可通过 _design 模块访问。
本页汇总 oaBusTerm 当前在 oapy 中可用的 Python 接口。
详细说明
The oaBusTerm class implements a terminal that represents one or more bits that are associated by a common baseName and vector-range specification。 An oaBusTerm object has a corresponding oaBusTermDef object that manages all oaBusTerm objects that share the same baseName。
方法总览
| 状态 | Python 调用 |
|---|---|
| ✅ | obj.getDef() |
| ✅ | obj.getStart() |
| ✅ | obj.getStop() |
| ✅ | obj.getStep() |
| ✅ | obj.getName(name) |
| ✅ | obj.setBaseName(name) |
| ✅ | obj.setRange(start, stop) |
| ✅ | obj.getName(name) |
| ✅ | obj.getName(ns, name) |
| ✅ | _design.oaBusTerm.create(net, name, start, stop, step, termType=oacInputOutputTermType, view=oacInheritFromTopBlock) |
| ✅ | _design.oaBusTerm.create(net, name, termType=oacInputOutputTermType, view=oacInheritFromTopBlock) |
| ✅ | _design.oaBusTerm.create(net, name, termType=oacInputOutputTermType, view=oacInheritFromTopBlock) |
| ✅ | _design.oaBusTerm.find(block, name, start, stop, step) |
| ✅ | _design.oaBusTerm.isValidName(block, net, name, start, stop, step) |
方法说明
obj.getDef()
绑定状态: 已绑定
Python 调用: obj.getDef()
This function returns the oaBusTermDef for this oaBusTerm object。
返回
- A pointer to an oaBusTermDef。
Python 示例
from oapy._oa import _design
# assume obj is a oaBusTerm
obj.getDef()
obj.getStart()
绑定状态: 已绑定
Python 调用: obj.getStart()
This function returns the starting index for this oaBusTerm object。
返回
- The starting index for this oaBusTerm。
Python 示例
from oapy._oa import _design
# assume obj is a oaBusTerm
obj.getStart()
obj.getStop()
绑定状态: 已绑定
Python 调用: obj.getStop()
This function returns the ending index for this oaBusTerm object。
返回
- The ending index for this oaBusTerm。
Python 示例
from oapy._oa import _design
# assume obj is a oaBusTerm
obj.getStop()
obj.getStep()
绑定状态: 已绑定
Python 调用: obj.getStep()
This function returns the stepping index for this oaBusTerm object。
返回
- The step value for this oaBusTerm。
Python 示例
from oapy._oa import _design
# assume obj is a oaBusTerm
obj.getStep()
obj.getName(name)
绑定状态: 已绑定
Python 调用: obj.getName(name)
This function returns the name of this oaBusTerm。
参数
name: The name of the oaBusTerm to return。
Python 示例
from oapy._oa import _design
# assume obj is a oaBusTerm
obj.getName(name)
obj.setBaseName(name)
绑定状态: 已绑定
Python 调用: obj.setBaseName(name)
This function changes the baseName of this oaBusTerm。
参数
name: The baseName for the terminal。
异常
oacBusTermBaseNameMatchesScalarName。oacCannotSetNameOfImplicitTerm。oacCannotSetNameOfTermInBundleTerm。oacNetTermWidthMismatch。oacTermExists。oacTermMemberExists。
Python 示例
from oapy._oa import _design
# assume obj is a oaBusTerm
obj.setBaseName(name)
obj.setRange(start, stop)
绑定状态: 已绑定
Python 调用: obj.setRange(start, stop)
This function changes the vector range for this oaBusTerm。 The new number of bits implied by the specified start and stop bits must match the current numBits。 This restriction is necessary because the number of bits must match the number of bits of the net that is associated with this oaBusTerm object。
参数
start: The starting index of the terminal。stop: The stopping index of the terminal。
异常
oacCannotSetNameOfImplicitTerm。oacCannotSetNameOfTermInBundleTerm。oacTermExists。oacInvalidBusStartStopRange。
Python 示例
from oapy._oa import _design
# assume obj is a oaBusTerm
obj.setRange(start, stop)
obj.getName(name)
绑定状态: 已绑定
Python 调用: obj.getName(name)
Python 示例
from oapy._oa import _design
# assume obj is a oaBusTerm
obj.getName(name)
obj.getName(ns, name)
绑定状态: 已绑定
Python 调用: obj.getName(ns, name)
Python 示例
from oapy._oa import _design
# assume obj is a oaBusTerm
obj.getName(ns, name)
_design.oaBusTerm.create(net, name, start, stop, step, termType=oacInputOutputTermType, view=oacInheritFromTopBlock)
绑定状态: 已绑定
Python 调用: _design.oaBusTerm.create(net, name, start, stop, step, termType=oacInputOutputTermType, view=oacInheritFromTopBlock)
This function creates an oaBusTerm object with the specified attributes。 This function takes an oaVectorBitName and creates a single-bit oaBusTerm object on the specified net。
参数
net: The net to use to create the oaBusTerm。name: The baseName and bit index to use to create the oaBusTerm。termType: The type of terminal to create。view: Specifies whether this net is visible in the module domain。
返回
- A pointer to an oaBusTerm。
异常
oacBusTermBaseNameMatchesScalarName。oacNetTermWidthMismatch。oacTermExists。oacTermMemberExists。oacCannotCreateTermWithImplicitNet。oacTermNetMustBeInUniqueOccHier。oacPhysOnlyTermNetMustBeInSameOcc。
Python 示例
from oapy._oa import _design
_design.oaBusTerm.create(net, name, start, stop, step, termType=oacInputOutputTermType, view=oacInheritFromTopBlock)
_design.oaBusTerm.create(net, name, termType=oacInputOutputTermType, view=oacInheritFromTopBlock)
绑定状态: 已绑定
Python 调用: _design.oaBusTerm.create(net, name, termType=oacInputOutputTermType, view=oacInheritFromTopBlock)
This function creates an oaBusTerm object with the specified attributes。 This function takes an oaVectorName and creates a multi-bit oaBusTerm object on the specified net。
参数
net: The net to use to create the oaBusTerm。name: The baseName, start, stop, and step values to use to create the oaBusTerm。termType: The type of terminal to create。view: Specifies whether this net is visible in the module domain。
返回
- A pointer to an oaBusTerm。
异常
oacBusTermBaseNameMatchesScalarName。oacNetTermWidthMismatch。oacTermExists。oacTermMemberExists。oacCannotCreateTermWithImplicitNet。oacTermNetMustBeInUniqueOccHier。oacPhysOnlyTermNetMustBeInSameOcc。
Python 示例
from oapy._oa import _design
_design.oaBusTerm.create(net, name, termType=oacInputOutputTermType, view=oacInheritFromTopBlock)
_design.oaBusTerm.create(net, name, termType=oacInputOutputTermType, view=oacInheritFromTopBlock)
绑定状态: 已绑定
Python 调用: _design.oaBusTerm.create(net, name, termType=oacInputOutputTermType, view=oacInheritFromTopBlock)
This function creates an oaBusTerm object with the specified attributes。 The specified baseName and start, stop, and step indices are first checked to verify they are legal and do not specify an oaBusTerm object that already exists。
参数
net: The net to use to create the oaBusTerm。name: The baseName for the oaBusTerm。start: The starting index of the oaBusTerm。stop: The stopping index of the oaBusTerm。step: The step value of the oaBusTerm。termType: The terminal type of the oaBusTerm。view: Specifies whether this net is visible in the module domain。
返回
- A pointer to an oaBusTerm。
异常
oacBusTermBaseNameMatchesScalarName。oacCannotCreateTermWithImplicitNet。oacNetTermWidthMismatch。oacTermExists。oacTermMemberExists。oacTermNetMustBeInUniqueOccHier。oacPhysOnlyTermNetMustBeInSameOcc。
Python 示例
from oapy._oa import _design
_design.oaBusTerm.create(net, name, termType=oacInputOutputTermType, view=oacInheritFromTopBlock)
_design.oaBusTerm.find(block, name, start, stop, step)
绑定状态: 已绑定
Python 调用: _design.oaBusTerm.find(block, name, start, stop, step)
This function searches the specified block for an oaBusTerm object with the specified baseName and start, stop, and step indices。 The oaBusTerm object is returned if found。 Otherwise, NULL is returned。 If the specified term is hidden, that is the term returned。
参数
block: The block to search for the oaBusTerm。baseName: The baseName for the oaBusTerm。start: The starting index of the oaBusTerm。stop: The stopping index of the oaBusTerm。step: The step value of the oaBusTerm。
返回
- A pointer to an oaBusTerm。
Python 示例
from oapy._oa import _design
_design.oaBusTerm.find(block, name, start, stop, step)
_design.oaBusTerm.isValidName(block, net, name, start, stop, step)
绑定状态: 已绑定
Python 调用: _design.oaBusTerm.isValidName(block, net, name, start, stop, step)
This function returns a boolean value indicating whether the specified name is valid for a new oaBusTerm object that is associated with the specified net。 This function returns true if the specified busTerm is hidden but not overridden。
参数
block: The block to search for the oaBusTerm。net: The net to use to create the oaBusTerm。name: The name for the new oaBusTerm。start: The starting index of the oaBusTerm。stop: The stopping index of the oaBusTerm。step: The step value of the oaBusTerm。
Python 示例
from oapy._oa import _design
_design.oaBusTerm.isValidName(block, net, name, start, stop, step)