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

Last change on this file since 88 was 88, checked in by rosiere, 15 years ago

Almost complete design
with Test and test platform

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