- 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/Component_test_map.cpp
r97 r139 14 14 #undef FUNCTION 15 15 #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 16 22 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)23 23 { 24 24 log_printf(FUNC,Behavioural,FUNCTION,"Begin"); 25 25 26 std::string tab = morpheo::tab(depth);26 // std::string tab = morpheo::tab(depth); 27 27 std::string name = _entity->get_name(); 28 28 bool test_ok = true; 29 29 30 30 bool is_behavioural = _list_component->empty (); 31 if (is_behavioural)32 {33 34 }35 else36 {37 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 // } 39 39 40 40 41 41 // log_printf(INFO,Behavioural,FUNCTION, "%s* Test port I/O",tab.c_str()); 42 42 43 test_ok &= _entity->test_map( depth+1,true,is_behavioural);43 test_ok &= _entity->test_map(true,is_behavioural); 44 44 45 45 // log_printf(INFO,Behavioural,FUNCTION, "%s* Test all internal component",tab.c_str()); … … 50 50 if (((*i)->_instance & INSTANCE_COMPONENT) != 0) 51 51 { 52 test_ok &= (*i)->_entity->test_map( depth+1,false,is_behavioural);52 test_ok &= (*i)->_entity->test_map(false,is_behavioural); 53 53 if (recursive) 54 54 try 55 55 { 56 test_ok &= (*i)->_component->test_map( depth+1,recursive);56 test_ok &= (*i)->_component->test_map(recursive); 57 57 } 58 58 catch (morpheo::ErrorMorpheo & error)
Note: See TracChangeset
for help on using the changeset viewer.