source: trunk/IPs/systemC/processor/Morpheo/Common/include/Environment.h @ 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.5 KB
Line 
1#ifndef Morpheo_Environment_h
2#define Morpheo_Environment_h
3
4/*
5 * $Id: Environment.h 88 2008-12-10 18:31:39Z 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  // Environment variable
44  extern std::string MORPHEO_HOME;
45  extern std::string MORPHEO_TOPLEVEL;
46 
47  void environment (void);
48 
49  extern std::string MORPHEO_STATISTICS;
50  extern std::string MORPHEO_VHDL;
51  extern std::string MORPHEO_POSITION;
52  extern std::string MORPHEO_LOG;
53 
54  void directory      (void);
55  void directory_init (std::string MORPHEO_STATISTICS =".",
56                       std::string MORPHEO_VHDL       =".",
57                       std::string MORPHEO_POSITION   =".",
58                       std::string MORPHEO_LOG        =".");
59
60}; // end namespace morpheo
61
62#endif
Note: See TracBrowser for help on using the repository browser.