source: trunk/IPs/systemC/processor/Morpheo/Behavioural/src/Stat_test_and_save.cpp @ 71

Last change on this file since 71 was 71, checked in by rosiere, 16 years ago

Modification of Statisctics
Add a new systemC component : Load_Store_Queue (tested with one benchmark and one configuration). Store don't supported the Data Buss Error (Load is supported)

  • Property svn:executable set to *
File size: 564 bytes
Line 
1#ifdef STATISTICS
2#include "Behavioural/include/Stat.h"
3
4namespace morpheo {
5namespace behavioural { 
6  void Stat::test_and_save (bool force_save)
7  {
8    if ((_save_periodic and ((*_cycle)==_period)) or force_save)
9      {
10        eval_exprs(false); // evalue les expression non periodique au cycle
11       
12        for (std::map<std::string, var_t>::iterator i=_list_operand->begin();
13             i!= _list_operand->end();
14             ++i)
15          {
16            // save and reset !
17            i->second.save_counter.push_back(*(i->second.counter));
18            *(i->second.counter) = 0;
19          }
20      }
21  }
22}; 
23};
24#endif
Note: See TracBrowser for help on using the repository browser.