source: trunk/IPs/systemC/processor/Morpheo/Behavioural/include/Parameters.h @ 72

Last change on this file since 72 was 72, checked in by rosiere, 16 years ago
  • SystemC de l'unite fonctionnelle.
  • gestion des groupes / instructions custom
File size: 1.9 KB
Line 
1#ifndef morpheo_behavioural_Parameters_h
2#define morpheo_behavioural_Parameters_h
3
4/*
5 * $Id$
6 *
7 * [ Description ]
8 *
9 */
10
11#include <stdint.h>
12#include <iostream>
13#include <math.h>
14#include "Behavioural/include/Environnement.h"
15#include "Behavioural/include/Constants.h"
16#include "Common/include/ErrorMorpheo.h"
17#include "Common/include/ToString.h"
18#include "Common/include/Log2.h"
19#include "Common/include/Debug.h"
20
21namespace morpheo     {
22namespace behavioural {
23
24  // Virtual Class - Interface of each component
25  class Parameters
26  {
27    // -----[ fields ]----------------------------------------------------
28  public   : static const uint32_t   _size_exception      = SIZE_EXCEPTION;
29  public   : static const uint32_t   _size_dcache_type    = SIZE_DCACHE_TYPE;
30  public   : static const uint32_t   _size_dcache_error   = SIZE_DCACHE_ERROR;
31
32    // -----[ methods ]---------------------------------------------------
33  public   :                  Parameters            (void);
34  public   : virtual          ~Parameters           ();
35       
36    // methods to print and test parameters
37  public   : virtual std::string   print                 (uint32_t depth) = 0;
38  public   : virtual std::string   msg_error             (void) = 0;
39
40    // methods to generate configuration file
41
42   
43    // methods to test
44  public   :         void     test                  (void);
45  public   :         bool     is_natural            (double  val );
46  public   :         bool     is_positive           (double  val );
47  public   :         bool     is_multiple           (uint32_t val1,
48                                                     uint32_t val2);
49  public   :         bool     is_between_inclusive  (uint32_t val,
50                                                     uint32_t min,
51                                                     uint32_t max);
52  public   :         bool     is_between_exclusive  (uint32_t val,
53                                                     uint32_t min,
54                                                     uint32_t max);
55  };
56
57}; // end namespace behavioural         
58}; // end namespace morpheo             
59
60#endif
Note: See TracBrowser for help on using the repository browser.