00001 // ***************************************************************************** 00002 // ***************************************************************************** 00003 // oaBusNet.h 00004 // 00005 // This file contains the definition for the oaBusNet class. The oaBusNet class 00006 // implements a vector net. 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(oaBusNet_P) 00027 #define oaBusNet_P 00028 00029 00030 00031 // ***************************************************************************** 00032 // Nested includes 00033 // ***************************************************************************** 00034 #include "oaBlock.h" 00035 00036 00037 00038 // ***************************************************************************** 00039 // Declare and define types in the OpenAccess namespace. 00040 // ***************************************************************************** 00041 BEGIN_OA_NAMESPACE 00042 00043 00044 00045 // ***************************************************************************** 00046 // oaBusNet 00047 // ***************************************************************************** 00048 class OA_DESIGN_DLL_API oaBusNet : public oaNet { 00049 public: 00050 static oaBusNet *create(oaBlock *block, 00051 const oaScalarName &baseName, 00052 oaUInt4 start, 00053 oaUInt4 stop, 00054 oaUInt4 step, 00055 oaSigType sigType = oacSignalSigType, 00056 oaBoolean isGlobal = false, 00057 oaBlockDomainVisibility view = oacInheritFromTopBlock); 00058 static oaBusNet *create(oaBlock *block, 00059 const oaVectorName &name, 00060 oaSigType sigType = oacSignalSigType, 00061 oaBoolean isGlobal = false, 00062 oaBlockDomainVisibility view = oacInheritFromTopBlock); 00063 static oaBusNet *create(oaBlock *block, 00064 const oaVectorBitName &name, 00065 oaSigType sigType = oacSignalSigType, 00066 oaBoolean isGlobal = false, 00067 oaBlockDomainVisibility view = oacInheritFromTopBlock); 00068 00069 static oaBusNet *find(const oaBlock *block, 00070 const oaScalarName &baseName, 00071 oaUInt4 start, 00072 oaUInt4 stop, 00073 oaUInt4 step); 00074 static oaBoolean isValidName(const oaBlock *block, 00075 const oaScalarName &baseName, 00076 oaUInt4 start, 00077 oaUInt4 stop, 00078 oaUInt4 step); 00079 00080 oaBusNetDef *getDef() const; 00081 oaUInt4 getStart() const; 00082 oaUInt4 getStop() const; 00083 oaUInt4 getStep() const; 00084 00085 using oaNet::getName; 00086 void getName(oaVectorName &name) const; 00087 00088 void setBaseName(const oaScalarName &name); 00089 void setRange(oaUInt4 start, 00090 oaUInt4 stop); 00091 }; 00092 00093 00094 00095 // ***************************************************************************** 00096 // Design Traits. 00097 // ***************************************************************************** 00098 template<> 00099 class oaTraits<oaBusNet> { 00100 public: 00101 typedef oaNetModTypeEnum modTypeType; 00102 typedef oaNet parentType; 00103 enum {dtIndex = oacNetDataType}; 00104 enum {isMultiDomain = true}; 00105 enum {dataTypeEnumVal = oacNetDataType}; 00106 enum {domain = oacBlockDomain}; 00107 enum {dbType = oacDesignDBType}; 00108 enum {isConcrete = true}; 00109 enum {objectTypeEnumVal = oacBusNetType}; 00110 }; 00111 00112 00113 00114 END_OA_NAMESPACE 00115 00116 #endif
Copyright © 2002 - 2010 Cadence Design Systems, Inc.
All Rights Reserved.