Last change
on this file since 47 was
43,
checked in by rosiere, 17 years ago
|
Modif mineur : ajout d'info de débug
Release non stable
|
File size:
1.1 KB
|
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 | #undef FUNCTION |
---|
19 | #define FUNCTION "Vhdl::get_package" |
---|
20 | string Vhdl::get_package(uint32_t depth , |
---|
21 | string filename , |
---|
22 | string package_name, |
---|
23 | string entity_name ) |
---|
24 | { |
---|
25 | log_printf(FUNC,Behavioural,FUNCTION,"Begin"); |
---|
26 | |
---|
27 | string tab = string(depth,'\t'); |
---|
28 | ostringstream text; |
---|
29 | |
---|
30 | text << tab << get_header (depth,filename) << endl |
---|
31 | << tab << get_library_ieee (depth) << endl |
---|
32 | << tab << "package " << package_name << " is" << endl |
---|
33 | << tab << get_component (depth+1,entity_name) << endl |
---|
34 | << tab << "end " << package_name << ";" << endl; |
---|
35 | |
---|
36 | log_printf(FUNC,Behavioural,FUNCTION,"End"); |
---|
37 | |
---|
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.