Ignore:
Timestamp:
Jan 19, 2008, 12:09:01 PM (16 years ago)
Author:
rosiere
Message:

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)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/src/Statistics_generate_file.cpp

    r43 r71  
    1212#include <sstream>
    1313#include <fstream>
    14 using namespace std;
    1514
    1615namespace morpheo              {
     
    1918#undef  FUNCTION
    2019#define FUNCTION "Statistics::generate_file"
    21   void Statistics::generate_file(string stat)
     20  void Statistics::generate_file(std::string stat)
    2221  {
    2322    log_printf(FUNC,Behavioural,FUNCTION,"Begin");
    2423
    25     ostringstream filename;
     24    std::stringstream filename;
    2625    filename << _name << ".stat";
    2726
    28     cout << "Generate file \""<< filename.str() << "\"" << endl;
     27    std::cout << "Generate file \""<< filename.str() << "\"" << std::endl;
    2928
    30     ofstream file;
    31     file.open(filename.str().c_str(),ios::out | ios::trunc);
     29    std::ofstream file;
     30    file.open(filename.str().c_str(),std::ios::out | std::ios::trunc);
    3231
    3332    time_t current_time;
     
    3534
    3635    // print header
    37     file << "<!-- "                                                    << endl
    38          << "\tfile        : " << filename.str()                       << endl
     36    file << "<!-- "                                                    << std::endl
     37         << "\tfile        : " << filename.str()                       << std::endl
    3938         << "\tdate        : " << ctime (&current_time )
    40          << "\tcomment     : it's a autogenerated file : don't modify" << endl
    41          << "-->"                                                      << endl
    42          <<                                                               endl;
     39         << "\tcomment     : it's a autogenerated file : don't modify" << std::endl
     40         << "-->"                                                      << std::endl
     41         <<                                                               std::endl;
    4342         
    4443    file << stat;
Note: See TracChangeset for help on using the changeset viewer.