Inheritance diagram for oaModBusNetDef:
Public Methods | |
void | destroy () |
oaUInt4 | getMinIndex () const |
oaUInt4 | getMaxIndex () const |
oaUInt4 | getNumBits () const |
void | getName (oaScalarName &name) const |
void | getName (const oaNameSpace &ns, oaString &name) const |
oaBitOrder | getBitOrder () const |
oaBoolean | isImplicit () const |
void | setBitOrder (oaBitOrder order) |
oaCollection< oaModBusNet, oaModBusNetDef > | getBusNets () const |
oaCollection< oaModBusNetBit, oaModBusNetDef > | getBusNetBits () const |
Static Public Methods | |
oaModBusNetDef * | create (const oaModule *module, const oaScalarName &name, oaBitOrder order) |
oaModBusNetDef * | find (const oaModule *module, const oaScalarName &name) |
Public Types | |
enum | { dtIndex = oacBusNetDefDataType } |
A busNetDef can be 'sparse' (have missing bits). Busses do not have to start or end at zero. For example, a<22:25>
is a legal bus name. Bus indexes must be non-negative.
An busNetDef is automatically created if necessary whenever applications create busNets. Implicitly created busNet definitions have no bitOrder. Applications may explicitly create a busNet definition in order to specify that it has a specific bitOrder.
The bit order of an explicit oaModBusNetDef is independent of the order within individual oaModBusNets with the same base name. Verilog requires a single wire declaration for a given base name, and the range of that declaration covers all of the bit indices used by the sub-ranges that correspond to oaModBusNets.
Implicitly created busNet definitions are automatically destroyed when the last busNet with the same base name is destroyed. Explicitly created busNet definitions must be explicitly destroyed.
The oaModBusNetDef class can be observed by deriving from oaObserver<oaModBusNetDef>.
|
This function creates an oaModBusNetDef in the specified module with the given base name and bit order. An exception is thrown if an oaModBusNetDef already exists with the specified name. Explicitly creating an oaModBusNetDef also means that the busNet definition must be explicitly destroyed.
|
|
This function destroys this oaModBusNetDef, removing it from the database. An exception is thrown if the oaModBusNetDef is implicit or if there are still oaModBusNets associated with it.
|
|
This function searches the specified module for an oaModBusNetDef with the specified name. The oaModBusNetDef is returned if found. Otherwise, NULL is returned.
|
|
This function returns the bitOrder associated with this oaModBusNetDef. |
|
This function returns a collection of oaModBusNetBit objects in this oaModBusNetDef object. |
|
This function returns a collection of oaModBusNet objects in this oaModBusNetDef object. |
|
This function returns the largest bit number in use for this oaModBusNetDef object. This is the largest index used across all busNets associated with this oaModBusNetDef object. |
|
This function returns the smallest bit number in use for this oaModBusNetDef object. This is the smallest index used across all busNets associated with this oaModBusNetDef object. |
|
This function returns the name string of this oaModBusNetDef object in the specified nameSpace.
|
|
This function returns the name of this oaModBusNetDef object.
|
|
This function returns the number of bits covered by the busses in this oaModBusNetDef. The number of bits is equal to abs(maxIndex - minIndex) + 1; it is not necessarily the number of busNetBits present in this busNetDef. To get the number of busNetBits in this busNetDef, use |
|
This function returns a boolean indicating whether this oaModBusNetDef was implicitly created or not. |
|
This function changes the bitOrder value associated with the oaModBusNetDef. An exception is thrown if this busNetDef was implicitly created.
|
|
|
Copyright © 2002 - 2010 Cadence Design Systems, Inc.
All Rights Reserved.