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 | execute_timing_t** timing , |
---|
31 | morpheo::behavioural::custom::custom_information_t (*get_custom_information) (uint32_t)) : |
---|
32 | _nb_context (nb_context ), |
---|
33 | _nb_front_end (nb_front_end ), |
---|
34 | _nb_ooo_engine (nb_ooo_engine ), |
---|
35 | _nb_packet (nb_packet ), |
---|
36 | _size_general_data (size_general_data ), |
---|
37 | _nb_general_register (nb_general_register ), |
---|
38 | _size_special_data (size_special_data ), |
---|
39 | _nb_special_register (nb_special_register ), |
---|
40 | |
---|
41 | _size_context_id (log2(nb_context )), |
---|
42 | _size_front_end_id (log2(nb_front_end )), |
---|
43 | _size_ooo_engine_id (log2(nb_ooo_engine )), |
---|
44 | _size_packet_id (log2(nb_packet )), |
---|
45 | _size_general_register (log2(_size_general_register)), |
---|
46 | _size_special_register (log2(_size_special_register)), |
---|
47 | |
---|
48 | _have_port_context_id (_size_context_id > 0), |
---|
49 | _have_port_front_end_id (_size_front_end_id > 0), |
---|
50 | _have_port_ooo_engine_id (_size_ooo_engine_id > 0), |
---|
51 | _have_port_packet_id (_size_packet_id > 0), |
---|
52 | |
---|
53 | _have_groupe_MAC ( (timing[TYPE_SPECIAL][OPERATION_SPECIAL_L_MAC ]._latence > 0) or |
---|
54 | (timing[TYPE_SPECIAL][OPERATION_SPECIAL_L_MACRC]._latence > 0) or |
---|
55 | (timing[TYPE_SPECIAL][OPERATION_SPECIAL_L_MSB ]._latence > 0)) |
---|
56 | { |
---|
57 | log_printf(FUNC,Functionnal_unit,FUNCTION,"Begin"); |
---|
58 | |
---|
59 | _timing = timing; |
---|
60 | _get_custom_information = get_custom_information; |
---|
61 | |
---|
62 | test(); |
---|
63 | |
---|
64 | log_printf(FUNC,Functionnal_unit,FUNCTION,"End"); |
---|
65 | }; |
---|
66 | |
---|
67 | #undef FUNCTION |
---|
68 | #define FUNCTION "Functionnal_unit::Parameters (copy)" |
---|
69 | Parameters::Parameters (Parameters & param): |
---|
70 | _nb_context (param._nb_context ), |
---|
71 | _nb_front_end (param._nb_front_end ), |
---|
72 | _nb_ooo_engine (param._nb_ooo_engine ), |
---|
73 | _nb_packet (param._nb_packet ), |
---|
74 | _size_general_data (param._size_general_data ), |
---|
75 | _nb_general_register (param._nb_general_register ), |
---|
76 | _size_special_data (param._size_special_data ), |
---|
77 | _nb_special_register (param._nb_special_register ), |
---|
78 | |
---|
79 | _size_context_id (param._size_context_id ), |
---|
80 | _size_front_end_id (param._size_front_end_id ), |
---|
81 | _size_ooo_engine_id (param._size_ooo_engine_id ), |
---|
82 | _size_packet_id (param._size_packet_id ), |
---|
83 | _size_general_register (param._size_general_register ), |
---|
84 | _size_special_register (param._size_special_register ), |
---|
85 | |
---|
86 | _have_port_context_id (param._have_port_context_id ), |
---|
87 | _have_port_front_end_id (param._have_port_front_end_id ), |
---|
88 | _have_port_ooo_engine_id (param._have_port_ooo_engine_id), |
---|
89 | _have_port_packet_id (param._have_port_packet_id ), |
---|
90 | |
---|
91 | _have_groupe_MAC (param._have_groupe_MAC ) |
---|
92 | { |
---|
93 | log_printf(FUNC,Functionnal_unit,FUNCTION,"Begin"); |
---|
94 | |
---|
95 | _timing = param._timing; |
---|
96 | _get_custom_information = param._get_custom_information; |
---|
97 | |
---|
98 | test(); |
---|
99 | log_printf(FUNC,Functionnal_unit,FUNCTION,"End"); |
---|
100 | }; |
---|
101 | |
---|
102 | #undef FUNCTION |
---|
103 | #define FUNCTION "Functionnal_unit::~Parameters" |
---|
104 | Parameters::~Parameters () |
---|
105 | { |
---|
106 | log_printf(FUNC,Functionnal_unit,FUNCTION,"Begin"); |
---|
107 | log_printf(FUNC,Functionnal_unit,FUNCTION,"End"); |
---|
108 | }; |
---|
109 | |
---|
110 | }; // end namespace functionnal_unit |
---|
111 | }; // end namespace execute_unit |
---|
112 | }; // end namespace multi_execute_unit |
---|
113 | }; // end namespace execute_loop |
---|
114 | }; // end namespace multi_execute_loop |
---|
115 | }; // end namespace core |
---|
116 | |
---|
117 | }; // end namespace behavioural |
---|
118 | }; // end namespace morpheo |
---|