[77] | 1 | /* |
---|
| 2 | * $Id: Read_unit_to_Execution_unit.cpp 132 2009-07-11 16:39:35Z rosiere $ |
---|
| 3 | * |
---|
| 4 | * [ Description ] |
---|
| 5 | * |
---|
| 6 | */ |
---|
| 7 | |
---|
| 8 | #include "Behavioural/Core/Multi_Execute_loop/Execute_loop/Network/Read_unit_to_Execution_unit/include/Read_unit_to_Execution_unit.h" |
---|
| 9 | |
---|
| 10 | namespace morpheo { |
---|
| 11 | namespace behavioural { |
---|
| 12 | namespace core { |
---|
| 13 | namespace multi_execute_loop { |
---|
| 14 | namespace execute_loop { |
---|
| 15 | namespace network { |
---|
| 16 | namespace read_unit_to_execution_unit { |
---|
| 17 | |
---|
| 18 | |
---|
| 19 | #undef FUNCTION |
---|
| 20 | #define FUNCTION "Read_unit_to_Execution_unit::Read_unit_to_Execution_unit" |
---|
| 21 | Read_unit_to_Execution_unit::Read_unit_to_Execution_unit |
---|
| 22 | ( |
---|
| 23 | #ifdef SYSTEMC |
---|
| 24 | sc_module_name name, |
---|
| 25 | #else |
---|
| 26 | string name, |
---|
| 27 | #endif |
---|
| 28 | #ifdef STATISTICS |
---|
| 29 | morpheo::behavioural::Parameters_Statistics * param_statistics, |
---|
| 30 | #endif |
---|
| 31 | morpheo::behavioural::core::multi_execute_loop::execute_loop::network::read_unit_to_execution_unit::Parameters * param, |
---|
| 32 | morpheo::behavioural::Tusage_t usage |
---|
| 33 | ): |
---|
| 34 | _name (name) |
---|
| 35 | ,_param (param) |
---|
| 36 | ,_usage (usage) |
---|
| 37 | { |
---|
| 38 | log_printf(FUNC,Read_unit_to_Execution_unit,FUNCTION,"Begin"); |
---|
| 39 | |
---|
[123] | 40 | // #if DEBUG_Read_unit_to_Execution_unit == true |
---|
| 41 | // log_printf(INFO,Read_unit_to_Execution_unit,FUNCTION,_("<%s> Parameters"),_name.c_str()); |
---|
[88] | 42 | |
---|
[123] | 43 | // std::cout << *param << std::endl; |
---|
| 44 | // #endif |
---|
[88] | 45 | |
---|
[77] | 46 | log_printf(INFO,Read_unit_to_Execution_unit,FUNCTION,"Allocation"); |
---|
| 47 | |
---|
| 48 | allocation ( |
---|
| 49 | #ifdef STATISTICS |
---|
| 50 | param_statistics |
---|
| 51 | #endif |
---|
| 52 | ); |
---|
| 53 | |
---|
| 54 | #ifdef STATISTICS |
---|
[88] | 55 | if (usage_is_set(_usage,USE_STATISTICS)) |
---|
[77] | 56 | { |
---|
| 57 | log_printf(INFO,Read_unit_to_Execution_unit,FUNCTION,"Allocation of statistics"); |
---|
| 58 | |
---|
| 59 | statistics_declaration(param_statistics); |
---|
| 60 | } |
---|
| 61 | #endif |
---|
| 62 | |
---|
| 63 | #ifdef VHDL |
---|
[88] | 64 | if (usage_is_set(_usage,USE_VHDL)) |
---|
[77] | 65 | { |
---|
| 66 | // generate the vhdl |
---|
| 67 | log_printf(INFO,Read_unit_to_Execution_unit,FUNCTION,"Generate the vhdl"); |
---|
| 68 | |
---|
| 69 | vhdl(); |
---|
| 70 | } |
---|
| 71 | #endif |
---|
| 72 | |
---|
| 73 | #ifdef SYSTEMC |
---|
[88] | 74 | if (usage_is_set(_usage,USE_SYSTEMC)) |
---|
[77] | 75 | { |
---|
| 76 | log_printf(INFO,Read_unit_to_Execution_unit,FUNCTION,"Method - transition"); |
---|
| 77 | |
---|
| 78 | SC_METHOD (transition); |
---|
| 79 | dont_initialize (); |
---|
| 80 | sensitive << (*(in_CLOCK)).pos(); |
---|
| 81 | |
---|
| 82 | # ifdef SYSTEMCASS_SPECIFIC |
---|
| 83 | // List dependency information |
---|
| 84 | # endif |
---|
| 85 | |
---|
| 86 | log_printf(INFO,Read_unit_to_Execution_unit,FUNCTION,"Method - genMealy"); |
---|
| 87 | |
---|
| 88 | SC_METHOD (genMealy); |
---|
| 89 | dont_initialize (); |
---|
[132] | 90 | sensitive << (*(in_CLOCK)).neg() |
---|
| 91 | << (*(in_NRESET)); |
---|
[77] | 92 | |
---|
| 93 | for (uint32_t i=0; i<_param->_nb_read_unit; i++) |
---|
[88] | 94 | for (uint32_t j=0; j<_param->_nb_read_unit_port[i]; j++) |
---|
| 95 | { |
---|
| 96 | sensitive << (*(in_READ_UNIT_OUT_VAL [i][j])) |
---|
| 97 | << (*(in_READ_UNIT_OUT_OPERATION [i][j])) |
---|
| 98 | << (*(in_READ_UNIT_OUT_TYPE [i][j])) |
---|
| 99 | << (*(in_READ_UNIT_OUT_HAS_IMMEDIAT [i][j])) |
---|
| 100 | << (*(in_READ_UNIT_OUT_IMMEDIAT [i][j])) |
---|
| 101 | << (*(in_READ_UNIT_OUT_DATA_RA [i][j])) |
---|
| 102 | << (*(in_READ_UNIT_OUT_DATA_RB [i][j])) |
---|
| 103 | << (*(in_READ_UNIT_OUT_DATA_RC [i][j])) |
---|
| 104 | << (*(in_READ_UNIT_OUT_WRITE_RD [i][j])) |
---|
| 105 | << (*(in_READ_UNIT_OUT_NUM_REG_RD [i][j])) |
---|
| 106 | << (*(in_READ_UNIT_OUT_WRITE_RE [i][j])) |
---|
| 107 | << (*(in_READ_UNIT_OUT_NUM_REG_RE [i][j])) |
---|
[132] | 108 | << (*(in_READ_UNIT_OUT_STORE_QUEUE_PTR_WRITE [i][j])) |
---|
| 109 | << (*(in_READ_UNIT_OUT_STORE_QUEUE_PTR_READ [i][j])) |
---|
| 110 | << (*(in_READ_UNIT_OUT_STORE_QUEUE_EMPTY [i][j])); |
---|
[77] | 111 | |
---|
[88] | 112 | if (_param->_have_port_load_queue_ptr) |
---|
| 113 | sensitive << (*(in_READ_UNIT_OUT_LOAD_QUEUE_PTR_WRITE [i][j])); |
---|
| 114 | if (_param->_have_port_context_id) |
---|
| 115 | sensitive << (*(in_READ_UNIT_OUT_CONTEXT_ID [i][j])); |
---|
| 116 | if (_param->_have_port_front_end_id) |
---|
| 117 | sensitive << (*(in_READ_UNIT_OUT_FRONT_END_ID [i][j])); |
---|
| 118 | if (_param->_have_port_ooo_engine_id) |
---|
| 119 | sensitive << (*(in_READ_UNIT_OUT_OOO_ENGINE_ID [i][j])); |
---|
| 120 | if (_param->_have_port_rob_ptr ) |
---|
| 121 | sensitive << (*(in_READ_UNIT_OUT_PACKET_ID [i][j])); |
---|
| 122 | } |
---|
[77] | 123 | |
---|
| 124 | for (uint32_t i=0; i<_param->_nb_execute_unit; i++) |
---|
[88] | 125 | for (uint32_t j=0; j<_param->_nb_execute_unit_port[i]; j++) |
---|
| 126 | sensitive << (*(in_EXECUTE_UNIT_IN_ACK [i][j])); |
---|
[77] | 127 | |
---|
| 128 | # ifdef SYSTEMCASS_SPECIFIC |
---|
| 129 | // List dependency information |
---|
| 130 | for (uint32_t i=0; i<_param->_nb_read_unit; i++) |
---|
[88] | 131 | for (uint32_t j=0; j<_param->_nb_read_unit_port[i]; j++) |
---|
[77] | 132 | { |
---|
[88] | 133 | (*(out_READ_UNIT_OUT_ACK [i][j])) (*(in_READ_UNIT_OUT_VAL [i][j])); |
---|
| 134 | (*(out_READ_UNIT_OUT_ACK [i][j])) (*(in_READ_UNIT_OUT_TYPE [i][j])); |
---|
[77] | 135 | if (_param->_have_port_context_id) |
---|
[88] | 136 | (*(out_READ_UNIT_OUT_ACK [i][j])) (*(in_READ_UNIT_OUT_CONTEXT_ID [i][j])); |
---|
[77] | 137 | if (_param->_have_port_front_end_id) |
---|
[88] | 138 | (*(out_READ_UNIT_OUT_ACK [i][j])) (*(in_READ_UNIT_OUT_FRONT_END_ID [i][j])); |
---|
[77] | 139 | if (_param->_have_port_ooo_engine_id) |
---|
[88] | 140 | (*(out_READ_UNIT_OUT_ACK [i][j])) (*(in_READ_UNIT_OUT_OOO_ENGINE_ID [i][j])); |
---|
[77] | 141 | |
---|
[88] | 142 | for (uint32_t x=0; x<_param->_nb_execute_unit; x++) |
---|
| 143 | for (uint32_t y=0; y<_param->_nb_execute_unit_port[x]; y++) |
---|
| 144 | (*(out_READ_UNIT_OUT_ACK [i][j])) (*(in_EXECUTE_UNIT_IN_ACK [x][y])); |
---|
[77] | 145 | } |
---|
| 146 | |
---|
| 147 | for (uint32_t i=0; i<_param->_nb_execute_unit; i++) |
---|
[88] | 148 | for (uint32_t j=0; j<_param->_nb_execute_unit_port[i]; j++) |
---|
[77] | 149 | { |
---|
[88] | 150 | (*(out_EXECUTE_UNIT_IN_VAL [i][j])) (*(in_EXECUTE_UNIT_IN_ACK [i][j])); |
---|
[77] | 151 | |
---|
[88] | 152 | for (uint32_t x=0; x<_param->_nb_read_unit; x++) |
---|
| 153 | for (uint32_t y=0; y<_param->_nb_read_unit_port[x]; y++) |
---|
[77] | 154 | { |
---|
[88] | 155 | (*(out_EXECUTE_UNIT_IN_VAL [i][j])) (*(in_READ_UNIT_OUT_VAL [x][y])); |
---|
| 156 | (*(out_EXECUTE_UNIT_IN_VAL [i][j])) (*(in_READ_UNIT_OUT_TYPE [x][y])); |
---|
[77] | 157 | if (_param->_have_port_context_id) |
---|
[88] | 158 | (*(out_EXECUTE_UNIT_IN_VAL [i][j])) (*(in_READ_UNIT_OUT_CONTEXT_ID [x][y])); |
---|
[77] | 159 | if (_param->_have_port_front_end_id) |
---|
[88] | 160 | (*(out_EXECUTE_UNIT_IN_VAL [i][j])) (*(in_READ_UNIT_OUT_FRONT_END_ID [x][y])); |
---|
[77] | 161 | if (_param->_have_port_ooo_engine_id) |
---|
[88] | 162 | (*(out_EXECUTE_UNIT_IN_VAL [i][j])) (*(in_READ_UNIT_OUT_OOO_ENGINE_ID [x][y])); |
---|
[77] | 163 | } |
---|
| 164 | |
---|
| 165 | if (_param->_have_port_context_id) |
---|
| 166 | { |
---|
[88] | 167 | (*(out_EXECUTE_UNIT_IN_CONTEXT_ID [i][j])) (*(in_EXECUTE_UNIT_IN_ACK [i][j])); |
---|
[77] | 168 | |
---|
[88] | 169 | for (uint32_t x=0; x<_param->_nb_read_unit; x++) |
---|
| 170 | for (uint32_t y=0; y<_param->_nb_read_unit_port[x]; y++) |
---|
[77] | 171 | { |
---|
[88] | 172 | (*(out_EXECUTE_UNIT_IN_CONTEXT_ID [i][j])) (*(in_READ_UNIT_OUT_VAL [x][y])); |
---|
| 173 | (*(out_EXECUTE_UNIT_IN_CONTEXT_ID [i][j])) (*(in_READ_UNIT_OUT_TYPE [x][y])); |
---|
[77] | 174 | if (_param->_have_port_context_id) |
---|
[88] | 175 | (*(out_EXECUTE_UNIT_IN_CONTEXT_ID [i][j])) (*(in_READ_UNIT_OUT_CONTEXT_ID [x][y])); |
---|
[77] | 176 | if (_param->_have_port_front_end_id) |
---|
[88] | 177 | (*(out_EXECUTE_UNIT_IN_CONTEXT_ID [i][j])) (*(in_READ_UNIT_OUT_FRONT_END_ID [x][y])); |
---|
[77] | 178 | if (_param->_have_port_ooo_engine_id) |
---|
[88] | 179 | (*(out_EXECUTE_UNIT_IN_CONTEXT_ID [i][j])) (*(in_READ_UNIT_OUT_OOO_ENGINE_ID [x][y])); |
---|
[77] | 180 | } |
---|
| 181 | } |
---|
| 182 | |
---|
| 183 | if (_param->_have_port_front_end_id) |
---|
| 184 | { |
---|
[88] | 185 | (*(out_EXECUTE_UNIT_IN_FRONT_END_ID [i][j])) (*(in_EXECUTE_UNIT_IN_ACK [i][j])); |
---|
[77] | 186 | |
---|
[88] | 187 | for (uint32_t x=0; x<_param->_nb_read_unit; x++) |
---|
| 188 | for (uint32_t y=0; y<_param->_nb_read_unit_port[x]; y++) |
---|
[77] | 189 | { |
---|
[88] | 190 | (*(out_EXECUTE_UNIT_IN_FRONT_END_ID [i][j])) (*(in_READ_UNIT_OUT_VAL [x][y])); |
---|
| 191 | (*(out_EXECUTE_UNIT_IN_FRONT_END_ID [i][j])) (*(in_READ_UNIT_OUT_TYPE [x][y])); |
---|
[77] | 192 | if (_param->_have_port_context_id) |
---|
[88] | 193 | (*(out_EXECUTE_UNIT_IN_FRONT_END_ID [i][j])) (*(in_READ_UNIT_OUT_CONTEXT_ID [x][y])); |
---|
[77] | 194 | if (_param->_have_port_front_end_id) |
---|
[88] | 195 | (*(out_EXECUTE_UNIT_IN_FRONT_END_ID [i][j])) (*(in_READ_UNIT_OUT_FRONT_END_ID [x][y])); |
---|
[77] | 196 | if (_param->_have_port_ooo_engine_id) |
---|
[88] | 197 | (*(out_EXECUTE_UNIT_IN_FRONT_END_ID [i][j])) (*(in_READ_UNIT_OUT_OOO_ENGINE_ID [x][y])); |
---|
[77] | 198 | } |
---|
| 199 | } |
---|
| 200 | |
---|
| 201 | if (_param->_have_port_ooo_engine_id) |
---|
| 202 | { |
---|
[88] | 203 | (*(out_EXECUTE_UNIT_IN_OOO_ENGINE_ID [i][j])) (*(in_EXECUTE_UNIT_IN_ACK [i][j])); |
---|
[77] | 204 | |
---|
[88] | 205 | for (uint32_t x=0; x<_param->_nb_read_unit; x++) |
---|
| 206 | for (uint32_t y=0; y<_param->_nb_read_unit_port[x]; y++) |
---|
[77] | 207 | { |
---|
[88] | 208 | (*(out_EXECUTE_UNIT_IN_OOO_ENGINE_ID [i][j])) (*(in_READ_UNIT_OUT_VAL [x][y])); |
---|
| 209 | (*(out_EXECUTE_UNIT_IN_OOO_ENGINE_ID [i][j])) (*(in_READ_UNIT_OUT_TYPE [x][y])); |
---|
[77] | 210 | if (_param->_have_port_context_id) |
---|
[88] | 211 | (*(out_EXECUTE_UNIT_IN_OOO_ENGINE_ID [i][j])) (*(in_READ_UNIT_OUT_CONTEXT_ID [x][y])); |
---|
[77] | 212 | if (_param->_have_port_front_end_id) |
---|
[88] | 213 | (*(out_EXECUTE_UNIT_IN_OOO_ENGINE_ID [i][j])) (*(in_READ_UNIT_OUT_FRONT_END_ID [x][y])); |
---|
[77] | 214 | if (_param->_have_port_ooo_engine_id) |
---|
[88] | 215 | (*(out_EXECUTE_UNIT_IN_OOO_ENGINE_ID [i][j])) (*(in_READ_UNIT_OUT_OOO_ENGINE_ID [x][y])); |
---|
[77] | 216 | } |
---|
| 217 | } |
---|
| 218 | |
---|
[88] | 219 | if (_param->_have_port_rob_ptr ) |
---|
[77] | 220 | { |
---|
[88] | 221 | (*(out_EXECUTE_UNIT_IN_PACKET_ID [i][j])) (*(in_EXECUTE_UNIT_IN_ACK [i][j])); |
---|
[77] | 222 | |
---|
[88] | 223 | for (uint32_t x=0; x<_param->_nb_read_unit; x++) |
---|
| 224 | for (uint32_t y=0; y<_param->_nb_read_unit_port[x]; y++) |
---|
[77] | 225 | { |
---|
[88] | 226 | (*(out_EXECUTE_UNIT_IN_PACKET_ID [i][j])) (*(in_READ_UNIT_OUT_PACKET_ID [x][y])); |
---|
| 227 | (*(out_EXECUTE_UNIT_IN_PACKET_ID [i][j])) (*(in_READ_UNIT_OUT_VAL [x][y])); |
---|
| 228 | (*(out_EXECUTE_UNIT_IN_PACKET_ID [i][j])) (*(in_READ_UNIT_OUT_TYPE [x][y])); |
---|
[77] | 229 | if (_param->_have_port_context_id) |
---|
[88] | 230 | (*(out_EXECUTE_UNIT_IN_PACKET_ID [i][j])) (*(in_READ_UNIT_OUT_CONTEXT_ID [x][y])); |
---|
[77] | 231 | if (_param->_have_port_front_end_id) |
---|
[88] | 232 | (*(out_EXECUTE_UNIT_IN_PACKET_ID [i][j])) (*(in_READ_UNIT_OUT_FRONT_END_ID [x][y])); |
---|
[77] | 233 | if (_param->_have_port_ooo_engine_id) |
---|
[88] | 234 | (*(out_EXECUTE_UNIT_IN_PACKET_ID [i][j])) (*(in_READ_UNIT_OUT_OOO_ENGINE_ID [x][y])); |
---|
[77] | 235 | } |
---|
| 236 | } |
---|
| 237 | |
---|
[88] | 238 | (*(out_EXECUTE_UNIT_IN_OPERATION [i][j])) (*(in_EXECUTE_UNIT_IN_ACK [i][j])); |
---|
[77] | 239 | |
---|
[88] | 240 | for (uint32_t x=0; x<_param->_nb_read_unit; x++) |
---|
| 241 | for (uint32_t y=0; y<_param->_nb_read_unit_port[x]; y++) |
---|
[77] | 242 | { |
---|
[88] | 243 | (*(out_EXECUTE_UNIT_IN_OPERATION [i][j])) (*(in_READ_UNIT_OUT_OPERATION [x][y])); |
---|
| 244 | (*(out_EXECUTE_UNIT_IN_OPERATION [i][j])) (*(in_READ_UNIT_OUT_VAL [x][y])); |
---|
| 245 | (*(out_EXECUTE_UNIT_IN_OPERATION [i][j])) (*(in_READ_UNIT_OUT_TYPE [x][y])); |
---|
[77] | 246 | if (_param->_have_port_context_id) |
---|
[88] | 247 | (*(out_EXECUTE_UNIT_IN_OPERATION [i][j])) (*(in_READ_UNIT_OUT_CONTEXT_ID [x][y])); |
---|
[77] | 248 | if (_param->_have_port_front_end_id) |
---|
[88] | 249 | (*(out_EXECUTE_UNIT_IN_OPERATION [i][j])) (*(in_READ_UNIT_OUT_FRONT_END_ID [x][y])); |
---|
[77] | 250 | if (_param->_have_port_ooo_engine_id) |
---|
[88] | 251 | (*(out_EXECUTE_UNIT_IN_OPERATION [i][j])) (*(in_READ_UNIT_OUT_OOO_ENGINE_ID [x][y])); |
---|
[77] | 252 | } |
---|
| 253 | |
---|
[88] | 254 | (*(out_EXECUTE_UNIT_IN_TYPE [i][j])) (*(in_EXECUTE_UNIT_IN_ACK [i][j])); |
---|
[77] | 255 | |
---|
[88] | 256 | for (uint32_t x=0; x<_param->_nb_read_unit; x++) |
---|
| 257 | for (uint32_t y=0; y<_param->_nb_read_unit_port[x]; y++) |
---|
[77] | 258 | { |
---|
[88] | 259 | (*(out_EXECUTE_UNIT_IN_TYPE [i][j])) (*(in_READ_UNIT_OUT_VAL [x][y])); |
---|
| 260 | (*(out_EXECUTE_UNIT_IN_TYPE [i][j])) (*(in_READ_UNIT_OUT_TYPE [x][y])); |
---|
[77] | 261 | if (_param->_have_port_context_id) |
---|
[88] | 262 | (*(out_EXECUTE_UNIT_IN_TYPE [i][j])) (*(in_READ_UNIT_OUT_CONTEXT_ID [x][y])); |
---|
[77] | 263 | if (_param->_have_port_front_end_id) |
---|
[88] | 264 | (*(out_EXECUTE_UNIT_IN_TYPE [i][j])) (*(in_READ_UNIT_OUT_FRONT_END_ID [x][y])); |
---|
[77] | 265 | if (_param->_have_port_ooo_engine_id) |
---|
[88] | 266 | (*(out_EXECUTE_UNIT_IN_TYPE [i][j])) (*(in_READ_UNIT_OUT_OOO_ENGINE_ID [x][y])); |
---|
[77] | 267 | } |
---|
| 268 | |
---|
[88] | 269 | (*(out_EXECUTE_UNIT_IN_STORE_QUEUE_PTR_WRITE [i][j])) (*(in_EXECUTE_UNIT_IN_ACK [i][j])); |
---|
[77] | 270 | |
---|
[88] | 271 | for (uint32_t x=0; x<_param->_nb_read_unit; x++) |
---|
| 272 | for (uint32_t y=0; y<_param->_nb_read_unit_port[x]; y++) |
---|
[77] | 273 | { |
---|
[88] | 274 | (*(out_EXECUTE_UNIT_IN_STORE_QUEUE_PTR_WRITE [i][j])) (*(in_READ_UNIT_OUT_STORE_QUEUE_PTR_WRITE [x][y])); |
---|
| 275 | (*(out_EXECUTE_UNIT_IN_STORE_QUEUE_PTR_WRITE [i][j])) (*(in_READ_UNIT_OUT_VAL [x][y])); |
---|
| 276 | (*(out_EXECUTE_UNIT_IN_STORE_QUEUE_PTR_WRITE [i][j])) (*(in_READ_UNIT_OUT_TYPE [x][y])); |
---|
[77] | 277 | if (_param->_have_port_context_id) |
---|
[88] | 278 | (*(out_EXECUTE_UNIT_IN_STORE_QUEUE_PTR_WRITE [i][j])) (*(in_READ_UNIT_OUT_CONTEXT_ID [x][y])); |
---|
[77] | 279 | if (_param->_have_port_front_end_id) |
---|
[88] | 280 | (*(out_EXECUTE_UNIT_IN_STORE_QUEUE_PTR_WRITE [i][j])) (*(in_READ_UNIT_OUT_FRONT_END_ID [x][y])); |
---|
[77] | 281 | if (_param->_have_port_ooo_engine_id) |
---|
[88] | 282 | (*(out_EXECUTE_UNIT_IN_STORE_QUEUE_PTR_WRITE [i][j])) (*(in_READ_UNIT_OUT_OOO_ENGINE_ID [x][y])); |
---|
[77] | 283 | } |
---|
| 284 | |
---|
[78] | 285 | if (_param->_have_port_load_queue_ptr) |
---|
| 286 | { |
---|
[88] | 287 | (*(out_EXECUTE_UNIT_IN_LOAD_QUEUE_PTR_WRITE [i][j])) (*(in_EXECUTE_UNIT_IN_ACK [i][j])); |
---|
[77] | 288 | |
---|
[88] | 289 | for (uint32_t x=0; x<_param->_nb_read_unit; x++) |
---|
| 290 | for (uint32_t y=0; y<_param->_nb_read_unit_port[x]; y++) |
---|
[77] | 291 | { |
---|
[88] | 292 | (*(out_EXECUTE_UNIT_IN_LOAD_QUEUE_PTR_WRITE [i][j])) (*(in_READ_UNIT_OUT_LOAD_QUEUE_PTR_WRITE [x][y])); |
---|
| 293 | (*(out_EXECUTE_UNIT_IN_LOAD_QUEUE_PTR_WRITE [i][j])) (*(in_READ_UNIT_OUT_VAL [x][y])); |
---|
| 294 | (*(out_EXECUTE_UNIT_IN_LOAD_QUEUE_PTR_WRITE [i][j])) (*(in_READ_UNIT_OUT_TYPE [x][y])); |
---|
[77] | 295 | if (_param->_have_port_context_id) |
---|
[88] | 296 | (*(out_EXECUTE_UNIT_IN_LOAD_QUEUE_PTR_WRITE [i][j])) (*(in_READ_UNIT_OUT_CONTEXT_ID [x][y])); |
---|
[77] | 297 | if (_param->_have_port_front_end_id) |
---|
[88] | 298 | (*(out_EXECUTE_UNIT_IN_LOAD_QUEUE_PTR_WRITE [i][j])) (*(in_READ_UNIT_OUT_FRONT_END_ID [x][y])); |
---|
[77] | 299 | if (_param->_have_port_ooo_engine_id) |
---|
[88] | 300 | (*(out_EXECUTE_UNIT_IN_LOAD_QUEUE_PTR_WRITE [i][j])) (*(in_READ_UNIT_OUT_OOO_ENGINE_ID [x][y])); |
---|
[77] | 301 | } |
---|
[78] | 302 | } |
---|
| 303 | |
---|
[88] | 304 | (*(out_EXECUTE_UNIT_IN_HAS_IMMEDIAT [i][j])) (*(in_EXECUTE_UNIT_IN_ACK [i][j])); |
---|
[77] | 305 | |
---|
[88] | 306 | for (uint32_t x=0; x<_param->_nb_read_unit; x++) |
---|
| 307 | for (uint32_t y=0; y<_param->_nb_read_unit_port[x]; y++) |
---|
[77] | 308 | { |
---|
[88] | 309 | (*(out_EXECUTE_UNIT_IN_HAS_IMMEDIAT [i][j])) (*(in_READ_UNIT_OUT_HAS_IMMEDIAT [x][y])); |
---|
| 310 | (*(out_EXECUTE_UNIT_IN_HAS_IMMEDIAT [i][j])) (*(in_READ_UNIT_OUT_VAL [x][y])); |
---|
| 311 | (*(out_EXECUTE_UNIT_IN_HAS_IMMEDIAT [i][j])) (*(in_READ_UNIT_OUT_TYPE [x][y])); |
---|
[77] | 312 | if (_param->_have_port_context_id) |
---|
[88] | 313 | (*(out_EXECUTE_UNIT_IN_HAS_IMMEDIAT [i][j])) (*(in_READ_UNIT_OUT_CONTEXT_ID [x][y])); |
---|
[77] | 314 | if (_param->_have_port_front_end_id) |
---|
[88] | 315 | (*(out_EXECUTE_UNIT_IN_HAS_IMMEDIAT [i][j])) (*(in_READ_UNIT_OUT_FRONT_END_ID [x][y])); |
---|
[77] | 316 | if (_param->_have_port_ooo_engine_id) |
---|
[88] | 317 | (*(out_EXECUTE_UNIT_IN_HAS_IMMEDIAT [i][j])) (*(in_READ_UNIT_OUT_OOO_ENGINE_ID [x][y])); |
---|
[77] | 318 | } |
---|
| 319 | |
---|
[88] | 320 | (*(out_EXECUTE_UNIT_IN_IMMEDIAT [i][j])) (*(in_EXECUTE_UNIT_IN_ACK [i][j])); |
---|
[77] | 321 | |
---|
[88] | 322 | for (uint32_t x=0; x<_param->_nb_read_unit; x++) |
---|
| 323 | for (uint32_t y=0; y<_param->_nb_read_unit_port[x]; y++) |
---|
[77] | 324 | { |
---|
[88] | 325 | (*(out_EXECUTE_UNIT_IN_IMMEDIAT [i][j])) (*(in_READ_UNIT_OUT_IMMEDIAT [x][y])); |
---|
| 326 | (*(out_EXECUTE_UNIT_IN_IMMEDIAT [i][j])) (*(in_READ_UNIT_OUT_VAL [x][y])); |
---|
| 327 | (*(out_EXECUTE_UNIT_IN_IMMEDIAT [i][j])) (*(in_READ_UNIT_OUT_TYPE [x][y])); |
---|
[77] | 328 | if (_param->_have_port_context_id) |
---|
[88] | 329 | (*(out_EXECUTE_UNIT_IN_IMMEDIAT [i][j])) (*(in_READ_UNIT_OUT_CONTEXT_ID [x][y])); |
---|
[77] | 330 | if (_param->_have_port_front_end_id) |
---|
[88] | 331 | (*(out_EXECUTE_UNIT_IN_IMMEDIAT [i][j])) (*(in_READ_UNIT_OUT_FRONT_END_ID [x][y])); |
---|
[77] | 332 | if (_param->_have_port_ooo_engine_id) |
---|
[88] | 333 | (*(out_EXECUTE_UNIT_IN_IMMEDIAT [i][j])) (*(in_READ_UNIT_OUT_OOO_ENGINE_ID [x][y])); |
---|
[77] | 334 | } |
---|
| 335 | |
---|
[88] | 336 | (*(out_EXECUTE_UNIT_IN_DATA_RA [i][j])) (*(in_EXECUTE_UNIT_IN_ACK [i][j])); |
---|
[77] | 337 | |
---|
[88] | 338 | for (uint32_t x=0; x<_param->_nb_read_unit; x++) |
---|
| 339 | for (uint32_t y=0; y<_param->_nb_read_unit_port[x]; y++) |
---|
[77] | 340 | { |
---|
[88] | 341 | (*(out_EXECUTE_UNIT_IN_DATA_RA [i][j])) (*(in_READ_UNIT_OUT_DATA_RA [x][y])); |
---|
| 342 | (*(out_EXECUTE_UNIT_IN_DATA_RA [i][j])) (*(in_READ_UNIT_OUT_VAL [x][y])); |
---|
| 343 | (*(out_EXECUTE_UNIT_IN_DATA_RA [i][j])) (*(in_READ_UNIT_OUT_TYPE [x][y])); |
---|
[77] | 344 | if (_param->_have_port_context_id) |
---|
[88] | 345 | (*(out_EXECUTE_UNIT_IN_DATA_RA [i][j])) (*(in_READ_UNIT_OUT_CONTEXT_ID [x][y])); |
---|
[77] | 346 | if (_param->_have_port_front_end_id) |
---|
[88] | 347 | (*(out_EXECUTE_UNIT_IN_DATA_RA [i][j])) (*(in_READ_UNIT_OUT_FRONT_END_ID [x][y])); |
---|
[77] | 348 | if (_param->_have_port_ooo_engine_id) |
---|
[88] | 349 | (*(out_EXECUTE_UNIT_IN_DATA_RA [i][j])) (*(in_READ_UNIT_OUT_OOO_ENGINE_ID [x][y])); |
---|
[77] | 350 | } |
---|
| 351 | |
---|
[88] | 352 | (*(out_EXECUTE_UNIT_IN_DATA_RB [i][j])) (*(in_EXECUTE_UNIT_IN_ACK [i][j])); |
---|
[77] | 353 | |
---|
[88] | 354 | for (uint32_t x=0; x<_param->_nb_read_unit; x++) |
---|
| 355 | for (uint32_t y=0; y<_param->_nb_read_unit_port[x]; y++) |
---|
[77] | 356 | { |
---|
[88] | 357 | (*(out_EXECUTE_UNIT_IN_DATA_RB [i][j])) (*(in_READ_UNIT_OUT_DATA_RB [x][y])); |
---|
| 358 | (*(out_EXECUTE_UNIT_IN_DATA_RB [i][j])) (*(in_READ_UNIT_OUT_VAL [x][y])); |
---|
| 359 | (*(out_EXECUTE_UNIT_IN_DATA_RB [i][j])) (*(in_READ_UNIT_OUT_TYPE [x][y])); |
---|
[77] | 360 | if (_param->_have_port_context_id) |
---|
[88] | 361 | (*(out_EXECUTE_UNIT_IN_DATA_RB [i][j])) (*(in_READ_UNIT_OUT_CONTEXT_ID [x][y])); |
---|
[77] | 362 | if (_param->_have_port_front_end_id) |
---|
[88] | 363 | (*(out_EXECUTE_UNIT_IN_DATA_RB [i][j])) (*(in_READ_UNIT_OUT_FRONT_END_ID [x][y])); |
---|
[77] | 364 | if (_param->_have_port_ooo_engine_id) |
---|
[88] | 365 | (*(out_EXECUTE_UNIT_IN_DATA_RB [i][j])) (*(in_READ_UNIT_OUT_OOO_ENGINE_ID [x][y])); |
---|
[77] | 366 | } |
---|
| 367 | |
---|
[88] | 368 | (*(out_EXECUTE_UNIT_IN_DATA_RC [i][j])) (*(in_EXECUTE_UNIT_IN_ACK [i][j])); |
---|
[77] | 369 | |
---|
[88] | 370 | for (uint32_t x=0; x<_param->_nb_read_unit; x++) |
---|
| 371 | for (uint32_t y=0; y<_param->_nb_read_unit_port[x]; y++) |
---|
[77] | 372 | { |
---|
[88] | 373 | (*(out_EXECUTE_UNIT_IN_DATA_RC [i][j])) (*(in_READ_UNIT_OUT_DATA_RC [x][y])); |
---|
| 374 | (*(out_EXECUTE_UNIT_IN_DATA_RC [i][j])) (*(in_READ_UNIT_OUT_VAL [x][y])); |
---|
| 375 | (*(out_EXECUTE_UNIT_IN_DATA_RC [i][j])) (*(in_READ_UNIT_OUT_TYPE [x][y])); |
---|
[77] | 376 | if (_param->_have_port_context_id) |
---|
[88] | 377 | (*(out_EXECUTE_UNIT_IN_DATA_RC [i][j])) (*(in_READ_UNIT_OUT_CONTEXT_ID [x][y])); |
---|
[77] | 378 | if (_param->_have_port_front_end_id) |
---|
[88] | 379 | (*(out_EXECUTE_UNIT_IN_DATA_RC [i][j])) (*(in_READ_UNIT_OUT_FRONT_END_ID [x][y])); |
---|
[77] | 380 | if (_param->_have_port_ooo_engine_id) |
---|
[88] | 381 | (*(out_EXECUTE_UNIT_IN_DATA_RC [i][j])) (*(in_READ_UNIT_OUT_OOO_ENGINE_ID [x][y])); |
---|
[77] | 382 | } |
---|
| 383 | |
---|
[88] | 384 | (*(out_EXECUTE_UNIT_IN_WRITE_RD [i][j])) (*(in_EXECUTE_UNIT_IN_ACK [i][j])); |
---|
[77] | 385 | |
---|
[88] | 386 | for (uint32_t x=0; x<_param->_nb_read_unit; x++) |
---|
| 387 | for (uint32_t y=0; y<_param->_nb_read_unit_port[x]; y++) |
---|
[77] | 388 | { |
---|
[88] | 389 | (*(out_EXECUTE_UNIT_IN_WRITE_RD [i][j])) (*(in_READ_UNIT_OUT_WRITE_RD [x][y])); |
---|
| 390 | (*(out_EXECUTE_UNIT_IN_WRITE_RD [i][j])) (*(in_READ_UNIT_OUT_VAL [x][y])); |
---|
| 391 | (*(out_EXECUTE_UNIT_IN_WRITE_RD [i][j])) (*(in_READ_UNIT_OUT_TYPE [x][y])); |
---|
[77] | 392 | if (_param->_have_port_context_id) |
---|
[88] | 393 | (*(out_EXECUTE_UNIT_IN_WRITE_RD [i][j])) (*(in_READ_UNIT_OUT_CONTEXT_ID [x][y])); |
---|
[77] | 394 | if (_param->_have_port_front_end_id) |
---|
[88] | 395 | (*(out_EXECUTE_UNIT_IN_WRITE_RD [i][j])) (*(in_READ_UNIT_OUT_FRONT_END_ID [x][y])); |
---|
[77] | 396 | if (_param->_have_port_ooo_engine_id) |
---|
[88] | 397 | (*(out_EXECUTE_UNIT_IN_WRITE_RD [i][j])) (*(in_READ_UNIT_OUT_OOO_ENGINE_ID [x][y])); |
---|
[77] | 398 | } |
---|
[78] | 399 | |
---|
[88] | 400 | (*(out_EXECUTE_UNIT_IN_NUM_REG_RD [i][j])) (*(in_EXECUTE_UNIT_IN_ACK [i][j])); |
---|
[77] | 401 | |
---|
[88] | 402 | for (uint32_t x=0; x<_param->_nb_read_unit; x++) |
---|
| 403 | for (uint32_t y=0; y<_param->_nb_read_unit_port[x]; y++) |
---|
[77] | 404 | { |
---|
[88] | 405 | (*(out_EXECUTE_UNIT_IN_NUM_REG_RD [i][j])) (*(in_READ_UNIT_OUT_NUM_REG_RD [x][y])); |
---|
| 406 | (*(out_EXECUTE_UNIT_IN_NUM_REG_RD [i][j])) (*(in_READ_UNIT_OUT_VAL [x][y])); |
---|
| 407 | (*(out_EXECUTE_UNIT_IN_NUM_REG_RD [i][j])) (*(in_READ_UNIT_OUT_TYPE [x][y])); |
---|
[77] | 408 | if (_param->_have_port_context_id) |
---|
[88] | 409 | (*(out_EXECUTE_UNIT_IN_NUM_REG_RD [i][j])) (*(in_READ_UNIT_OUT_CONTEXT_ID [x][y])); |
---|
[77] | 410 | if (_param->_have_port_front_end_id) |
---|
[88] | 411 | (*(out_EXECUTE_UNIT_IN_NUM_REG_RD [i][j])) (*(in_READ_UNIT_OUT_FRONT_END_ID [x][y])); |
---|
[77] | 412 | if (_param->_have_port_ooo_engine_id) |
---|
[88] | 413 | (*(out_EXECUTE_UNIT_IN_NUM_REG_RD [i][j])) (*(in_READ_UNIT_OUT_OOO_ENGINE_ID [x][y])); |
---|
[77] | 414 | } |
---|
| 415 | |
---|
[88] | 416 | (*(out_EXECUTE_UNIT_IN_WRITE_RE [i][j])) (*(in_EXECUTE_UNIT_IN_ACK [i][j])); |
---|
[77] | 417 | |
---|
[88] | 418 | for (uint32_t x=0; x<_param->_nb_read_unit; x++) |
---|
| 419 | for (uint32_t y=0; y<_param->_nb_read_unit_port[x]; y++) |
---|
[77] | 420 | { |
---|
[88] | 421 | (*(out_EXECUTE_UNIT_IN_WRITE_RE [i][j])) (*(in_READ_UNIT_OUT_WRITE_RE [x][y])); |
---|
| 422 | (*(out_EXECUTE_UNIT_IN_WRITE_RE [i][j])) (*(in_READ_UNIT_OUT_VAL [x][y])); |
---|
| 423 | (*(out_EXECUTE_UNIT_IN_WRITE_RE [i][j])) (*(in_READ_UNIT_OUT_TYPE [x][y])); |
---|
[77] | 424 | if (_param->_have_port_context_id) |
---|
[88] | 425 | (*(out_EXECUTE_UNIT_IN_WRITE_RE [i][j])) (*(in_READ_UNIT_OUT_CONTEXT_ID [x][y])); |
---|
[77] | 426 | if (_param->_have_port_front_end_id) |
---|
[88] | 427 | (*(out_EXECUTE_UNIT_IN_WRITE_RE [i][j])) (*(in_READ_UNIT_OUT_FRONT_END_ID [x][y])); |
---|
[77] | 428 | if (_param->_have_port_ooo_engine_id) |
---|
[88] | 429 | (*(out_EXECUTE_UNIT_IN_WRITE_RE [i][j])) (*(in_READ_UNIT_OUT_OOO_ENGINE_ID [x][y])); |
---|
[77] | 430 | } |
---|
| 431 | |
---|
[88] | 432 | (*(out_EXECUTE_UNIT_IN_NUM_REG_RE [i][j])) (*(in_EXECUTE_UNIT_IN_ACK [i][j])); |
---|
[77] | 433 | |
---|
[88] | 434 | for (uint32_t x=0; x<_param->_nb_read_unit; x++) |
---|
| 435 | for (uint32_t y=0; y<_param->_nb_read_unit_port[x]; y++) |
---|
[77] | 436 | { |
---|
[88] | 437 | (*(out_EXECUTE_UNIT_IN_NUM_REG_RE [i][j])) (*(in_READ_UNIT_OUT_NUM_REG_RE [x][y])); |
---|
| 438 | (*(out_EXECUTE_UNIT_IN_NUM_REG_RE [i][j])) (*(in_READ_UNIT_OUT_VAL [x][y])); |
---|
| 439 | (*(out_EXECUTE_UNIT_IN_NUM_REG_RE [i][j])) (*(in_READ_UNIT_OUT_TYPE [x][y])); |
---|
[77] | 440 | if (_param->_have_port_context_id) |
---|
[88] | 441 | (*(out_EXECUTE_UNIT_IN_NUM_REG_RE [i][j])) (*(in_READ_UNIT_OUT_CONTEXT_ID [x][y])); |
---|
[77] | 442 | if (_param->_have_port_front_end_id) |
---|
[88] | 443 | (*(out_EXECUTE_UNIT_IN_NUM_REG_RE [i][j])) (*(in_READ_UNIT_OUT_FRONT_END_ID [x][y])); |
---|
[77] | 444 | if (_param->_have_port_ooo_engine_id) |
---|
[88] | 445 | (*(out_EXECUTE_UNIT_IN_NUM_REG_RE [i][j])) (*(in_READ_UNIT_OUT_OOO_ENGINE_ID [x][y])); |
---|
[77] | 446 | } |
---|
| 447 | } |
---|
| 448 | # endif |
---|
| 449 | |
---|
| 450 | #endif |
---|
| 451 | } |
---|
| 452 | log_printf(FUNC,Read_unit_to_Execution_unit,FUNCTION,"End"); |
---|
| 453 | }; |
---|
| 454 | |
---|
| 455 | #undef FUNCTION |
---|
| 456 | #define FUNCTION "Read_unit_to_Execution_unit::~Read_unit_to_Execution_unit" |
---|
| 457 | Read_unit_to_Execution_unit::~Read_unit_to_Execution_unit (void) |
---|
| 458 | { |
---|
| 459 | log_printf(FUNC,Read_unit_to_Execution_unit,FUNCTION,"Begin"); |
---|
| 460 | |
---|
| 461 | #ifdef STATISTICS |
---|
[88] | 462 | if (usage_is_set(_usage,USE_STATISTICS)) |
---|
[77] | 463 | { |
---|
| 464 | log_printf(INFO,Read_unit_to_Execution_unit,FUNCTION,"Generate Statistics file"); |
---|
| 465 | |
---|
| 466 | delete _stat; |
---|
| 467 | } |
---|
| 468 | #endif |
---|
| 469 | |
---|
| 470 | log_printf(INFO,Read_unit_to_Execution_unit,FUNCTION,"Deallocation"); |
---|
| 471 | deallocation (); |
---|
| 472 | |
---|
| 473 | log_printf(FUNC,Read_unit_to_Execution_unit,FUNCTION,"End"); |
---|
| 474 | }; |
---|
| 475 | |
---|
| 476 | }; // end namespace read_unit_to_execution_unit |
---|
| 477 | }; // end namespace network |
---|
| 478 | }; // end namespace execute_loop |
---|
| 479 | }; // end namespace multi_execute_loop |
---|
| 480 | }; // end namespace core |
---|
| 481 | |
---|
| 482 | }; // end namespace behavioural |
---|
| 483 | }; // end namespace morpheo |
---|