Last change
on this file since 49 was
43,
checked in by rosiere, 17 years ago
|
Modif mineur : ajout d'info de débug
Release non stable
|
File size:
1.2 KB
|
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_architecture" |
---|
[2] | 20 | string Vhdl::get_architecture (uint32_t depth , |
---|
| 21 | string name , |
---|
| 22 | string entity_name) |
---|
| 23 | { |
---|
[43] | 24 | log_printf(FUNC,Behavioural,FUNCTION,"Begin"); |
---|
| 25 | |
---|
[2] | 26 | string tab = string(depth,'\t'); |
---|
| 27 | ostringstream text; |
---|
| 28 | |
---|
| 29 | text << tab << "architecture " << name << " of " << entity_name << " is" << endl |
---|
| 30 | << tab << get_type (depth+1) << endl |
---|
| 31 | << tab << get_signal (depth+1) << endl |
---|
| 32 | << tab << get_alias (depth+1) << endl |
---|
| 33 | << tab << "begin" << endl |
---|
| 34 | << tab << get_body (depth+1) << endl |
---|
| 35 | << tab << "end " << name << ";" << endl; |
---|
| 36 | |
---|
[43] | 37 | log_printf(FUNC,Behavioural,FUNCTION,"End"); |
---|
| 38 | |
---|
[2] | 39 | return text.str(); |
---|
| 40 | }; |
---|
| 41 | |
---|
| 42 | }; // end namespace behavioural |
---|
| 43 | }; // end namespace morpheo |
---|
| 44 | |
---|
| 45 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.