oaModAssignValue
模块: oapy._oa._design
导入: from oapy._oa import _design
概览
oaModAssignValue 在 oapy 中可用,可通过 _design 模块访问。
本页汇总 oaModAssignValue 当前在 oapy 中可用的 Python 接口。
详细说明
The oaModAssignValue 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 oaModNetConnectDef object the name of the net to use to externally connect to the terminal associated with the corresponding oaModTermConnectDef object。
方法总览
| 状态 | Python 调用 |
|---|---|
| ✅ | obj.getValue(netName) |
| ✅ | obj.setValue(netName) |
| ✅ | obj.setValue(netName) |
| ✅ | _design.oaModAssignValue.create(inst, name, netName) |
| ✅ | _design.oaModAssignValue.create(inst, name, netName) |
方法说明
obj.getValue(netName)
绑定状态: 已绑定
Python 调用: obj.getValue(netName)
This function returns the netName of this oaModAssignValue object。 This netName specifies the name of a single-bit net to use to in resolving the connections associated with a corresponding oaModConnectDef object in the design hierarchy。
Python 示例
from oapy._oa import _design
# assume obj is a oaModAssignValue
obj.getValue(netName)
obj.setValue(netName)
绑定状态: 已绑定
Python 调用: obj.setValue(netName)
This function sets the netName value of this oaModAssignValue object。
Python 示例
from oapy._oa import _design
# assume obj is a oaModAssignValue
obj.setValue(netName)
obj.setValue(netName)
绑定状态: 已绑定
Python 调用: obj.setValue(netName)
This function sets the netName value of this oaModAssignValue object。
Python 示例
from oapy._oa import _design
# assume obj is a oaModAssignValue
obj.setValue(netName)
_design.oaModAssignValue.create(inst, name, netName)
绑定状态: 已绑定
Python 调用: _design.oaModAssignValue.create(inst, name, netName)
This function creates an oaModAssignValue 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 oaModNetConnectDef or oaModTermConnectDef object。netName: The name of a single-bit bus net to be used when resolving the connectivity associated with oaModNetConnectDef and oaModTermConnectDef objects in a design hierarchy。
异常
oacInstHasAssignment。
Python 示例
from oapy._oa import _design
_design.oaModAssignValue.create(inst, name, netName)
_design.oaModAssignValue.create(inst, name, netName)
绑定状态: 已绑定
Python 调用: _design.oaModAssignValue.create(inst, name, netName)
This function creates an oaModAssignValue 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 oaModNetConnectDef or oaModTermConnectDef 。netName: The name of a scalar net to be used when resolving the connectivity associated with oaModNetConnectDef and oaModTermConnectDef objects in a design hierarchy。
异常
oacInstHasAssignment。
Python 示例
from oapy._oa import _design
_design.oaModAssignValue.create(inst, name, netName)