oaAssignValue
模块: oapy._oa._design
导入: from oapy._oa import _design
概览
oaAssignValue 在 oapy 中可用,可通过 _design 模块访问。
本页汇总 oaAssignValue 当前在 oapy 中可用的 Python 接口。
详细说明
The oaAssignValue class implements a connection assignment that specifies the name of the net to use in place of the name of the net associated with the corresponding oaNetConnectDef object the name of the net to use to externally connect to the terminal associated with the corresponding oaTermConnectDef object。
方法总览
| 状态 | Python 调用 |
|---|---|
| ✅ | obj.getValue(netName) |
| ✅ | obj.setValue(netName) |
| ✅ | obj.setValue(netName) |
| ✅ | _design.oaAssignValue.create(inst, name, netName) |
| ✅ | _design.oaAssignValue.create(inst, name, netName) |
方法说明
obj.getValue(netName)
绑定状态: 已绑定
Python 调用: obj.getValue(netName)
This function returns the netName of this oaAssignValue object。 This netName specifies the name of a single-bit net to use to in resolving the connections associated with a corresponding oaConnectDef object in the design hierarchy。
Python 示例
from oapy._oa import _design
# assume obj is a oaAssignValue
obj.getValue(netName)
obj.setValue(netName)
绑定状态: 已绑定
Python 调用: obj.setValue(netName)
This function sets the netName value of this oaAssignValue object。
Python 示例
from oapy._oa import _design
# assume obj is a oaAssignValue
obj.setValue(netName)
obj.setValue(netName)
绑定状态: 已绑定
Python 调用: obj.setValue(netName)
This function sets the netName value of this oaAssignValue object。
Python 示例
from oapy._oa import _design
# assume obj is a oaAssignValue
obj.setValue(netName)
_design.oaAssignValue.create(inst, name, netName)
绑定状态: 已绑定
Python 调用: _design.oaAssignValue.create(inst, name, netName)
This function creates an oaAssignValue object with the specified attributes on the given instance。
参数
inst: The instance this assign will be attached to。 It will apply to ConnectDefs in the hierarchy underneath this instance。name: The name to give to the assignment。 This name should correspond to the assignment name specified in the assignment definition in an oaNetConnectDef or oaTermConnectDef object。netName: The name of a single-bit bus net used to resolve the connectivity associated with oaNetConnectDef and oaTermConnectDef objects in a design hierarchy。
异常
oacInstHasAssignment。
Python 示例
from oapy._oa import _design
_design.oaAssignValue.create(inst, name, netName)
_design.oaAssignValue.create(inst, name, netName)
绑定状态: 已绑定
Python 调用: _design.oaAssignValue.create(inst, name, netName)
This function creates an oaAssignValue object with the specified attributes on the given instance。
参数
inst: The instance this assign will be attached to。 It will apply to ConnectDefs in the hierarchy underneath this instance。name: The name to give to the assignment。 This name should correspond to the assignment name specified in the assignment definition in an oaNetConnectDef or oaTermConnectDef 。netName: The name of a scalar net to be used when resolving the connectivity associated with oaNetConnectDef and oaTermConnectDef objects in a design hierarchy。
异常
oacInstHasAssignment。
Python 示例
from oapy._oa import _design
_design.oaAssignValue.create(inst, name, netName)