[78] | 1 | /* |
---|
| 2 | * $Id: Parameters.cpp 88 2008-12-10 18:31:39Z rosiere $ |
---|
| 3 | * |
---|
| 4 | * [ Description ] |
---|
| 5 | * |
---|
| 6 | */ |
---|
| 7 | |
---|
| 8 | #include "Behavioural/Core/Multi_OOO_Engine/OOO_Engine/Rename_unit/Register_translation_unit/Dependency_checking_unit/include/Parameters.h" |
---|
| 9 | |
---|
| 10 | namespace morpheo { |
---|
| 11 | namespace behavioural { |
---|
| 12 | namespace core { |
---|
| 13 | namespace multi_ooo_engine { |
---|
| 14 | namespace ooo_engine { |
---|
| 15 | namespace rename_unit { |
---|
| 16 | namespace register_translation_unit { |
---|
| 17 | namespace dependency_checking_unit { |
---|
| 18 | |
---|
| 19 | |
---|
| 20 | #undef FUNCTION |
---|
| 21 | #define FUNCTION "Dependency_checking_unit::Parameters" |
---|
| 22 | Parameters::Parameters (uint32_t nb_front_end , |
---|
| 23 | uint32_t max_nb_context , |
---|
| 24 | uint32_t nb_general_register , |
---|
| 25 | uint32_t nb_special_register , |
---|
[88] | 26 | uint32_t nb_inst_insert , |
---|
| 27 | bool is_toplevel ) |
---|
[78] | 28 | { |
---|
| 29 | log_printf(FUNC,Dependency_checking_unit,FUNCTION,"Begin"); |
---|
| 30 | |
---|
| 31 | _nb_front_end = nb_front_end ; |
---|
| 32 | _max_nb_context = max_nb_context ; |
---|
| 33 | _nb_general_register = nb_general_register; |
---|
| 34 | _nb_special_register = nb_special_register; |
---|
| 35 | _nb_inst_insert = nb_inst_insert ; |
---|
| 36 | |
---|
[88] | 37 | test(); |
---|
[78] | 38 | |
---|
[88] | 39 | if (is_toplevel) |
---|
| 40 | { |
---|
| 41 | _size_front_end_id = log2(nb_front_end ); |
---|
| 42 | _size_context_id = log2(max_nb_context ); |
---|
| 43 | _size_general_register = log2(nb_general_register); |
---|
| 44 | _size_special_register = log2(nb_special_register); |
---|
| 45 | |
---|
| 46 | _have_port_front_end_id = _size_front_end_id>0; |
---|
| 47 | _have_port_context_id = _size_context_id >0; |
---|
| 48 | |
---|
| 49 | copy(); |
---|
| 50 | } |
---|
| 51 | |
---|
[78] | 52 | log_printf(FUNC,Dependency_checking_unit,FUNCTION,"End"); |
---|
| 53 | }; |
---|
| 54 | |
---|
| 55 | // #undef FUNCTION |
---|
| 56 | // #define FUNCTION "Dependency_checking_unit::Parameters (copy)" |
---|
| 57 | // Parameters::Parameters (Parameters & param) |
---|
| 58 | // { |
---|
| 59 | // log_printf(FUNC,Dependency_checking_unit,FUNCTION,"Begin"); |
---|
| 60 | // test(); |
---|
| 61 | // log_printf(FUNC,Dependency_checking_unit,FUNCTION,"End"); |
---|
| 62 | // }; |
---|
| 63 | |
---|
| 64 | #undef FUNCTION |
---|
| 65 | #define FUNCTION "Dependency_checking_unit::~Parameters" |
---|
[88] | 66 | Parameters::~Parameters (void) |
---|
[78] | 67 | { |
---|
| 68 | log_printf(FUNC,Dependency_checking_unit,FUNCTION,"Begin"); |
---|
| 69 | log_printf(FUNC,Dependency_checking_unit,FUNCTION,"End"); |
---|
| 70 | }; |
---|
| 71 | |
---|
[88] | 72 | #undef FUNCTION |
---|
| 73 | #define FUNCTION "Dependency_checking_unit::copy" |
---|
| 74 | void Parameters::copy (void) |
---|
| 75 | { |
---|
| 76 | log_printf(FUNC,Dependency_checking_unit,FUNCTION,"Begin"); |
---|
| 77 | log_printf(FUNC,Dependency_checking_unit,FUNCTION,"End"); |
---|
| 78 | }; |
---|
| 79 | |
---|
[78] | 80 | }; // end namespace dependency_checking_unit |
---|
| 81 | }; // end namespace register_translation_unit |
---|
| 82 | }; // end namespace rename_unit |
---|
| 83 | }; // end namespace ooo_engine |
---|
| 84 | }; // end namespace multi_ooo_engine |
---|
| 85 | }; // end namespace core |
---|
| 86 | |
---|
| 87 | }; // end namespace behavioural |
---|
| 88 | }; // end namespace morpheo |
---|