1 | /* |
---|
2 | * $Id$ |
---|
3 | * |
---|
4 | * [ Description ] |
---|
5 | * |
---|
6 | */ |
---|
7 | |
---|
8 | #include "Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Execute_unit/Execute_unit/Load_store_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 load_store_unit { |
---|
18 | |
---|
19 | |
---|
20 | #undef FUNCTION |
---|
21 | #define FUNCTION "Load_store_unit::Parameters" |
---|
22 | Parameters::Parameters (uint32_t size_store_queue , |
---|
23 | uint32_t size_load_queue , |
---|
24 | uint32_t size_speculative_access_queue, |
---|
25 | uint32_t nb_port_check , |
---|
26 | Tspeculative_load_t speculative_load , |
---|
27 | uint32_t nb_context , |
---|
28 | uint32_t nb_front_end , |
---|
29 | uint32_t nb_ooo_engine , |
---|
30 | uint32_t nb_packet , |
---|
31 | uint32_t size_general_data , |
---|
32 | uint32_t nb_general_register , |
---|
33 | uint32_t nb_operation , |
---|
34 | uint32_t nb_type |
---|
35 | ): |
---|
36 | _size_store_queue (size_store_queue ), |
---|
37 | _size_load_queue (size_load_queue ), |
---|
38 | _size_speculative_access_queue (size_speculative_access_queue), |
---|
39 | _nb_port_check (nb_port_check ), |
---|
40 | _speculative_load (speculative_load ), |
---|
41 | _nb_context (nb_context ), |
---|
42 | _nb_front_end (nb_front_end ), |
---|
43 | _nb_ooo_engine (nb_ooo_engine ), |
---|
44 | _nb_packet (nb_packet ), |
---|
45 | _size_general_data (size_general_data ), |
---|
46 | _nb_general_register (nb_general_register ), |
---|
47 | _nb_operation (nb_operation ), |
---|
48 | _nb_type (nb_type ), |
---|
49 | |
---|
50 | _size_address_store_queue (log2(size_store_queue )), |
---|
51 | _size_address_load_queue (log2(size_load_queue )), |
---|
52 | _size_address_speculative_access_queue (log2(size_speculative_access_queue)), |
---|
53 | |
---|
54 | _size_context_id (log2(nb_context )), |
---|
55 | _size_front_end_id (log2(nb_front_end )), |
---|
56 | _size_ooo_engine_id (log2(nb_ooo_engine )), |
---|
57 | _size_packet_id (log2(nb_packet )), |
---|
58 | _size_general_register (log2(nb_general_register)), |
---|
59 | _size_operation (log2(nb_operation )), |
---|
60 | _size_type (log2(nb_type )), |
---|
61 | _size_dcache_context_id (_size_context_id + _size_front_end_id + _size_ooo_engine_id), |
---|
62 | _size_dcache_packet_id ((log2((size_store_queue>size_load_queue)?size_store_queue:size_load_queue))+1), |
---|
63 | |
---|
64 | _have_port_context_id (_size_context_id >0), |
---|
65 | _have_port_front_end_id (_size_front_end_id >0), |
---|
66 | _have_port_ooo_engine_id (_size_ooo_engine_id>0), |
---|
67 | _have_port_packet_id (_size_packet_id >0), |
---|
68 | _have_port_dcache_context_id (_size_dcache_context_id>0), |
---|
69 | |
---|
70 | _mask_address_lsb (gen_mask<Tdcache_address_t>(log2(size_general_data/8))), |
---|
71 | _mask_address_msb (gen_mask<Tdcache_address_t>(size_general_data) << log2(size_general_data/8)) |
---|
72 | { |
---|
73 | log_printf(FUNC,Load_store_unit,FUNCTION,"Begin"); |
---|
74 | test(); |
---|
75 | log_printf(FUNC,Load_store_unit,FUNCTION,"End"); |
---|
76 | }; |
---|
77 | |
---|
78 | #undef FUNCTION |
---|
79 | #define FUNCTION "Load_store_unit::Parameters (copy)" |
---|
80 | Parameters::Parameters (Parameters & param): |
---|
81 | _size_store_queue (param._size_store_queue ), |
---|
82 | _size_load_queue (param._size_load_queue ), |
---|
83 | _size_speculative_access_queue (param._size_speculative_access_queue), |
---|
84 | _nb_port_check (param._nb_port_check ), |
---|
85 | _speculative_load (param._speculative_load ), |
---|
86 | _nb_context (param._nb_context ), |
---|
87 | _nb_front_end (param._nb_front_end ), |
---|
88 | _nb_ooo_engine (param._nb_ooo_engine ), |
---|
89 | _nb_packet (param._nb_packet ), |
---|
90 | _size_general_data (param._size_general_data ), |
---|
91 | _nb_general_register (param._nb_general_register ), |
---|
92 | _nb_operation (param._nb_operation ), |
---|
93 | _nb_type (param._nb_type ), |
---|
94 | |
---|
95 | _size_address_store_queue (param._size_address_store_queue ), |
---|
96 | _size_address_load_queue (param._size_address_load_queue ), |
---|
97 | _size_address_speculative_access_queue (param._size_address_speculative_access_queue), |
---|
98 | |
---|
99 | _size_context_id (param._size_context_id ), |
---|
100 | _size_front_end_id (param._size_front_end_id ), |
---|
101 | _size_ooo_engine_id (param._size_ooo_engine_id ), |
---|
102 | _size_packet_id (param._size_packet_id ), |
---|
103 | _size_general_register (param._size_general_register ), |
---|
104 | _size_operation (param._size_operation ), |
---|
105 | _size_type (param._size_type ), |
---|
106 | _size_dcache_context_id (param._size_dcache_context_id ), |
---|
107 | _size_dcache_packet_id (param._size_dcache_packet_id ), |
---|
108 | |
---|
109 | _have_port_context_id (param._have_port_context_id ), |
---|
110 | _have_port_front_end_id (param._have_port_front_end_id ), |
---|
111 | _have_port_ooo_engine_id (param._have_port_ooo_engine_id), |
---|
112 | _have_port_packet_id (param._have_port_packet_id ), |
---|
113 | |
---|
114 | _have_port_dcache_context_id(param._have_port_dcache_context_id), |
---|
115 | |
---|
116 | _mask_address_lsb (param._mask_address_lsb), |
---|
117 | _mask_address_msb (param._mask_address_msb) |
---|
118 | { |
---|
119 | log_printf(FUNC,Load_store_unit,FUNCTION,"Begin"); |
---|
120 | test(); |
---|
121 | log_printf(FUNC,Load_store_unit,FUNCTION,"End"); |
---|
122 | }; |
---|
123 | |
---|
124 | #undef FUNCTION |
---|
125 | #define FUNCTION "Load_store_unit::~Parameters" |
---|
126 | Parameters::~Parameters () |
---|
127 | { |
---|
128 | log_printf(FUNC,Load_store_unit,FUNCTION,"Begin"); |
---|
129 | log_printf(FUNC,Load_store_unit,FUNCTION,"End"); |
---|
130 | }; |
---|
131 | |
---|
132 | }; // end namespace load_store_unit |
---|
133 | }; // end namespace execute_unit |
---|
134 | }; // end namespace multi_execute_unit |
---|
135 | }; // end namespace execute_loop |
---|
136 | }; // end namespace multi_execute_loop |
---|
137 | }; // end namespace core |
---|
138 | |
---|
139 | }; // end namespace behavioural |
---|
140 | }; // end namespace morpheo |
---|