oaTermConnectDef Class Reference

Inheritance diagram for oaTermConnectDef:

oaConnectDef oaBlockObject oaDesignObject oaObject


Public Methods

oaBitTermgetTerm () const

Static Public Methods

oaTermConnectDef * create (const oaBitTerm *term, const oaAssignmentDef &assignmentDef)

Detailed Description

The oaTermConnectDef class implements a connection definition that associates an oaAssignmentDef with a single-bit terminal. The oaAssignmentDef used to create the oaTermConnectDef specifies the name of an oaAssignment 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 oaTermConnectDef. The application searches up the design hierarchy for an oaAssignment that matches the assignment name specified in the oaAssignmentDef of the oaTermConnectDef. 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 oaTermConnectDef. If an assignment is not found, the application uses the default net name specified in the oaAssignmentDef of the oaTermConnectDef.

An oaTermConnectDef 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 oaTermConnectDef 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 oaAssignValue on an instance representing that part of the design where you want to make the assignment. You would name the oaAssignValue "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 oaAssignment 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

oaTermConnectDef * oaTermConnectDef::create const oaBitTerm *    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 oaAssignment 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 oaTermConnectDef
Exceptions:
oacTermAlreadyHasConnectDef 

oaBitTerm * oaTermConnectDef::getTerm   const
 

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


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

Return to top of page