[77] | 1 | /* |
---|
| 2 | * $Id: Execution_unit_to_Write_unit.cpp 88 2008-12-10 18:31:39Z rosiere $ |
---|
| 3 | * |
---|
| 4 | * [ Description ] |
---|
| 5 | * |
---|
| 6 | */ |
---|
| 7 | |
---|
| 8 | #include "Behavioural/Core/Multi_Execute_loop/Execute_loop/Network/Execution_unit_to_Write_unit/include/Execution_unit_to_Write_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 execution_unit_to_write_unit { |
---|
| 17 | |
---|
| 18 | |
---|
| 19 | #undef FUNCTION |
---|
| 20 | #define FUNCTION "Execution_unit_to_Write_unit::Execution_unit_to_Write_unit" |
---|
| 21 | Execution_unit_to_Write_unit::Execution_unit_to_Write_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::execution_unit_to_write_unit::Parameters * param, |
---|
| 32 | morpheo::behavioural::Tusage_t usage |
---|
| 33 | ): |
---|
| 34 | _name (name) |
---|
| 35 | ,_param (param) |
---|
| 36 | ,_usage (usage) |
---|
| 37 | { |
---|
| 38 | log_printf(FUNC,Execution_unit_to_Write_unit,FUNCTION,"Begin"); |
---|
| 39 | |
---|
[88] | 40 | #if DEBUG_Execution_unit_to_Write_unit == true |
---|
| 41 | log_printf(INFO,Execution_unit_to_Write_unit,FUNCTION,_("<%s> Parameters"),_name.c_str()); |
---|
| 42 | |
---|
| 43 | std::cout << *param << std::endl; |
---|
| 44 | #endif |
---|
| 45 | |
---|
[77] | 46 | log_printf(INFO,Execution_unit_to_Write_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,Execution_unit_to_Write_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,Execution_unit_to_Write_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,Execution_unit_to_Write_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,Execution_unit_to_Write_unit,FUNCTION,"Method - genMealy"); |
---|
| 87 | |
---|
| 88 | SC_METHOD (genMealy); |
---|
| 89 | dont_initialize (); |
---|
| 90 | sensitive << (*(in_CLOCK)).pos(); |
---|
| 91 | for (uint32_t i=0; i<_param->_nb_execute_unit; i++) |
---|
[88] | 92 | for (uint32_t j=0; j<_param->_nb_execute_unit_port[i]; j++) |
---|
| 93 | { |
---|
| 94 | if (_param->_have_port_context_id) |
---|
| 95 | sensitive << (*(in_EXECUTE_UNIT_OUT_CONTEXT_ID [i][j])); |
---|
| 96 | if (_param->_have_port_front_end_id) |
---|
| 97 | sensitive << (*(in_EXECUTE_UNIT_OUT_FRONT_END_ID [i][j])); |
---|
| 98 | if (_param->_have_port_ooo_engine_id) |
---|
| 99 | sensitive << (*(in_EXECUTE_UNIT_OUT_OOO_ENGINE_ID [i][j])); |
---|
| 100 | if (_param->_have_port_rob_ptr ) |
---|
| 101 | sensitive << (*(in_EXECUTE_UNIT_OUT_PACKET_ID [i][j])); |
---|
| 102 | |
---|
| 103 | sensitive << (*(in_EXECUTE_UNIT_OUT_VAL [i][j])) |
---|
| 104 | //<< (*(in_EXECUTE_UNIT_OUT_OPERATION [i][j])) |
---|
| 105 | //<< (*(in_EXECUTE_UNIT_OUT_TYPE [i][j])) |
---|
| 106 | << (*(in_EXECUTE_UNIT_OUT_WRITE_RD [i][j])) |
---|
| 107 | << (*(in_EXECUTE_UNIT_OUT_NUM_REG_RD [i][j])) |
---|
| 108 | << (*(in_EXECUTE_UNIT_OUT_DATA_RD [i][j])) |
---|
| 109 | << (*(in_EXECUTE_UNIT_OUT_WRITE_RE [i][j])) |
---|
| 110 | << (*(in_EXECUTE_UNIT_OUT_NUM_REG_RE [i][j])) |
---|
| 111 | << (*(in_EXECUTE_UNIT_OUT_DATA_RE [i][j])) |
---|
| 112 | << (*(in_EXECUTE_UNIT_OUT_EXCEPTION [i][j])) |
---|
| 113 | << (*(in_EXECUTE_UNIT_OUT_NO_SEQUENCE [i][j])) |
---|
| 114 | << (*(in_EXECUTE_UNIT_OUT_ADDRESS [i][j])); |
---|
| 115 | } |
---|
[77] | 116 | for (uint32_t i=0; i<_param->_nb_write_unit; i++) |
---|
| 117 | sensitive << (*(in_WRITE_UNIT_IN_ACK [i])); |
---|
| 118 | |
---|
| 119 | # ifdef SYSTEMCASS_SPECIFIC |
---|
| 120 | // List dependency information |
---|
| 121 | for (uint32_t i=0; i<_param->_nb_execute_unit; i++) |
---|
[88] | 122 | for (uint32_t j=0; j<_param->_nb_execute_unit_port[i]; j++) |
---|
| 123 | { |
---|
| 124 | (*(out_EXECUTE_UNIT_OUT_ACK [i][j])) (*(in_EXECUTE_UNIT_OUT_VAL [i][j])); |
---|
| 125 | if (_param->_have_port_context_id) |
---|
| 126 | (*(out_EXECUTE_UNIT_OUT_ACK [i][j])) (*(in_EXECUTE_UNIT_OUT_CONTEXT_ID [i][j])); |
---|
| 127 | if (_param->_have_port_front_end_id) |
---|
| 128 | (*(out_EXECUTE_UNIT_OUT_ACK [i][j])) (*(in_EXECUTE_UNIT_OUT_FRONT_END_ID [i][j])); |
---|
| 129 | if (_param->_have_port_ooo_engine_id) |
---|
| 130 | (*(out_EXECUTE_UNIT_OUT_ACK [i][j])) (*(in_EXECUTE_UNIT_OUT_OOO_ENGINE_ID [i][j])); |
---|
[77] | 131 | |
---|
[88] | 132 | for (uint32_t x=0; x<_param->_nb_write_unit; x++) |
---|
| 133 | (*(out_EXECUTE_UNIT_OUT_ACK [i][j])) (*(in_WRITE_UNIT_IN_ACK [x])); |
---|
| 134 | } |
---|
[77] | 135 | |
---|
| 136 | for (uint32_t i=0; i<_param->_nb_write_unit; i++) |
---|
| 137 | { |
---|
| 138 | (*(out_WRITE_UNIT_IN_VAL [i])) (*(in_WRITE_UNIT_IN_ACK [i])); |
---|
[88] | 139 | for (uint32_t x=0; x<_param->_nb_execute_unit; x++) |
---|
| 140 | for (uint32_t y=0; y<_param->_nb_execute_unit_port[x]; y++) |
---|
[77] | 141 | { |
---|
[88] | 142 | (*(out_WRITE_UNIT_IN_VAL [i])) (*(in_EXECUTE_UNIT_OUT_VAL [x][y])); |
---|
[77] | 143 | if (_param->_have_port_context_id) |
---|
[88] | 144 | (*(out_WRITE_UNIT_IN_VAL [i])) (*(in_EXECUTE_UNIT_OUT_CONTEXT_ID [x][y])); |
---|
[77] | 145 | if (_param->_have_port_front_end_id) |
---|
[88] | 146 | (*(out_WRITE_UNIT_IN_VAL [i])) (*(in_EXECUTE_UNIT_OUT_FRONT_END_ID [x][y])); |
---|
[77] | 147 | if (_param->_have_port_ooo_engine_id) |
---|
[88] | 148 | (*(out_WRITE_UNIT_IN_VAL [i])) (*(in_EXECUTE_UNIT_OUT_OOO_ENGINE_ID [x][y])); |
---|
[77] | 149 | } |
---|
| 150 | |
---|
| 151 | if (_param->_have_port_context_id) |
---|
| 152 | { |
---|
| 153 | (*(out_WRITE_UNIT_IN_CONTEXT_ID [i])) (*(in_WRITE_UNIT_IN_ACK [i])); |
---|
[88] | 154 | for (uint32_t x=0; x<_param->_nb_execute_unit; x++) |
---|
| 155 | for (uint32_t y=0; y<_param->_nb_execute_unit_port[x]; y++) |
---|
[77] | 156 | { |
---|
[88] | 157 | (*(out_WRITE_UNIT_IN_CONTEXT_ID [i])) (*(in_EXECUTE_UNIT_OUT_VAL [x][y])); |
---|
[77] | 158 | if (_param->_have_port_context_id) |
---|
[88] | 159 | (*(out_WRITE_UNIT_IN_CONTEXT_ID [i])) (*(in_EXECUTE_UNIT_OUT_CONTEXT_ID [x][y])); |
---|
[77] | 160 | if (_param->_have_port_front_end_id) |
---|
[88] | 161 | (*(out_WRITE_UNIT_IN_CONTEXT_ID [i])) (*(in_EXECUTE_UNIT_OUT_FRONT_END_ID [x][y])); |
---|
[77] | 162 | if (_param->_have_port_ooo_engine_id) |
---|
[88] | 163 | (*(out_WRITE_UNIT_IN_CONTEXT_ID [i])) (*(in_EXECUTE_UNIT_OUT_OOO_ENGINE_ID [x][y])); |
---|
[77] | 164 | } |
---|
| 165 | } |
---|
| 166 | if (_param->_have_port_front_end_id) |
---|
| 167 | { |
---|
| 168 | (*(out_WRITE_UNIT_IN_FRONT_END_ID [i])) (*(in_WRITE_UNIT_IN_ACK [i])); |
---|
[88] | 169 | for (uint32_t x=0; x<_param->_nb_execute_unit; x++) |
---|
| 170 | for (uint32_t y=0; y<_param->_nb_execute_unit_port[x]; y++) |
---|
[77] | 171 | { |
---|
[88] | 172 | (*(out_WRITE_UNIT_IN_FRONT_END_ID [i])) (*(in_EXECUTE_UNIT_OUT_VAL [x][y])); |
---|
[77] | 173 | if (_param->_have_port_context_id) |
---|
[88] | 174 | (*(out_WRITE_UNIT_IN_FRONT_END_ID [i])) (*(in_EXECUTE_UNIT_OUT_CONTEXT_ID [x][y])); |
---|
[77] | 175 | if (_param->_have_port_front_end_id) |
---|
[88] | 176 | (*(out_WRITE_UNIT_IN_FRONT_END_ID [i])) (*(in_EXECUTE_UNIT_OUT_FRONT_END_ID [x][y])); |
---|
[77] | 177 | if (_param->_have_port_ooo_engine_id) |
---|
[88] | 178 | (*(out_WRITE_UNIT_IN_FRONT_END_ID [i])) (*(in_EXECUTE_UNIT_OUT_OOO_ENGINE_ID [x][y])); |
---|
[77] | 179 | } |
---|
| 180 | } |
---|
| 181 | if (_param->_have_port_ooo_engine_id) |
---|
| 182 | { |
---|
| 183 | (*(out_WRITE_UNIT_IN_OOO_ENGINE_ID [i])) (*(in_WRITE_UNIT_IN_ACK [i])); |
---|
[88] | 184 | for (uint32_t x=0; x<_param->_nb_execute_unit; x++) |
---|
| 185 | for (uint32_t y=0; y<_param->_nb_execute_unit_port[x]; y++) |
---|
[77] | 186 | { |
---|
[88] | 187 | (*(out_WRITE_UNIT_IN_OOO_ENGINE_ID [i])) (*(in_EXECUTE_UNIT_OUT_VAL [x][y])); |
---|
[77] | 188 | if (_param->_have_port_context_id) |
---|
[88] | 189 | (*(out_WRITE_UNIT_IN_OOO_ENGINE_ID [i])) (*(in_EXECUTE_UNIT_OUT_CONTEXT_ID [x][y])); |
---|
[77] | 190 | if (_param->_have_port_front_end_id) |
---|
[88] | 191 | (*(out_WRITE_UNIT_IN_OOO_ENGINE_ID [i])) (*(in_EXECUTE_UNIT_OUT_FRONT_END_ID [x][y])); |
---|
[77] | 192 | if (_param->_have_port_ooo_engine_id) |
---|
[88] | 193 | (*(out_WRITE_UNIT_IN_OOO_ENGINE_ID [i])) (*(in_EXECUTE_UNIT_OUT_OOO_ENGINE_ID [x][y])); |
---|
[77] | 194 | } |
---|
| 195 | } |
---|
| 196 | |
---|
[88] | 197 | if (_param->_have_port_rob_ptr ) |
---|
[77] | 198 | { |
---|
| 199 | (*(out_WRITE_UNIT_IN_PACKET_ID [i])) (*(in_WRITE_UNIT_IN_ACK [i])); |
---|
[88] | 200 | for (uint32_t x=0; x<_param->_nb_execute_unit; x++) |
---|
| 201 | for (uint32_t y=0; y<_param->_nb_execute_unit_port[x]; y++) |
---|
[77] | 202 | { |
---|
[88] | 203 | (*(out_WRITE_UNIT_IN_PACKET_ID [i])) (*(in_EXECUTE_UNIT_OUT_PACKET_ID [x][y])); |
---|
| 204 | (*(out_WRITE_UNIT_IN_PACKET_ID [i])) (*(in_EXECUTE_UNIT_OUT_VAL [x][y])); |
---|
[77] | 205 | if (_param->_have_port_context_id) |
---|
[88] | 206 | (*(out_WRITE_UNIT_IN_PACKET_ID [i])) (*(in_EXECUTE_UNIT_OUT_CONTEXT_ID [x][y])); |
---|
[77] | 207 | if (_param->_have_port_front_end_id) |
---|
[88] | 208 | (*(out_WRITE_UNIT_IN_PACKET_ID [i])) (*(in_EXECUTE_UNIT_OUT_FRONT_END_ID [x][y])); |
---|
[77] | 209 | if (_param->_have_port_ooo_engine_id) |
---|
[88] | 210 | (*(out_WRITE_UNIT_IN_PACKET_ID [i])) (*(in_EXECUTE_UNIT_OUT_OOO_ENGINE_ID [x][y])); |
---|
[77] | 211 | } |
---|
| 212 | } |
---|
| 213 | |
---|
| 214 | // (*(out_WRITE_UNIT_IN_OPERATION [i])) (*(in_WRITE_UNIT_IN_ACK [i])); |
---|
[88] | 215 | // for (uint32_t x=0; x<_param->_nb_execute_unit; x++) |
---|
| 216 | // for (uint32_t y=0; y<_param->_nb_execute_unit_port[x]; y++) |
---|
[77] | 217 | // { |
---|
[88] | 218 | // (*(out_WRITE_UNIT_IN_OPERATION [i])) (*(in_EXECUTE_UNIT_OUT_OPERATION [x][y])); |
---|
| 219 | // (*(out_WRITE_UNIT_IN_OPERATION [i])) (*(in_EXECUTE_UNIT_OUT_VAL [x][y])); |
---|
[77] | 220 | // if (_param->_have_port_context_id) |
---|
[88] | 221 | // (*(out_WRITE_UNIT_IN_OPERATION [i])) (*(in_EXECUTE_UNIT_OUT_CONTEXT_ID [x][y])); |
---|
[77] | 222 | // if (_param->_have_port_front_end_id) |
---|
[88] | 223 | // (*(out_WRITE_UNIT_IN_OPERATION [i])) (*(in_EXECUTE_UNIT_OUT_FRONT_END_ID [x][y])); |
---|
[77] | 224 | // if (_param->_have_port_ooo_engine_id) |
---|
[88] | 225 | // (*(out_WRITE_UNIT_IN_OPERATION [i])) (*(in_EXECUTE_UNIT_OUT_OOO_ENGINE_ID [x][y])); |
---|
[77] | 226 | // } |
---|
| 227 | |
---|
| 228 | // (*(out_WRITE_UNIT_IN_TYPE [i])) (*(in_WRITE_UNIT_IN_ACK [i])); |
---|
[88] | 229 | // for (uint32_t x=0; x<_param->_nb_execute_unit; x++) |
---|
| 230 | // for (uint32_t y=0; y<_param->_nb_execute_unit_port[x]; y++) |
---|
[77] | 231 | // { |
---|
[88] | 232 | // (*(out_WRITE_UNIT_IN_TYPE [i])) (*(in_EXECUTE_UNIT_OUT_TYPE [x][y])); |
---|
| 233 | // (*(out_WRITE_UNIT_IN_TYPE [i])) (*(in_EXECUTE_UNIT_OUT_VAL [x][y])); |
---|
[77] | 234 | // if (_param->_have_port_context_id) |
---|
[88] | 235 | // (*(out_WRITE_UNIT_IN_TYPE [i])) (*(in_EXECUTE_UNIT_OUT_CONTEXT_ID [x][y])); |
---|
[77] | 236 | // if (_param->_have_port_front_end_id) |
---|
[88] | 237 | // (*(out_WRITE_UNIT_IN_TYPE [i])) (*(in_EXECUTE_UNIT_OUT_FRONT_END_ID [x][y])); |
---|
[77] | 238 | // if (_param->_have_port_ooo_engine_id) |
---|
[88] | 239 | // (*(out_WRITE_UNIT_IN_TYPE [i])) (*(in_EXECUTE_UNIT_OUT_OOO_ENGINE_ID [x][y])); |
---|
[77] | 240 | // } |
---|
| 241 | |
---|
| 242 | (*(out_WRITE_UNIT_IN_WRITE_RD [i])) (*(in_WRITE_UNIT_IN_ACK [i])); |
---|
[88] | 243 | for (uint32_t x=0; x<_param->_nb_execute_unit; x++) |
---|
| 244 | for (uint32_t y=0; y<_param->_nb_execute_unit_port[x]; y++) |
---|
[77] | 245 | { |
---|
[88] | 246 | (*(out_WRITE_UNIT_IN_WRITE_RD [i])) (*(in_EXECUTE_UNIT_OUT_WRITE_RD [x][y])); |
---|
| 247 | (*(out_WRITE_UNIT_IN_WRITE_RD [i])) (*(in_EXECUTE_UNIT_OUT_VAL [x][y])); |
---|
[77] | 248 | if (_param->_have_port_context_id) |
---|
[88] | 249 | (*(out_WRITE_UNIT_IN_WRITE_RD [i])) (*(in_EXECUTE_UNIT_OUT_CONTEXT_ID [x][y])); |
---|
[77] | 250 | if (_param->_have_port_front_end_id) |
---|
[88] | 251 | (*(out_WRITE_UNIT_IN_WRITE_RD [i])) (*(in_EXECUTE_UNIT_OUT_FRONT_END_ID [x][y])); |
---|
[77] | 252 | if (_param->_have_port_ooo_engine_id) |
---|
[88] | 253 | (*(out_WRITE_UNIT_IN_WRITE_RD [i])) (*(in_EXECUTE_UNIT_OUT_OOO_ENGINE_ID [x][y])); |
---|
[77] | 254 | } |
---|
| 255 | |
---|
| 256 | (*(out_WRITE_UNIT_IN_NUM_REG_RD [i])) (*(in_WRITE_UNIT_IN_ACK [i])); |
---|
[88] | 257 | for (uint32_t x=0; x<_param->_nb_execute_unit; x++) |
---|
| 258 | for (uint32_t y=0; y<_param->_nb_execute_unit_port[x]; y++) |
---|
[77] | 259 | { |
---|
[88] | 260 | (*(out_WRITE_UNIT_IN_NUM_REG_RD [i])) (*(in_EXECUTE_UNIT_OUT_NUM_REG_RD [x][y])); |
---|
| 261 | (*(out_WRITE_UNIT_IN_NUM_REG_RD [i])) (*(in_EXECUTE_UNIT_OUT_VAL [x][y])); |
---|
[77] | 262 | if (_param->_have_port_context_id) |
---|
[88] | 263 | (*(out_WRITE_UNIT_IN_NUM_REG_RD [i])) (*(in_EXECUTE_UNIT_OUT_CONTEXT_ID [x][y])); |
---|
[77] | 264 | if (_param->_have_port_front_end_id) |
---|
[88] | 265 | (*(out_WRITE_UNIT_IN_NUM_REG_RD [i])) (*(in_EXECUTE_UNIT_OUT_FRONT_END_ID [x][y])); |
---|
[77] | 266 | if (_param->_have_port_ooo_engine_id) |
---|
[88] | 267 | (*(out_WRITE_UNIT_IN_NUM_REG_RD [i])) (*(in_EXECUTE_UNIT_OUT_OOO_ENGINE_ID [x][y])); |
---|
[77] | 268 | } |
---|
| 269 | |
---|
| 270 | (*(out_WRITE_UNIT_IN_DATA_RD [i])) (*(in_WRITE_UNIT_IN_ACK [i])); |
---|
[88] | 271 | for (uint32_t x=0; x<_param->_nb_execute_unit; x++) |
---|
| 272 | for (uint32_t y=0; y<_param->_nb_execute_unit_port[x]; y++) |
---|
[77] | 273 | { |
---|
[88] | 274 | (*(out_WRITE_UNIT_IN_DATA_RD [i])) (*(in_EXECUTE_UNIT_OUT_DATA_RD [x][y])); |
---|
| 275 | (*(out_WRITE_UNIT_IN_DATA_RD [i])) (*(in_EXECUTE_UNIT_OUT_VAL [x][y])); |
---|
[77] | 276 | if (_param->_have_port_context_id) |
---|
[88] | 277 | (*(out_WRITE_UNIT_IN_DATA_RD [i])) (*(in_EXECUTE_UNIT_OUT_CONTEXT_ID [x][y])); |
---|
[77] | 278 | if (_param->_have_port_front_end_id) |
---|
[88] | 279 | (*(out_WRITE_UNIT_IN_DATA_RD [i])) (*(in_EXECUTE_UNIT_OUT_FRONT_END_ID [x][y])); |
---|
[77] | 280 | if (_param->_have_port_ooo_engine_id) |
---|
[88] | 281 | (*(out_WRITE_UNIT_IN_DATA_RD [i])) (*(in_EXECUTE_UNIT_OUT_OOO_ENGINE_ID [x][y])); |
---|
[77] | 282 | } |
---|
| 283 | |
---|
| 284 | (*(out_WRITE_UNIT_IN_WRITE_RE [i])) (*(in_WRITE_UNIT_IN_ACK [i])); |
---|
[88] | 285 | for (uint32_t x=0; x<_param->_nb_execute_unit; x++) |
---|
| 286 | for (uint32_t y=0; y<_param->_nb_execute_unit_port[x]; y++) |
---|
[77] | 287 | { |
---|
[88] | 288 | (*(out_WRITE_UNIT_IN_WRITE_RE [i])) (*(in_EXECUTE_UNIT_OUT_WRITE_RE [x][y])); |
---|
| 289 | (*(out_WRITE_UNIT_IN_WRITE_RE [i])) (*(in_EXECUTE_UNIT_OUT_VAL [x][y])); |
---|
[77] | 290 | if (_param->_have_port_context_id) |
---|
[88] | 291 | (*(out_WRITE_UNIT_IN_WRITE_RE [i])) (*(in_EXECUTE_UNIT_OUT_CONTEXT_ID [x][y])); |
---|
[77] | 292 | if (_param->_have_port_front_end_id) |
---|
[88] | 293 | (*(out_WRITE_UNIT_IN_WRITE_RE [i])) (*(in_EXECUTE_UNIT_OUT_FRONT_END_ID [x][y])); |
---|
[77] | 294 | if (_param->_have_port_ooo_engine_id) |
---|
[88] | 295 | (*(out_WRITE_UNIT_IN_WRITE_RE [i])) (*(in_EXECUTE_UNIT_OUT_OOO_ENGINE_ID [x][y])); |
---|
[77] | 296 | } |
---|
| 297 | |
---|
| 298 | (*(out_WRITE_UNIT_IN_NUM_REG_RE [i])) (*(in_WRITE_UNIT_IN_ACK [i])); |
---|
[88] | 299 | for (uint32_t x=0; x<_param->_nb_execute_unit; x++) |
---|
| 300 | for (uint32_t y=0; y<_param->_nb_execute_unit_port[x]; y++) |
---|
[77] | 301 | { |
---|
[88] | 302 | (*(out_WRITE_UNIT_IN_NUM_REG_RE [i])) (*(in_EXECUTE_UNIT_OUT_NUM_REG_RE [x][y])); |
---|
| 303 | (*(out_WRITE_UNIT_IN_NUM_REG_RE [i])) (*(in_EXECUTE_UNIT_OUT_VAL [x][y])); |
---|
[77] | 304 | if (_param->_have_port_context_id) |
---|
[88] | 305 | (*(out_WRITE_UNIT_IN_NUM_REG_RE [i])) (*(in_EXECUTE_UNIT_OUT_CONTEXT_ID [x][y])); |
---|
[77] | 306 | if (_param->_have_port_front_end_id) |
---|
[88] | 307 | (*(out_WRITE_UNIT_IN_NUM_REG_RE [i])) (*(in_EXECUTE_UNIT_OUT_FRONT_END_ID [x][y])); |
---|
[77] | 308 | if (_param->_have_port_ooo_engine_id) |
---|
[88] | 309 | (*(out_WRITE_UNIT_IN_NUM_REG_RE [i])) (*(in_EXECUTE_UNIT_OUT_OOO_ENGINE_ID [x][y])); |
---|
[77] | 310 | } |
---|
| 311 | |
---|
| 312 | (*(out_WRITE_UNIT_IN_DATA_RE [i])) (*(in_WRITE_UNIT_IN_ACK [i])); |
---|
[88] | 313 | for (uint32_t x=0; x<_param->_nb_execute_unit; x++) |
---|
| 314 | for (uint32_t y=0; y<_param->_nb_execute_unit_port[x]; y++) |
---|
[77] | 315 | { |
---|
[88] | 316 | (*(out_WRITE_UNIT_IN_DATA_RE [i])) (*(in_EXECUTE_UNIT_OUT_DATA_RE [x][y])); |
---|
| 317 | (*(out_WRITE_UNIT_IN_DATA_RE [i])) (*(in_EXECUTE_UNIT_OUT_VAL [x][y])); |
---|
[77] | 318 | if (_param->_have_port_context_id) |
---|
[88] | 319 | (*(out_WRITE_UNIT_IN_DATA_RE [i])) (*(in_EXECUTE_UNIT_OUT_CONTEXT_ID [x][y])); |
---|
[77] | 320 | if (_param->_have_port_front_end_id) |
---|
[88] | 321 | (*(out_WRITE_UNIT_IN_DATA_RE [i])) (*(in_EXECUTE_UNIT_OUT_FRONT_END_ID [x][y])); |
---|
[77] | 322 | if (_param->_have_port_ooo_engine_id) |
---|
[88] | 323 | (*(out_WRITE_UNIT_IN_DATA_RE [i])) (*(in_EXECUTE_UNIT_OUT_OOO_ENGINE_ID [x][y])); |
---|
[77] | 324 | } |
---|
| 325 | |
---|
| 326 | (*(out_WRITE_UNIT_IN_EXCEPTION [i])) (*(in_WRITE_UNIT_IN_ACK [i])); |
---|
[88] | 327 | for (uint32_t x=0; x<_param->_nb_execute_unit; x++) |
---|
| 328 | for (uint32_t y=0; y<_param->_nb_execute_unit_port[x]; y++) |
---|
[77] | 329 | { |
---|
[88] | 330 | (*(out_WRITE_UNIT_IN_EXCEPTION [i])) (*(in_EXECUTE_UNIT_OUT_EXCEPTION [x][y])); |
---|
| 331 | (*(out_WRITE_UNIT_IN_EXCEPTION [i])) (*(in_EXECUTE_UNIT_OUT_VAL [x][y])); |
---|
[77] | 332 | if (_param->_have_port_context_id) |
---|
[88] | 333 | (*(out_WRITE_UNIT_IN_EXCEPTION [i])) (*(in_EXECUTE_UNIT_OUT_CONTEXT_ID [x][y])); |
---|
[77] | 334 | if (_param->_have_port_front_end_id) |
---|
[88] | 335 | (*(out_WRITE_UNIT_IN_EXCEPTION [i])) (*(in_EXECUTE_UNIT_OUT_FRONT_END_ID [x][y])); |
---|
[77] | 336 | if (_param->_have_port_ooo_engine_id) |
---|
[88] | 337 | (*(out_WRITE_UNIT_IN_EXCEPTION [i])) (*(in_EXECUTE_UNIT_OUT_OOO_ENGINE_ID [x][y])); |
---|
[77] | 338 | } |
---|
| 339 | |
---|
| 340 | (*(out_WRITE_UNIT_IN_NO_SEQUENCE [i])) (*(in_WRITE_UNIT_IN_ACK [i])); |
---|
[88] | 341 | for (uint32_t x=0; x<_param->_nb_execute_unit; x++) |
---|
| 342 | for (uint32_t y=0; y<_param->_nb_execute_unit_port[x]; y++) |
---|
[77] | 343 | { |
---|
[88] | 344 | (*(out_WRITE_UNIT_IN_NO_SEQUENCE [i])) (*(in_EXECUTE_UNIT_OUT_NO_SEQUENCE [x][y])); |
---|
| 345 | (*(out_WRITE_UNIT_IN_NO_SEQUENCE [i])) (*(in_EXECUTE_UNIT_OUT_VAL [x][y])); |
---|
[77] | 346 | if (_param->_have_port_context_id) |
---|
[88] | 347 | (*(out_WRITE_UNIT_IN_NO_SEQUENCE [i])) (*(in_EXECUTE_UNIT_OUT_CONTEXT_ID [x][y])); |
---|
[77] | 348 | if (_param->_have_port_front_end_id) |
---|
[88] | 349 | (*(out_WRITE_UNIT_IN_NO_SEQUENCE [i])) (*(in_EXECUTE_UNIT_OUT_FRONT_END_ID [x][y])); |
---|
[77] | 350 | if (_param->_have_port_ooo_engine_id) |
---|
[88] | 351 | (*(out_WRITE_UNIT_IN_NO_SEQUENCE [i])) (*(in_EXECUTE_UNIT_OUT_OOO_ENGINE_ID [x][y])); |
---|
[77] | 352 | } |
---|
| 353 | |
---|
| 354 | (*(out_WRITE_UNIT_IN_ADDRESS [i])) (*(in_WRITE_UNIT_IN_ACK [i])); |
---|
[88] | 355 | for (uint32_t x=0; x<_param->_nb_execute_unit; x++) |
---|
| 356 | for (uint32_t y=0; y<_param->_nb_execute_unit_port[x]; y++) |
---|
[77] | 357 | { |
---|
[88] | 358 | (*(out_WRITE_UNIT_IN_ADDRESS [i])) (*(in_EXECUTE_UNIT_OUT_ADDRESS [x][y])); |
---|
| 359 | (*(out_WRITE_UNIT_IN_ADDRESS [i])) (*(in_EXECUTE_UNIT_OUT_VAL [x][y])); |
---|
[77] | 360 | if (_param->_have_port_context_id) |
---|
[88] | 361 | (*(out_WRITE_UNIT_IN_ADDRESS [i])) (*(in_EXECUTE_UNIT_OUT_CONTEXT_ID [x][y])); |
---|
[77] | 362 | if (_param->_have_port_front_end_id) |
---|
[88] | 363 | (*(out_WRITE_UNIT_IN_ADDRESS [i])) (*(in_EXECUTE_UNIT_OUT_FRONT_END_ID [x][y])); |
---|
[77] | 364 | if (_param->_have_port_ooo_engine_id) |
---|
[88] | 365 | (*(out_WRITE_UNIT_IN_ADDRESS [i])) (*(in_EXECUTE_UNIT_OUT_OOO_ENGINE_ID [x][y])); |
---|
[77] | 366 | } |
---|
| 367 | } |
---|
| 368 | # endif |
---|
| 369 | |
---|
| 370 | #endif |
---|
| 371 | } |
---|
| 372 | log_printf(FUNC,Execution_unit_to_Write_unit,FUNCTION,"End"); |
---|
| 373 | }; |
---|
| 374 | |
---|
| 375 | #undef FUNCTION |
---|
| 376 | #define FUNCTION "Execution_unit_to_Write_unit::~Execution_unit_to_Write_unit" |
---|
| 377 | Execution_unit_to_Write_unit::~Execution_unit_to_Write_unit (void) |
---|
| 378 | { |
---|
| 379 | log_printf(FUNC,Execution_unit_to_Write_unit,FUNCTION,"Begin"); |
---|
| 380 | |
---|
| 381 | #ifdef STATISTICS |
---|
[88] | 382 | if (usage_is_set(_usage,USE_STATISTICS)) |
---|
[77] | 383 | { |
---|
| 384 | log_printf(INFO,Execution_unit_to_Write_unit,FUNCTION,"Generate Statistics file"); |
---|
| 385 | |
---|
| 386 | delete _stat; |
---|
| 387 | } |
---|
| 388 | #endif |
---|
| 389 | |
---|
| 390 | log_printf(INFO,Execution_unit_to_Write_unit,FUNCTION,"Deallocation"); |
---|
| 391 | deallocation (); |
---|
| 392 | |
---|
| 393 | log_printf(FUNC,Execution_unit_to_Write_unit,FUNCTION,"End"); |
---|
| 394 | }; |
---|
| 395 | |
---|
| 396 | }; // end namespace execution_unit_to_write_unit |
---|
| 397 | }; // end namespace network |
---|
| 398 | }; // end namespace execute_loop |
---|
| 399 | }; // end namespace multi_execute_loop |
---|
| 400 | }; // end namespace core |
---|
| 401 | |
---|
| 402 | }; // end namespace behavioural |
---|
| 403 | }; // end namespace morpheo |
---|