1 | /* |
---|
2 | * $Id$ |
---|
3 | * |
---|
4 | * [ Description ] |
---|
5 | * |
---|
6 | */ |
---|
7 | |
---|
8 | #include "Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Execute_unit/Execute_unit/Functionnal_unit/include/Parameters.h" |
---|
9 | |
---|
10 | namespace morpheo { |
---|
11 | namespace behavioural { |
---|
12 | namespace core { |
---|
13 | namespace multi_execute_loop { |
---|
14 | namespace execute_loop { |
---|
15 | namespace multi_execute_unit { |
---|
16 | namespace execute_unit { |
---|
17 | namespace functionnal_unit { |
---|
18 | |
---|
19 | |
---|
20 | #undef FUNCTION |
---|
21 | #define FUNCTION "Functionnal_unit::Parameters" |
---|
22 | Parameters::Parameters (uint32_t nb_context , |
---|
23 | uint32_t nb_front_end , |
---|
24 | uint32_t nb_ooo_engine , |
---|
25 | uint32_t nb_packet , |
---|
26 | uint32_t size_general_data , |
---|
27 | uint32_t nb_general_register, |
---|
28 | uint32_t size_special_data , |
---|
29 | uint32_t nb_special_register, |
---|
30 | uint32_t size_store_queue , |
---|
31 | uint32_t size_load_queue , |
---|
32 | execute_timing_t** timing , |
---|
33 | morpheo::behavioural::custom::custom_information_t (*get_custom_information) (uint32_t)) : |
---|
34 | _nb_context (nb_context ), |
---|
35 | _nb_front_end (nb_front_end ), |
---|
36 | _nb_ooo_engine (nb_ooo_engine ), |
---|
37 | _nb_packet (nb_packet ), |
---|
38 | _size_general_data (size_general_data ), |
---|
39 | _nb_general_register (nb_general_register ), |
---|
40 | _size_special_data (size_special_data ), |
---|
41 | _nb_special_register (nb_special_register ), |
---|
42 | _size_store_queue (size_store_queue ), |
---|
43 | _size_load_queue (size_load_queue ), |
---|
44 | |
---|
45 | _size_context_id (log2(nb_context )), |
---|
46 | _size_front_end_id (log2(nb_front_end )), |
---|
47 | _size_ooo_engine_id (log2(nb_ooo_engine )), |
---|
48 | _size_packet_id (log2(nb_packet )), |
---|
49 | _size_general_register (log2(nb_general_register)), |
---|
50 | _size_special_register (log2(nb_special_register)), |
---|
51 | |
---|
52 | _have_port_context_id (_size_context_id > 0), |
---|
53 | _have_port_front_end_id (_size_front_end_id > 0), |
---|
54 | _have_port_ooo_engine_id (_size_ooo_engine_id > 0), |
---|
55 | _have_port_packet_id (_size_packet_id > 0), |
---|
56 | _have_port_load_queue_ptr(_size_load_queue > 1), |
---|
57 | |
---|
58 | _have_groupe_MAC ( (timing[TYPE_SPECIAL][OPERATION_SPECIAL_L_MAC ]._latence > 0) or |
---|
59 | (timing[TYPE_SPECIAL][OPERATION_SPECIAL_L_MACRC]._latence > 0) or |
---|
60 | (timing[TYPE_SPECIAL][OPERATION_SPECIAL_L_MSB ]._latence > 0)) |
---|
61 | { |
---|
62 | log_printf(FUNC,Functionnal_unit,FUNCTION,"Begin"); |
---|
63 | |
---|
64 | _timing = timing; |
---|
65 | |
---|
66 | if (get_custom_information == NULL) |
---|
67 | _get_custom_information = &(morpheo::behavioural::custom::default_get_custom_information); |
---|
68 | else |
---|
69 | _get_custom_information = get_custom_information; |
---|
70 | |
---|
71 | test(); |
---|
72 | |
---|
73 | log_printf(FUNC,Functionnal_unit,FUNCTION,"End"); |
---|
74 | }; |
---|
75 | |
---|
76 | #undef FUNCTION |
---|
77 | #define FUNCTION "Functionnal_unit::Parameters (copy)" |
---|
78 | Parameters::Parameters (Parameters & param): |
---|
79 | _nb_context (param._nb_context ), |
---|
80 | _nb_front_end (param._nb_front_end ), |
---|
81 | _nb_ooo_engine (param._nb_ooo_engine ), |
---|
82 | _nb_packet (param._nb_packet ), |
---|
83 | _size_general_data (param._size_general_data ), |
---|
84 | _nb_general_register (param._nb_general_register ), |
---|
85 | _size_special_data (param._size_special_data ), |
---|
86 | _nb_special_register (param._nb_special_register ), |
---|
87 | _size_store_queue (param._size_store_queue ), |
---|
88 | _size_load_queue (param._size_load_queue ), |
---|
89 | |
---|
90 | _size_context_id (param._size_context_id ), |
---|
91 | _size_front_end_id (param._size_front_end_id ), |
---|
92 | _size_ooo_engine_id (param._size_ooo_engine_id ), |
---|
93 | _size_packet_id (param._size_packet_id ), |
---|
94 | _size_general_register (param._size_general_register ), |
---|
95 | _size_special_register (param._size_special_register ), |
---|
96 | |
---|
97 | _have_port_context_id (param._have_port_context_id ), |
---|
98 | _have_port_front_end_id (param._have_port_front_end_id ), |
---|
99 | _have_port_ooo_engine_id (param._have_port_ooo_engine_id), |
---|
100 | _have_port_packet_id (param._have_port_packet_id ), |
---|
101 | _have_port_load_queue_ptr(param._have_port_load_queue_ptr), |
---|
102 | |
---|
103 | _have_groupe_MAC (param._have_groupe_MAC ) |
---|
104 | { |
---|
105 | log_printf(FUNC,Functionnal_unit,FUNCTION,"Begin"); |
---|
106 | |
---|
107 | _timing = param._timing; |
---|
108 | _get_custom_information = param._get_custom_information; |
---|
109 | |
---|
110 | test(); |
---|
111 | log_printf(FUNC,Functionnal_unit,FUNCTION,"End"); |
---|
112 | }; |
---|
113 | |
---|
114 | #undef FUNCTION |
---|
115 | #define FUNCTION "Functionnal_unit::~Parameters" |
---|
116 | Parameters::~Parameters () |
---|
117 | { |
---|
118 | log_printf(FUNC,Functionnal_unit,FUNCTION,"Begin"); |
---|
119 | log_printf(FUNC,Functionnal_unit,FUNCTION,"End"); |
---|
120 | }; |
---|
121 | |
---|
122 | }; // end namespace functionnal_unit |
---|
123 | }; // end namespace execute_unit |
---|
124 | }; // end namespace multi_execute_unit |
---|
125 | }; // end namespace execute_loop |
---|
126 | }; // end namespace multi_execute_loop |
---|
127 | }; // end namespace core |
---|
128 | |
---|
129 | }; // end namespace behavioural |
---|
130 | }; // end namespace morpheo |
---|