#ifdef VHDL /* * $Id$ * * [ Description ] * */ #include "Behavioural/include/Vhdl.h" #include using namespace std; namespace morpheo { namespace behavioural { string Vhdl::get_architecture (uint32_t depth , string name , string entity_name) { string tab = string(depth,'\t'); ostringstream text; text << tab << "architecture " << name << " of " << entity_name << " is" << endl << tab << get_type (depth+1) << endl << tab << get_signal (depth+1) << endl << tab << get_alias (depth+1) << endl << tab << "begin" << endl << tab << get_body (depth+1) << endl << tab << "end " << name << ";" << endl; return text.str(); }; }; // end namespace behavioural }; // end namespace morpheo #endif