Changeset 88 for trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Front_end/Front_end/Prediction_unit/Direction/src
- Timestamp:
- Dec 10, 2008, 7:31:39 PM (16 years ago)
- Location:
- trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Front_end/Front_end/Prediction_unit/Direction/src
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Front_end/Front_end/Prediction_unit/Direction/src/Direction.cpp
r81 r88 38 38 log_printf(FUNC,Direction,FUNCTION,"Begin"); 39 39 40 #if DEBUG_Direction == true 41 log_printf(INFO,Direction,FUNCTION,_("<%s> Parameters"),_name.c_str()); 42 43 std::cout << *param << std::endl; 44 #endif 45 40 46 log_printf(INFO,Direction,FUNCTION,"Allocation"); 41 47 … … 47 53 48 54 #ifdef STATISTICS 49 if ( _usage & USE_STATISTICS)55 if (usage_is_set(_usage,USE_STATISTICS)) 50 56 { 51 57 log_printf(INFO,Direction,FUNCTION,"Allocation of statistics"); … … 56 62 57 63 #ifdef VHDL 58 if ( _usage & USE_VHDL)64 if (usage_is_set(_usage,USE_VHDL)) 59 65 { 60 66 // generate the vhdl … … 66 72 67 73 #ifdef SYSTEMC 68 if ( _usage & USE_SYSTEMC)74 if (usage_is_set(_usage,USE_SYSTEMC)) 69 75 { 70 76 log_printf(INFO,Direction,FUNCTION,"Method - transition"); … … 90 96 91 97 #ifdef STATISTICS 92 if ( _usage & USE_STATISTICS)98 if (usage_is_set(_usage,USE_STATISTICS)) 93 99 { 94 100 statistics_deallocation(); -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Front_end/Front_end/Prediction_unit/Direction/src/Direction_allocation.cpp
r82 r88 63 63 ALLOC1_VALACK_IN ( in_PREDICT_VAL ,VAL); 64 64 ALLOC1_VALACK_OUT(out_PREDICT_ACK ,ACK); 65 ALLOC1_SIGNAL_IN ( in_PREDICT_ADDRESS_SRC,"address_src",Taddress_t,_param->_size_ address);65 ALLOC1_SIGNAL_IN ( in_PREDICT_ADDRESS_SRC,"address_src",Taddress_t,_param->_size_instruction_address); 66 66 ALLOC1_SIGNAL_IN ( in_PREDICT_STATIC ,"static" ,Tcontrol_t,1); 67 67 ALLOC1_SIGNAL_IN ( in_PREDICT_LAST_TAKE ,"last_take" ,Tcontrol_t,1); … … 76 76 ALLOC1_VALACK_IN ( in_UPDATE_VAL ,VAL); 77 77 ALLOC1_VALACK_OUT(out_UPDATE_ACK ,ACK); 78 ALLOC1_SIGNAL_IN ( in_UPDATE_ADDRESS ,"address" ,Taddress_t,_param->_size_ address);78 ALLOC1_SIGNAL_IN ( in_UPDATE_ADDRESS ,"address" ,Taddress_t,_param->_size_instruction_address); 79 79 ALLOC1_SIGNAL_IN ( in_UPDATE_HISTORY ,"history" ,Thistory_t,_param->_size_history); 80 80 ALLOC1_SIGNAL_IN ( in_UPDATE_DIRECTION,"direction",Tcontrol_t,1); … … 182 182 183 183 #ifdef POSITION 184 _component->generate_file(); 184 if (usage_is_set(_usage,USE_POSITION)) 185 _component->generate_file(); 185 186 #endif 186 187 -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Front_end/Front_end/Prediction_unit/Direction/src/Direction_deallocation.cpp
r81 r88 23 23 log_printf(FUNC,Direction,FUNCTION,"Begin"); 24 24 25 if ( _usage & USE_SYSTEMC)25 if (usage_is_set(_usage,USE_SYSTEMC)) 26 26 { 27 27 delete in_CLOCK ; -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Front_end/Front_end/Prediction_unit/Direction/src/Direction_end_cycle.cpp
r81 r88 25 25 26 26 #ifdef STATISTICS 27 _stat->end_cycle(); 27 if (usage_is_set(_usage,USE_STATISTICS)) 28 _stat->end_cycle(); 28 29 #endif 29 30 … … 31 32 // Evaluation before read the ouput signal 32 33 // sc_start(0); 33 _interfaces->testbench(); 34 if (usage_is_set(_usage,USE_VHDL_TESTBENCH)) 35 _interfaces->testbench(); 34 36 #endif 35 37 -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Front_end/Front_end/Prediction_unit/Direction/src/Parameters.cpp
r81 r88 29 29 uint32_t pht_size_counter [3], 30 30 uint32_t pht_nb_counter [3], 31 uint32_t pht_size_address_share [3]) 31 uint32_t pht_size_address_share [3], 32 bool is_toplevel) 32 33 { 33 34 log_printf(FUNC,Direction,FUNCTION,"Begin"); … … 36 37 _nb_inst_predict = nb_inst_predict ; 37 38 _nb_inst_update = nb_inst_update ; 38 39 // _size_address = size_address ; 39 40 40 41 for (uint32_t i=0; i<3; i++) … … 141 142 _have_port_history = (_size_history > 0); 142 143 144 test(); 145 143 146 _param_glue = new morpheo::behavioural::core::multi_front_end::front_end::prediction_unit::direction::direction_glue::Parameters 144 147 (_predictor_scheme, 145 148 _nb_inst_predict , 146 149 _nb_inst_update , 147 _size_address ,150 size_address , 148 151 _size_history ); 149 152 150 test(); 151 153 if (is_toplevel) 154 { 155 _size_instruction_address = size_address; 156 157 copy (); 158 } 159 152 160 log_printf(FUNC,Direction,FUNCTION,"End"); 153 161 }; … … 172 180 }; 173 181 182 #undef FUNCTION 183 #define FUNCTION "Direction::copy" 184 void Parameters::copy (void) 185 { 186 log_printf(FUNC,Direction,FUNCTION,"Begin"); 187 188 COPY(_param_glue); 189 190 log_printf(FUNC,Direction,FUNCTION,"End"); 191 }; 192 174 193 }; // end namespace direction 175 194 }; // end namespace prediction_unit -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Front_end/Front_end/Prediction_unit/Direction/src/Parameters_print.cpp
r81 r88 30 30 xml.singleton_begin("nb_inst_predict "); xml.attribut("value",toString(_nb_inst_predict )); xml.singleton_end(); 31 31 xml.singleton_begin("nb_inst_update "); xml.attribut("value",toString(_nb_inst_update )); xml.singleton_end(); 32 32 // xml.singleton_begin("size_address "); xml.attribut("value",toString(_size_address )); xml.singleton_end(); 33 33 34 34 xml.comment("predictor_scheme : ");
Note: See TracChangeset
for help on using the changeset viewer.