Changeset 88 for trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Front_end/Front_end/Decod_unit/Decod/src/Parameters.cpp
- Timestamp:
- Dec 10, 2008, 7:31:39 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Front_end/Front_end/Decod_unit/Decod/src/Parameters.cpp
r87 r88 1 1 /* 2 3 2 * $Id$ 4 3 * … … 24 23 uint32_t * nb_inst_fetch , 25 24 uint32_t nb_inst_decod , 26 uint32_t 27 uint32_tsize_branch_update_prediction,25 uint32_t * nb_branch_speculated , 26 // uint32_t * size_branch_update_prediction, 28 27 uint32_t nb_context_select , 29 28 uint32_t size_general_data , … … 31 30 Tload_balancing_t load_balancing , 32 31 bool ** instruction_implemeted , 33 morpheo::behavioural::custom::custom_information_t (*get_custom_information) (uint32_t)) 32 morpheo::behavioural::custom::custom_information_t (*get_custom_information) (void), 33 bool is_toplevel 34 ) 34 35 { 35 36 log_printf(FUNC,Decod,FUNCTION,"Begin"); … … 40 41 _nb_branch_speculated = nb_branch_speculated ; 41 42 _nb_context_select = nb_context_select ; 42 43 43 // _size_branch_update_prediction = size_branch_update_prediction; 44 // _size_general_data = size_general_data ; 44 45 _priority = priority ; 45 46 _load_balancing = load_balancing ; … … 52 53 53 54 54 _max_nb_inst_fetch = max<uint32_t>(nb_inst_fetch,nb_context); 55 _max_nb_inst_fetch = max<uint32_t>(nb_inst_fetch,nb_context); 56 57 // _size_address_inst = size_general_data-2; 55 58 56 _size_address_inst = size_general_data-2; 57 _size_context_id = log2(nb_context ); 58 _size_depth = log2(nb_branch_speculated); 59 _size_inst_ifetch_ptr = log2(_max_nb_inst_fetch ); 59 test(); 60 60 61 _have_port_context_id = _size_context_id > 0; 62 _have_port_depth = _size_depth > 0; 63 _have_port_branch_update_prediction_id = _size_branch_update_prediction > 0; 64 _have_port_inst_ifetch_ptr = _size_inst_ifetch_ptr > 0; 65 66 test(); 61 if (is_toplevel) 62 { 63 _size_context_id = log2(nb_context ); 64 _size_depth = log2(max<uint32_t>(_nb_branch_speculated,_nb_context)); 65 // _size_branch_update_prediction_id = max<uint32_t>(_size_branch_update_prediction,_nb_context); 66 _size_inst_ifetch_ptr = log2(_max_nb_inst_fetch ); 67 _size_instruction_address = size_general_data-2; 68 _size_general_data = size_general_data; 69 70 _have_port_context_id = _size_context_id > 0; 71 _have_port_depth = _size_depth > 0; 72 // _have_port_branch_update_prediction_id= _size_branch_update_prediction_id > 0; 73 _have_port_inst_ifetch_ptr = _size_inst_ifetch_ptr > 0; 74 75 copy (); 76 } 77 67 78 log_printf(FUNC,Decod,FUNCTION,"End"); 68 79 }; … … 82 93 { 83 94 log_printf(FUNC,Decod,FUNCTION,"Begin"); 95 96 log_printf(FUNC,Decod,FUNCTION,"End"); 97 }; 98 99 #undef FUNCTION 100 #define FUNCTION "Decod::copy" 101 void Parameters::copy (void) 102 { 103 log_printf(FUNC,Decod,FUNCTION,"Begin"); 104 84 105 log_printf(FUNC,Decod,FUNCTION,"End"); 85 106 };
Note: See TracChangeset
for help on using the changeset viewer.