oaScanChainSet.h

Go to the documentation of this file.
00001 // *****************************************************************************
00002 // *****************************************************************************
00003 // oaScanChainSet.h
00004 //
00005 // This file contains the definition for the oaScanChainSet class. This class
00006 // implements scan chain set, which includes scanChain instances.
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(oaScanChainSet_P)
00027 #define oaScanChainSet_P
00028 
00029 
00030 
00031 // *****************************************************************************
00032 // Nested includes
00033 // *****************************************************************************
00034 #include "oaBlockObject.h"
00035 
00036 
00037 
00038 // *****************************************************************************
00039 // Declare and define types in the OpenAccess namespace.
00040 // *****************************************************************************
00041 BEGIN_OA_NAMESPACE
00042 
00043 
00044 
00045 // *****************************************************************************
00046 // oaScanChainSetTypeEnum
00047 // *****************************************************************************
00048 #define oavNumScanChainSetTypes 2
00049 
00050 enum oaScanChainSetTypeEnum {
00051     oacOrderedScanChainSetType      = 0,
00052     oacUnorderedScanChainSetType    = 1
00053 };
00054 
00055 
00056 
00057 // *****************************************************************************
00058 // oaScanChainSetType
00059 // *****************************************************************************
00060 class OA_DESIGN_DLL_API oaScanChainSetType {
00061 public:
00062                             oaScanChainSetType(oaScanChainSetTypeEnum valueIn);
00063                             oaScanChainSetType(const oaString &name);
00064                             ~oaScanChainSetType();
00065 
00066     const oaString          &getName() const;
00067 
00068                             operator                oaScanChainSetTypeEnum() const;
00069 
00070 private:
00071     oaScanChainSetTypeEnum  value;
00072 
00073     static const oaString   names[];
00074 };
00075 
00076 
00077 
00078 // *****************************************************************************
00079 // oaScanChainSet
00080 // *****************************************************************************
00081 class OA_DESIGN_DLL_API oaScanChainSet : public oaBlockObject {
00082 public:
00083     static oaScanChainSet                           *create(oaScanChain         *scanChain,
00084                                                             oaScanChainSetType  setType);
00085     void                                            destroy();
00086 
00087     oaCollection<oaScanChainInst, oaScanChainSet>   getInstances() const;
00088 
00089     enum {dtIndex = oacScanChainSetDataType};
00090 };
00091 
00092 
00093 
00094 // *****************************************************************************
00095 // Design Traits.
00096 // *****************************************************************************
00097 template<>
00098 class oaTraits<oaScanChainSet> {
00099 public:
00100     typedef oaBlockObject               parentType;
00101     typedef oaScanChainSetModTypeEnum   modTypeType;
00102     enum {domain = oacBlockDomain};
00103     enum {dbType = oacDesignDBType};
00104     enum {isMultiDomain = false};
00105     enum {dtIndex = oacScanChainSetDataType};
00106     enum {isConcrete = true};
00107     enum {objectTypeEnumVal = oacScanChainSetType};
00108     enum {dataTypeEnumVal = oacScanChainSetDataType};
00109 };
00110 
00111 
00112 
00113 END_OA_NAMESPACE
00114 
00115 #endif

Return to top of page