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

Last change on this file since 77 was 77, checked in by rosiere, 16 years ago
  • Add two component :
    • network between read unit and execute unit
    • network between execute unit and write unit
  • remove parameters "nb_operation" and "nb_type"
  • in write_queue add the special case : load_speculative
File size: 2.2 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   _nb_operation        = MAX_OPERATION;
29  public   : static const uint32_t   _nb_type             = MAX_TYPE;
30  public   : static const uint32_t   _size_operation      = SIZE_OPERATION;
31  public   : static const uint32_t   _size_type           = SIZE_TYPE;     
32  public   : static const uint32_t   _size_exception      = SIZE_EXCEPTION;
33  public   : static const uint32_t   _size_dcache_type    = SIZE_DCACHE_TYPE;
34  public   : static const uint32_t   _size_dcache_error   = SIZE_DCACHE_ERROR;
35
36    // -----[ methods ]---------------------------------------------------
37  public   :                  Parameters            (void);
38  public   : virtual          ~Parameters           ();
39       
40    // methods to print and test parameters
41  public   : virtual std::string   print                 (uint32_t depth) = 0;
42  public   : virtual std::string   msg_error             (void) = 0;
43
44    // methods to generate configuration file
45
46   
47    // methods to test
48  public   :         void     test                  (void);
49  public   :         bool     is_natural            (double  val );
50  public   :         bool     is_positive           (double  val );
51  public   :         bool     is_multiple           (uint32_t val1,
52                                                     uint32_t val2);
53  public   :         bool     is_between_inclusive  (uint32_t val,
54                                                     uint32_t min,
55                                                     uint32_t max);
56  public   :         bool     is_between_exclusive  (uint32_t val,
57                                                     uint32_t min,
58                                                     uint32_t max);
59  };
60
61}; // end namespace behavioural         
62}; // end namespace morpheo             
63
64#endif
Note: See TracBrowser for help on using the repository browser.