oaNetConnectDef Class Reference

Inheritance diagram for oaNetConnectDef:

oaConnectDef oaBlockObject oaDesignObject oaObject


Public Methods

oaBitNetgetNet () const

Static Public Methods

oaNetConnectDef * create (const oaBitNet *net, const oaAssignmentDef &assignmentDef)

Detailed Description

The oaNetConnectDef class implements a connection definition that associates an oaAssignmentDef with a single-bit net. The oaAssignmentDef used to create the oaNetConnectDef specifies the name of an oaAssignment and a default net name.

Applications that analyze design connectivity must resolve the net name of the net associated with an oaNetConnectDef. The application searches up the design hierarchy for an oaAssignment that matches the assignment name specified in the oaAssignmentDef of the oaNetConnectDef. 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 oaNetConnectDef. If an assignment is not found, the application uses the default net name specified in the oaAssignmentDef of the oaNetConnectDef.

An oaNetConnectDef 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 oaNetConnectDef on the vdd net that specifies the name of an assignment called "vdd_override". Up in the hierarchy, you would then create an oaAssignValue on an instance representing that part of the design you want to replace the net name vcc for vdd. The oaAssignValue 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

oaNetConnectDef * oaNetConnectDef::create const oaBitNet *    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 bitNet 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 oaNetConnectDef
Exceptions:
oacNetAlreadyHasConnectDef 

oaBitNet * oaNetConnectDef::getNet   const
 

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


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

Return to top of page