source: trunk/IPs/systemC/processor/Morpheo/Common/include/Environment.h @ 137

Last change on this file since 137 was 137, checked in by rosiere, 14 years ago

Various modif (add test, and vhdl)

  • Property svn:keywords set to Id
File size: 1.7 KB
Line 
1#ifndef Morpheo_Environment_h
2#define Morpheo_Environment_h
3
4/*
5 * $Id: Environment.h 137 2010-02-16 12:35:48Z rosiere $
6 *
7 * [ Description ]
8 *
9 */
10
11#include <string>
12
13namespace morpheo {
14
15#if (defined(STATISTICS) and not defined(SYSTEMC))
16# error "To have the statistics, you must set flags SYSTEMC"
17#endif
18
19#if (defined(INFORMATION) and not defined(STATISTICS))
20# error "To have the information, you must set flags STATISTICS"
21#endif
22
23#if (defined(VHDL_TESTBENCH) and not defined(SYSTEMC))
24# error "To have the vhdl's test bench, you must set flags SYSTEMC"
25#endif
26
27#if (defined(VHDL_TESTBENCH) and not defined(VHDL))
28# error "To have the vhdl's test bench, you must set flags VHDL"
29#endif
30
31#if (defined(VHDL_TESTBENCH_ASSERT) and not defined(VHDL_TESTBENCH))
32# error "To have an assert in vhdl's test bench, you must set flags VHDL_TESTBENCH"
33#endif
34
35#if (defined(VHDL_TESTBENCH) and defined(SYSTEMC))
36# define SYSTEMC_VHDL_COMPATIBILITY
37#endif
38
39#if (defined(DEBUG))
40# define DEBUG_TEST
41#endif
42
43#if defined(MTI_SYSTEMC) and defined(SYSTEMC) and defined(VHDL)
44# define MODELSIM_COSIMULATION
45#endif
46
47  // Environment variable
48  extern std::string MORPHEO_HOME;
49  extern std::string MORPHEO_TOPLEVEL;
50  extern std::string MORPHEO_VERSION;
51  extern std::string MORPHEO_HEADER;
52  extern std::string MORPHEO_DATE;
53 
54  void environment (void);
55 
56  extern std::string MORPHEO_STATISTICS;
57  extern std::string MORPHEO_VHDL;
58  extern std::string MORPHEO_POSITION;
59  extern std::string MORPHEO_LOG;
60 
61  void directory      (void);
62  void directory_init (std::string MORPHEO_STATISTICS =".",
63                       std::string MORPHEO_VHDL       =".",
64                       std::string MORPHEO_POSITION   =".",
65                       std::string MORPHEO_LOG        =".");
66
67}; // end namespace morpheo
68
69#endif
Note: See TracBrowser for help on using the repository browser.