Last change
on this file since 61 was
43,
checked in by rosiere, 17 years ago
|
Modif mineur : ajout d'info de débug
Release non stable
|
File size:
983 bytes
|
Rev | Line | |
---|
[2] | 1 | #ifdef VHDL |
---|
| 2 | |
---|
| 3 | /* |
---|
| 4 | * $Id$ |
---|
| 5 | * |
---|
| 6 | * [ Description ] |
---|
| 7 | * |
---|
| 8 | */ |
---|
| 9 | |
---|
| 10 | #include "Behavioural/include/Vhdl.h" |
---|
| 11 | |
---|
| 12 | #include <sstream> |
---|
| 13 | using namespace std; |
---|
| 14 | |
---|
| 15 | namespace morpheo { |
---|
| 16 | namespace behavioural { |
---|
| 17 | |
---|
[43] | 18 | #undef FUNCTION |
---|
| 19 | #define FUNCTION "Vhdl::get_entity" |
---|
[2] | 20 | string Vhdl::get_entity(uint32_t depth, |
---|
| 21 | string name) |
---|
| 22 | { |
---|
[43] | 23 | log_printf(FUNC,Behavioural,FUNCTION,"Begin"); |
---|
| 24 | |
---|
[2] | 25 | string tab = string(depth,'\t'); |
---|
| 26 | ostringstream text; |
---|
| 27 | |
---|
| 28 | text << endl |
---|
| 29 | << tab << "entity " << name << " is" << endl; |
---|
| 30 | |
---|
| 31 | if (_list_port.empty() == false) |
---|
| 32 | text << tab << "\tport (" << endl |
---|
| 33 | << tab << get_port(depth+1) << endl |
---|
| 34 | << tab << "\t );" << endl; |
---|
| 35 | |
---|
| 36 | text << tab << "end " << name << ";" << endl; |
---|
| 37 | |
---|
[43] | 38 | log_printf(FUNC,Behavioural,FUNCTION,"End"); |
---|
| 39 | |
---|
[2] | 40 | return text.str(); |
---|
| 41 | }; |
---|
| 42 | |
---|
| 43 | }; // end namespace behavioural |
---|
| 44 | }; // end namespace morpheo |
---|
| 45 | |
---|
| 46 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.