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

Last change on this file since 71 was 71, checked in by rosiere, 16 years ago

Modification of Statisctics
Add a new systemC component : Load_Store_Queue (tested with one benchmark and one configuration). Store don't supported the Data Buss Error (Load is supported)

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 "Common/include/ErrorMorpheo.h"
16#include "Common/include/ToString.h"
17#include "Common/include/Log2.h"
18#include "Common/include/Debug.h"
19
20namespace morpheo     {
21namespace behavioural {
22
23  // Virtual Class - Interface of each component
24  class Parameters
25  {
26    // -----[ fields ]----------------------------------------------------
27  public   : static const uint32_t   _size_exception      = 4 ;
28  public   : static const uint32_t   _size_dcache_address = 32;
29  public   : static const uint32_t   _size_dcache_type    = 4;
30  public   : static const uint32_t   _size_dcache_error   = 1;
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.