oaModModuleVectorInst.h

Go to the documentation of this file.
00001 // *****************************************************************************
00002 // *****************************************************************************
00003 // oaModModuleVectorInst.h
00004 //
00005 // This file contains the definition for the oaModModuleVectorInst class. This 
00006 // class implements a logical vector instance of module master.
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(oaModModuleVectorInst_P)
00027 #define oaModModuleVectorInst_P
00028 
00029 
00030 
00031 // *****************************************************************************
00032 // Nested includes
00033 // *****************************************************************************
00034 #include "oaModVectorInstDef.h"
00035 #include "oaModModuleInst.h"
00036 
00037 
00038 
00039 // *****************************************************************************
00040 // Declare and define types in the OpenAccess namespace.
00041 // *****************************************************************************
00042 BEGIN_OA_NAMESPACE
00043 
00044 
00045 
00046 // *****************************************************************************
00047 // oaModModuleVectorInst
00048 // *****************************************************************************
00049 class OA_DESIGN_DLL_API oaModModuleVectorInst : public oaModModuleInst {
00050 public:
00051     static oaModModuleVectorInst    *create(oaModule            *module,
00052                                             oaModule            *master,
00053                                             const oaScalarName  &baseName,
00054                                             oaUInt4             start,
00055                                             oaUInt4             stop);
00056 
00057     static oaModModuleVectorInst    *create(oaModule            *module,
00058                                             const oaScalarName  &masterModuleName,
00059                                             const oaScalarName  &baseName,
00060                                             oaUInt4             start,
00061                                             oaUInt4             stop);
00062 
00063     static oaModModuleVectorInst    *find(const oaModule        *module,
00064                                           const oaScalarName    &baseName,
00065                                           oaUInt4               start,
00066                                           oaUInt4               stop);
00067 
00068     static oaBoolean                isValidName(const oaModule      *module,
00069                                                 const oaScalarName  &baseName,
00070                                                 oaUInt4             start,
00071                                                 oaUInt4             stop);
00072 
00073     oaModVectorInstDef              *getDef() const;
00074     oaUInt4                         getStart() const;
00075     oaUInt4                         getStop() const;
00076     oaModModuleVectorInstBit        *getBit(oaUInt4 bitIndex) const;
00077 
00078     using                           oaModInst::getName;
00079     void                            getName(oaVectorName &name) const;
00080 
00081     void                            setBaseName(const oaScalarName &baseName);
00082     void                            setRange(oaUInt4    start,
00083                                              oaUInt4    stop);
00084 };
00085 
00086 
00087 
00088 // *****************************************************************************
00089 // Design Traits.
00090 // *****************************************************************************
00091 template<>
00092 class oaTraits<oaModModuleVectorInst> {
00093 public:
00094     typedef oaInstModTypeEnum   modTypeType;
00095     typedef oaModModuleInst     parentType;
00096     enum {dtIndex = oacInstDataType};
00097     enum {dataTypeEnumVal = oacInstDataType};
00098     enum {domain = oacModDomain};
00099     enum {isMultiDomain = true};
00100     enum {dbType = oacDesignDBType};
00101     enum {isConcrete = true};
00102     enum {objectTypeEnumVal = oacModModuleVectorInstType};
00103 };
00104 
00105 
00106 
00107 END_OA_NAMESPACE
00108 
00109 #endif

Return to top of page