#ifdef VHDL

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

#include "Behavioural/include/Vhdl.h"

#include <sstream>
using namespace std;

namespace morpheo              {
namespace behavioural          {
  
  string Vhdl::get_package(uint32_t depth       ,
			   string   filename    ,
			   string   package_name,
			   string   entity_name )
  {
    string        tab = string(depth,'\t');
    ostringstream text;

    text << tab << get_header       (depth,filename)                      << endl
	 << tab << get_library_ieee (depth)                               << endl
	 << tab << "package " << package_name << " is"                    << endl
	 << tab << get_component    (depth+1,entity_name)                 << endl
	 << tab << "end " << package_name << ";"                          << endl;
    
    return text.str();
  };
  
}; // end namespace behavioural          
}; // end namespace morpheo              

#endif
