1 | #ifdef VHDL |
---|
2 | |
---|
3 | /* |
---|
4 | * $Id: Vhdl_get_configuration.cpp 113 2009-04-14 18:39:12Z rosiere $ |
---|
5 | * |
---|
6 | * [ Description ] |
---|
7 | * |
---|
8 | */ |
---|
9 | |
---|
10 | #include "Behavioural/include/Vhdl.h" |
---|
11 | #include "Common/include/Tabulation.h" |
---|
12 | |
---|
13 | namespace morpheo { |
---|
14 | namespace behavioural { |
---|
15 | |
---|
16 | #undef FUNCTION |
---|
17 | #define FUNCTION "Vhdl::get_configuration" |
---|
18 | std::string Vhdl::get_configuration (uint32_t depth , |
---|
19 | std::string entity_name , |
---|
20 | std::string configuration_name) |
---|
21 | { |
---|
22 | log_printf(FUNC,Behavioural,FUNCTION,"Begin"); |
---|
23 | |
---|
24 | std::ostringstream text; |
---|
25 | |
---|
26 | text << ""; |
---|
27 | |
---|
28 | // std::string tab0=morpheo::tab(depth); |
---|
29 | // std::string tab1=morpheo::tab(depth+1); |
---|
30 | // std::string tab2=morpheo::tab(depth+2); |
---|
31 | // std::string name_architecture_old = _name_architecture; |
---|
32 | |
---|
33 | // text << tab0 << "configuration " << configuration_name << " of " << entity_name << " is" << std::endl; |
---|
34 | // for (std::map<std::string,vhdl_architecture_t>::iterator it = _architecture.begin(); |
---|
35 | // it!=_architecture.end(); |
---|
36 | // ++it) |
---|
37 | // { |
---|
38 | // std::string name = it->first; |
---|
39 | // set_architecture(name); |
---|
40 | |
---|
41 | // text << tab1 << "for " << name << std::endl; |
---|
42 | |
---|
43 | // text << tab1 << "end for;" << std::endl; |
---|
44 | // } |
---|
45 | // text << tab0 << "end configuration " << configuration_name << ";" << std::endl; |
---|
46 | |
---|
47 | // set_architecture (name_architecture_old); |
---|
48 | |
---|
49 | log_printf(FUNC,Behavioural,FUNCTION,"End"); |
---|
50 | |
---|
51 | return text.str(); |
---|
52 | }; |
---|
53 | |
---|
54 | }; // end namespace behavioural |
---|
55 | }; // end namespace morpheo |
---|
56 | |
---|
57 | #endif |
---|