source: trunk/IPs/systemC/processor/Morpheo/Behavioural/src/Entity_test_map.cpp @ 146

Last change on this file since 146 was 139, checked in by rosiere, 14 years ago
  • Add test for all configuration
  • RAT : add rat scheme (depth_save)
  • Property svn:keywords set to Id
File size: 1.4 KB
Line 
1/*
2 * $Id: Entity_test_map.cpp 139 2010-07-30 14:47:27Z rosiere $
3 *
4 * [ Description ]
5 *
6 */
7
8#include "Behavioural/include/Entity.h"
9#include "Common/include/Tabulation.h"
10#include <iostream>
11
12namespace morpheo              {
13namespace behavioural          {
14
15#undef  FUNCTION
16#define FUNCTION "Entity::test_map"
17  bool Entity::test_map (bool top_level, bool is_behavioural)
18  {
19    log_printf(FUNC,Behavioural,FUNCTION,"Begin");
20 
21    // std::string tab=morpheo::tab(depth);
22
23    // log_printf(INFO,Interface,FUNCTION,"%s* Entity \"%s\"",tab.c_str(),_name.c_str());
24 
25    bool _return = _interfaces->test_map(top_level, is_behavioural);
26
27    log_printf(FUNC,Behavioural,FUNCTION,"End");
28   
29    return _return;
30  };
31
32// #undef  FUNCTION
33// #define FUNCTION "Entity::test_equi"
34//   bool Entity::test_equi (uint32_t depth)
35//   {
36//     log_printf(FUNC,Behavioural,FUNCTION,"Begin");
37 
38//     std::string tab  = tab(depth);
39//     log_printf(INFO,Behavioural,FUNCTION, "%s* Entity \"%s\"",tab.c_str(),_name.c_str());
40 
41//     bool _return = _interfaces->test_equi(depth+1);
42
43// #ifndef DEBUG
44//     if (_return == false)
45//       {
46//      std::cerr << "In entity \"" << _name << "\" (type : \"" << _type << "\"), a lot of port is not connected !" << std::endl;
47//       }
48// #endif
49
50//     log_printf(FUNC,Behavioural,FUNCTION,"End");
51   
52//     return _return;
53//   };
54
55}; // end namespace behavioural         
56}; // end namespace morpheo             
Note: See TracBrowser for help on using the repository browser.