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

Last change on this file since 83 was 81, checked in by rosiere, 16 years ago
  • Finish Environment (and test)
  • Continue predictor_unit
  • Add external tools
  • svn keyword "Id" set
  • Property svn:keywords set to Id
File size: 1.3 KB
RevLine 
[2]1#ifdef VHDL
2
3/*
4 * $Id: Vhdl_get_header.cpp 81 2008-04-15 18:40:01Z rosiere $
5 *
6 * [ Description ]
7 *
8 */
9
10#include "Behavioural/include/Vhdl.h"
[81]11#include "Behavioural/include/Version.h"
[2]12#include <time.h>
13#include <sstream>
14
15namespace morpheo              {
16namespace behavioural          {
17 
[43]18#undef  FUNCTION
19#define FUNCTION "Vhdl::get_header"
[71]20  std::string Vhdl::get_header(uint32_t depth,
21                          std::string   filename)
[2]22  {
[43]23    log_printf(FUNC,Behavioural,FUNCTION,"Begin");
24
[71]25    std::string        tab = std::string(depth,'\t');
26    std::ostringstream text;
[2]27
28    time_t current_time;
29    time (&current_time);
30
[71]31    text << tab << "-------------------------------------------------------------------------------" << std::endl
[81]32         << tab << "-- file            : " << filename                                               << std::endl
33         << tab << "-- date            : " << ctime (&current_time )
34         << tab << "-- morpheo version : " << MORPHEO_VERSION                                        << std::endl
35         << tab << "-- comment         : it's a autogenerated file : don't modify"                   << std::endl
[71]36         << tab << "-------------------------------------------------------------------------------" << std::endl;
[2]37   
[43]38    log_printf(FUNC,Behavioural,FUNCTION,"End");
39
[2]40    return text.str();
41  };
42 
43}; // end namespace behavioural         
44}; // end namespace morpheo             
45
46#endif
Note: See TracBrowser for help on using the repository browser.