Ignore:
Timestamp:
Jul 30, 2010, 4:47:27 PM (14 years ago)
Author:
rosiere
Message:
  • Add test for all configuration
  • RAT : add rat scheme (depth_save)
File:
1 edited

Legend:

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

    r94 r139  
    1414#undef  FUNCTION
    1515#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)
    1717  {
    1818    log_printf(FUNC,Behavioural,FUNCTION,"Begin");
    1919
     20    std::string signame = name_interface+"."+_name;
    2021    std::string str     = "";
    21     std::string tab     = morpheo::tab(depth);
     22//  std::string tab     = morpheo::tab(depth);
    2223    bool        _return = true;
    2324
     
    4950                    _return = false;
    5051                   
    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.";
    5253                  }
    5354                break;
     
    5859                  {
    5960                    _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.";
    6162                  }
    6263                break;
     
    6869                    _return = false;
    6970                   
    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.";
    7172                  }
    7273               
     
    7879                    _return = false;
    7980                   
    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.";
    8182                  }
    8283               
     
    101102                    _return = false;
    102103                   
    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.";
    104105                  }
    105106                break;
     
    111112                    _return = false;
    112113                   
    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.";
    114115                  }
    115116                break;
     
    121122                    _return = false;
    122123                   
    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.";
    124125                  }
    125126               
     
    131132                    _return = false;
    132133                   
    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.";
    134135                  }
    135136               
     
    143144    if (_return == false)
    144145      {
    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());
    150147      }
    151148    else
    152149      {
    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());
    154151      }
    155152
     
    181178//     else
    182179//       {
    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());
    184181//       }
    185182   
Note: See TracChangeset for help on using the changeset viewer.