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