source: trunk/IPs/systemC/processor/Morpheo/Behavioural/src/Interface_test_map.cpp @ 81

Last change on this file since 81 was 81, checked in by rosiere, 16 years ago
  • Finish Environment (and test)
  • Continue predictor_unit
  • Add external tools
  • svn keyword "Id" set
  • Property svn:keywords set to Id
File size: 816 bytes
Line 
1/*
2 * $Id: Interface_test_map.cpp 81 2008-04-15 18:40:01Z rosiere $
3 *
4 * [ Description ]
5 *
6 */
7
8#include "Behavioural/include/Interface.h"
9
10
11namespace morpheo              {
12namespace behavioural          {
13
14#undef  FUNCTION
15#define FUNCTION "Interface::test_map"
16  bool Interface::test_map (uint32_t depth, bool top_level)
17  {
18    log_printf(FUNC,Behavioural,FUNCTION,"Begin");
19
20    std::string tab  = std::string(depth,'\t');
21    bool _return = true;
22
23    log_printf(NONE,Behavioural,FUNCTION, "%s* Interface \"%s\"",tab.c_str(),_name.c_str());
24   
25    for (std::list<Signal*>::iterator i  = _list_signal->begin();
26         i != _list_signal->end();
27         ++i)
28      _return &= (*i)->test_map(depth+1,top_level);
29
30    log_printf(FUNC,Behavioural,FUNCTION,"End");
31   
32    return _return;
33  };
34
35}; // end namespace behavioural         
36}; // end namespace morpheo             
Note: See TracBrowser for help on using the repository browser.