oaBusTermBit
模块: oapy._oa._design
导入: from oapy._oa import _design
概览
oaBusTermBit 在 oapy 中可用,可通过 _design 模块访问。
本页汇总 oaBusTermBit 当前在 oapy 中可用的 Python 接口。
详细说明
The oaBusTermBit class implements an oaBitTerm that represents a single bit of an oaBusTerm 。 When a busTerm is created, a corresponding set of busTermBits is automatically created。 When the busTerm is destroyed, the automatically created busTermBits are also destroyed。 An implicitly created busTermBit cannot be used to connect to terminals or instTerms, nor can it be associated with shapes or routes。 An oaBusTermBit can be explicitly created and used in other operations like creating pins。 An explicitly created busTermBit must be explicitly destroyed。
方法总览
| 状态 | Python 调用 |
|---|---|
| ✅ | obj.getDef() |
| ✅ | obj.getBitIndex() |
| ✅ | obj.getName(name) |
| ✅ | obj.setName(baseName, bitIndex) |
| ✅ | obj.getName(name) |
| ✅ | obj.getName(ns, name) |
| ✅ | _design.oaBusTermBit.create(net, baseName, bitIndex, termType=oacInputOutputTermType, view=oacInheritFromTopBlock) |
| ✅ | _design.oaBusTermBit.create(net, bitName, termType=oacInputOutputTermType, view=oacInheritFromTopBlock) |
| ✅ | _design.oaBusTermBit.find(block, baseName, bitIndex) |
| ✅ | _design.oaBusTermBit.isValidName(net, baseName, bitIndex) |
方法说明
obj.getDef()
绑定状态: 已绑定
Python 调用: obj.getDef()
This function returns the busTermDef associated with this terminal。
Python 示例
from oapy._oa import _design
# assume obj is a oaBusTermBit
obj.getDef()
obj.getBitIndex()
绑定状态: 已绑定
Python 调用: obj.getBitIndex()
This function returns the index for this busTermBit, with the respect of the corresponding busTermDef。
Python 示例
from oapy._oa import _design
# assume obj is a oaBusTermBit
obj.getBitIndex()
obj.getName(name)
绑定状态: 已绑定
Python 调用: obj.getName(name)
This function returns the name of this oaBusTermBit。
参数
name: The name of the oaBusTermBit to return。
Python 示例
from oapy._oa import _design
# assume obj is a oaBusTermBit
obj.getName(name)
obj.setName(baseName, bitIndex)
绑定状态: 已绑定
Python 调用: obj.setName(baseName, bitIndex)
This function changes the name of this busTermBit to that implied by the given baseName and bitIndex。
参数
baseName: The new base name for this net。bitIndex: The new bit index for this net。
异常
oacCannotSetNameOfImplicitTerm。oacCannotSetNameOfTermInBundleTerm。oacBusTermBaseNameMatchesScalarName。oacTermMemberExists。oacTermExists。
Python 示例
from oapy._oa import _design
# assume obj is a oaBusTermBit
obj.setName(baseName, bitIndex)
obj.getName(name)
绑定状态: 已绑定
Python 调用: obj.getName(name)
Python 示例
from oapy._oa import _design
# assume obj is a oaBusTermBit
obj.getName(name)
obj.getName(ns, name)
绑定状态: 已绑定
Python 调用: obj.getName(ns, name)
Python 示例
from oapy._oa import _design
# assume obj is a oaBusTermBit
obj.getName(ns, name)
_design.oaBusTermBit.create(net, baseName, bitIndex, termType=oacInputOutputTermType, view=oacInheritFromTopBlock)
绑定状态: 已绑定
Python 调用: _design.oaBusTermBit.create(net, baseName, bitIndex, termType=oacInputOutputTermType, view=oacInheritFromTopBlock)
This function creates a busTermBit with the baseName and em bitIndex as specified in the given bitName on the given net。 When creating a hidden term, the view argument must be set to oacExcludeFromModuleDomain。
参数
net: The net to create the terminal on。bitName: The name supplying the baseName and bit index to give the terminal。termType: The type of terminal to create。view: Specifies whether this net is visible in the module domain。
异常
oacBusTermBaseNameMatchesScalarName。oacNetTermWidthMismatch。oacTermExists。oacTermMemberExists。oacCannotCreateTermWithImplicitNet。oacOverridingTermAlreadyExist。oacCannotBlockOverrideNetSignalType。oacPhysOnlyTermNetMustBeInSameOcc。
Python 示例
from oapy._oa import _design
_design.oaBusTermBit.create(net, baseName, bitIndex, termType=oacInputOutputTermType, view=oacInheritFromTopBlock)
_design.oaBusTermBit.create(net, bitName, termType=oacInputOutputTermType, view=oacInheritFromTopBlock)
绑定状态: 已绑定
Python 调用: _design.oaBusTermBit.create(net, bitName, termType=oacInputOutputTermType, view=oacInheritFromTopBlock)
This function creates a busTermBit with the specified baseName and bitIndex on the given net。 When creating a hidden term, the view argument must be set to oacExcludeFromModuleDomain。
参数
net: The net to create the terminal on。baseName: The base name to give the terminal。bitIndex: The bit index to give the terminal。termType: The type of terminal to create。view: Specifies whether this net is visible in the module domain。
异常
oacBusTermBaseNameMatchesScalarName。oacTermExists。oacTermMemberExists。oacCannotCreateTermWithImplicitNet。oacOverridingTermAlreadyExist。oacCannotBlockOverrideNetSignalType。oacPhysOnlyTermNetMustBeInSameOcc。
Python 示例
from oapy._oa import _design
_design.oaBusTermBit.create(net, bitName, termType=oacInputOutputTermType, view=oacInheritFromTopBlock)
_design.oaBusTermBit.find(block, baseName, bitIndex)
绑定状态: 已绑定
Python 调用: _design.oaBusTermBit.find(block, baseName, bitIndex)
This function searches the specified block for a busTermBit with the specified baseName and bitIndex。 The busTermBit 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 busTermBit。baseName: The base name for the busTermBit。bitIndex: The bit index for the busTermBit。
返回
- A pointer to an oaBusTermBit。
Python 示例
from oapy._oa import _design
_design.oaBusTermBit.find(block, baseName, bitIndex)
_design.oaBusTermBit.isValidName(net, baseName, bitIndex)
绑定状态: 已绑定
Python 调用: _design.oaBusTermBit.isValidName(net, baseName, bitIndex)
This function returns a boolean value indicating whether the specified name is valid for a new oaBusTermBit on the specified net。 This function also returns true if the name corresponds to a busTermBit that was hidden but not overridden。
参数
net: The net to search。baseName: The base name of the bus bit。bitIndex: The bit index of the bus bit。
Python 示例
from oapy._oa import _design
_design.oaBusTermBit.isValidName(net, baseName, bitIndex)