oaOccModuleScalarInst.h

Go to the documentation of this file.
00001 // *****************************************************************************
00002 // *****************************************************************************
00003 // oaOccModuleScalarInst.h
00004 //
00005 // This file contains the definition for the oaOccModuleScalarInst class. This 
00006 // class implements an occurrence of a logical scalar (i.e. single-bit) 
00007 // instance of a module master.
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 2003-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(oaOccModuleScalarInst_P)
00028 #define oaOccModuleScalarInst_P
00029 
00030 
00031 
00032 // *****************************************************************************
00033 // Nested includes
00034 // *****************************************************************************
00035 #include "oaModModuleScalarInst.h"
00036 #include "oaOccModuleInst.h"
00037 
00038 
00039 
00040 // *****************************************************************************
00041 // Declare and define types in the OpenAccess namespace.
00042 // *****************************************************************************
00043 BEGIN_OA_NAMESPACE
00044 
00045 
00046 
00047 // *****************************************************************************
00048 // oaOccModuleScalarInst
00049 // *****************************************************************************
00050 class OA_DESIGN_DLL_API oaOccModuleScalarInst : public oaOccModuleBitInst {
00051 public:
00052     static oaOccModuleScalarInst    *find(const oaOccurrence    *occurrence,
00053                                           const oaScalarName    &name);
00054 
00055     oaModModuleScalarInst           *getModInst() const;
00056 
00057     using                   oaOccInst::getName;
00058     void                            getName(oaScalarName &name) const;
00059 
00060     using                   oaOccInst::getPathName;
00061     void                            getPathName(oaScalarName &pathName) const;
00062 };
00063 
00064 
00065 
00066 // *****************************************************************************
00067 // Design Traits.
00068 // *****************************************************************************
00069 template<>
00070 class oaTraits<oaOccModuleScalarInst> {
00071 public:
00072     typedef oaInstModTypeEnum   modTypeType;
00073     typedef oaOccModuleBitInst  parentType;
00074     enum {dtIndex = oacInstDataType};
00075     enum {dataTypeEnumVal = oacInstDataType};
00076     enum {domain = oacOccDomain};
00077     enum {isMultiDomain = true};
00078     enum {dbType = oacDesignDBType};
00079     enum {isConcrete = true};
00080     enum {objectTypeEnumVal = oacOccModuleScalarInstType};
00081 };
00082 
00083 
00084 
00085 END_OA_NAMESPACE
00086 
00087 #endif

Return to top of page