- Timestamp:
- Jan 19, 2008, 12:09:01 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IPs/systemC/processor/Morpheo/Behavioural/src/Vhdl_get_entity.cpp
r43 r71 11 11 12 12 #include <sstream> 13 using namespace std;14 13 15 14 namespace morpheo { … … 18 17 #undef FUNCTION 19 18 #define FUNCTION "Vhdl::get_entity" 20 st ring Vhdl::get_entity(uint32_t depth,21 string name)19 std::string Vhdl::get_entity(uint32_t depth, 20 std::string name) 22 21 { 23 22 log_printf(FUNC,Behavioural,FUNCTION,"Begin"); 24 23 25 st ring tab =string(depth,'\t');26 ostringstream text;24 std::string tab = std::string(depth,'\t'); 25 std::ostringstream text; 27 26 28 text << endl29 << tab << "entity " << name << " is" << endl;30 27 text << std::endl 28 << tab << "entity " << name << " is" << std::endl; 29 31 30 if (_list_port.empty() == false) 32 text << tab << "\tport (" << endl33 << tab << get_port(depth+1) << endl34 << tab << "\t );" << endl;31 text << tab << "\tport (" << std::endl 32 << tab << get_port(depth+1) << std::endl 33 << tab << "\t );" << std::endl; 35 34 36 text << tab << "end " << name << ";" << endl;35 text << tab << "end " << name << ";" << std::endl; 37 36 38 37 log_printf(FUNC,Behavioural,FUNCTION,"End");
Note: See TracChangeset
for help on using the changeset viewer.