- Timestamp:
- Apr 14, 2009, 8:39:12 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IPs/systemC/processor/Morpheo/Behavioural/src/Vhdl_get_architecture.cpp
r94 r113 11 11 #include "Common/include/Tabulation.h" 12 12 13 #include <sstream>14 15 13 namespace morpheo { 16 14 namespace behavioural { … … 18 16 #undef FUNCTION 19 17 #define FUNCTION "Vhdl::get_architecture" 20 std::string Vhdl::get_architecture (uint32_t depth , 21 std::string name , 22 std::string entity_name) 18 std::string Vhdl::get_architecture (uint32_t depth , 19 std::string entity_name) 23 20 { 24 21 log_printf(FUNC,Behavioural,FUNCTION,"Begin"); 25 22 26 std::string tab = morpheo::tab(depth);27 23 std::ostringstream text; 24 std::string name_architecture_old = _name_architecture; 25 std::string tab=morpheo::tab(depth); 28 26 29 text << tab << "architecture " << name << " of " << entity_name << " is" << std::endl 30 << tab << get_type (depth+1) << std::endl 31 << tab << get_signal (depth+1) << std::endl 32 << tab << get_alias (depth+1) << std::endl 33 << tab << "begin" << std::endl 34 << tab << get_body (depth+1) << std::endl 35 << tab << "end " << name << ";" << std::endl; 27 for (std::map<std::string,vhdl_architecture_t>::iterator it = _architecture.begin(); 28 it!=_architecture.end(); 29 ++it) 30 { 31 std::string name = it->first; 32 set_architecture(name); 33 34 text << tab << "architecture " << name << " of " << entity_name << " is" << std::endl 35 << tab << get_type (depth+1) << std::endl 36 << tab << get_signal (depth+1) << std::endl 37 << tab << get_alias (depth+1) << std::endl 38 << tab << "begin" << std::endl 39 << tab << get_body (depth+1) << std::endl 40 << tab << "end " << name << ";" << std::endl; 41 } 42 43 set_architecture (name_architecture_old); 36 44 37 45 log_printf(FUNC,Behavioural,FUNCTION,"End");
Note: See TracChangeset
for help on using the changeset viewer.