Last change
on this file since 102 was
94,
checked in by rosiere, 16 years ago
|
Update document on Vhdl generation.
|
-
Property svn:keywords set to
Id
|
File size:
1.1 KB
|
Line | |
---|
1 | #ifdef VHDL |
---|
2 | |
---|
3 | /* |
---|
4 | * $Id: Vhdl_get_package.cpp 94 2008-12-15 11:04:03Z rosiere $ |
---|
5 | * |
---|
6 | * [ Description ] |
---|
7 | * |
---|
8 | */ |
---|
9 | |
---|
10 | #include "Behavioural/include/Vhdl.h" |
---|
11 | #include "Common/include/Tabulation.h" |
---|
12 | #include <sstream> |
---|
13 | |
---|
14 | namespace morpheo { |
---|
15 | namespace behavioural { |
---|
16 | |
---|
17 | #undef FUNCTION |
---|
18 | #define FUNCTION "Vhdl::get_package" |
---|
19 | std::string Vhdl::get_package(uint32_t depth , |
---|
20 | std::string filename , |
---|
21 | std::string package_name, |
---|
22 | std::string entity_name ) |
---|
23 | { |
---|
24 | log_printf(FUNC,Behavioural,FUNCTION,"Begin"); |
---|
25 | |
---|
26 | std::string tab = morpheo::tab(depth); |
---|
27 | std::ostringstream text; |
---|
28 | |
---|
29 | text << tab << get_header (depth,filename) << std::endl |
---|
30 | << tab << get_library_ieee (depth) << std::endl |
---|
31 | << tab << "package " << package_name << " is" << std::endl |
---|
32 | << tab << get_component (depth+1,entity_name) << std::endl |
---|
33 | << tab << "end " << package_name << ";" << std::endl; |
---|
34 | |
---|
35 | log_printf(FUNC,Behavioural,FUNCTION,"End"); |
---|
36 | |
---|
37 | return text.str(); |
---|
38 | }; |
---|
39 | |
---|
40 | }; // end namespace behavioural |
---|
41 | }; // end namespace morpheo |
---|
42 | |
---|
43 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.