oaBundleNet.h

Go to the documentation of this file.
00001 // *****************************************************************************
00002 // *****************************************************************************
00003 // oaBundleNet.h
00004 //
00005 // This file contains the definitions for the oaBundleNet class. This class
00006 // implements a multi-bit net composed of one or more scalarNets and/or busNets.
00007 //
00008 // *****************************************************************************
00009 // Except as specified in the OpenAccess terms of use of Cadence or Silicon
00010 // Integration Initiative, this material may not be copied, modified,
00011 // re-published, uploaded, executed, or distributed in any way, in any medium,
00012 // in whole or in part, without prior written permission from Cadence.
00013 //
00014 //                Copyright 2002-2005 Cadence Design Systems, Inc.
00015 //                           All Rights Reserved.
00016 //
00017 //  $Author: icftcm $
00018 //  $Revision: #1 $
00019 //  $Date: 2010/08/09 $
00020 //  $State: Exp $
00021 // *****************************************************************************
00022 // *****************************************************************************
00023 
00024 
00025 
00026 #if !defined(oaBundleNet_P)
00027 #define oaBundleNet_P
00028 
00029 
00030 
00031 // *****************************************************************************
00032 // Nested includes
00033 // *****************************************************************************
00034 #include "oaBlock.h"
00035 
00036 
00037 
00038 // *****************************************************************************
00039 // Declare and define types in the OpenAccess namespace.
00040 // *****************************************************************************
00041 BEGIN_OA_NAMESPACE
00042 
00043 
00044 
00045 // *****************************************************************************
00046 // oaBundleNet
00047 // *****************************************************************************
00048 class OA_DESIGN_DLL_API oaBundleNet : public oaNet {
00049 public:
00050     static oaBundleNet                  *create(oaBlock                 *block,
00051                                                 const oaBundleName      &name,
00052                                                 oaSigType               sigType = oacSignalSigType,
00053                                                 oaBoolean               isGlobal = false,
00054                                                 oaBlockDomainVisibility view = oacInheritFromTopBlock);
00055 
00056     static oaBundleNet                  *find(const oaBlock         *block,
00057                                               const oaBundleName    &name);
00058     static oaBoolean                    isValidName(oaBlock             *block,
00059                                                     const oaBundleName  &name);
00060 
00061     oaUInt4                             getNumMembers() const;
00062     oaUInt4                             getRepeat(oaUInt4 index) const;
00063     oaNet                               *getMember(oaUInt4 index) const;
00064 
00065     using                               oaNet::getName;
00066     void                                getName(oaBundleName &name) const;
00067 
00068     oaCollection<oaNet, oaBundleNet>    getMembers() const;
00069     oaCollection<oaOccNet, oaBundleNet> getOccMembers() const;
00070 };
00071 
00072 
00073 
00074 // *****************************************************************************
00075 // Design Traits.
00076 // *****************************************************************************
00077 template<>
00078 class oaTraits<oaBundleNet> {
00079 public:
00080     typedef oaNetModTypeEnum    modTypeType;
00081     typedef oaNet               parentType;
00082     enum {dtIndex = oacNetDataType};
00083     enum {isMultiDomain = true};
00084     enum {dataTypeEnumVal = oacNetDataType};
00085     enum {domain = oacBlockDomain};
00086     enum {dbType = oacDesignDBType};
00087     enum {isConcrete = true};
00088     enum {objectTypeEnumVal = oacBundleNetType};
00089 };
00090 
00091 
00092 
00093 END_OA_NAMESPACE
00094 
00095 #endif

Return to top of page