oaBitNet
模块: oapy._oa._design
导入: from oapy._oa import _design
概览
oaBitNet 在 oapy 中可用,可通过 _design 模块访问。
本页汇总 oaBitNet 当前在 oapy 中可用的 Python 接口。
详细说明
The oaBitNet class is the base class for single-bit nets that are part of the design's physical 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, oaNetConnectDef , with a bitNet。
方法总览
| 状态 | Python 调用 |
|---|---|
| ✅ | obj.isPreferredEquivalent() |
| ✅ | obj.isOriginal() |
| ✅ | obj.getConnectDef() |
| ✅ | obj.getConnStatus() |
| ✅ | obj.getOriginal() |
| ✅ | obj.getParasiticConfidence(minValue, maxValue) |
| ✅ | obj.getPreferredEquivalent() |
| ✅ | obj.getRoutePattern() |
| ✅ | obj.getShieldNet1() |
| ✅ | obj.getShieldNet2() |
| ✅ | obj.getVoltage() |
| ✅ | obj.setConnStatus(status) |
| ✅ | obj.setOriginal(original) |
| ✅ | obj.setParasiticConfidence(value) |
| ✅ | obj.setParasiticConfidence(minValue, maxValue) |
| ✅ | obj.setPreferredEquivalent() |
| ✅ | obj.setRoutePattern(routePattern) |
| ✅ | obj.setShieldNet1(shieldNet) |
| ✅ | obj.setShieldNet2(shieldNet) |
| ✅ | obj.setVoltage(voltage) |
| ✅ | 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 oaBitNet
obj.isPreferredEquivalent()
obj.isOriginal()
绑定状态: 已绑定
Python 调用: obj.isOriginal()
This function returns true if this net is an original net。
Python 示例
from oapy._oa import _design
# assume obj is a oaBitNet
obj.isOriginal()
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 oaBitNet
obj.getConnectDef()
obj.getConnStatus()
绑定状态: 已绑定
Python 调用: obj.getConnStatus()
This function returns the setting for this net that determines if optimization is allowed to change its connectivity。
Python 示例
from oapy._oa import _design
# assume obj is a oaBitNet
obj.getConnStatus()
obj.getOriginal()
绑定状态: 已绑定
Python 调用: obj.getOriginal()
This function returns the original net for this bit net。
Python 示例
from oapy._oa import _design
# assume obj is a oaBitNet
obj.getOriginal()
obj.getParasiticConfidence(minValue, maxValue)
绑定状态: 已绑定
Python 调用: obj.getParasiticConfidence(minValue, maxValue)
This function returns the minimum and maximum parasitic confidence values。 These values are can be between 0 and 100。
参数
minValue: A reference to an integer to be populated with the minimum value。maxValue: A reference to an integer to be populated with the maximum value。
Python 示例
from oapy._oa import _design
# assume obj is a oaBitNet
obj.getParasiticConfidence(minValue, maxValue)
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 oaBitNet
obj.getPreferredEquivalent()
obj.getRoutePattern()
绑定状态: 已绑定
Python 调用: obj.getRoutePattern()
This function returns the routePattern value of this net。
Python 示例
from oapy._oa import _design
# assume obj is a oaBitNet
obj.getRoutePattern()
obj.getShieldNet1()
绑定状态: 已绑定
Python 调用: obj.getShieldNet1()
Nets can have up to 2 other nets that will be routed in parallel with it to shield it from signal noise。 Shield nets are usually power or ground nets。 This function returns the first shield net for this net if it exists。 When an oaRoute is created on that shield net that will provide this shielding then the route will point to this net as its shielded net。 See oaRoute::getShielding1 for that relationship。
Python 示例
from oapy._oa import _design
# assume obj is a oaBitNet
obj.getShieldNet1()
obj.getShieldNet2()
绑定状态: 已绑定
Python 调用: obj.getShieldNet2()
This function returns the second shield net for this net if it exists。
Python 示例
from oapy._oa import _design
# assume obj is a oaBitNet
obj.getShieldNet2()
obj.getVoltage()
绑定状态: 已绑定
Python 调用: obj.getVoltage()
This function returns the voltage for this net。
Python 示例
from oapy._oa import _design
# assume obj is a oaBitNet
obj.getVoltage()
obj.setConnStatus(status)
绑定状态: 已绑定
Python 调用: obj.setConnStatus(status)
This function sets the connectivity status for this net which determines if optimization is allowed to change its connectivity。
参数
status: The new oaConnStatus value for this net。
异常
oacCannotSetConnStatusImplicitNet。
Python 示例
from oapy._oa import _design
# assume obj is a oaBitNet
obj.setConnStatus(status)
obj.setOriginal(original)
绑定状态: 已绑定
Python 调用: obj.setOriginal(original)
This function sets the original net for this bit net。 This net becomes a derived net of the original net。 Setting a net's original net to itself does nothing。 Setting the original net to NULL will unset the original net。
参数
original: The net that this net will be considered derived from。
异常
oacOriginalNetNotInSameBlock。oacCannotSetOriginalNetImplicitNet。oacImplicitNetCannotBeOriginalNet。
Python 示例
from oapy._oa import _design
# assume obj is a oaBitNet
obj.setOriginal(original)
obj.setParasiticConfidence(value)
绑定状态: 已绑定
Python 调用: obj.setParasiticConfidence(value)
This function sets the minimum and maximum parasitic confidence values for this net。 These values must be between 0 and 100。
参数
minValue: A reference to an integer to be populated with the minimum value。maxValue: A reference to an integer to be populated with the maximum value。
异常
oacInvalidParasiticConfidenceValue。oacCannotSetParasiticConfImplicitNet。
Python 示例
from oapy._oa import _design
# assume obj is a oaBitNet
obj.setParasiticConfidence(value)
obj.setParasiticConfidence(minValue, maxValue)
绑定状态: 已绑定
Python 调用: obj.setParasiticConfidence(minValue, maxValue)
This function sets the minimum and maximum parasitic confidence values for this net。 Since only one value is specified, the minimum and maximum values are the same。 The parasitic confidence values must be between 0 and 100。
参数
value: The value to the confidence values to for this net。
异常
oacInvalidParasiticConfidenceValue。
Python 示例
from oapy._oa import _design
# assume obj is a oaBitNet
obj.setParasiticConfidence(minValue, maxValue)
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 oaBitNet
obj.setPreferredEquivalent()
obj.setRoutePattern(routePattern)
绑定状态: 已绑定
Python 调用: obj.setRoutePattern(routePattern)
This function sets the routePattern for this net to the specified value。
参数
routePattern: The new oaRoutePattern value for this net。
异常
oacCannotSetRoutePattenImplicitNet。
Python 示例
from oapy._oa import _design
# assume obj is a oaBitNet
obj.setRoutePattern(routePattern)
obj.setShieldNet1(shieldNet)
绑定状态: 已绑定
Python 调用: obj.setShieldNet1(shieldNet)
This function sets shield net 1 for this net to the specified net。 Setting the shield net to NULL unsets the shield net。 A net can have zero, one, or two shield nets。
参数
shieldNet: The new shield one net value for this net。
异常
oacShieldNetNotInSameBlock。oacCannotShieldImplicitNet。oacImplicitNetCannotShieldNet。
Python 示例
from oapy._oa import _design
# assume obj is a oaBitNet
obj.setShieldNet1(shieldNet)
obj.setShieldNet2(shieldNet)
绑定状态: 已绑定
Python 调用: obj.setShieldNet2(shieldNet)
This function sets shield net 2 for this net to the specified net。 Setting the shield net to NULL unsets the shield net。 A net can have zero, one, or two shield nets。
参数
shieldNet: The new shield two net value for this net。
异常
oacShieldNetNotInSameBlock。oacCannotShieldImplicitNet。oacImplicitNetCannotShieldNet。
Python 示例
from oapy._oa import _design
# assume obj is a oaBitNet
obj.setShieldNet2(shieldNet)
obj.setVoltage(voltage)
绑定状态: 已绑定
Python 调用: obj.setVoltage(voltage)
This function sets the voltage for this net to the specified value。
参数
voltage: The new voltage value for this net。
异常
oacCannotSetVoltageImplicitNet。
Python 示例
from oapy._oa import _design
# assume obj is a oaBitNet
obj.setVoltage(voltage)
obj.makeEquivalent(equivNet)
绑定状态: 已绑定
Python 调用: obj.makeEquivalent(equivNet)
This function sets this net and the specified net as equivalent。
参数
equivNet: The net to establish equivalency with。
异常
oacInvalidNet。oacNetEquivNetNotInSameBlock。oacTermMustJoinSameNet。
Python 示例
from oapy._oa import _design
# assume obj is a oaBitNet
obj.makeEquivalent(equivNet)
obj.breakEquivalence()
绑定状态: 已绑定
Python 调用: obj.breakEquivalence()
This function breaks the net equivalence between this net and all other nets that are equivalent。
异常
oacNetHasNoEquivNet。oacCannotModifyImplicitNetEquivalence。
Python 示例
from oapy._oa import _design
# assume obj is a oaBitNet
obj.breakEquivalence()
obj.hasImplicitEquivalence()
绑定状态: 已绑定
Python 调用: obj.hasImplicitEquivalence()
This function returns true if this net is implicitly equivalent to another net due to overlapping or repeated bits in terms or instTerms。 This type of equivalence cannot be modified by calling breakEquivalence。
Python 示例
from oapy._oa import _design
# assume obj is a oaBitNet
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 oaBitNet
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 oaBitNet
obj.getEquivalentNets(filterFlags)