oaModTermConnectDef
模块: oapy._oa._design
导入: from oapy._oa import _design
概览
oaModTermConnectDef 在 oapy 中可用,可通过 _design 模块访问。
本页汇总 oaModTermConnectDef 当前在 oapy 中可用的 Python 接口。
详细说明
The oaModTermConnectDef class implements a connection definition that associates an oaAssignmentDef with a single-bit terminal。 The oaAssignmentDef used to create the oaModTermConnectDef specifies the name of an oaModAssignment and a default net name。 Applications that analyze design connectivity must resolve the name of the net to externally connect to the terminal associated with the oaModTermConnectDef。 The application searches up the design hierarchy for an oaModAssignment that matches the assignment name specified in the oaModTermConnectDef。 If the assignment is found, the application uses the net name it specifies as the name of the net to externally connect to the terminal that is associated with the oaModTermConnectDef。 If an assignment is not found, the application uses the default net name specified in the oaModTermConnectDef。 An oaModTermConnectDef is often used as part of parameterized power and ground symbols to specify substrate connections For example, you want to use a 4 terminal transistor device but aren't sure what the bulk node connection will connect to yet。 You can create an oaModTermConnectDef on the bulk terminal that specifies the name of an assignment called "bulk_override" and has a default name name "gnd"。 Once you've determined what you want the bulk nodes connected to, you can create a matching oaModAssignValue on an instance representing that part of the design where you want to make the assignment。 You would name the oaModAssignValue "bulk_override" and its value would be the name of the net you want to connect the bulk nodes to。 If you didn't create an oaModAssignment named "bulk_override", the default net name "gnd" would be used。 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.getTerm() |
| ✅ | _design.oaModTermConnectDef.create(term, assignmentDef) |
方法说明
obj.getTerm()
绑定状态: 已绑定
Python 调用: obj.getTerm()
This function returns a pointer to the modBitTerm associated with this connection definition。
Python 示例
from oapy._oa import _design
# assume obj is a oaModTermConnectDef
obj.getTerm()
_design.oaModTermConnectDef.create(term, assignmentDef)
绑定状态: 已绑定
Python 调用: _design.oaModTermConnectDef.create(term, assignmentDef)
This function creates a connection definition on the specified term using the information in the given assignmentDef。
参数
term: The single-bit terminal for which to define the connection。assignmentDef: The assignment definition that specifies the name of an oaModAssignment 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 oaModTermConnectDef。
异常
oacTermAlreadyHasConnectDef。
Python 示例
from oapy._oa import _design
_design.oaModTermConnectDef.create(term, assignmentDef)