oaModBusNet.h

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

Return to top of page