#ifdef VHDL /* * $Id: Vhdl_get_package.cpp 113 2009-04-14 18:39:12Z rosiere $ * * [ Description ] * */ #include "Behavioural/include/Vhdl.h" #include "Common/include/Tabulation.h" #include namespace morpheo { namespace behavioural { #undef FUNCTION #define FUNCTION "Vhdl::get_package" std::string Vhdl::get_package(uint32_t depth , std::string filename , std::string package_name, std::string entity_name ) { log_printf(FUNC,Behavioural,FUNCTION,"Begin"); std::string tab = morpheo::tab(depth); std::ostringstream text; text << tab << get_header (depth,filename) << std::endl << tab << get_library_default (depth) << std::endl << tab << "package " << package_name << " is" << std::endl << tab << get_component (depth+1,entity_name) << std::endl << tab << "end " << package_name << ";" << std::endl; log_printf(FUNC,Behavioural,FUNCTION,"End"); return text.str(); }; }; // end namespace behavioural }; // end namespace morpheo #endif