Changeset 76 for trunk/IPs/systemC/processor/Morpheo/Behavioural/src
- Timestamp:
- Feb 2, 2008, 12:39:01 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IPs/systemC/processor/Morpheo/Behavioural/src/Component_port_map.cpp
r75 r76 25 25 Entity * entity_dest = find_entity(component_dest); 26 26 27 27 28 if (entity_dest == NULL) 28 throw (ErrorMorpheo ("<Component::port_map> in component \""+name_entity+"\", port map with unknow component \""+component_dest+"\"."));29 throw (ErrorMorpheo ("<Component::port_map> in component \""+name_entity+"\", try map \""+component_src+"."+port_src+"\" with \""+component_dest+"."+port_dest+"\" but the component \""+component_dest+"\" is unknow.")); 29 30 30 31 Signal * signal_dest = entity_dest->find_signal (port_dest); 31 32 32 33 if (signal_dest == NULL) 33 throw (ErrorMorpheo ("<Component::port_map> in component \""+name_entity+"\", port map with component \""+component_dest+"\" and a unknowsignal \""+port_dest+"\"."));34 throw (ErrorMorpheo ("<Component::port_map> in component \""+name_entity+"\",try map \""+component_src+"."+port_src+"\" with \""+component_dest+"."+port_dest+"\" but the component \""+component_dest+"\" have not the signal \""+port_dest+"\".")); 34 35 35 36 // Second entity … … 37 38 38 39 if (entity_src == NULL) 39 throw (ErrorMorpheo ("<Component::port_map> in component \""+name_entity+"\", port map with unknow component \""+component_src+"\"."));40 throw (ErrorMorpheo ("<Component::port_map> in component \""+name_entity+"\", try map \""+component_src+"."+port_src+"\" with \""+component_dest+"."+port_dest+"\" but the component \""+component_src+"\" is unknow.")); 40 41 41 42 Signal * signal_src = entity_src->find_signal (port_src); 42 43 43 44 if (signal_src == NULL) 44 throw (ErrorMorpheo ("<Component::port_map> in component \""+name_entity+"\", port map with component \""+component_src+"\" and a unknowsignal \""+port_src+"\"."));45 throw (ErrorMorpheo ("<Component::port_map> in component \""+name_entity+"\", try map \""+component_src+"."+port_src+"\" with \""+component_dest+"."+port_dest+"\" but the component \""+component_src+"\" have not the signal \""+port_src+"\".")); 45 46 46 47 // If all is ok, mapping … … 56 57 57 58 if (src_is_port == true) 58 throw (ErrorMorpheo ("<Component::port_map> src can't be an interface's port of the top level."));59 throw (ErrorMorpheo ("<Component::port_map> in component \""+name_entity+"\", try map \""+component_src+"."+port_src+"\" with \""+component_dest+"."+port_dest+"\" but the component \""+component_src+" is the Top_level, and we can't be use interface's port of the top level as a source.")); 59 60 60 61 // 2 cases : … … 101 102 catch (morpheo::ErrorMorpheo & error) 102 103 { 103 throw (ErrorMorpheo ("<Component::port_map> Error in mapping between "+entity_src ->get_name()+"."+signal_src ->get_name()+" and "+entity_dest->get_name()+"."+signal_dest->get_name()+" :\n"+error.what ()));104 throw (ErrorMorpheo ("<Component::port_map> in component \""+name_entity+"\", try map \""+component_src+"."+port_src+"\" with \""+component_dest+"."+port_dest+"\" but "+error.what ())); 104 105 } 105 106 //catch (...) … … 109 110 log_printf(FUNC,Behavioural,FUNCTION,"End"); 110 111 }; 111 112 112 113 113 void Component::port_map (std::string component_src ,
Note: See TracChangeset
for help on using the changeset viewer.