00001 // ***************************************************************************** 00002 // ***************************************************************************** 00003 // oaScanChain.h 00004 // 00005 // This file contains the definition for the oaScanChain class. This class 00006 // implements one scan chain. 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$ 00021 // ***************************************************************************** 00022 // ***************************************************************************** 00023 00024 00025 00026 #if !defined(oaScanChain_P) 00027 #define oaScanChain_P 00028 00029 00030 00031 // ***************************************************************************** 00032 // Nested includes 00033 // ***************************************************************************** 00034 #include "oaBlock.h" 00035 #include "oaScanChainSet.h" 00036 00037 00038 00039 // ***************************************************************************** 00040 // Declare and define types in the OpenAccess namespace. 00041 // ***************************************************************************** 00042 BEGIN_OA_NAMESPACE 00043 00044 00045 00046 // ***************************************************************************** 00047 // oaScanChain 00048 // ***************************************************************************** 00049 class OA_DESIGN_DLL_API oaScanChain : public oaBlockObject { 00050 public: 00051 static oaScanChain *create(oaBlock *block, 00052 const oaString &name, 00053 oaBlockObject *startObject = NULL, 00054 oaBlockObject *stopObject = NULL, 00055 oaString *partitionName = NULL, 00056 oaUInt4 maxBits = 0); 00057 00058 void destroy(); 00059 00060 static oaScanChain *find(const oaBlock *block, 00061 const oaString &name); 00062 00063 void getName(oaString &name) const; 00064 void getPartitionName(oaString &name) const; 00065 oaUInt4 getMaxBits() const; 00066 oaDesignObject *getStartObject() const; 00067 oaDesignObject *getStopObject() const; 00068 00069 void setName(const oaString &name); 00070 void setPartitionName(const oaString &name); 00071 void setStartObject(oaDesignObject *object); 00072 void setStopObject(oaDesignObject *object); 00073 void setMaxBits(oaUInt4 maxBits); 00074 00075 oaCollection<oaScanChainSet, oaScanChain> getScanChainSets(oaUInt4 flag = oacOrderedScanChainSetType) const; 00076 00077 enum {dtIndex = oacScanChainDataType}; 00078 }; 00079 00080 00081 00082 // ***************************************************************************** 00083 // Design Traits. 00084 // ***************************************************************************** 00085 template<> 00086 class oaTraits<oaScanChain> { 00087 public: 00088 typedef oaBlockObject parentType; 00089 typedef oaScanChainModTypeEnum modTypeType; 00090 enum {domain = oacBlockDomain}; 00091 enum {dbType = oacDesignDBType}; 00092 enum {isMultiDomain = false}; 00093 enum {dtIndex = oacScanChainDataType}; 00094 enum {isConcrete = true}; 00095 enum {objectTypeEnumVal = oacScanChainType}; 00096 enum {dataTypeEnumVal = oacScanChainDataType}; 00097 }; 00098 00099 00100 00101 END_OA_NAMESPACE 00102 00103 #endif
Copyright © 2002 - 2010 Cadence Design Systems, Inc.
All Rights Reserved.