oaVectorInst.h

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

Return to top of page