[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_predict_bht_address (void) |
---|
| 21 | { |
---|
| 22 | log_printf(FUNC,Two_Level_Branch_Predictor_Glue,"genMealy_predict_address","Begin"); |
---|
| 23 | |
---|
| 24 | if (_param._have_bht) |
---|
| 25 | for (uint32_t i=0; i<_param._nb_prediction; i++) |
---|
| 26 | { |
---|
| 27 | // Address |
---|
[3] | 28 | Taddress_t address = PORT_READ(in_PREDICT_ADDRESS [i]); |
---|
| 29 | Taddress_t bht_address = range<Taddress_t>(_param._size_address, address, _param._bht_size_address); |
---|
[2] | 30 | |
---|
[3] | 31 | PORT_WRITE (out_PREDICT_BHT_ADDRESS [i], bht_address); |
---|
[2] | 32 | } |
---|
| 33 | |
---|
| 34 | log_printf(FUNC,Two_Level_Branch_Predictor_Glue,"genMealy_predict_address","End"); |
---|
| 35 | }; |
---|
| 36 | |
---|
| 37 | }; // end namespace two_level_branch_predictor_glue |
---|
| 38 | }; // end namespace two_level_branch_predictor |
---|
| 39 | }; // end namespace meta_predictor |
---|
| 40 | }; // end namespace predictor |
---|
| 41 | }; // end namespace stage_1_ifetch |
---|
| 42 | }; // end namespace behavioural |
---|
| 43 | }; // end namespace morpheo |
---|
| 44 | #endif |
---|