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_model(uint32_t depth , |
---|
| 19 | string filename , |
---|
| 20 | string entity_name , |
---|
| 21 | string architecture_name) |
---|
| 22 | { |
---|
| 23 | log_printf(FUNC,Behavioural,"get_model","Begin"); |
---|
| 24 | |
---|
| 25 | string tab = string(depth,'\t'); |
---|
| 26 | ostringstream text; |
---|
| 27 | |
---|
| 28 | text << tab << get_header (depth,filename) << endl |
---|
| 29 | << tab << get_library_ieee (depth) << endl |
---|
| 30 | << tab << get_library_work (depth) << endl |
---|
| 31 | << tab << get_entity (depth,entity_name) << endl |
---|
| 32 | << tab << get_architecture (depth,architecture_name,entity_name) << endl; |
---|
| 33 | |
---|
| 34 | log_printf(FUNC,Behavioural,"get_model","End"); |
---|
| 35 | |
---|
| 36 | return text.str(); |
---|
| 37 | }; |
---|
| 38 | |
---|
| 39 | }; // end namespace behavioural |
---|
| 40 | }; // end namespace morpheo |
---|
| 41 | |
---|
| 42 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.