Last change
on this file since 91 was
81,
checked in by rosiere, 16 years ago
|
- Finish Environment (and test)
- Continue predictor_unit
- Add external tools
- svn keyword "Id" set
|
-
Property svn:keywords set to
Id
|
File size:
1.2 KB
|
Rev | Line | |
---|
[2] | 1 | #ifdef VHDL |
---|
| 2 | |
---|
| 3 | /* |
---|
| 4 | * $Id: Vhdl_get_architecture.cpp 81 2008-04-15 18:40:01Z rosiere $ |
---|
| 5 | * |
---|
| 6 | * [ Description ] |
---|
| 7 | * |
---|
| 8 | */ |
---|
| 9 | |
---|
| 10 | #include "Behavioural/include/Vhdl.h" |
---|
| 11 | |
---|
| 12 | #include <sstream> |
---|
| 13 | |
---|
| 14 | namespace morpheo { |
---|
| 15 | namespace behavioural { |
---|
| 16 | |
---|
[43] | 17 | #undef FUNCTION |
---|
| 18 | #define FUNCTION "Vhdl::get_architecture" |
---|
[71] | 19 | std::string Vhdl::get_architecture (uint32_t depth , |
---|
| 20 | std::string name , |
---|
| 21 | std::string entity_name) |
---|
[2] | 22 | { |
---|
[43] | 23 | log_printf(FUNC,Behavioural,FUNCTION,"Begin"); |
---|
| 24 | |
---|
[71] | 25 | std::string tab = std::string(depth,'\t'); |
---|
| 26 | std::ostringstream text; |
---|
[2] | 27 | |
---|
[71] | 28 | text << tab << "architecture " << name << " of " << entity_name << " is" << std::endl |
---|
| 29 | << tab << get_type (depth+1) << std::endl |
---|
| 30 | << tab << get_signal (depth+1) << std::endl |
---|
| 31 | << tab << get_alias (depth+1) << std::endl |
---|
| 32 | << tab << "begin" << std::endl |
---|
| 33 | << tab << get_body (depth+1) << std::endl |
---|
| 34 | << tab << "end " << name << ";" << std::endl; |
---|
[2] | 35 | |
---|
[43] | 36 | log_printf(FUNC,Behavioural,FUNCTION,"End"); |
---|
| 37 | |
---|
[2] | 38 | return text.str(); |
---|
| 39 | }; |
---|
| 40 | |
---|
| 41 | }; // end namespace behavioural |
---|
| 42 | }; // end namespace morpheo |
---|
| 43 | |
---|
| 44 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.