#ifdef VHDL

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

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

namespace morpheo              {
namespace behavioural          {
  
  string Vhdl::get_header(uint32_t depth,
			  string   filename)
  {
    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;
    
    return text.str();
  };
  
}; // end namespace behavioural          
}; // end namespace morpheo              

#endif
