Line | |
---|
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_package(uint32_t depth , |
---|
19 | string filename , |
---|
20 | string package_name, |
---|
21 | string entity_name ) |
---|
22 | { |
---|
23 | string tab = string(depth,'\t'); |
---|
24 | ostringstream text; |
---|
25 | |
---|
26 | text << tab << get_header (depth,filename) << endl |
---|
27 | << tab << get_library_ieee (depth) << endl |
---|
28 | << tab << "package " << package_name << " is" << endl |
---|
29 | << tab << get_component (depth+1,entity_name) << endl |
---|
30 | << tab << "end " << package_name << ";" << endl; |
---|
31 | |
---|
32 | return text.str(); |
---|
33 | }; |
---|
34 | |
---|
35 | }; // end namespace behavioural |
---|
36 | }; // end namespace morpheo |
---|
37 | |
---|
38 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.