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/XML_header.cpp

    r43 r71  
    1313#undef  FUNCTION
    1414#define FUNCTION "XML::header"
    15   void XML::header (string encoding)
     15  void XML::header (std::string encoding)
    1616  {
    1717    log_printf(FUNC,Behavioural,FUNCTION,"Begin");
    18     _body = "<?xml version=\"1.0\" encoding=\""+encoding+"\" ?>\n" + _body;
     18
     19    time_t current_time;
     20    time (&current_time);
     21
     22    std::string str_time = ctime (&current_time );
     23
     24    std::string str;
     25
     26    str  = "<?xml version=\"1.0\" encoding=\""+encoding+"\" ?>\n";
     27    str += "\n";
     28    str += "<!--\n";
     29    str += "\tFile        : " + _name+"."+_filename_extension + "\n";
     30    str += "\tDate        : " + str_time +"\n";
     31    str += "\tComment     : it's a autogenerated file : don't modify\n";
     32    str += "-->\n";
     33    str += "\n";
     34
     35    _body = str + _body;
     36
    1937    log_printf(FUNC,Behavioural,FUNCTION,"End");
    2038  };
Note: See TracChangeset for help on using the changeset viewer.