oaModBitNet
模块: oapy._oa._design
导入: from oapy._oa import _design
概览
oaModBitNet 在 oapy 中可用,可通过 _design 模块访问。
本页汇总 oaModBitNet 当前在 oapy 中可用的 Python 接口。
详细说明
The oaModBitNet class is the base class for single-bit nets that are part of the design's logical description。 You can have two or more bitNets that are equivalent。 Equivalent bitNets are traversed separately or logically as the same net。 You can create associate a connection definition, oaModNetConnectDef , with a bitNet。
方法总览
| 状态 | Python 调用 |
|---|---|
| ✅ | obj.isPreferredEquivalent() |
| ✅ | obj.getConnectDef() |
| ✅ | obj.getPreferredEquivalent() |
| ✅ | obj.setPreferredEquivalent() |
| ✅ | obj.makeEquivalent(equivNet) |
| ✅ | obj.breakEquivalence() |
| ✅ | obj.hasImplicitEquivalence() |
| ✅ | obj.getEquivalentNets() |
| ✅ | obj.getEquivalentNets(filterFlags) |
方法说明
obj.isPreferredEquivalent()
绑定状态: 已绑定
Python 调用: obj.isPreferredEquivalent()
This function returns a boolean value that indicates if this net is the preferred equivalent net in a set of equivalent nets。 true is also returned if the net does not have any equivalents。
Python 示例
from oapy._oa import _design
# assume obj is a oaModBitNet
obj.isPreferredEquivalent()
obj.getConnectDef()
绑定状态: 已绑定
Python 调用: obj.getConnectDef()
This function returns the connection definition associated with this net if there is one。 Otherwise, NULL is returned。
Python 示例
from oapy._oa import _design
# assume obj is a oaModBitNet
obj.getConnectDef()
obj.getPreferredEquivalent()
绑定状态: 已绑定
Python 调用: obj.getPreferredEquivalent()
This function returns the preferred equivalent net associated with this net。 If this net does not have any equivalents, the net itself is returned since it is considered the preferred equivalent of itself。
Python 示例
from oapy._oa import _design
# assume obj is a oaModBitNet
obj.getPreferredEquivalent()
obj.setPreferredEquivalent()
绑定状态: 已绑定
Python 调用: obj.setPreferredEquivalent()
This function sets this net to the preferred net of a set of equivalent nets。 If this net does not have any equivalents, this function does nothing。
Python 示例
from oapy._oa import _design
# assume obj is a oaModBitNet
obj.setPreferredEquivalent()
obj.makeEquivalent(equivNet)
绑定状态: 已绑定
Python 调用: obj.makeEquivalent(equivNet)
This function will set this net and the specified net equivalent。 Exceptions are thrown if the given net is NULL, if this and the given net are in different designs, or if either net is multi-bit。
参数
equivNet: The net to be set as equivalent to this net。
异常
oacInvalidNet。oacNetEquivNetNotInSameDesign。
Python 示例
from oapy._oa import _design
# assume obj is a oaModBitNet
obj.makeEquivalent(equivNet)
obj.breakEquivalence()
绑定状态: 已绑定
Python 调用: obj.breakEquivalence()
This function breaks the equivalence between this net with all other nets it was equivalent to。
异常
oacNetHasNoEquivNet。oacCannotModifyImplicitNetEquivalence。
Python 示例
from oapy._oa import _design
# assume obj is a oaModBitNet
obj.breakEquivalence()
obj.hasImplicitEquivalence()
绑定状态: 已绑定
Python 调用: obj.hasImplicitEquivalence()
This function returns true if the equivalence cannot be modified, for example by calling breakEquivalence() 。
Python 示例
from oapy._oa import _design
# assume obj is a oaModBitNet
obj.hasImplicitEquivalence()
obj.getEquivalentNets()
绑定状态: 已绑定
Python 调用: obj.getEquivalentNets()
This function returns a collection of nets equivalent to this net。 This function gets the collection of all equivalent nets not including the net used to get the collection。 The returned collection will be empty if there are no equivalent nets assigned to this net。
参数
filterFlags: Specifies what the collection contains。 The bits flags are defined as follows: oacEquivalentNetIterExplicit: the collection will only contain equivalences that that were explicitly created by the application oacEquivalentNetIterImplicit: the collection will only contain equivalences that were created by OA as a result of overlapping or repeated bits in terms or instTerms oacEquivalentNetIterAll: the collection will contain all equivalences both implicit and explicit。
异常
oacInvalidEquivalentNetIterFlags。
Python 示例
from oapy._oa import _design
# assume obj is a oaModBitNet
obj.getEquivalentNets()
obj.getEquivalentNets(filterFlags)
绑定状态: 已绑定
Python 调用: obj.getEquivalentNets(filterFlags)
This function returns a collection of nets equivalent to this net。 This function gets the collection of all equivalent nets not including the net used to get the collection。 The returned collection will be empty if there are no equivalent nets assigned to this net。 Note that this function returns the same collection as getEquivalentNets ( oacEquivalentNetIterAll )。
Python 示例
from oapy._oa import _design
# assume obj is a oaModBitNet
obj.getEquivalentNets(filterFlags)