#ifdef SYSTEMC /* * $Id: Special_Register_unit_constant.cpp 131 2009-07-08 18:40:08Z rosiere $ * * [ Description ] * */ #include "Behavioural/Core/Multi_OOO_Engine/OOO_Engine/Special_Register_unit/include/Special_Register_unit.h" namespace morpheo { namespace behavioural { namespace core { namespace multi_ooo_engine { namespace ooo_engine { namespace special_register_unit { #undef FUNCTION #define FUNCTION "Special_Register_unit::constant" void Special_Register_unit::constant (void) { log_begin(Special_Register_unit,FUNCTION); log_function(Special_Register_unit,FUNCTION,_name.c_str()); for (uint32_t i=0; i<_param->_nb_inst_reexecute; i++) { internal_SPR_ACCESS_ACK [i] = 1; PORT_WRITE(out_SPR_ACCESS_ACK [i], internal_SPR_ACCESS_ACK [i]); } for (uint32_t i=0; i<_param->_nb_front_end; i++) for (uint32_t j=0; j<_param->_nb_context[i]; j++) { internal_SPR_COMMIT_ACK [i][j] = 1; internal_SPR_EVENT_ACK [i][j] = 1; PORT_WRITE(out_SPR_COMMIT_ACK [i][j], internal_SPR_COMMIT_ACK [i][j]); PORT_WRITE(out_SPR_EVENT_ACK [i][j], internal_SPR_EVENT_ACK [i][j]); } log_end(Special_Register_unit,FUNCTION); }; }; // end namespace special_register_unit }; // end namespace ooo_engine }; // end namespace multi_ooo_engine }; // end namespace core }; // end namespace behavioural }; // end namespace morpheo #endif