1 | #ifndef morpheo_behavioural_core_icache_access_Parameters_h |
---|
2 | #define morpheo_behavioural_core_icache_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/Icache_Access/include/Types.h" |
---|
12 | #include "Behavioural/include/Parameters.h" |
---|
13 | #include "Common/include/Debug.h" |
---|
14 | |
---|
15 | namespace morpheo { |
---|
16 | namespace behavioural { |
---|
17 | namespace core { |
---|
18 | namespace icache_access { |
---|
19 | |
---|
20 | |
---|
21 | class Parameters : public morpheo::behavioural::Parameters |
---|
22 | { |
---|
23 | //-----[ fields ]------------------------------------------------------------ |
---|
24 | public : uint32_t _nb_thread ; |
---|
25 | public : uint32_t _nb_front_end ; |
---|
26 | public : uint32_t * _nb_context ;//[nb_front_end] |
---|
27 | public : uint32_t _nb_icache_port ; |
---|
28 | public : uint32_t _size_address ; |
---|
29 | public : uint32_t _size_icache_thread_id ; |
---|
30 | public : uint32_t _size_icache_packet_id ; |
---|
31 | public : uint32_t ** _nb_instruction ;//[nb_front_end][nb_context] |
---|
32 | public : uint32_t ** _size_packet_id ;//[nb_front_end][nb_context] |
---|
33 | public : uint32_t ** _table_routing ;//[nb_front_end][nb_context] |
---|
34 | public : Tpriority_t _priority ; |
---|
35 | public : Tload_balancing_t _load_balancing ; |
---|
36 | public : uint32_t ** _translate_context_to_thread ;//[nb_front_end][nb_context] |
---|
37 | |
---|
38 | public : uint32_t _max_nb_context ; |
---|
39 | public : uint32_t _max_nb_instruction ; |
---|
40 | public : uint32_t _size_thread_id ; |
---|
41 | public : uint32_t _max_size_packet_id ; |
---|
42 | public : Tcontext_t _shift_num_front_end ; |
---|
43 | public : Tcontext_t _mask_size_context ; |
---|
44 | public : uint32_t * _icache_nb_instruction ;//[nb_icache_port] |
---|
45 | public : Tcontext_t * _translate_thread_to_context ;//[nb_thread] |
---|
46 | public : Tcontext_t * _translate_thread_to_front_end;//[nb_thread] |
---|
47 | |
---|
48 | public : bool _have_port_icache_thread_id ; |
---|
49 | public : bool _have_port_icache_packet_id ; |
---|
50 | public : bool ** _have_port_packet_id ;//[nb_front_end][nb_context] |
---|
51 | |
---|
52 | //-----[ methods ]----------------------------------------------------------- |
---|
53 | public : Parameters |
---|
54 | (uint32_t nb_thread , |
---|
55 | uint32_t nb_front_end , |
---|
56 | uint32_t * nb_context , |
---|
57 | uint32_t nb_icache_port , |
---|
58 | uint32_t size_address , |
---|
59 | uint32_t size_icache_thread_id , |
---|
60 | uint32_t size_icache_packet_id , |
---|
61 | uint32_t ** nb_instruction , |
---|
62 | uint32_t ** size_packet_id , |
---|
63 | uint32_t ** table_routing , |
---|
64 | Tpriority_t priority , |
---|
65 | Tload_balancing_t load_balancing , |
---|
66 | uint32_t ** translate_context_to_thread, |
---|
67 | bool is_toplevel=false); |
---|
68 | |
---|
69 | // public : Parameters (Parameters & param) ; |
---|
70 | public : ~Parameters () ; |
---|
71 | |
---|
72 | public : void copy (void); |
---|
73 | |
---|
74 | public : Parameters_test msg_error (void); |
---|
75 | |
---|
76 | public : std::string print (uint32_t depth); |
---|
77 | public : friend std::ostream& operator<< (std::ostream& output_stream, |
---|
78 | morpheo::behavioural::core::icache_access::Parameters & x); |
---|
79 | }; |
---|
80 | |
---|
81 | }; // end namespace icache_access |
---|
82 | }; // end namespace core |
---|
83 | |
---|
84 | }; // end namespace behavioural |
---|
85 | }; // end namespace morpheo |
---|
86 | |
---|
87 | #endif |
---|