[2] | 1 | #ifdef SYSTEMC |
---|
| 2 | /* |
---|
| 3 | * $Id: Two_Level_Branch_Predictor_Glue_genMealy_branch_complete_bht_address.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/Two_Level_Branch_Predictor/Two_Level_Branch_Predictor_Glue/include/Two_Level_Branch_Predictor_Glue.h" |
---|
[44] | 10 | #include "Common/include/BitManipulation.h" |
---|
[2] | 11 | |
---|
| 12 | namespace morpheo { |
---|
| 13 | namespace behavioural { |
---|
[48] | 14 | namespace core { |
---|
| 15 | namespace multi_front_end { |
---|
| 16 | namespace front_end { |
---|
| 17 | namespace prediction_unit { |
---|
| 18 | namespace direction { |
---|
| 19 | |
---|
[2] | 20 | namespace meta_predictor { |
---|
| 21 | namespace two_level_branch_predictor { |
---|
| 22 | namespace two_level_branch_predictor_glue { |
---|
| 23 | |
---|
| 24 | void Two_Level_Branch_Predictor_Glue::genMealy_branch_complete_bht_address (void) |
---|
| 25 | { |
---|
| 26 | log_printf(FUNC,Two_Level_Branch_Predictor_Glue,"genMealy_branch_complete_address","Begin"); |
---|
| 27 | |
---|
| 28 | if (_param._have_bht) |
---|
| 29 | for (uint32_t i=0; i<_param._nb_branch_complete; i++) |
---|
| 30 | { |
---|
| 31 | // Address |
---|
| 32 | Taddress_t address = PORT_READ(in_BRANCH_COMPLETE_ADDRESS [i]); |
---|
| 33 | |
---|
| 34 | PORT_WRITE (out_BRANCH_COMPLETE_BHT_ADDRESS [i], range<Taddress_t>(_param._size_address, address, _param._bht_size_address)); |
---|
| 35 | } |
---|
| 36 | |
---|
| 37 | log_printf(FUNC,Two_Level_Branch_Predictor_Glue,"genMealy_branch_complete_address","End"); |
---|
| 38 | }; |
---|
| 39 | |
---|
| 40 | }; // end namespace two_level_branch_predictor_glue |
---|
| 41 | }; // end namespace two_level_branch_predictor |
---|
| 42 | }; // end namespace meta_predictor |
---|
[48] | 43 | |
---|
| 44 | }; // end namespace core |
---|
| 45 | }; // end namespace multi_front_end |
---|
| 46 | }; // end namespace front_end |
---|
| 47 | }; // end namespace prediction_unit |
---|
| 48 | }; // end namespace direction |
---|
| 49 | |
---|
[2] | 50 | }; // end namespace behavioural |
---|
| 51 | }; // end namespace morpheo |
---|
| 52 | #endif |
---|