source: trunk/IPs/systemC/processor/Morpheo/Behavioural/src/Vhdl_set_body.cpp @ 94

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

Update document on Vhdl generation.

  • Property svn:keywords set to Id
File size: 1.2 KB
Line 
1#ifdef VHDL
2
3/*
4 * $Id: Vhdl_set_body.cpp 94 2008-12-15 11:04:03Z rosiere $
5 *
6 * [ Description ]
7 *
8 */
9
10#include "Behavioural/include/Vhdl.h"
11#include "Common/include/Tabulation.h"
12#include <sstream>
13
14namespace morpheo              {
15namespace behavioural          {
16 
17#undef  FUNCTION
18#define FUNCTION "Vhdl::set_body"
19  void Vhdl::set_body (std::string text)
20  {
21    log_printf(FUNC,Behavioural,FUNCTION,"Begin");
22    set_body(0, text);
23    log_printf(FUNC,Behavioural,FUNCTION,"End");
24  };
25
26#undef  FUNCTION
27#define FUNCTION "Vhdl::set_body"
28  void Vhdl::set_body (uint32_t depth,
29                       std::string text)
30  {
31    log_printf(FUNC,Behavioural,FUNCTION,"Begin");
32    set_list(_list_body, morpheo::tab(depth)+text);
33    log_printf(FUNC,Behavioural,FUNCTION,"End");
34  };
35 
36#undef  FUNCTION
37#define FUNCTION "Vhdl::set_body"
38  void Vhdl::set_body (uint32_t depth,
39                       Vhdl * vhdl)
40  {
41    log_printf(FUNC,Behavioural,FUNCTION,"Begin");
42   
43    std::string tab=morpheo::tab(depth);
44
45    for (std::list<std::string>::iterator it=vhdl->_list_body.begin();
46         it!=vhdl->_list_body.end();
47         ++it)
48      set_list(_list_body,tab+*it);
49
50    log_printf(FUNC,Behavioural,FUNCTION,"End");
51  };
52 
53}; // end namespace behavioural         
54}; // end namespace morpheo             
55
56#endif
Note: See TracBrowser for help on using the repository browser.