oaModNetConnectDef Class Reference

Inheritance diagram for oaModNetConnectDef:

oaModConnectDef oaModObject oaDesignObject oaObject


Public Methods

oaModBitNetgetNet () const

Static Public Methods

oaModNetConnectDef * create (const oaModBitNet *net, const oaAssignmentDef &assignmentDef)

Detailed Description

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

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.


Member Function Documentation

oaModNetConnectDef * oaModNetConnectDef::create const oaModBitNet *    net,
const oaAssignmentDef &    assignmentDef
[static]
 

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

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

oaModNet * oaModNetConnectDef::getNet   const
 

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


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

Return to top of page