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

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

Update document on Vhdl generation.

  • Property svn:keywords set to Id
File size: 1.6 KB
Line 
1/*
2 * $Id: Entity_test_map.cpp 94 2008-12-15 11:04:03Z 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 (uint32_t depth, 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(depth+1,top_level, is_behavioural);
26
27#ifndef DEBUG
28    if (_return == false)
29      {
30        std::cerr << "In entity \"" << _name << "\" (type : \"" << _type << "\"), a lot of port is not connected !" << std::endl;
31      }
32#endif
33
34    log_printf(FUNC,Behavioural,FUNCTION,"End");
35   
36    return _return;
37  };
38
39// #undef  FUNCTION
40// #define FUNCTION "Entity::test_equi"
41//   bool Entity::test_equi (uint32_t depth)
42//   {
43//     log_printf(FUNC,Behavioural,FUNCTION,"Begin");
44 
45//     std::string tab  = tab(depth);
46//     log_printf(INFO,Behavioural,FUNCTION, "%s* Entity \"%s\"",tab.c_str(),_name.c_str());
47 
48//     bool _return = _interfaces->test_equi(depth+1);
49
50// #ifndef DEBUG
51//     if (_return == false)
52//       {
53//      std::cerr << "In entity \"" << _name << "\" (type : \"" << _type << "\"), a lot of port is not connected !" << std::endl;
54//       }
55// #endif
56
57//     log_printf(FUNC,Behavioural,FUNCTION,"End");
58   
59//     return _return;
60//   };
61
62}; // end namespace behavioural         
63}; // end namespace morpheo             
Note: See TracBrowser for help on using the repository browser.