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 nb_operation , |
---|
31 | uint32_t nb_type , |
---|
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 | _nb_operation (nb_operation ), |
---|
43 | _nb_type (nb_type ), |
---|
44 | _timing (timing ), |
---|
45 | |
---|
46 | _size_context_id (log2(nb_context )), |
---|
47 | _size_front_end_id (log2(nb_front_end )), |
---|
48 | _size_ooo_engine_id (log2(nb_ooo_engine )), |
---|
49 | _size_packet_id (log2(nb_packet )), |
---|
50 | _size_general_register (log2(_size_general_register)), |
---|
51 | _size_special_register (log2(_size_special_register)), |
---|
52 | _size_operation (log2(_size_operation )), |
---|
53 | _size_type (log2(_size_type )), |
---|
54 | |
---|
55 | _have_port_context_id (_size_context_id > 0), |
---|
56 | _have_port_front_end_id (_size_front_end_id > 0), |
---|
57 | _have_port_ooo_engine_id (_size_ooo_engine_id > 0), |
---|
58 | _have_port_packet_id (_size_packet_id > 0), |
---|
59 | |
---|
60 | _have_groupe_MAC ( (_timing[OPERATION_ALU_L_MAC ]._latence > 0) or |
---|
61 | (_timing[OPERATION_ALU_L_MACRC]._latence > 0) or |
---|
62 | (_timing[OPERATION_ALU_L_MSB ]._latence > 0)) |
---|
63 | { |
---|
64 | log_printf(FUNC,Functionnal_unit,FUNCTION,"Begin"); |
---|
65 | |
---|
66 | _get_custom_information = get_custom_information; |
---|
67 | |
---|
68 | test(); |
---|
69 | log_printf(FUNC,Functionnal_unit,FUNCTION,"End"); |
---|
70 | }; |
---|
71 | |
---|
72 | #undef FUNCTION |
---|
73 | #define FUNCTION "Functionnal_unit::Parameters (copy)" |
---|
74 | Parameters::Parameters (Parameters & param): |
---|
75 | _nb_context (param._nb_context ), |
---|
76 | _nb_front_end (param._nb_front_end ), |
---|
77 | _nb_ooo_engine (param._nb_ooo_engine ), |
---|
78 | _nb_packet (param._nb_packet ), |
---|
79 | _size_general_data (param._size_general_data ), |
---|
80 | _nb_general_register (param._nb_general_register ), |
---|
81 | _size_special_data (param._size_special_data ), |
---|
82 | _nb_special_register (param._nb_special_register ), |
---|
83 | _nb_operation (param._nb_operation ), |
---|
84 | _nb_type (param._nb_type ), |
---|
85 | _timing (param._timing ), |
---|
86 | |
---|
87 | _size_context_id (param._size_context_id ), |
---|
88 | _size_front_end_id (param._size_front_end_id ), |
---|
89 | _size_ooo_engine_id (param._size_ooo_engine_id ), |
---|
90 | _size_packet_id (param._size_packet_id ), |
---|
91 | _size_general_register (param._size_general_register ), |
---|
92 | _size_special_register (param._size_special_register ), |
---|
93 | _size_operation (param._size_operation ), |
---|
94 | _size_type (param._size_type ), |
---|
95 | |
---|
96 | _have_port_context_id (param._have_port_context_id ), |
---|
97 | _have_port_front_end_id (param._have_port_front_end_id ), |
---|
98 | _have_port_ooo_engine_id (param._have_port_ooo_engine_id), |
---|
99 | _have_port_packet_id (param._have_port_packet_id ), |
---|
100 | |
---|
101 | _have_groupe_MAC (param._have_groupe_MAC ) |
---|
102 | { |
---|
103 | log_printf(FUNC,Functionnal_unit,FUNCTION,"Begin"); |
---|
104 | |
---|
105 | _get_custom_information = param._get_custom_information; |
---|
106 | |
---|
107 | test(); |
---|
108 | log_printf(FUNC,Functionnal_unit,FUNCTION,"End"); |
---|
109 | }; |
---|
110 | |
---|
111 | #undef FUNCTION |
---|
112 | #define FUNCTION "Functionnal_unit::~Parameters" |
---|
113 | Parameters::~Parameters () |
---|
114 | { |
---|
115 | log_printf(FUNC,Functionnal_unit,FUNCTION,"Begin"); |
---|
116 | log_printf(FUNC,Functionnal_unit,FUNCTION,"End"); |
---|
117 | }; |
---|
118 | |
---|
119 | }; // end namespace functionnal_unit |
---|
120 | }; // end namespace execute_unit |
---|
121 | }; // end namespace multi_execute_unit |
---|
122 | }; // end namespace execute_loop |
---|
123 | }; // end namespace multi_execute_loop |
---|
124 | }; // end namespace core |
---|
125 | |
---|
126 | }; // end namespace behavioural |
---|
127 | }; // end namespace morpheo |
---|