Changeset 88 for trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_OOO_Engine/OOO_Engine/Rename_unit/Rename_select/src/Parameters.cpp
- Timestamp:
- Dec 10, 2008, 7:31:39 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_OOO_Engine/OOO_Engine/Rename_unit/Rename_select/src/Parameters.cpp
r81 r88 22 22 Parameters::Parameters (uint32_t nb_front_end , 23 23 uint32_t * nb_context , 24 // uint32_t size_front_end_id , 25 // uint32_t size_context_id , 24 26 uint32_t max_branch_speculated, 25 27 uint32_t size_general_data , … … 28 30 uint32_t nb_front_end_select , 29 31 Tpriority_t priority , 30 Tload_balancing_t load_balancing ) 32 Tload_balancing_t load_balancing , 33 bool is_toplevel) 31 34 { 32 35 log_printf(FUNC,Rename_select,FUNCTION,"Begin"); … … 35 38 _nb_context = nb_context ; 36 39 _max_branch_speculated = max_branch_speculated; 37 _size_general_data = size_general_data ;38 40 _nb_inst_rename = nb_inst_rename ; 39 41 _nb_inst_decod = nb_inst_decod ; … … 44 46 _max_nb_inst_decod = max<uint32_t>(nb_inst_decod,nb_front_end); 45 47 46 _size_front_end_id = log2(nb_front_end); 47 _size_context_id = log2(max<uint32_t>(nb_context,nb_front_end)); 48 _size_depth = log2(max_branch_speculated); 48 test(); 49 49 50 _have_port_front_end_id= _size_front_end_id > 0; 51 _have_port_context_id = _size_context_id > 0; 52 _have_port_depth = _size_depth > 0; 50 if (is_toplevel) 51 { 52 _size_general_data = size_general_data ; 53 _size_depth = log2(max_branch_speculated); 54 _size_front_end_id = log2(_nb_front_end); 55 _size_context_id = log2(max<uint32_t>(_nb_context,_nb_front_end)); 53 56 54 test(); 57 _have_port_front_end_id= _size_front_end_id > 0; 58 _have_port_context_id = _size_context_id > 0; 59 _have_port_depth = _size_depth > 0; 60 61 copy(); 62 } 63 55 64 log_printf(FUNC,Rename_select,FUNCTION,"End"); 56 65 }; … … 73 82 }; 74 83 84 #undef FUNCTION 85 #define FUNCTION "Rename_select::copy" 86 void Parameters::copy (void) 87 { 88 log_printf(FUNC,Rename_select,FUNCTION,"Begin"); 89 log_printf(FUNC,Rename_select,FUNCTION,"End"); 90 }; 91 75 92 }; // end namespace rename_select 76 93 }; // end namespace rename_unit
Note: See TracChangeset
for help on using the changeset viewer.