[4] | 1 | #ifdef SYSTEMC |
---|
| 2 | /* |
---|
| 3 | * $Id: Meta_Predictor_Glue_genMealy_branch_complete_ack.cpp 81 2008-04-15 18:40:01Z rosiere $ |
---|
| 4 | * |
---|
| 5 | * [ Description ] |
---|
| 6 | * |
---|
| 7 | */ |
---|
| 8 | |
---|
[48] | 9 | #include "Behavioural/Core/Multi_Front_end/Front_end/Prediction_unit/Direction/Meta_Predictor/Meta_Predictor_Glue/include/Meta_Predictor_Glue.h" |
---|
[4] | 10 | |
---|
| 11 | namespace morpheo { |
---|
| 12 | namespace behavioural { |
---|
[48] | 13 | namespace core { |
---|
| 14 | namespace multi_front_end { |
---|
| 15 | namespace front_end { |
---|
| 16 | namespace prediction_unit { |
---|
| 17 | namespace direction { |
---|
| 18 | |
---|
[4] | 19 | namespace meta_predictor { |
---|
| 20 | namespace meta_predictor_glue { |
---|
| 21 | |
---|
| 22 | void Meta_Predictor_Glue::genMealy_branch_complete_ack (void) |
---|
| 23 | { |
---|
| 24 | log_printf(FUNC,Meta_Predictor_Glue,"genMealy_branch_complete_ack","Begin"); |
---|
| 25 | |
---|
| 26 | for (uint32_t i=0; i<_param._nb_branch_complete; i++) |
---|
| 27 | { |
---|
| 28 | Tcontrol_t predictor_0_ack = not _param._have_meta_predictor or PORT_READ(in_BRANCH_COMPLETE_PREDICTOR_0_ACK [i]); |
---|
| 29 | Tcontrol_t predictor_1_ack = not _param._have_meta_predictor or PORT_READ(in_BRANCH_COMPLETE_PREDICTOR_1_ACK [i]); |
---|
| 30 | Tcontrol_t predictor_2_ack = PORT_READ(in_BRANCH_COMPLETE_PREDICTOR_2_ACK [i]); |
---|
| 31 | |
---|
| 32 | PORT_WRITE(out_BRANCH_COMPLETE_ACK [i], predictor_0_ack and predictor_1_ack and predictor_2_ack); |
---|
| 33 | } |
---|
| 34 | |
---|
| 35 | log_printf(FUNC,Meta_Predictor_Glue,"genMealy_branch_complete_ack","End"); |
---|
| 36 | }; |
---|
| 37 | |
---|
| 38 | }; // end namespace meta_predictor_glue |
---|
| 39 | }; // end namespace meta_predictor |
---|
[48] | 40 | |
---|
| 41 | }; // end namespace core |
---|
| 42 | }; // end namespace multi_front_end |
---|
| 43 | }; // end namespace front_end |
---|
| 44 | }; // end namespace prediction_unit |
---|
| 45 | }; // end namespace direction |
---|
| 46 | |
---|
[4] | 47 | }; // end namespace behavioural |
---|
| 48 | }; // end namespace morpheo |
---|
| 49 | #endif |
---|