- Timestamp:
- Dec 10, 2008, 7:31:39 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IPs/systemC/processor/Morpheo/Behavioural/src/Usage.cpp
r81 r88 20 20 return ((usage & flag) != 0); 21 21 } 22 22 #undef FUNCTION 23 #define FUNCTION "usage_environment" 23 24 void usage_environment (Tusage_t usage) 24 25 { 25 26 #ifndef SYSTEMC 26 27 if (usage_is_set(usage,USE_SYSTEMC)) 27 throw E rrorMorpheo(_("Component use the flag \"USE_SYSTEMC\", but the macro's compiler \"SYSTEMC\" is unset."));28 throw ERRORMORPHEO(FUNCTION,_("Component use the flag \"USE_SYSTEMC\", but the macro's compiler \"SYSTEMC\" is unset.\n")); 28 29 #endif 29 30 #ifndef VHDL 30 31 if (usage_is_set(usage,USE_VHDL)) 31 throw E rrorMorpheo(_("Component use the flag \"USE_VHDL\", but the macro's compiler \"VHDL\" is unset."));32 throw ERRORMORPHEO(FUNCTION,_("Component use the flag \"USE_VHDL\", but the macro's compiler \"VHDL\" is unset.\n")); 32 33 #endif 33 34 #ifndef VHDL_TESTBENCH 34 35 if (usage_is_set(usage,USE_VHDL_TESTBENCH)) 35 throw E rrorMorpheo(_("Component use the flag \"USE_VHDL_TESTBENCH\", but the macro's compiler \"VHDL_TESTBENCH\" is unset."));36 throw ERRORMORPHEO(FUNCTION,_("Component use the flag \"USE_VHDL_TESTBENCH\", but the macro's compiler \"VHDL_TESTBENCH\" is unset.\n")); 36 37 #endif 37 38 #ifndef VHDL_TESTBENCH_ASSERT 38 39 if (usage_is_set(usage,USE_VHDL_TESTBENCH_ASSERT)) 39 throw E rrorMorpheo(_("Component use the flag \"USE_VHDL_TESTBENCH_ASSERT\", but the macro's compiler \"VHDL_TESTBENCH_ASSERT\" is unset."));40 throw ERRORMORPHEO(FUNCTION,_("Component use the flag \"USE_VHDL_TESTBENCH_ASSERT\", but the macro's compiler \"VHDL_TESTBENCH_ASSERT\" is unset.\n")); 40 41 #endif 41 42 #ifndef POSITION 42 43 if (usage_is_set(usage,USE_POSITION)) 43 throw E rrorMorpheo(_("Component use the flag \"USE_POSITION\", but the macro's compiler \"POSITION\" is unset."));44 throw ERRORMORPHEO(FUNCTION,_("Component use the flag \"USE_POSITION\", but the macro's compiler \"POSITION\" is unset.\n")); 44 45 #endif 45 46 #ifndef STATISTICS 46 47 if (usage_is_set(usage,USE_STATISTICS)) 47 throw E rrorMorpheo(_("Component use the flag \"USE_STATISTICS\", but the macro's compiler \"STATISTICS\" is unset."));48 throw ERRORMORPHEO(FUNCTION,_("Component use the flag \"USE_STATISTICS\", but the macro's compiler \"STATISTICS\" is unset.\n")); 48 49 #endif 49 50 #ifndef INFORMATION 50 51 if (usage_is_set(usage,USE_INFORMATION)) 51 throw E rrorMorpheo(_("Component use the flag \"USE_INFORMATION\", but the macro's compiler \"INFORMATION\" is unset."));52 throw ERRORMORPHEO(FUNCTION,_("Component use the flag \"USE_INFORMATION\", but the macro's compiler \"INFORMATION\" is unset.\n")); 52 53 #endif 53 54 … … 56 57 57 58 if (usage_is_set(usage,USE_STATISTICS) and not usage_is_set(usage,USE_SYSTEMC)) 58 throw E rrorMorpheo(_("Usage flags conflit : to use the statistics, you must set flag USE_SYSTEMC"));59 throw ERRORMORPHEO(FUNCTION,_("Usage flags conflit : to use the statistics, you must set flag USE_SYSTEMC\n")); 59 60 60 61 if (usage_is_set(usage,USE_INFORMATION) and not usage_is_set(usage,USE_STATISTICS)) 61 throw E rrorMorpheo(_("Usage flags conflit : to use the information, you must set flag USE_STATISTICS"));62 throw ERRORMORPHEO(FUNCTION,_("Usage flags conflit : to use the information, you must set flag USE_STATISTICS\n")); 62 63 63 64 if (usage_is_set(usage,USE_VHDL_TESTBENCH) and not usage_is_set(usage,USE_SYSTEMC)) 64 throw E rrorMorpheo(_("Usage flags conflit : to use the vhdl's test bench, you must set flag USE_SYSTEMC"));65 throw ERRORMORPHEO(FUNCTION,_("Usage flags conflit : to use the vhdl's test bench, you must set flag USE_SYSTEMC\n")); 65 66 66 67 if (usage_is_set(usage,USE_VHDL_TESTBENCH) and not usage_is_set(usage,USE_VHDL)) 67 throw E rrorMorpheo(_("Usage flags conflit : to use the vhdl's test bench, you must set flag USE_VHDL"));68 throw ERRORMORPHEO(FUNCTION,_("Usage flags conflit : to use the vhdl's test bench, you must set flag USE_VHDL\n")); 68 69 69 70 if (usage_is_set(usage,USE_VHDL_TESTBENCH_ASSERT) and not usage_is_set(usage,USE_VHDL_TESTBENCH)) 70 throw E rrorMorpheo(_("Usage flags conflit : to use an assert in vhdl's test bench, you must set flag USE_VHDL_TESTBENCH"));71 throw ERRORMORPHEO(FUNCTION,_("Usage flags conflit : to use an assert in vhdl's test bench, you must set flag USE_VHDL_TESTBENCH\n")); 71 72 } 72 73 … … 96 97 usage = usage_set(usage,USE_INFORMATION); 97 98 #endif 98 99 usage = usage_set(usage,USE_HEADER); 99 100 #ifdef DEBUG 100 101 #endif
Note: See TracChangeset
for help on using the changeset viewer.