oaModTermConnectDef Class Reference

Inheritance diagram for oaModTermConnectDef:

oaModConnectDef oaModObject oaDesignObject oaObject


Public Methods

oaModBitTermgetTerm () const

Static Public Methods

oaModTermConnectDef * create (const oaModBitTerm *term, const oaAssignmentDef &assignmentDef)

Detailed Description

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

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.


Member Function Documentation

oaModTermConnectDef * oaModTermConnectDef::create const oaModBitTerm *    term,
const oaAssignmentDef &    assignmentDef
[static]
 

This function creates a connection definition on the specified term using the information in the given assignmentDef.

Parameters:
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
Returns:
A pointer to an oaModTermConnectDef
Exceptions:
oacTermAlreadyHasConnectDef 

oaModBitTerm * oaModTermConnectDef::getTerm   const
 

This function returns a pointer to the modBitTerm associated with this connection definition.


The documentation for this class was generated from the following files:

Return to top of page