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

Last change on this file since 2 was 2, checked in by kane, 17 years ago

Import Morpheo

File size: 1012 bytes
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  string Vhdl::get_header(uint32_t depth,
19                          string   filename)
20  {
21    string        tab = string(depth,'\t');
22    ostringstream text;
23
24    time_t current_time;
25    time (&current_time);
26
27    text << tab << "-------------------------------------------------------------------------------" << endl
28         << tab << "-- file      : " << filename                                                     << endl
29         << tab << "-- date      : " << ctime (&current_time )
30         << tab << "-- comment   : it's a autogenerated file : don't modify"                         << endl
31         << tab << "-------------------------------------------------------------------------------" << endl;
32   
33    return text.str();
34  };
35 
36}; // end namespace behavioural         
37}; // end namespace morpheo             
38
39#endif
Note: See TracBrowser for help on using the repository browser.