source: trunk/IPs/systemC/processor/Morpheo/Behavioural/src/Vhdl_get_architecture.cpp @ 81

Last change on this file since 81 was 81, checked in by rosiere, 16 years ago
  • Finish Environment (and test)
  • Continue predictor_unit
  • Add external tools
  • svn keyword "Id" set
  • Property svn:keywords set to Id
File size: 1.2 KB
Line 
1#ifdef VHDL
2
3/*
4 * $Id: Vhdl_get_architecture.cpp 81 2008-04-15 18:40:01Z rosiere $
5 *
6 * [ Description ]
7 *
8 */
9
10#include "Behavioural/include/Vhdl.h"
11
12#include <sstream>
13
14namespace morpheo              {
15namespace behavioural          {
16 
17#undef  FUNCTION
18#define FUNCTION "Vhdl::get_architecture"
19  std::string Vhdl::get_architecture (uint32_t depth      ,
20                                 std::string   name       ,
21                                 std::string   entity_name)
22  {
23    log_printf(FUNC,Behavioural,FUNCTION,"Begin");
24
25    std::string        tab = std::string(depth,'\t');
26    std::ostringstream text;
27
28    text << tab << "architecture " << name << " of " << entity_name << " is" << std::endl
29         << tab << get_type     (depth+1)                                    << std::endl
30         << tab << get_signal   (depth+1)                                    << std::endl
31         << tab << get_alias    (depth+1)                                    << std::endl
32         << tab << "begin"                                                   << std::endl
33         << tab << get_body     (depth+1)                                    << std::endl
34         << tab << "end " << name << ";"                                     << std::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.