source: trunk/IPs/systemC/processor/Morpheo/Behavioural/src/Interfaces_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.5 KB
Line 
1/*
2 * $Id: Interfaces_test_map.cpp 88 2008-12-10 18:31:39Z rosiere $
3 *
4 * [ Description ]
5 *
6 */
7
8#include "Behavioural/include/Interfaces.h"
9
10
11namespace morpheo              {
12namespace behavioural          {
13
14#undef  FUNCTION
15#define FUNCTION "Interfaces::test_map"
16  bool Interfaces::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
22    bool _return = true;
23
24    log_printf(INFO,Interface,FUNCTION, "%s* Interfaces \"%s\"",tab.c_str(),_name.c_str());
25   
26    for (std::list<Interface_fifo*>::iterator i  = _list_interface->begin();
27         i != _list_interface->end();
28         ++i)
29      _return &= (*i)->test_map(depth+1, top_level, is_behavioural);
30
31    log_printf(FUNC,Behavioural,FUNCTION,"End");
32   
33    return _return;
34  };
35
36// #undef  FUNCTION
37// #define FUNCTION "Interfaces::test_equi"
38//   bool Interfaces::test_equi (uint32_t depth)
39//   {
40//     log_printf(FUNC,Behavioural,FUNCTION,"Begin");
41
42//     std::string tab  = std::string(depth,'\t');
43
44//     bool _return = true;
45
46//     log_printf(INFO,Behavioural,FUNCTION, "%s* Interfaces \"%s\"",tab.c_str(),_name.c_str());
47   
48//     for (std::list<Interface_fifo*>::iterator i  = _list_interface->begin();
49//       i != _list_interface->end();
50//       ++i)
51//       _return &= (*i)->test_equi(depth+1);
52
53//     log_printf(FUNC,Behavioural,FUNCTION,"End");
54   
55//     return _return;
56//   };
57
58}; // end namespace behavioural         
59}; // end namespace morpheo             
Note: See TracBrowser for help on using the repository browser.