source: trunk/IPs/systemC/processor/Morpheo/Behavioural/src/Vhdl_set_body_component.cpp @ 88

Last change on this file since 88 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: 789 bytes
Line 
1#ifdef VHDL
2
3/*
4 * $Id: Vhdl_set_body_component.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::set_body_component"
19  void Vhdl::set_body_component (std::string         name_instance      ,
20                                 std::string         name_component     ,
21                                 std::list<std::string>   list_port_map      )
22  {
23    log_printf(FUNC,Behavioural,FUNCTION,"Begin");
24
25    set_body(name_instance + " : " + name_component);
26    set_body("port map (");
27    set_list(_list_body, get_list(list_port_map, 1, ",", false));
28    set_body(");");
29
30    log_printf(FUNC,Behavioural,FUNCTION,"End");
31  };
32 
33}; // end namespace behavioural         
34}; // end namespace morpheo             
35
36#endif
Note: See TracBrowser for help on using the repository browser.