[78] | 1 | /* |
---|
| 2 | * $Id: Parameters.cpp 81 2008-04-15 18:40:01Z rosiere $ |
---|
| 3 | * |
---|
| 4 | * [ Description ] |
---|
| 5 | * |
---|
| 6 | */ |
---|
| 7 | |
---|
| 8 | #include "Behavioural/Core/Multi_Front_end/Front_end/Ifetch_unit/Ifetch_queue/include/Parameters.h" |
---|
| 9 | |
---|
| 10 | namespace morpheo { |
---|
| 11 | namespace behavioural { |
---|
| 12 | namespace core { |
---|
| 13 | namespace multi_front_end { |
---|
| 14 | namespace front_end { |
---|
| 15 | namespace ifetch_unit { |
---|
| 16 | namespace ifetch_queue { |
---|
| 17 | |
---|
| 18 | |
---|
| 19 | #undef FUNCTION |
---|
| 20 | #define FUNCTION "Ifetch_queue::Parameters" |
---|
| 21 | Parameters::Parameters (uint32_t size_queue , |
---|
| 22 | uint32_t nb_instruction , |
---|
| 23 | uint32_t size_branch_update_prediction, |
---|
| 24 | uint32_t size_general_data ) |
---|
| 25 | { |
---|
| 26 | log_printf(FUNC,Ifetch_queue,FUNCTION,"Begin"); |
---|
| 27 | |
---|
| 28 | _size_queue = size_queue ; |
---|
| 29 | _nb_instruction = nb_instruction ; |
---|
| 30 | _size_branch_update_prediction = size_branch_update_prediction; |
---|
| 31 | _size_general_data = size_general_data ; |
---|
| 32 | |
---|
| 33 | _size_queue_ptr = log2(size_queue); |
---|
| 34 | _size_instruction_ptr = log2(nb_instruction); |
---|
| 35 | |
---|
| 36 | _have_port_queue_ptr = _size_queue_ptr > 0; |
---|
| 37 | _have_port_instruction_ptr = _size_instruction_ptr > 0; |
---|
| 38 | _have_port_branch_update_prediction_id = size_branch_update_prediction > 0; |
---|
| 39 | |
---|
| 40 | test(); |
---|
| 41 | log_printf(FUNC,Ifetch_queue,FUNCTION,"End"); |
---|
| 42 | }; |
---|
| 43 | |
---|
| 44 | // #undef FUNCTION |
---|
| 45 | // #define FUNCTION "Ifetch_queue::Parameters (copy)" |
---|
| 46 | // Parameters::Parameters (Parameters & param) |
---|
| 47 | // { |
---|
| 48 | // log_printf(FUNC,Ifetch_queue,FUNCTION,"Begin"); |
---|
| 49 | // test(); |
---|
| 50 | // log_printf(FUNC,Ifetch_queue,FUNCTION,"End"); |
---|
| 51 | // }; |
---|
| 52 | |
---|
| 53 | #undef FUNCTION |
---|
| 54 | #define FUNCTION "Ifetch_queue::~Parameters" |
---|
| 55 | Parameters::~Parameters () |
---|
| 56 | { |
---|
| 57 | log_printf(FUNC,Ifetch_queue,FUNCTION,"Begin"); |
---|
| 58 | log_printf(FUNC,Ifetch_queue,FUNCTION,"End"); |
---|
| 59 | }; |
---|
| 60 | |
---|
| 61 | }; // end namespace ifetch_queue |
---|
| 62 | }; // end namespace ifetch_unit |
---|
| 63 | }; // end namespace front_end |
---|
| 64 | }; // end namespace multi_front_end |
---|
| 65 | }; // end namespace core |
---|
| 66 | |
---|
| 67 | }; // end namespace behavioural |
---|
| 68 | }; // end namespace morpheo |
---|