[131] | 1 | #ifdef SYSTEMC |
---|
| 2 | /* |
---|
| 3 | * $Id: Register_unit_Glue_constant.cpp 136 2009-10-20 18:52:15Z rosiere $ |
---|
| 4 | * |
---|
| 5 | * [ Description ] |
---|
| 6 | * |
---|
| 7 | */ |
---|
| 8 | |
---|
| 9 | #include "Behavioural/Core/Multi_Execute_loop/Execute_loop/Register_unit/Register_unit_Glue/include/Register_unit_Glue.h" |
---|
| 10 | |
---|
| 11 | namespace morpheo { |
---|
| 12 | namespace behavioural { |
---|
| 13 | namespace core { |
---|
| 14 | namespace multi_execute_loop { |
---|
| 15 | namespace execute_loop { |
---|
| 16 | namespace register_unit { |
---|
| 17 | namespace register_unit_glue { |
---|
| 18 | |
---|
| 19 | |
---|
| 20 | #undef FUNCTION |
---|
| 21 | #define FUNCTION "Register_unit_Glue::constant" |
---|
| 22 | void Register_unit_Glue::constant (void) |
---|
| 23 | { |
---|
| 24 | log_begin(Register_unit_Glue,FUNCTION); |
---|
| 25 | |
---|
| 26 | // PORT_WRITE(out_CONST_0 ,0); |
---|
| 27 | // PORT_WRITE(out_CONST_1 ,1); |
---|
| 28 | for (uint32_t i=0; i<_param->_nb_ooo_engine; ++i) |
---|
| 29 | { |
---|
| 30 | for (uint32_t j=0; j<_param->_nb_gpr_write; ++j) |
---|
| 31 | PORT_WRITE(out_GPR_WRITE_STATUS_DATA [i][j],1); |
---|
| 32 | for (uint32_t j=0; j<_param->_nb_spr_write; ++j) |
---|
| 33 | PORT_WRITE(out_SPR_WRITE_STATUS_DATA [i][j],1); |
---|
| 34 | |
---|
[136] | 35 | // for (uint32_t j=0; j<_param->_nb_inst_insert_rob[i]; ++j) |
---|
| 36 | // { |
---|
| 37 | // PORT_WRITE(out_INSERT_ROB_GPR_STATUS_DATA [i][j],0); |
---|
| 38 | // PORT_WRITE(out_INSERT_ROB_SPR_STATUS_DATA [i][j],0); |
---|
| 39 | // } |
---|
[131] | 40 | } |
---|
| 41 | |
---|
[136] | 42 | for (uint32_t i=0; i<_param->_nb_ooo_engine; ++i) |
---|
| 43 | for (uint32_t j=0; j<_param->_nb_inst_issue; ++j) |
---|
| 44 | { |
---|
| 45 | PORT_WRITE(out_ISSUE_GPR_STATUS_DATA [i][j],0); |
---|
| 46 | PORT_WRITE(out_ISSUE_SPR_STATUS_DATA [i][j],0); |
---|
| 47 | } |
---|
| 48 | |
---|
[131] | 49 | log_end(Register_unit_Glue,FUNCTION); |
---|
| 50 | }; |
---|
| 51 | |
---|
| 52 | }; // end namespace register_unit_glue |
---|
| 53 | }; // end namespace register_unit |
---|
| 54 | }; // end namespace execute_loop |
---|
| 55 | }; // end namespace multi_execute_loop |
---|
| 56 | }; // end namespace core |
---|
| 57 | |
---|
| 58 | }; // end namespace behavioural |
---|
| 59 | }; // end namespace morpheo |
---|
| 60 | #endif |
---|