source: trunk/IPs/systemC/processor/Morpheo/Behavioural/src/Vhdl_get_header.cpp @ 43

Last change on this file since 43 was 43, checked in by rosiere, 17 years ago

Modif mineur : ajout d'info de débug

Release non stable

File size: 1.1 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>
13using namespace std;
14
15namespace morpheo              {
16namespace behavioural          {
17 
18#undef  FUNCTION
19#define FUNCTION "Vhdl::get_header"
20  string Vhdl::get_header(uint32_t depth,
21                          string   filename)
22  {
23    log_printf(FUNC,Behavioural,FUNCTION,"Begin");
24
25    string        tab = string(depth,'\t');
26    ostringstream text;
27
28    time_t current_time;
29    time (&current_time);
30
31    text << tab << "-------------------------------------------------------------------------------" << endl
32         << tab << "-- file      : " << filename                                                     << endl
33         << tab << "-- date      : " << ctime (&current_time )
34         << tab << "-- comment   : it's a autogenerated file : don't modify"                         << endl
35         << tab << "-------------------------------------------------------------------------------" << endl;
36   
37    log_printf(FUNC,Behavioural,FUNCTION,"End");
38
39    return text.str();
40  };
41 
42}; // end namespace behavioural         
43}; // end namespace morpheo             
44
45#endif
Note: See TracBrowser for help on using the repository browser.