oaModNetConnectDef
模块: oapy._oa._design
导入: from oapy._oa import _design
概览
oaModNetConnectDef 在 oapy 中可用,可通过 _design 模块访问。
本页汇总 oaModNetConnectDef 当前在 oapy 中可用的 Python 接口。
详细说明
The oaModNetConnectDef class implements a connection definition that associates an oaAssignmentDef with a single-bit net。 The oaAssignmentDef used to create the oaModNetConnectDef specifies the name of an oaModAssignment and a default net name。 Applications that analyze design connectivity must resolve the net name of the net associated with an oaModNetConnectDef。 The application searches up the design hierarchy for an oaModAssignment that matches the assignment name specified in the oaModNetConnectDef。 If the assignment is found, the application uses the net name it specifies instead of the name of the net that is associated with the oaModNetConnectDef。 If an assignment is not found, the application uses the default net name specified in the oaModNetConnectDef。 An oaModNetConnectDef is usually associated with a global net。 This allows easier specification of multiple power supplies easier specification of substrate connections the use of parameterized power and ground symbols For example, a global net named vdd is used in a lower-level part of a design。 At a higher level, you decide that you want all of the vdd connections connected to a net named vcc。 To accomplish this, you could create an oaModNetConnectDef on the vdd net that specifies the name of an assignment called "vdd_override"。 Up in the hierarchy, you would then create an oaModAssignValue on an instance representing that part of the design you want to replace the net name vcc for vdd。 The oaModAssignValue would be named "vdd_override" and it would have the net name value vcc。 Note: Not all applications support resolving connectivity specified with connection definitions and assignments。 You should verify that downstream consumers of the data are able to resolve such connectivity。
方法总览
| 状态 | Python 调用 |
|---|---|
| ✅ | obj.getNet() |
| ✅ | _design.oaModNetConnectDef.create(net, assignmentDef) |
方法说明
obj.getNet()
绑定状态: 已绑定
Python 调用: obj.getNet()
This function returns a pointer to the modBitNet associated with this connection definition。
Python 示例
from oapy._oa import _design
# assume obj is a oaModNetConnectDef
obj.getNet()
_design.oaModNetConnectDef.create(net, assignmentDef)
绑定状态: 已绑定
Python 调用: _design.oaModNetConnectDef.create(net, assignmentDef)
This function creates a connection definition on the specified net using the information in the given assignmentDef。
参数
net: The single-bit net for which to define the connection。assignmentDef: The assignment definition that specifies the name of an assignment to search for in order to resolve the connectivity and a default net name to use if a matching assignment is not found。
返回
- A pointer to an oaModNetConnectDef。
异常
oacNetAlreadyHasConnectDef。
Python 示例
from oapy._oa import _design
_design.oaModNetConnectDef.create(net, assignmentDef)