00001 // ***************************************************************************** 00002 // ***************************************************************************** 00003 // oaModVectorInstDef.h 00004 // 00005 // This file contains the definition for the oaModVectorInstDef class. The 00006 // oaModVectorInstDef class implements the definition of a vectorInst, including 00007 // its name and bit-range. A vectorInstDef is never created by applications. 00008 // Instead, it is automatically created whenever applications create 00009 // vectorInsts. Since multiple vectorInsts can refer to different members of the 00010 // same vectorInst definition, the vectorInstDef represents the super-set of all 00011 // members of the vectorInsts. 00012 // 00013 // ***************************************************************************** 00014 // Except as specified in the OpenAccess terms of use of Cadence or Silicon 00015 // Integration Initiative, this material may not be copied, modified, 00016 // re-published, uploaded, executed, or distributed in any way, in any medium, 00017 // in whole or in part, without prior written permission from Cadence. 00018 // 00019 // Copyright 2002-2005 Cadence Design Systems, Inc. 00020 // All Rights Reserved. 00021 // 00022 // $Author: icftcm $ 00023 // $Revision: #1 $ 00024 // $Date: 2010/08/09 $ 00025 // $State: Exp $ 00026 // ***************************************************************************** 00027 // ***************************************************************************** 00028 00029 00030 00031 #if !defined(oaModVectorInstDef_P) 00032 #define oaModVectorInstDef_P 00033 00034 00035 00036 // ***************************************************************************** 00037 // Nested includes 00038 // ***************************************************************************** 00039 #include "oaBusNetDef.h" 00040 #include "oaModule.h" 00041 00042 00043 00044 // ***************************************************************************** 00045 // Declare and define types in the OpenAccess namespace. 00046 // ***************************************************************************** 00047 BEGIN_OA_NAMESPACE 00048 00049 00050 00051 // ***************************************************************************** 00052 // oaModVectorInstDef 00053 // ***************************************************************************** 00054 class OA_DESIGN_DLL_API oaModVectorInstDef : public oaModObject { 00055 public: 00056 static oaModVectorInstDef *create(const oaModule *module, 00057 const oaScalarName &name, 00058 oaBitOrder order); 00059 00060 static oaModVectorInstDef *find(const oaModule *module, 00061 const oaScalarName &name); 00062 00063 void destroy(); 00064 00065 oaUInt4 getMinIndex() const; 00066 oaUInt4 getMaxIndex() const; 00067 oaUInt4 getNumBits() const; 00068 void getName(oaScalarName &name) const; 00069 void getName(const oaNameSpace &ns, 00070 oaString &name) const; 00071 oaBitOrder getBitOrder() const; 00072 00073 oaBoolean isImplicit() const; 00074 00075 void setBitOrder(oaBitOrder order); 00076 00077 oaCollection<oaModInst, oaModVectorInstDef> getVectorInsts() const; 00078 oaCollection<oaModInst, oaModVectorInstDef> getVectorInstBits() const; 00079 00080 enum {dtIndex = oacVectorInstDefDataType}; 00081 }; 00082 00083 00084 00085 // ***************************************************************************** 00086 // Design Traits. 00087 // ***************************************************************************** 00088 template<> 00089 class oaTraits<oaModVectorInstDef> { 00090 public: 00091 typedef oaModObject parentType; 00092 typedef oaVectorInstDefModTypeEnum modTypeType; 00093 enum {domain = oacModDomain}; 00094 enum {isMultiDomain = true}; 00095 enum {dbType = oacDesignDBType}; 00096 enum {dtIndex = oacVectorInstDefDataType}; 00097 enum {isConcrete = true}; 00098 enum {objectTypeEnumVal = oacModVectorInstDefType}; 00099 enum {dataTypeEnumVal = oacVectorInstDefDataType}; 00100 }; 00101 00102 00103 00104 END_OA_NAMESPACE 00105 00106 #endif
Copyright © 2002 - 2010 Cadence Design Systems, Inc.
All Rights Reserved.