- Timestamp:
- Feb 19, 2009, 5:31:47 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IPs/systemC/processor/Morpheo/Behavioural/src/Simulation_test_end.cpp
r88 r110 17 17 18 18 // Test if a stop condition is activate 19 if ((_simulation_nb_cycle == 0) //and20 //(_simulation_nb_instruction == 0)19 if ((_simulation_nb_cycle == 0) and 20 (_simulation_nb_instruction == 0) 21 21 ) 22 22 return false; 23 23 24 bool end_cycle = true;25 // bool end_inst = true;24 bool end_cycle; 25 bool end_inst ; 26 26 27 27 if (_simulation_nb_cycle != 0) 28 28 end_cycle = (_simulation_nb_cycle <= sc_simulation_time()); 29 else 30 end_cycle = true; 29 31 30 // if (_simulation_nb_instruction != 0) 31 // { 32 // std::vector<double>::iterator it=_simulation_nb_instruction_commited->begin(); 32 if (_simulation_nb_instruction != 0) 33 { 34 end_inst = true; 35 36 std::vector<double>::iterator it=_simulation_nb_instruction_commited.begin(); 33 37 34 // // Scan all context and test if all can finish 35 // while (end_inst and it!=_simulation_nb_instruction_commited->end()) 36 // { 37 // end_inst &= (*it <= _simulation_nb_instruction); 38 // it ++; 39 // } 40 // } 38 // Scan all context and test if all can finish 39 while (end_inst and it!=_simulation_nb_instruction_commited.end()) 40 { 41 end_inst &= (_simulation_nb_instruction <= *it); 42 it ++; 43 } 44 } 45 else 46 end_inst = true; 41 47 42 return end_cycle // and end_inst 43 ; 48 return end_cycle and end_inst; 44 49 } 45 50
Note: See TracChangeset
for help on using the changeset viewer.