Inheritance diagram for oaBusNetDef:
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< oaBusNet, oaBusNetDef > | getBusNets () const |
oaCollection< oaBusNetBit, oaBusNetDef > | getBusNetBits () const |
oaCollection< oaOccBusNet, oaBusNetDef > | getOccBusNets () const |
oaCollection< oaOccBusNetBit, oaBusNetDef > | getOccBusNetBits () const |
Static Public Methods | |
oaBusNetDef * | create (const oaBlock *block, const oaScalarName &name, oaBitOrder order) |
oaBusNetDef * | find (const oaBlock *block, 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 oaBusNetDef 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 oaBusNetDef is independent of the order within individual oaBusNets 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 oaBusNets.
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 oaBusNetDef class can be observed by deriving from oaObserver<oaBusNetDef>.
|
This function creates an oaBusNetDef in the specified block with the given base name and bit order. An exception is thrown if an oaBusNetDef already exists with the specified name. Explicitly creating an oaBusNetDef also means that the busNet definition must be explicitly destroyed. The bit order of an explicit oaBusNetDef is independent of the order within individual oaBusNets 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 oaBusNets. If the name is hierarchical, the oaBusNetDef is created if:
|
|
This function destroys this oaBusNetDef, removing it from the database. An exception is thrown if the oaBusNetDef is implicit or if there are still oaBusNets associated with it.
|
|
This function searches the specified block for an oaBusNetDef with the specified name. The oaBusNetDef is returned if found. Otherwise, NULL is returned. If the name is hierarchical and an oaOccBusNetDef with that name can be found, and the oaOccBusNetDef is published in the block domain, the block domain reflection of that oaOccBusNetDef is returned. If the occBusNetDef is not published in the block domain, NULL is returned.
|
|
This function returns the bitOrder associated with this oaBusNetDef object. |
|
This function returns a collection of oaBusNetBit objects in this oaBusNetDef object. |
|
This function returns a collection of oaBusNet objects in this oaBusNetDef object. |
|
This function returns the largest bit number in use for this oaBusNetDef object. This is the largest index used across all busNets associated with this oaBusNetDef object. |
|
This function returns the smallest bit number in use for this oaBusNetDef object. This is the smallest index used across all busNets associated with this oaBusNetDef object. |
|
This function returns the name string of this oaBusNetDef object in the specified nameSpace.
|
|
This function returns the name of this oaBusNetDef object.
|
|
This function returns the number of bits covered by the busses in this oaBusNetDef. 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 collection of oaOccBusNetBits in this oaBusNetDef. |
|
This function returns a collection of oaOccBusNets in this oaBusNetDef. |
|
This function returns a boolean indicating whether this oaBusNetDef was implicitly created or not. |
|
This function changes the bitOrder value associated with the oaBusNetDef. An exception is thrown if this busNetDef was implicitly created.
|
|
|
Copyright © 2002 - 2010 Cadence Design Systems, Inc.
All Rights Reserved.