oaModVectorInst.h

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

Return to top of page