[131] | 1 | #ifdef SYSTEMC |
---|
| 2 | /* |
---|
| 3 | * $Id: Context_State_constant.cpp 131 2009-07-08 18:40:08Z rosiere $ |
---|
| 4 | * |
---|
| 5 | * [ Description ] |
---|
| 6 | * |
---|
| 7 | */ |
---|
| 8 | |
---|
| 9 | #include "Behavioural/Core/Multi_Front_end/Front_end/Context_State/include/Context_State.h" |
---|
| 10 | |
---|
| 11 | namespace morpheo { |
---|
| 12 | namespace behavioural { |
---|
| 13 | namespace core { |
---|
| 14 | namespace multi_front_end { |
---|
| 15 | namespace front_end { |
---|
| 16 | namespace context_state { |
---|
| 17 | |
---|
| 18 | #undef FUNCTION |
---|
| 19 | #define FUNCTION "Context_State::constant" |
---|
| 20 | void Context_State::constant (void) |
---|
| 21 | { |
---|
| 22 | log_begin(Context_State,FUNCTION); |
---|
| 23 | log_function(Context_State,FUNCTION,_name.c_str()); |
---|
| 24 | |
---|
| 25 | for (uint32_t i=0; i<_param->_nb_context; i++) |
---|
| 26 | { |
---|
| 27 | internal_BRANCH_EVENT_ACK [i] = 1; |
---|
| 28 | PORT_WRITE(out_BRANCH_EVENT_ACK [i], internal_BRANCH_EVENT_ACK [i]); |
---|
| 29 | } |
---|
| 30 | |
---|
| 31 | // for (uint32_t i=0; i<_param->_nb_decod_unit; i++) |
---|
| 32 | // { |
---|
| 33 | // internal_DECOD_EVENT_ACK [i] = 1; |
---|
| 34 | // PORT_WRITE(out_DECOD_EVENT_ACK [i], internal_DECOD_EVENT_ACK [i]); |
---|
| 35 | // } |
---|
| 36 | |
---|
| 37 | internal_COMMIT_EVENT_ACK = 1; |
---|
| 38 | PORT_WRITE(out_COMMIT_EVENT_ACK, internal_COMMIT_EVENT_ACK); |
---|
| 39 | |
---|
| 40 | for (uint32_t i=0; i<_param->_nb_inst_branch_complete; i++) |
---|
| 41 | { |
---|
| 42 | internal_BRANCH_COMPLETE_ACK [i] = 1; |
---|
| 43 | PORT_WRITE(out_BRANCH_COMPLETE_ACK [i], internal_BRANCH_COMPLETE_ACK [i]); |
---|
| 44 | } |
---|
| 45 | |
---|
| 46 | log_end(Context_State,FUNCTION); |
---|
| 47 | }; |
---|
| 48 | |
---|
| 49 | }; // end namespace context_state |
---|
| 50 | }; // end namespace front_end |
---|
| 51 | }; // end namespace multi_front_end |
---|
| 52 | }; // end namespace core |
---|
| 53 | |
---|
| 54 | }; // end namespace behavioural |
---|
| 55 | }; // end namespace morpheo |
---|
| 56 | #endif |
---|