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/Component_test_map.cpp

    r97 r139  
    1414#undef  FUNCTION
    1515#define FUNCTION "Component::test_map"
     16  // bool Component::test_map (bool recursive)
     17  // {
     18  //   log_printf(INFO,Behavioural,FUNCTION, "Test port map and interface.");
     19  //   return test_map (0, recursive);
     20  // }
     21
    1622  bool Component::test_map (bool recursive)
    17   {
    18     log_printf(INFO,Behavioural,FUNCTION, "Test port map and interface.");
    19     return test_map (0, recursive);
    20   }
    21 
    22   bool Component::test_map (uint32_t depth, bool recursive)
    2323  {
    2424    log_printf(FUNC,Behavioural,FUNCTION,"Begin");
    2525
    26     std::string tab  = morpheo::tab(depth);
     26    // std::string tab  = morpheo::tab(depth);
    2727    std::string name = _entity->get_name();
    2828    bool test_ok = true;
    2929
    3030    bool is_behavioural = _list_component->empty ();
    31     if (is_behavioural)
    32       {
    33         log_printf(INFO,Interface,FUNCTION, "%s* Component \"%s\" is a behavioural description",tab.c_str(),name.c_str());
    34       }
    35     else
    36       {
    37         log_printf(INFO,Interface,FUNCTION, "%s* Component \"%s\" is a structural description",tab.c_str(),name.c_str());
    38       }
     31    // if (is_behavioural)
     32    //   {
     33    //     log_printf(INFO,Interface,FUNCTION, "%s* Component \"%s\" is a behavioural description",tab.c_str(),name.c_str());
     34    //   }
     35    // else
     36    //   {
     37    //     log_printf(INFO,Interface,FUNCTION, "%s* Component \"%s\" is a structural description",tab.c_str(),name.c_str());
     38    //   }
    3939
    4040   
    4141    //  log_printf(INFO,Behavioural,FUNCTION, "%s* Test port I/O",tab.c_str());
    4242   
    43     test_ok &= _entity->test_map(depth+1,true,is_behavioural);
     43    test_ok &= _entity->test_map(true,is_behavioural);
    4444   
    4545    //  log_printf(INFO,Behavioural,FUNCTION, "%s* Test all internal component",tab.c_str());
     
    5050      if (((*i)->_instance & INSTANCE_COMPONENT) != 0)
    5151        {
    52           test_ok &= (*i)->_entity->test_map(depth+1,false,is_behavioural);
     52          test_ok &= (*i)->_entity->test_map(false,is_behavioural);
    5353          if (recursive)
    5454            try
    5555              {
    56                 test_ok &= (*i)->_component->test_map(depth+1,recursive);
     56                test_ok &= (*i)->_component->test_map(recursive);
    5757              }
    5858            catch (morpheo::ErrorMorpheo & error)
Note: See TracChangeset for help on using the changeset viewer.