Last change
on this file since 103 was
94,
checked in by rosiere, 16 years ago
|
Update document on Vhdl generation.
|
-
Property svn:keywords set to
Id
|
File size:
917 bytes
|
Rev | Line | |
---|
[2] | 1 | #ifdef VHDL |
---|
| 2 | |
---|
| 3 | /* |
---|
| 4 | * $Id: Vhdl_get_library_work.cpp 94 2008-12-15 11:04:03Z rosiere $ |
---|
| 5 | * |
---|
| 6 | * [ Description ] |
---|
| 7 | * |
---|
| 8 | */ |
---|
| 9 | |
---|
| 10 | #include "Behavioural/include/Vhdl.h" |
---|
[94] | 11 | #include "Common/include/Tabulation.h" |
---|
[2] | 12 | #include <sstream> |
---|
| 13 | |
---|
| 14 | namespace morpheo { |
---|
| 15 | namespace behavioural { |
---|
| 16 | |
---|
[43] | 17 | #undef FUNCTION |
---|
| 18 | #define FUNCTION "Vhdl::get_library_work" |
---|
[71] | 19 | std::string Vhdl::get_library_work (uint32_t depth) |
---|
[2] | 20 | { |
---|
[43] | 21 | log_printf(FUNC,Behavioural,FUNCTION,"Begin"); |
---|
| 22 | |
---|
[71] | 23 | std::list<std::string>::iterator i = _list_library_work.begin(); |
---|
[94] | 24 | std::string tab = morpheo::tab(depth); |
---|
[71] | 25 | std::ostringstream text; |
---|
[2] | 26 | |
---|
| 27 | if (i != _list_library_work.end()) |
---|
[71] | 28 | text << tab << std::endl |
---|
| 29 | << tab << "library work;" << std::endl |
---|
[2] | 30 | << get_list(_list_library_work,depth,";",true); |
---|
| 31 | |
---|
[43] | 32 | log_printf(FUNC,Behavioural,FUNCTION,"End"); |
---|
| 33 | |
---|
[2] | 34 | return text.str(); |
---|
| 35 | }; |
---|
| 36 | |
---|
| 37 | }; // end namespace behavioural |
---|
| 38 | }; // end namespace morpheo |
---|
| 39 | |
---|
| 40 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.