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.1 KB
|
Rev | Line | |
---|
[2] | 1 | #ifdef VHDL |
---|
| 2 | |
---|
| 3 | /* |
---|
| 4 | * $Id: Vhdl_get_model.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 | |
---|
[71] | 17 | std::string Vhdl::get_model(uint32_t depth , |
---|
| 18 | std::string filename , |
---|
| 19 | std::string entity_name , |
---|
| 20 | std::string architecture_name) |
---|
[2] | 21 | { |
---|
| 22 | log_printf(FUNC,Behavioural,"get_model","Begin"); |
---|
| 23 | |
---|
[71] | 24 | std::string tab = std::string(depth,'\t'); |
---|
| 25 | std::ostringstream text; |
---|
[2] | 26 | |
---|
[71] | 27 | text << tab << get_header (depth,filename) << std::endl |
---|
| 28 | << tab << get_library_ieee (depth) << std::endl |
---|
| 29 | << tab << get_library_work (depth) << std::endl |
---|
| 30 | << tab << get_entity (depth,entity_name) << std::endl |
---|
| 31 | << tab << get_architecture (depth,architecture_name,entity_name) << std::endl; |
---|
[2] | 32 | |
---|
| 33 | log_printf(FUNC,Behavioural,"get_model","End"); |
---|
| 34 | |
---|
| 35 | return text.str(); |
---|
| 36 | }; |
---|
| 37 | |
---|
| 38 | }; // end namespace behavioural |
---|
| 39 | }; // end namespace morpheo |
---|
| 40 | |
---|
| 41 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.