[2] | 1 | /* |
---|
| 2 | * $Id$ |
---|
| 3 | * |
---|
| 4 | * [ Description ] |
---|
| 5 | * |
---|
| 6 | */ |
---|
| 7 | |
---|
[48] | 8 | #include "Behavioural/Core/Multi_Front_end/Front_end/Prediction_unit/Direction/Meta_Predictor/Two_Level_Branch_Predictor/Pattern_History_Table/include/Parameters.h" |
---|
[2] | 9 | |
---|
| 10 | namespace morpheo { |
---|
| 11 | namespace behavioural { |
---|
[48] | 12 | namespace core { |
---|
| 13 | namespace multi_front_end { |
---|
| 14 | namespace front_end { |
---|
| 15 | namespace prediction_unit { |
---|
| 16 | namespace direction { |
---|
| 17 | |
---|
[2] | 18 | namespace meta_predictor { |
---|
| 19 | namespace two_level_branch_predictor { |
---|
| 20 | namespace pattern_history_table { |
---|
| 21 | |
---|
| 22 | |
---|
| 23 | Parameters::Parameters (uint32_t size_counter , |
---|
| 24 | uint32_t nb_counter , |
---|
| 25 | uint32_t nb_prediction , |
---|
| 26 | uint32_t nb_branch_complete) : |
---|
| 27 | _size_counter (size_counter ), |
---|
| 28 | _nb_counter (nb_counter ), |
---|
| 29 | _nb_prediction (nb_prediction ), |
---|
| 30 | _nb_branch_complete (nb_branch_complete) |
---|
| 31 | { |
---|
| 32 | log_printf(FUNC,Pattern_History_Table,"Parameters","Begin"); |
---|
| 33 | |
---|
| 34 | _param_counter = new morpheo::behavioural::generic::counter::Parameters (size_counter , |
---|
| 35 | nb_branch_complete ); |
---|
[15] | 36 | _param_registerfile = new morpheo::behavioural::generic::registerfile::registerfile_monolithic::Parameters (nb_prediction , |
---|
| 37 | nb_branch_complete , |
---|
| 38 | nb_counter , |
---|
| 39 | size_counter ); |
---|
[2] | 40 | |
---|
| 41 | |
---|
| 42 | test(); |
---|
| 43 | log_printf(FUNC,Pattern_History_Table,"Parameters","End"); |
---|
| 44 | }; |
---|
| 45 | |
---|
| 46 | Parameters::Parameters (Parameters & param) : |
---|
| 47 | _size_counter (param._size_counter ), |
---|
| 48 | _nb_counter (param._nb_counter ), |
---|
| 49 | _nb_prediction (param._nb_prediction ), |
---|
| 50 | _nb_branch_complete (param._nb_branch_complete) |
---|
| 51 | { |
---|
| 52 | log_printf(FUNC,Pattern_History_Table,"Parameters","Begin"); |
---|
| 53 | |
---|
| 54 | _param_counter = new morpheo::behavioural::generic::counter::Parameters (param._size_counter , |
---|
| 55 | param._nb_branch_complete ); |
---|
| 56 | |
---|
[15] | 57 | _param_registerfile = new morpheo::behavioural::generic::registerfile::registerfile_monolithic::Parameters (param._nb_prediction , |
---|
| 58 | param._nb_branch_complete , |
---|
| 59 | param._nb_counter , |
---|
| 60 | param._size_counter ); |
---|
| 61 | |
---|
[2] | 62 | test(); |
---|
| 63 | log_printf(FUNC,Pattern_History_Table,"Parameters","End"); |
---|
| 64 | }; |
---|
| 65 | |
---|
| 66 | Parameters::~Parameters () |
---|
| 67 | { |
---|
| 68 | log_printf(FUNC,Pattern_History_Table,"~Parameters","Begin"); |
---|
| 69 | delete _param_counter; |
---|
| 70 | delete _param_registerfile; |
---|
| 71 | log_printf(FUNC,Pattern_History_Table,"~Parameters","End"); |
---|
| 72 | }; |
---|
| 73 | |
---|
| 74 | }; // end namespace pattern_history_table |
---|
| 75 | }; // end namespace two_level_branch_predictor |
---|
| 76 | }; // end namespace meta_predictor |
---|
[48] | 77 | |
---|
| 78 | }; // end namespace core |
---|
| 79 | }; // end namespace multi_front_end |
---|
| 80 | }; // end namespace front_end |
---|
| 81 | }; // end namespace prediction_unit |
---|
| 82 | }; // end namespace direction |
---|
| 83 | |
---|
[2] | 84 | }; // end namespace behavioural |
---|
| 85 | }; // end namespace morpheo |
---|