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

Last change on this file since 113 was 113, checked in by rosiere, 15 years ago

1) Add modelsim simulation systemC
2) Modelsim cosimulation systemC / VHDL is not finish !!!! (cf execute_queue and write_unit)
3) Add multi architecture
5) Add template for comparator, multiplier and divider
6) Change Message
Warning) Various test macro have change, many selftest can't compile

  • Property svn:keywords set to Id
File size: 1.6 KB
Line 
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
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 
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
Note: See TracBrowser for help on using the repository browser.