00001 // ***************************************************************************** 00002 // ***************************************************************************** 00003 // oaVectorInstDef.h 00004 // 00005 // This file contains the definition for the oaVectorInstDef class. The 00006 // oaVectorInstDef 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(oaVectorInstDef_P) 00032 #define oaVectorInstDef_P 00033 00034 00035 00036 // ***************************************************************************** 00037 // Nested includes 00038 // ***************************************************************************** 00039 #include "oaBusNetDef.h" 00040 00041 00042 00043 // ***************************************************************************** 00044 // Declare and define types in the OpenAccess namespace. 00045 // ***************************************************************************** 00046 BEGIN_OA_NAMESPACE 00047 00048 00049 00050 // ***************************************************************************** 00051 // oaVectorInstDef 00052 // ***************************************************************************** 00053 class OA_DESIGN_DLL_API oaVectorInstDef : public oaBlockObject { 00054 public: 00055 static oaVectorInstDef *create(const oaBlock *block, 00056 const oaScalarName &name, 00057 oaBitOrder order); 00058 00059 static oaVectorInstDef *find(const oaBlock *block, 00060 const oaScalarName &name); 00061 00062 void destroy(); 00063 00064 oaUInt4 getMinIndex() const; 00065 oaUInt4 getMaxIndex() const; 00066 oaUInt4 getNumBits() const; 00067 void getName(oaScalarName &name) const; 00068 void getName(const oaNameSpace &ns, 00069 oaString &name) const; 00070 oaBitOrder getBitOrder() const; 00071 00072 oaBoolean isImplicit() const; 00073 00074 void setBitOrder(oaBitOrder order); 00075 00076 oaCollection<oaVectorInst, oaVectorInstDef> getVectorInsts() const; 00077 oaCollection<oaVectorInstBit, oaVectorInstDef> getVectorInstBits() const; 00078 00079 enum {dtIndex = oacVectorInstDefDataType}; 00080 }; 00081 00082 00083 00084 // ***************************************************************************** 00085 // Design Traits. 00086 // ***************************************************************************** 00087 template<> 00088 class oaTraits<oaVectorInstDef> { 00089 public: 00090 typedef oaBlockObject parentType; 00091 typedef oaVectorInstDefModTypeEnum modTypeType; 00092 enum {domain = oacBlockDomain}; 00093 enum {dbType = oacDesignDBType}; 00094 enum {isMultiDomain = true}; 00095 enum {dtIndex = oacVectorInstDefDataType}; 00096 enum {isConcrete = true}; 00097 enum {objectTypeEnumVal = oacVectorInstDefType}; 00098 enum {dataTypeEnumVal = oacVectorInstDefDataType}; 00099 }; 00100 00101 00102 00103 END_OA_NAMESPACE 00104 00105 #endif
Copyright © 2002 - 2010 Cadence Design Systems, Inc.
All Rights Reserved.