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 | |
---|
| 18 | string Vhdl::get_architecture (uint32_t depth , |
---|
| 19 | string name , |
---|
| 20 | string entity_name) |
---|
| 21 | { |
---|
| 22 | string tab = string(depth,'\t'); |
---|
| 23 | ostringstream text; |
---|
| 24 | |
---|
| 25 | text << tab << "architecture " << name << " of " << entity_name << " is" << endl |
---|
| 26 | << tab << get_type (depth+1) << endl |
---|
| 27 | << tab << get_signal (depth+1) << endl |
---|
| 28 | << tab << get_alias (depth+1) << endl |
---|
| 29 | << tab << "begin" << endl |
---|
| 30 | << tab << get_body (depth+1) << endl |
---|
| 31 | << tab << "end " << name << ";" << endl; |
---|
| 32 | |
---|
| 33 | return text.str(); |
---|
| 34 | }; |
---|
| 35 | |
---|
| 36 | }; // end namespace behavioural |
---|
| 37 | }; // end namespace morpheo |
---|
| 38 | |
---|
| 39 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.