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

Last change on this file since 25 was 15, checked in by rosiere, 17 years ago

Interface normalisé
Début du banc de registres multi niveaux

File size: 1.7 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/Constant/Constant_OpenRISC.h"
15#include "Behavioural/include/Environnement.h"
16#include "Include/ErrorMorpheo.h"
17#include "Include/ToString.h"
18
19using namespace morpheo::behavioural::constant;
20using namespace std;
21
22namespace morpheo     {
23namespace behavioural {
24
25  // Virtual Class - Interface of each component
26  class Parameters
27  {
28    // -----[ fields ]----------------------------------------------------
29
30    // -----[ methods ]---------------------------------------------------
31  public   :                  Parameters            (void);
32  public   : virtual          ~Parameters           ();
33       
34    // methods to print and test parameters
35  public   : virtual string   print                 (uint32_t depth) = 0;
36  public   : virtual string   msg_error             (void) = 0;
37
38    // methods to generate configuration file
39
40   
41    // methods to test
42  public   :         void     test                  (void);
43  public   :         bool     is_natural            (double  val );
44  public   :         bool     is_positive           (double  val );
45  public   :         bool     is_multiple           (uint32_t val1,
46                                                     uint32_t val2);
47  public   :         bool     is_between_inclusive  (uint32_t val,
48                                                     uint32_t min,
49                                                     uint32_t max);
50  public   :         bool     is_between_exclusive  (uint32_t val,
51                                                     uint32_t min,
52                                                     uint32_t max);
53  };
54
55}; // end namespace behavioural         
56}; // end namespace morpheo             
57
58#endif
Note: See TracBrowser for help on using the repository browser.