oaScalarInst.h

Go to the documentation of this file.
00001 // *****************************************************************************
00002 // *****************************************************************************
00003 // oaScalarInst.h
00004 //
00005 // This file contains the definition for the oaScalarInst class. This class
00006 // implements a scalar (single-bit) instance. A scalarInst has a simple name
00007 // with no index.
00008 //
00009 // *****************************************************************************
00010 // Except as specified in the OpenAccess terms of use of Cadence or Silicon
00011 // Integration Initiative, this material may not be copied, modified,
00012 // re-published, uploaded, executed, or distributed in any way, in any medium,
00013 // in whole or in part, without prior written permission from Cadence.
00014 //
00015 //                Copyright 2002-2005 Cadence Design Systems, Inc.
00016 //                           All Rights Reserved.
00017 //
00018 //  $Author: icftcm $
00019 //  $Revision: #1 $
00020 //  $Date: 2010/08/09 $
00021 //  $State: Exp $
00022 // *****************************************************************************
00023 // *****************************************************************************
00024 
00025 
00026 
00027 #if !defined(oaScalarInst_P)
00028 #define oaScalarInst_P
00029 
00030 
00031 
00032 // *****************************************************************************
00033 // Nested includes
00034 // *****************************************************************************
00035 #include "oaInst.h"
00036 
00037 
00038 
00039 // *****************************************************************************
00040 // Declare and define types in the OpenAccess namespace.
00041 // *****************************************************************************
00042 BEGIN_OA_NAMESPACE
00043 
00044 
00045 
00046 // *****************************************************************************
00047 // oaScalarInst
00048 // *****************************************************************************
00049 class OA_DESIGN_DLL_API oaScalarInst : public oaBitInst {
00050 public:
00051     static oaScalarInst     *create(oaBlock                 *block,
00052                                     oaDesign                *master,
00053                                     const oaScalarName      &name,
00054                                     const oaTransform       &xform,
00055                                     const oaParamArray      *params = NULL,
00056                                     oaBlockDomainVisibility view = oacInheritFromTopBlock,
00057                                     oaPlacementStatus       status = oacNonePlacementStatus);
00058     static oaScalarInst     *create(oaBlock                 *block,
00059                                     oaDesign                *master,
00060                                     const oaTransform       &xform,
00061                                     const oaParamArray      *params = NULL,
00062                                     oaBlockDomainVisibility view = oacInheritFromTopBlock,
00063                                     oaPlacementStatus       status = oacNonePlacementStatus);
00064     static oaScalarInst     *create(oaBlock                 *block,
00065                                     const oaScalarName      &libName,
00066                                     const oaScalarName      &cellName,
00067                                     const oaScalarName      &viewName,
00068                                     const oaScalarName      &name,
00069                                     const oaTransform       &xform,
00070                                     const oaParamArray      *params = NULL,
00071                                     oaBlockDomainVisibility view = oacInheritFromTopBlock,
00072                                     oaPlacementStatus       status = oacNonePlacementStatus);
00073     static oaScalarInst     *create(oaBlock                 *block,
00074                                     const oaScalarName      &libName,
00075                                     const oaScalarName      &cellName,
00076                                     const oaScalarName      &viewName,
00077                                     const oaTransform       &xform,
00078                                     const oaParamArray      *params = NULL,
00079                                     oaBlockDomainVisibility view = oacInheritFromTopBlock,
00080                                     oaPlacementStatus       status = oacNonePlacementStatus);
00081 
00082     static oaScalarInst     *find(const oaBlock         *block,
00083                                   const oaScalarName    &name);
00084 
00085     static oaBoolean        isValidName(const oaBlock       *block,
00086                                         const oaScalarName  &name);
00087 
00088     using                   oaInst::getName;
00089     void                    getName(oaScalarName &name) const;
00090 
00091     void                    setName(const oaScalarName &name);
00092 
00093     using                   oaInst::copy;
00094     oaScalarInst            *copy(const oaScalarName    &name,
00095                                   const oaTransform     &xform);
00096     oaScalarInst            *copy(const oaScalarName    &name,
00097                                   const oaTransform     &xform,
00098                                   oaBlock               *block);
00099 };
00100 
00101 
00102 
00103 // *****************************************************************************
00104 // Design Traits.
00105 // *****************************************************************************
00106 template<>
00107 class oaTraits<oaScalarInst> {
00108 public:
00109     typedef oaInstModTypeEnum   modTypeType;
00110     typedef oaBitInst           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 = oacScalarInstType};
00118 };
00119 
00120 
00121 
00122 END_OA_NAMESPACE
00123 
00124 #endif

Return to top of page