source: trunk/IPs/systemC/processor/Morpheo/Behavioural/src/Vhdl_get_configuration.cpp @ 113

Last change on this file since 113 was 113, checked in by rosiere, 15 years ago

1) Add modelsim simulation systemC
2) Modelsim cosimulation systemC / VHDL is not finish !!!! (cf execute_queue and write_unit)
3) Add multi architecture
5) Add template for comparator, multiplier and divider
6) Change Message
Warning) Various test macro have change, many selftest can't compile

  • Property svn:keywords set to Id
File size: 1.5 KB
Line 
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
13namespace morpheo              {
14namespace 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
Note: See TracBrowser for help on using the repository browser.