source: trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Dcache_Access/include/Parameters.h @ 88

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

Almost complete design
with Test and test platform

  • Property svn:keywords set to Id
File size: 4.1 KB
Line 
1#ifndef morpheo_behavioural_core_dcache_access_Parameters_h
2#define morpheo_behavioural_core_dcache_access_Parameters_h
3
4/*
5 * $Id: Parameters.h 88 2008-12-10 18:31:39Z rosiere $
6 *
7 * [ Description ]
8 *
9 */
10
11#include "Behavioural/Core/Dcache_Access/include/Types.h"
12#include "Behavioural/include/Parameters.h"
13#include "Common/include/Debug.h"
14
15namespace morpheo {
16namespace behavioural {
17namespace core {
18namespace dcache_access {
19
20
21  class Parameters : public morpheo::behavioural::Parameters
22  {
23    //-----[ fields ]------------------------------------------------------------
24  public : uint32_t             _nb_thread              ;
25  public : uint32_t             _nb_execute_loop        ;
26  public : uint32_t           * _nb_load_store_unit     ;//[nb_execute_loop]
27  public : uint32_t           * _nb_context             ;//[nb_execute_loop]//{nb_front_end + nb_context}
28  public : uint32_t          ** _nb_cache_access        ;//[nb_execute_loop][nb_load_store_unit]
29  public : uint32_t             _nb_dcache_port         ;
30  public : uint32_t             _size_address           ;
31  public : uint32_t             _size_data              ;
32  public : uint32_t             _size_dcache_thread_id  ;
33  public : uint32_t             _size_dcache_packet_id  ;
34  public : uint32_t          ** _size_thread_id         ;//[nb_execute_loop][nb_load_store_unit]
35  public : uint32_t          ** _size_packet_id         ;//[nb_execute_loop][nb_load_store_unit]
36  public : uint32_t         *** _table_routing          ;//[nb_execute_loop][nb_load_store_unit][nb_cache_access]
37  public : Tpriority_t          _priority               ;
38  public : Tload_balancing_t    _load_balancing         ;
39  public : uint32_t         *** _translate_load_store_unit_to_thread; //[nb_execute_loop][nb_load_store_unit][nb_context]
40
41  public : uint32_t             _max_nb_load_store_unit   ;
42  public : uint32_t             _max_nb_cache_access      ;
43  public : Tcontext_t           _shift_num_cache_access   ;
44  public : Tcontext_t           _mask_num_cache_access    ;
45  public : Tcontext_t           _mask_num_lsq_packet      ;
46  public : uint32_t           * _translate_thread_to_execute_loop   ; //[nb_thread]
47  public : uint32_t           * _translate_thread_to_load_store_unit; //[nb_thread]
48  public : uint32_t           * _translate_thread_to_context        ; //[nb_thread]
49   
50  public : bool              ** _have_port_lsq_thread_id   ;//[nb_execute_loop][nb_load_store_unit]
51  public : bool              ** _have_port_lsq_packet_id   ;//[nb_execute_loop][nb_load_store_unit]
52  public : bool                 _have_port_dcache_thread_id;
53  public : bool                 _have_port_dcache_packet_id;
54   
55    //-----[ methods ]-----------------------------------------------------------
56  public : Parameters  (uint32_t             nb_thread              ,
57                        uint32_t             nb_execute_loop        ,
58                        uint32_t           * nb_load_store_unit     ,
59                        uint32_t           * nb_context             ,
60                        uint32_t          ** nb_cache_access        ,
61                        uint32_t             nb_dcache_port         ,
62                        uint32_t             size_address           ,
63                        uint32_t             size_data              ,
64                        uint32_t             size_dcache_thread_id  ,
65                        uint32_t             size_dcache_packet_id  ,
66                        uint32_t          ** size_thread_id         ,
67                        uint32_t          ** size_packet_id         ,
68                        uint32_t         *** table_routing          ,
69                        Tpriority_t          priority               ,
70                        Tload_balancing_t    load_balancing         ,
71                        uint32_t         *** translate_load_store_unit_to_thread,
72                        bool                 is_toplevel=false      );
73
74//   public : Parameters  (Parameters & param) ;
75  public : ~Parameters () ;
76
77  public :        void            copy       (void);
78
79  public :        Parameters_test msg_error  (void);
80
81  public :        std::string     print      (uint32_t depth);
82  public : friend std::ostream&   operator<< (std::ostream& output_stream,
83                                            morpheo::behavioural::core::dcache_access::Parameters & x);
84  };
85
86}; // end namespace dcache_access
87}; // end namespace core
88
89}; // end namespace behavioural
90}; // end namespace morpheo             
91
92#endif
Note: See TracBrowser for help on using the repository browser.