source: trunk/IPs/systemC/Environment/Common/include/Debug.h @ 81

Last change on this file since 81 was 81, checked in by rosiere, 16 years ago
  • Finish Environment (and test)
  • Continue predictor_unit
  • Add external tools
  • svn keyword "Id" set
  • Property svn:keywords set to Id
File size: 634 bytes
Line 
1#ifndef ENVIRONMENT_COMMON_DEBUG_H
2#define ENVIRONMENT_COMMON_DEBUG_H
3
4#define DEBUG_ENVIRONMENT true
5#define DEBUG_CACHE       false
6#define DEBUG_DATA        false
7#define DEBUG_ENDIANNESS  false
8#define DEBUG_QUEUE       false
9#define DEBUG_RAMLOCK     false
10#define DEBUG_SIM2OS      false
11#define DEBUG_TTY         false
12
13#ifdef DEBUG
14# define _cout(component, str...)                                       \
15  do                                                                    \
16    {                                                                   \
17      if ( DEBUG_ ## component == true )                                \
18        {                                                               \
19          fprintf(stdout,str);                                          \
20        }                                                               \
21    } while(0)
22#else
23# define _cout(component, str...)                                       \
24  do                                                                    \
25    {                                                                   \
26    } while(0)
27#endif
28
29#endif
Note: See TracBrowser for help on using the repository browser.