source: trunk/IPs/systemC/processor/Morpheo/Behavioural/src/Vhdl_set_body_component_port_map.cpp

Last change on this file was 97, checked in by rosiere, 16 years ago

1) Update Prediction Table : statistics
2) Size instruction address on 30 bits
3) Change Log File
4) Add debug_level in simulation configuration file

  • Property svn:keywords set to Id
File size: 1.2 KB
RevLine 
[2]1#ifdef VHDL
2
3/*
4 * $Id: Vhdl_set_body_component_port_map.cpp 97 2008-12-19 15:34:00Z rosiere $
5 *
6 * [ Description ]
7 *
8 */
9
10#include "Behavioural/include/Vhdl.h"
11
12#include <sstream>
13
14namespace morpheo              {
15namespace behavioural          {
16 
[43]17#undef  FUNCTION
18#define FUNCTION "Vhdl::set_body_component_port_map"
[71]19  void Vhdl::set_body_component_port_map (std::list<std::string> & list_port_map      ,
[97]20                                          std::string              name_port          ,
21                                          uint32_t                 size_port          ,
22                                          std::string              name_signal        ,
23                                          uint32_t                 size_signal        )
[2]24  {
[43]25    log_printf(FUNC,Behavioural,FUNCTION,"Begin");
[65]26
27    if (size_port > size_signal)
28      throw (ErrorMorpheo ("<Vhdl::set_body_component_port_map> size of port '"+name_port+"' ("+toString(size_port)+") is greater than size of signal '"+name_signal+"' ("+toString(size_signal)+")."));
29
[71]30    std::string str_size = "";
[65]31
32    // test if size is different (possible if multi write
33    if (size_port != size_signal)
34      str_size = std_logic_range(size_port);
35   
36    set_list(list_port_map, name_port + "\t=>" + name_signal+str_size);
37     
[43]38    log_printf(FUNC,Behavioural,FUNCTION,"End");
[2]39  };
40 
41}; // end namespace behavioural         
42}; // end namespace morpheo             
43
44#endif
Note: See TracBrowser for help on using the repository browser.