1 | /* |
---|
2 | * $Id$ |
---|
3 | * |
---|
4 | * [ Description ] |
---|
5 | * |
---|
6 | */ |
---|
7 | |
---|
8 | #include "Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Read_unit/Read_unit/Read_queue/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_read_unit { |
---|
16 | namespace read_unit { |
---|
17 | namespace read_queue { |
---|
18 | |
---|
19 | |
---|
20 | Parameters::Parameters (uint32_t size_queue , |
---|
21 | uint32_t nb_context , |
---|
22 | uint32_t nb_front_end , |
---|
23 | uint32_t nb_ooo_engine , |
---|
24 | uint32_t nb_packet , |
---|
25 | uint32_t size_general_data , |
---|
26 | uint32_t size_special_data , |
---|
27 | uint32_t nb_general_register, |
---|
28 | uint32_t nb_special_register, |
---|
29 | uint32_t nb_operation , |
---|
30 | uint32_t nb_type , |
---|
31 | uint32_t nb_gpr_write , |
---|
32 | uint32_t nb_spr_write ): |
---|
33 | _size_queue (size_queue ), |
---|
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 | _size_special_data (size_special_data ), |
---|
40 | _nb_general_register (nb_general_register ), |
---|
41 | _nb_special_register (nb_special_register ), |
---|
42 | _nb_operation (nb_operation ), |
---|
43 | _nb_type (nb_type ), |
---|
44 | _nb_gpr_write (nb_gpr_write ), |
---|
45 | _nb_spr_write (nb_spr_write ), |
---|
46 | |
---|
47 | _nb_gpr_read (2 ), |
---|
48 | _nb_spr_read (1 ), |
---|
49 | _size_context_id (static_cast<uint32_t>(log2(_nb_context ))), |
---|
50 | _size_front_end_id (static_cast<uint32_t>(log2(_nb_front_end ))), |
---|
51 | _size_ooo_engine_id (static_cast<uint32_t>(log2(_nb_ooo_engine ))), |
---|
52 | _size_rob_id (static_cast<uint32_t>(log2(_nb_packet ))), |
---|
53 | _size_general_register (static_cast<uint32_t>(log2(_nb_general_register))), |
---|
54 | _size_special_register (static_cast<uint32_t>(log2(_nb_special_register))), |
---|
55 | _size_operation (static_cast<uint32_t>(log2(_nb_operation ))), |
---|
56 | _size_type (static_cast<uint32_t>(log2(_nb_type ))) |
---|
57 | { |
---|
58 | log_printf(FUNC,Read_queue,"Parameters","Begin"); |
---|
59 | test(); |
---|
60 | log_printf(FUNC,Read_queue,"Parameters","End"); |
---|
61 | }; |
---|
62 | |
---|
63 | Parameters::Parameters (Parameters & param): |
---|
64 | _size_queue (param._size_queue ), |
---|
65 | _nb_context (param._nb_context ), |
---|
66 | _nb_front_end (param._nb_front_end ), |
---|
67 | _nb_ooo_engine (param._nb_ooo_engine ), |
---|
68 | _nb_packet (param._nb_packet ), |
---|
69 | _size_general_data (param._size_general_data ), |
---|
70 | _size_special_data (param._size_special_data ), |
---|
71 | _nb_general_register (param._nb_general_register ), |
---|
72 | _nb_special_register (param._nb_special_register ), |
---|
73 | _nb_operation (param._nb_operation ), |
---|
74 | _nb_type (param._nb_type ), |
---|
75 | _nb_gpr_write (param._nb_gpr_write ), |
---|
76 | _nb_spr_write (param._nb_spr_write ), |
---|
77 | |
---|
78 | _nb_gpr_read (param._nb_gpr_read ), |
---|
79 | _nb_spr_read (param._nb_spr_read ), |
---|
80 | _size_context_id (param._size_context_id ), |
---|
81 | _size_front_end_id (param._size_front_end_id ), |
---|
82 | _size_ooo_engine_id (param._size_ooo_engine_id ), |
---|
83 | _size_rob_id (param._size_rob_id ), |
---|
84 | _size_general_register (param._size_general_register ), |
---|
85 | _size_special_register (param._size_special_register ), |
---|
86 | _size_operation (param._size_operation ), |
---|
87 | _size_type (param._size_type ) |
---|
88 | { |
---|
89 | log_printf(FUNC,Read_queue,"Parameters (copy)","Begin"); |
---|
90 | test(); |
---|
91 | log_printf(FUNC,Read_queue,"Parameters (copy)","End"); |
---|
92 | }; |
---|
93 | |
---|
94 | Parameters::~Parameters () |
---|
95 | { |
---|
96 | log_printf(FUNC,Read_queue,"~Parameters","Begin"); |
---|
97 | log_printf(FUNC,Read_queue,"~Parameters","End"); |
---|
98 | }; |
---|
99 | |
---|
100 | }; // end namespace read_queue |
---|
101 | }; // end namespace read_unit |
---|
102 | }; // end namespace multi_read_unit |
---|
103 | }; // end namespace execute_loop |
---|
104 | }; // end namespace multi_execute_loop |
---|
105 | }; // end namespace core |
---|
106 | |
---|
107 | }; // end namespace behavioural |
---|
108 | }; // end namespace morpheo |
---|