[2] | 1 | #ifdef SYSTEMC |
---|
| 2 | /* |
---|
| 3 | * $Id$ |
---|
| 4 | * |
---|
| 5 | * [ Description ] |
---|
| 6 | * |
---|
| 7 | */ |
---|
| 8 | |
---|
| 9 | #include "Behavioural/Stage_1_Ifetch/Predictor/Meta_Predictor/Two_Level_Branch_Predictor/Two_Level_Branch_Predictor_Glue/include/Two_Level_Branch_Predictor_Glue.h" |
---|
| 10 | #include "Include/BitManipulation.h" |
---|
| 11 | |
---|
| 12 | namespace morpheo { |
---|
| 13 | namespace behavioural { |
---|
| 14 | namespace stage_1_ifetch { |
---|
| 15 | namespace predictor { |
---|
| 16 | namespace meta_predictor { |
---|
| 17 | namespace two_level_branch_predictor { |
---|
| 18 | namespace two_level_branch_predictor_glue { |
---|
| 19 | |
---|
| 20 | void Two_Level_Branch_Predictor_Glue::genMealy_branch_complete_ack (void) |
---|
| 21 | { |
---|
| 22 | log_printf(FUNC,Two_Level_Branch_Predictor_Glue,"genMealy_branch_complete_ack","Begin"); |
---|
| 23 | |
---|
| 24 | for (uint32_t i=0; i<_param._nb_branch_complete; i++) |
---|
| 25 | { |
---|
| 26 | // Ackwnolegde |
---|
| 27 | bool bht_ack = (not _param._have_bht) or PORT_READ(in_BRANCH_COMPLETE_BHT_ACK [i]); |
---|
| 28 | bool pht_ack = (not _param._have_pht) or PORT_READ(in_BRANCH_COMPLETE_PHT_ACK [i]); |
---|
| 29 | |
---|
| 30 | PORT_WRITE (out_BRANCH_COMPLETE_ACK [i], bht_ack and pht_ack); |
---|
| 31 | } |
---|
| 32 | |
---|
| 33 | log_printf(FUNC,Two_Level_Branch_Predictor_Glue,"genMealy_branch_complete_ack","End"); |
---|
| 34 | }; |
---|
| 35 | |
---|
| 36 | }; // end namespace two_level_branch_predictor_glue |
---|
| 37 | }; // end namespace two_level_branch_predictor |
---|
| 38 | }; // end namespace meta_predictor |
---|
| 39 | }; // end namespace predictor |
---|
| 40 | }; // end namespace stage_1_ifetch |
---|
| 41 | }; // end namespace behavioural |
---|
| 42 | }; // end namespace morpheo |
---|
| 43 | #endif |
---|