source: trunk/IPs/systemC/processor/Morpheo/Behavioural/src/Vhdl_get_component.cpp @ 43

Last change on this file since 43 was 43, checked in by rosiere, 17 years ago

Modif mineur : ajout d'info de débug

Release non stable

File size: 977 bytes
Line 
1#ifdef VHDL
2
3/*
4 * $Id$
5 *
6 * [ Description ]
7 *
8 */
9
10#include "Behavioural/include/Vhdl.h"
11
12#include <sstream>
13using namespace std;
14
15namespace morpheo              {
16namespace behavioural          {
17 
18#undef  FUNCTION
19#define FUNCTION "Vhdl::get_component"
20  string Vhdl::get_component(uint32_t depth,
21                             string   name)
22  {
23    log_printf(FUNC,Behavioural,FUNCTION,"Begin");
24
25    string        tab = string(depth,'\t');
26    ostringstream text;
27
28    text <<                                      endl
29         << tab << "component " << name       << endl;
30    if (_list_port.empty() == false)
31      text << tab << "\tport ("                 << endl
32           << tab << get_port(depth+1)          << endl
33           << tab << "\t     );"                << endl;
34    text << tab << "end component;"           << endl;
35 
36    log_printf(FUNC,Behavioural,FUNCTION,"End");
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.