[88] | 1 | #ifdef SYSTEMC |
---|
| 2 | /* |
---|
| 3 | * $Id: Special_Register_unit_genMoore.cpp 98 2008-12-31 10:18:08Z rosiere $ |
---|
| 4 | * |
---|
| 5 | * [ Description ] |
---|
| 6 | * |
---|
| 7 | */ |
---|
| 8 | |
---|
| 9 | #include "Behavioural/Core/Multi_OOO_Engine/OOO_Engine/Special_Register_unit/include/Special_Register_unit.h" |
---|
| 10 | |
---|
| 11 | namespace morpheo { |
---|
| 12 | namespace behavioural { |
---|
| 13 | namespace core { |
---|
| 14 | namespace multi_ooo_engine { |
---|
| 15 | namespace ooo_engine { |
---|
| 16 | namespace special_register_unit { |
---|
| 17 | |
---|
| 18 | |
---|
| 19 | #undef FUNCTION |
---|
| 20 | #define FUNCTION "Special_Register_unit::genMoore" |
---|
| 21 | void Special_Register_unit::genMoore (void) |
---|
| 22 | { |
---|
| 23 | log_begin(Special_Register_unit,FUNCTION); |
---|
[98] | 24 | log_function(Special_Register_unit,FUNCTION,_name.c_str()); |
---|
[88] | 25 | |
---|
| 26 | // =================================================================== |
---|
| 27 | // =====[ SPR_READ ]================================================== |
---|
| 28 | // =================================================================== |
---|
| 29 | for (uint32_t i=0; i<_param->_nb_front_end; i++) |
---|
| 30 | for (uint32_t j=0; j<_param->_nb_context[i]; j++) |
---|
| 31 | PORT_WRITE(out_SPR_READ_SR [i][j],_spr [i][j][GROUP_SYSTEM_AND_CONTROL][SPR_SR]->read()); |
---|
| 32 | // { |
---|
| 33 | // SR * sr = static_cast<SR*>(_spr [i][j][GROUP_SYSTEM_AND_CONTROL][SPR_SR]); |
---|
| 34 | // PORT_WRITE(out_SPR_READ_SR [i][j],sr->read()); |
---|
| 35 | // } |
---|
| 36 | |
---|
| 37 | log_end(Special_Register_unit,FUNCTION); |
---|
| 38 | }; |
---|
| 39 | |
---|
| 40 | }; // end namespace special_register_unit |
---|
| 41 | }; // end namespace ooo_engine |
---|
| 42 | }; // end namespace multi_ooo_engine |
---|
| 43 | }; // end namespace core |
---|
| 44 | |
---|
| 45 | }; // end namespace behavioural |
---|
| 46 | }; // end namespace morpheo |
---|
| 47 | #endif |
---|