- Timestamp:
- Jul 30, 2010, 4:47:27 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IPs/systemC/processor/Morpheo/Behavioural/src/Signal_test_map.cpp
r94 r139 14 14 #undef FUNCTION 15 15 #define FUNCTION "Signal::test_map" 16 bool Signal::test_map ( uint32_t depth,bool top_level, bool is_behavioural)16 bool Signal::test_map (std::string name_interface,bool top_level, bool is_behavioural) 17 17 { 18 18 log_printf(FUNC,Behavioural,FUNCTION,"Begin"); 19 19 20 std::string signame = name_interface+"."+_name; 20 21 std::string str = ""; 21 22 // std::string tab = morpheo::tab(depth); 22 23 bool _return = true; 23 24 … … 49 50 _return = false; 50 51 51 str = "Signal \""+ _name+"\" is not mapped with an outpout port top-level's interface or a input port component's interface.";52 str = "Signal \""+signame+"\" is not mapped with an outpout port top-level's interface or a input port component's interface."; 52 53 } 53 54 break; … … 58 59 { 59 60 _return = false; 60 str = "Signal \""+ _name+"\" is not mapped with an input port top-level's interface or a output port component's interface.";61 str = "Signal \""+signame+"\" is not mapped with an input port top-level's interface or a output port component's interface."; 61 62 } 62 63 break; … … 68 69 _return = false; 69 70 70 str = "Internal signal \""+ _name+"\" is not mapped with an outpout port top-level's interface or a input port component's interface.";71 str = "Internal signal \""+signame+"\" is not mapped with an outpout port top-level's interface or a input port component's interface."; 71 72 } 72 73 … … 78 79 _return = false; 79 80 80 str += "Internal signal \""+ _name+"\" is not mapped with an input port top-level's interface or a output port component's interface.";81 str += "Internal signal \""+signame+"\" is not mapped with an input port top-level's interface or a output port component's interface."; 81 82 } 82 83 … … 101 102 _return = false; 102 103 103 str = "Signal \""+ _name+"\" is not mapped with an input port top-level's interface or a output port component's interface.";104 str = "Signal \""+signame+"\" is not mapped with an input port top-level's interface or a output port component's interface."; 104 105 } 105 106 break; … … 111 112 _return = false; 112 113 113 str = "Signal \""+ _name+"\" is not mapped with an outpout port top-level's interface or a input port component's interface.";114 str = "Signal \""+signame+"\" is not mapped with an outpout port top-level's interface or a input port component's interface."; 114 115 } 115 116 break; … … 121 122 _return = false; 122 123 123 str = "Internal signal \""+ _name+"\" is not mapped with an outpout port top-level's interface or a input port component's interface.";124 str = "Internal signal \""+signame+"\" is not mapped with an outpout port top-level's interface or a input port component's interface."; 124 125 } 125 126 … … 131 132 _return = false; 132 133 133 str += "Internal signal \""+ _name+"\" is not mapped with an input port top-level's interface or a output port component's interface.";134 str += "Internal signal \""+signame+"\" is not mapped with an input port top-level's interface or a output port component's interface."; 134 135 } 135 136 … … 143 144 if (_return == false) 144 145 { 145 #ifndef DEBUG 146 std::cerr << str << std::endl; 147 #else 148 log_printf(INFO,Interface,FUNCTION, "%s* %s",tab.c_str(),str.c_str()); 149 #endif 146 msgError("%s\n",str.c_str()); 150 147 } 151 148 else 152 149 { 153 // log_printf(INFO,Interface,FUNCTION, "%s* Signal \"%s\" is OK.",tab.c_str(), _name.c_str());150 // log_printf(INFO,Interface,FUNCTION, "%s* Signal \"%s\" is OK.",tab.c_str(),signame.c_str()); 154 151 } 155 152 … … 181 178 // else 182 179 // { 183 // // log_printf(INFO,Behavioural,FUNCTION, "%s* Signal \"%s\" is OK.",tab.c_str(), _name.c_str());180 // // log_printf(INFO,Behavioural,FUNCTION, "%s* Signal \"%s\" is OK.",tab.c_str(),signame.c_str()); 184 181 // } 185 182
Note: See TracChangeset
for help on using the changeset viewer.