[88] | 1 | #ifdef SYSTEMC |
---|
| 2 | /* |
---|
| 3 | * $Id: Core_Glue_genMealy_insert.cpp 88 2008-12-10 18:31:39Z rosiere $ |
---|
| 4 | * |
---|
| 5 | * [ Description ] |
---|
| 6 | * |
---|
| 7 | */ |
---|
| 8 | |
---|
| 9 | #include "Behavioural/Core/Core_Glue/include/Core_Glue.h" |
---|
| 10 | |
---|
| 11 | namespace morpheo { |
---|
| 12 | namespace behavioural { |
---|
| 13 | namespace core { |
---|
| 14 | namespace core_glue { |
---|
| 15 | |
---|
| 16 | |
---|
| 17 | #undef FUNCTION |
---|
| 18 | #define FUNCTION "Core_Glue::genMealy_insert" |
---|
| 19 | void Core_Glue::genMealy_insert (void) |
---|
| 20 | { |
---|
| 21 | log_begin(Core_Glue,FUNCTION); |
---|
| 22 | log_function(Core_Glue,FUNCTION,_name.c_str()); |
---|
| 23 | |
---|
| 24 | for (uint32_t i=0; i<_param->_nb_execute_loop; ++i) |
---|
| 25 | for (uint32_t j=0; j<_param->_execute_loop_nb_ooo_engine[i]; ++j) |
---|
| 26 | { |
---|
| 27 | Tcontext_t num_ooo_engine = _param->_translate_execute_loop_num_ooo_engine [i][j]; |
---|
| 28 | |
---|
| 29 | for (uint32_t k=0; k<_param->_execute_loop_nb_inst_insert[i][j]; ++k) |
---|
| 30 | { |
---|
| 31 | PORT_WRITE(out_INSERT_EXECUTE_LOOP_VAL [i][j][k],PORT_READ(in_INSERT_OOO_ENGINE_VAL [num_ooo_engine][k])); |
---|
| 32 | PORT_WRITE(out_INSERT_OOO_ENGINE_ACK [i][j] ,PORT_READ(in_INSERT_EXECUTE_LOOP_ACK [i][j][k])); |
---|
| 33 | PORT_WRITE(out_INSERT_EXECUTE_LOOP_RD_USE [i][j][k],PORT_READ(in_INSERT_OOO_ENGINE_RD_USE [num_ooo_engine][k])); |
---|
| 34 | PORT_WRITE(out_INSERT_EXECUTE_LOOP_RD_NUM_REG [i][j][k],PORT_READ(in_INSERT_OOO_ENGINE_RD_NUM_REG [num_ooo_engine][k])); |
---|
| 35 | PORT_WRITE(out_INSERT_EXECUTE_LOOP_RE_USE [i][j][k],PORT_READ(in_INSERT_OOO_ENGINE_RE_USE [num_ooo_engine][k])); |
---|
| 36 | PORT_WRITE(out_INSERT_EXECUTE_LOOP_RE_NUM_REG [i][j][k],PORT_READ(in_INSERT_OOO_ENGINE_RE_NUM_REG [num_ooo_engine][k])); |
---|
| 37 | } |
---|
| 38 | } |
---|
| 39 | |
---|
| 40 | log_end(Core_Glue,FUNCTION); |
---|
| 41 | }; |
---|
| 42 | |
---|
| 43 | }; // end namespace core_glue |
---|
| 44 | }; // end namespace core |
---|
| 45 | |
---|
| 46 | }; // end namespace behavioural |
---|
| 47 | }; // end namespace morpheo |
---|
| 48 | #endif |
---|