oaBusNetBit
模块: oapy._oa._design
导入: from oapy._oa import _design
概览
oaBusNetBit 在 oapy 中可用,可通过 _design 模块访问。
本页汇总 oaBusNetBit 当前在 oapy 中可用的 Python 接口。
详细说明
The oaBusNetBit class implements an oaBitNet that represents a single bit of an oaBusNet which is a busNet in the block domain。 When a busNet is created, a corresponding set of busNetBits is automatically created。 When the busNet is destroyed, the automatically created busNetBits are also destroyed。 An implicitly created busNetBit cannot be used to connect to terminals or instTerms, nor can it be associated with shapes or routes。 An oaBusNetBit can be explicitly created and used in other operations like creating terminals or instTerms。 An explicitly created busNetBit must be explicitly destroyed。
方法总览
| 状态 | Python 调用 |
|---|---|
| ✅ | obj.getDef() |
| ✅ | obj.getBitIndex() |
| ✅ | obj.getName(name) |
| ✅ | obj.setName(baseName, bitIndex) |
| ✅ | obj.getName(name) |
| ✅ | obj.getName(ns, name) |
| ✅ | _design.oaBusNetBit.create(block, baseName, bitIndex, sigType=oacSignalSigType, isGlobale=false, view=oacInheritFromTopBlock) |
| ✅ | _design.oaBusNetBit.create(block, bitName, sigType=oacSignalSigType, isGlobale=false, view=oacInheritFromTopBlock) |
| ✅ | _design.oaBusNetBit.find(block, baseName, bitIndex) |
| ✅ | _design.oaBusNetBit.isValidName(block, baseName, bitIndex) |
方法说明
obj.getDef()
绑定状态: 已绑定
Python 调用: obj.getDef()
This function returns the busNetDef associated with this busNetBit。
Python 示例
from oapy._oa import _design
# assume obj is a oaBusNetBit
obj.getDef()
obj.getBitIndex()
绑定状态: 已绑定
Python 调用: obj.getBitIndex()
This function returns the index for this busNetBit (with the respect of the corresponding bus net def)。 Returns can include non-consecutive numbers。
Python 示例
from oapy._oa import _design
# assume obj is a oaBusNetBit
obj.getBitIndex()
obj.getName(name)
绑定状态: 已绑定
Python 调用: obj.getName(name)
This function returns the name of this oaBusNetBit。
参数
name: The name of the oaBusNetBit to return。
Python 示例
from oapy._oa import _design
# assume obj is a oaBusNetBit
obj.getName(name)
obj.setName(baseName, bitIndex)
绑定状态: 已绑定
Python 调用: obj.setName(baseName, bitIndex)
This function changes the name of this busNetBit to that implied by the given baseName and bitIndex。 If the specified name is hierarchical, is valid and the path is identical to the current path name of the oaBusNetBit, the baseName is set to the corresponding oaOccNet 。
参数
baseName: The new base name for this net。bitIndex: The new bit index for this net。
异常
oacCannotSetNameOfImplicitNet。oacCannotSetNameOfNetInBundleNet。oacCannotSetNameOfNetInBusNet。oacBusNetBaseNameMatchesScalarName。oacNetExists。oacHierPathDoesNotExist。oacHierPathCrossDesign。oacMismatchedHierPath。
Python 示例
from oapy._oa import _design
# assume obj is a oaBusNetBit
obj.setName(baseName, bitIndex)
obj.getName(name)
绑定状态: 已绑定
Python 调用: obj.getName(name)
Python 示例
from oapy._oa import _design
# assume obj is a oaBusNetBit
obj.getName(name)
obj.getName(ns, name)
绑定状态: 已绑定
Python 调用: obj.getName(ns, name)
Python 示例
from oapy._oa import _design
# assume obj is a oaBusNetBit
obj.getName(ns, name)
_design.oaBusNetBit.create(block, baseName, bitIndex, sigType=oacSignalSigType, isGlobale=false, view=oacInheritFromTopBlock)
绑定状态: 已绑定
Python 调用: _design.oaBusNetBit.create(block, baseName, bitIndex, sigType=oacSignalSigType, isGlobale=false, view=oacInheritFromTopBlock)
This function creates a busNetBit with the baseName, attributes, and bitIndex as specified in the given bitName。 If the vectorBitName is hierarchical, and the path already exists, and no oaOccNet with this name exists in the specified occurrence, the net is created in the specified occurrence。
参数
block: The block to create the net in。bitName: The vector bit name to use for the net。sigType: The signal type of the busNetBit。isGlobal: Specifies if this is a global net。view: Specifies whether this net is visible in the module domain。
异常
oacBusNetNameMatchesAutoName。oacBusNetBaseNameMatchesScalarName。oacNetExists。oacHierPathDoesNotExist。oacHierPathCrossDesign。
Python 示例
from oapy._oa import _design
_design.oaBusNetBit.create(block, baseName, bitIndex, sigType=oacSignalSigType, isGlobale=false, view=oacInheritFromTopBlock)
_design.oaBusNetBit.create(block, bitName, sigType=oacSignalSigType, isGlobale=false, view=oacInheritFromTopBlock)
绑定状态: 已绑定
Python 调用: _design.oaBusNetBit.create(block, bitName, sigType=oacSignalSigType, isGlobale=false, view=oacInheritFromTopBlock)
This function verifies that a net with the specified name does not exist and creates an oaBusNetBit with the specified name and attributes。 If the baseName is hierarchical, and the path already exists, and no occNet with this name exists in the specified occurrence, the net is created in the specified occurrence。
参数
block: The block to create the net in。baseName: The base name to give the net。bitIndex: The bit index to give the net。sigType: The signal type of the busNetBit。isGlobal: Specifies if this is a global net。view: Specifies whether this net is visible in the module domain。
异常
oacBusNetNameMatchesAutoName。oacBusNetBaseNameMatchesScalarName。oacNetExists。oacHierPathDoesNotExist。oacHierPathCrossDesign。
Python 示例
from oapy._oa import _design
_design.oaBusNetBit.create(block, bitName, sigType=oacSignalSigType, isGlobale=false, view=oacInheritFromTopBlock)
_design.oaBusNetBit.find(block, baseName, bitIndex)
绑定状态: 已绑定
Python 调用: _design.oaBusNetBit.find(block, baseName, bitIndex)
This function searches the specified block for an oaBusNetBit with the specified baseName and bitIndex。 The net is returned if found, otherwise NULL is returned。 The path portion of the name must specify the path to an existing occurrence in the design。 A hierarchical name is considered an alias that identifies an oaOccNet in the occurrence domain。 If the specified name is hierarchical, the return value is the canonical net in the block domain for the specified alias。
参数
block: The block to search。baseName: The baseName of the busNetBit to locate。bitIndex: The bit index of the busNetBit to locate。
Python 示例
from oapy._oa import _design
_design.oaBusNetBit.find(block, baseName, bitIndex)
_design.oaBusNetBit.isValidName(block, baseName, bitIndex)
绑定状态: 已绑定
Python 调用: _design.oaBusNetBit.isValidName(block, baseName, bitIndex)
This function returns a boolean value indicating whether the specified name is valid for a new oaBusNetBit in the specified block。 False is returned if the specified baseName is hierarchical, and an oaOccNet with the specified name already exists, or if an oaOccScalarNet with the same baseName already exists。 False is also returned if the specified baseName is hierarchical, and there is no occurrence with that path name。 These checks are done in the occurrence given by the path portion of the baseName not in the top occurrence。
参数
block: The block 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.oaBusNetBit.isValidName(block, baseName, bitIndex)