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

Last change on this file since 88 was 88, checked in by rosiere, 16 years ago

Almost complete design
with Test and test platform

  • Property svn:keywords set to Id
File size: 1.4 KB
Line 
1/*
2 * $Id: Interface_test_map.cpp 88 2008-12-10 18:31:39Z 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, bool is_behavioural)
17  {
18    log_printf(FUNC,Behavioural,FUNCTION,"Begin");
19
20    std::string tab  = std::string(depth,' ');
21    bool _return = true;
22
23    log_printf(INFO,Interface,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, is_behavioural);
29
30    log_printf(FUNC,Behavioural,FUNCTION,"End");
31   
32    return _return;
33  };
34
35// #undef  FUNCTION
36// #define FUNCTION "Interface::test_equi"
37//   bool Interface::test_equi (uint32_t depth)
38//   {
39//     log_printf(FUNC,Behavioural,FUNCTION,"Begin");
40
41//     std::string tab  = std::string(depth,'\t');
42//     bool _return = true;
43
44//     log_printf(INFO,Behavioural,FUNCTION, "%s* Interface \"%s\"",tab.c_str(),_name.c_str());
45   
46//     for (std::list<Signal*>::iterator i  = _list_signal->begin();
47//       i != _list_signal->end();
48//       ++i)
49//       _return &= (*i)->test_equi(depth+1);
50
51//     log_printf(FUNC,Behavioural,FUNCTION,"End");
52   
53//     return _return;
54//   };
55
56}; // end namespace behavioural         
57}; // end namespace morpheo             
Note: See TracBrowser for help on using the repository browser.