source: trunk/IPs/systemC/processor/Morpheo/Behavioural/src/Entity_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.6 KB
Line 
1/*
2 * $Id: Entity_test_map.cpp 88 2008-12-10 18:31:39Z rosiere $
3 *
4 * [ Description ]
5 *
6 */
7
8#include "Behavioural/include/Entity.h"
9#include <iostream>
10
11namespace morpheo              {
12namespace behavioural          {
13
14#undef  FUNCTION
15#define FUNCTION "Entity::test_map"
16  bool Entity::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    log_printf(INFO,Interface,FUNCTION,"%s* Entity \"%s\"",tab.c_str(),_name.c_str());
22 
23    bool _return = _interfaces->test_map(depth+1,top_level, is_behavioural);
24
25#ifndef DEBUG
26    if (_return == false)
27      {
28        std::cerr << "In entity \"" << _name << "\" (type : \"" << _type << "\"), a lot of port is not connected !" << std::endl;
29      }
30#endif
31
32    log_printf(FUNC,Behavioural,FUNCTION,"End");
33   
34    return _return;
35  };
36
37// #undef  FUNCTION
38// #define FUNCTION "Entity::test_equi"
39//   bool Entity::test_equi (uint32_t depth)
40//   {
41//     log_printf(FUNC,Behavioural,FUNCTION,"Begin");
42 
43//     std::string tab  = std::string(depth,'\t');
44//     log_printf(INFO,Behavioural,FUNCTION, "%s* Entity \"%s\"",tab.c_str(),_name.c_str());
45 
46//     bool _return = _interfaces->test_equi(depth+1);
47
48// #ifndef DEBUG
49//     if (_return == false)
50//       {
51//      std::cerr << "In entity \"" << _name << "\" (type : \"" << _type << "\"), a lot of port is not connected !" << std::endl;
52//       }
53// #endif
54
55//     log_printf(FUNC,Behavioural,FUNCTION,"End");
56   
57//     return _return;
58//   };
59
60}; // end namespace behavioural         
61}; // end namespace morpheo             
Note: See TracBrowser for help on using the repository browser.