#ifdef VHDL

/*
 * $Id$
 *
 * [ Description ]
 * 
 */

#include "Behavioural/include/Vhdl.h"
#include <time.h>
#include <sstream>
using namespace std;

namespace morpheo              {
namespace behavioural          {
  
#undef  FUNCTION
#define FUNCTION "Vhdl::get_header"
  string Vhdl::get_header(uint32_t depth,
			  string   filename)
  {
    log_printf(FUNC,Behavioural,FUNCTION,"Begin");

    string        tab = string(depth,'\t');
    ostringstream text;

    time_t current_time;
    time (&current_time);

    text << tab << "-------------------------------------------------------------------------------" << endl
	 << tab << "-- file      : " << filename                                                     << endl
	 << tab << "-- date      : " << ctime (&current_time )
	 << tab << "-- comment   : it's a autogenerated file : don't modify"                         << endl
	 << tab << "-------------------------------------------------------------------------------" << endl;
    
    log_printf(FUNC,Behavioural,FUNCTION,"End");

    return text.str();
  };
  
}; // end namespace behavioural          
}; // end namespace morpheo              

#endif
