[131] | 1 | #ifdef SYSTEMC |
---|
| 2 | /* |
---|
| 3 | * $Id: Update_Prediction_Table_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/Prediction_unit/Update_Prediction_Table/include/Update_Prediction_Table.h" |
---|
| 10 | |
---|
| 11 | namespace morpheo { |
---|
| 12 | namespace behavioural { |
---|
| 13 | namespace core { |
---|
| 14 | namespace multi_front_end { |
---|
| 15 | namespace front_end { |
---|
| 16 | namespace prediction_unit { |
---|
| 17 | namespace update_prediction_table { |
---|
| 18 | |
---|
| 19 | #undef FUNCTION |
---|
| 20 | #define FUNCTION "Update_Prediction_Table::constant" |
---|
| 21 | void Update_Prediction_Table::constant (void) |
---|
| 22 | { |
---|
| 23 | log_begin(Update_Prediction_Table,FUNCTION); |
---|
| 24 | log_function(Update_Prediction_Table,FUNCTION,_name.c_str()); |
---|
| 25 | |
---|
| 26 | for (uint32_t i=0; i<_param->_nb_inst_branch_complete; i++) |
---|
| 27 | { |
---|
| 28 | internal_BRANCH_COMPLETE_ACK [i] = 1; |
---|
| 29 | PORT_WRITE(out_BRANCH_COMPLETE_ACK [i], internal_BRANCH_COMPLETE_ACK [i]); |
---|
| 30 | } |
---|
| 31 | for (uint32_t i=0; i<_param->_nb_context; ++i) |
---|
| 32 | { |
---|
| 33 | internal_EVENT_ACK [i] = 1; |
---|
| 34 | PORT_WRITE(out_EVENT_ACK [i], internal_EVENT_ACK [i]); |
---|
| 35 | } |
---|
| 36 | |
---|
| 37 | log_end(Update_Prediction_Table,FUNCTION); |
---|
| 38 | }; |
---|
| 39 | |
---|
| 40 | }; // end namespace update_prediction_table |
---|
| 41 | }; // end namespace prediction_unit |
---|
| 42 | }; // end namespace front_end |
---|
| 43 | }; // end namespace multi_front_end |
---|
| 44 | }; // end namespace core |
---|
| 45 | |
---|
| 46 | }; // end namespace behavioural |
---|
| 47 | }; // end namespace morpheo |
---|
| 48 | #endif |
---|