Ignore:
Timestamp:
Dec 5, 2007, 1:40:16 PM (17 years ago)
Author:
rosiere
Message:

register_unit : systemc et VHDL ok

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/src/Vhdl_set_body_component_port_map.cpp

    r43 r65  
    2020  void Vhdl::set_body_component_port_map (list<string> & list_port_map      ,
    2121                                          string         name_port          ,
    22                                           string         name_signal        )
     22                                          uint32_t       size_port          ,
     23                                          string         name_signal        ,
     24                                          uint32_t       size_signal        )
    2325  {
    2426    log_printf(FUNC,Behavioural,FUNCTION,"Begin");
    25     set_list(list_port_map, name_port + "\t=>" + name_signal);
     27
     28    if (size_port > size_signal)
     29      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)+")."));
     30
     31    string str_size = "";
     32
     33    // test if size is different (possible if multi write
     34    if (size_port != size_signal)
     35      str_size = std_logic_range(size_port);
     36   
     37    set_list(list_port_map, name_port + "\t=>" + name_signal+str_size);
     38     
    2639    log_printf(FUNC,Behavioural,FUNCTION,"End");
    2740  };
Note: See TracChangeset for help on using the changeset viewer.