00001 // ***************************************************************************** 00002 // ***************************************************************************** 00003 // oaBusTerm.h 00004 // 00005 // This file contains the definition for the oaBusTerm class and its public 00006 // supporting classes. The oaBusTerm class implements a vector terminal. 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(oaBusTerm_P) 00027 #define oaBusTerm_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 // oaBusTerm 00047 // ***************************************************************************** 00048 class OA_DESIGN_DLL_API oaBusTerm : public oaTerm { 00049 public: 00050 static oaBusTerm *create(oaNet *net, 00051 const oaScalarName &name, 00052 oaUInt4 start, 00053 oaUInt4 stop, 00054 oaUInt4 step, 00055 oaTermType termType = oacInputOutputTermType, 00056 oaBlockDomainVisibility view = oacInheritFromTopBlock); 00057 static oaBusTerm *create(oaNet *net, 00058 const oaVectorName &name, 00059 oaTermType termType = oacInputOutputTermType, 00060 oaBlockDomainVisibility view = oacInheritFromTopBlock); 00061 static oaBusTerm *create(oaNet *net, 00062 const oaVectorBitName &name, 00063 oaTermType termType = oacInputOutputTermType, 00064 oaBlockDomainVisibility view = oacInheritFromTopBlock); 00065 00066 static oaBusTerm *find(const oaBlock *block, 00067 const oaScalarName &name, 00068 oaUInt4 start, 00069 oaUInt4 stop, 00070 oaUInt4 step); 00071 static oaBoolean isValidName(const oaBlock *block, 00072 const oaNet *net, 00073 const oaScalarName &name, 00074 oaUInt4 start, 00075 oaUInt4 stop, 00076 oaUInt4 step); 00077 00078 oaBusTermDef *getDef() const; 00079 oaUInt4 getStart() const; 00080 oaUInt4 getStop() const; 00081 oaUInt4 getStep() const; 00082 00083 using oaTerm::getName; 00084 void getName(oaVectorName &name) const; 00085 00086 void setBaseName(const oaScalarName &name); 00087 void setRange(oaUInt4 start, 00088 oaUInt4 stop); 00089 }; 00090 00091 00092 00093 // ***************************************************************************** 00094 // Design Traits. 00095 // ***************************************************************************** 00096 template<> 00097 class oaTraits<oaBusTerm> { 00098 public: 00099 typedef oaTermModTypeEnum modTypeType; 00100 typedef oaTerm parentType; 00101 enum {isMultiDomain = true}; 00102 enum {dtIndex = oacTermDataType}; 00103 enum {dataTypeEnumVal = oacTermDataType}; 00104 enum {domain = oacBlockDomain}; 00105 enum {dbType = oacDesignDBType}; 00106 enum {isConcrete = true}; 00107 enum {objectTypeEnumVal = oacBusTermType}; 00108 }; 00109 00110 00111 00112 END_OA_NAMESPACE 00113 00114 #endif
Copyright © 2002 - 2010 Cadence Design Systems, Inc.
All Rights Reserved.