source: trunk/IPs/systemC/processor/Morpheo/Behavioural/src/Vhdl_get_header.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)

File size: 1.2 KB
Line 
1#ifdef VHDL
2
3/*
4 * $Id$
5 *
6 * [ Description ]
7 *
8 */
9
10#include "Behavioural/include/Vhdl.h"
11#include <time.h>
12#include <sstream>
13
14namespace morpheo              {
15namespace behavioural          {
16 
17#undef  FUNCTION
18#define FUNCTION "Vhdl::get_header"
19  std::string Vhdl::get_header(uint32_t depth,
20                          std::string   filename)
21  {
22    log_printf(FUNC,Behavioural,FUNCTION,"Begin");
23
24    std::string        tab = std::string(depth,'\t');
25    std::ostringstream text;
26
27    time_t current_time;
28    time (&current_time);
29
30    text << tab << "-------------------------------------------------------------------------------" << std::endl
31         << tab << "-- file      : " << filename                                                     << std::endl
32         << tab << "-- date      : " << ctime (&current_time )
33         << tab << "-- comment   : it's a autogenerated file : don't modify"                         << std::endl
34         << tab << "-------------------------------------------------------------------------------" << std::endl;
35   
36    log_printf(FUNC,Behavioural,FUNCTION,"End");
37
38    return text.str();
39  };
40 
41}; // end namespace behavioural         
42}; // end namespace morpheo             
43
44#endif
Note: See TracBrowser for help on using the repository browser.