Changeset 82 for trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_OOO_Engine/OOO_Engine/Rename_unit/Register_translation_unit
- Timestamp:
- May 1, 2008, 6:48:45 PM (16 years ago)
- Location:
- trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_OOO_Engine/OOO_Engine/Rename_unit/Register_translation_unit
- Files:
-
- 25 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_OOO_Engine/OOO_Engine/Rename_unit/Register_translation_unit/Dependency_checking_unit/SelfTest/src/test.cpp
r81 r82 7 7 */ 8 8 9 #define NB_ITERATION 32 10 #define CYCLE_MAX (128*NB_ITERATION) 11 9 12 #include "Behavioural/Core/Multi_OOO_Engine/OOO_Engine/Rename_unit/Register_translation_unit/Dependency_checking_unit/SelfTest/include/test.h" 10 13 #include "Common/include/Test.h" … … 12 15 #include <list> 13 16 14 #define NB_ITERATION 3215 #define CYCLE_MAX (128*NB_ITERATION)16 17 #define LABEL(str...) \18 { \19 msg (_("{%d} "),static_cast<uint32_t>(sc_simulation_time())); \20 msg (str); \21 msg (_("\n")); \22 } while(0)23 24 #define SC_START(cycle_offset) \25 do \26 { \27 /*cout << "SC_START (begin)" << endl;*/ \28 \29 uint32_t cycle_current = static_cast<uint32_t>(sc_simulation_time()); \30 if (cycle_offset != 0) \31 { \32 cout << "##########[ cycle "<< cycle_current+cycle_offset << " ]" << endl; \33 } \34 \35 if (cycle_current > CYCLE_MAX) \36 { \37 TEST_KO("Maximal cycles Reached"); \38 } \39 \40 sc_start(cycle_offset); \41 \42 /*cout << "SC_START (end )" << endl;*/ \43 } while(0)44 45 17 void test (string name, 46 18 morpheo::behavioural::core::multi_ooo_engine::ooo_engine::rename_unit::register_translation_unit::dependency_checking_unit::Parameters * _param) … … 52 24 #endif 53 25 54 Dependency_checking_unit * _Dependency_checking_unit = new Dependency_checking_unit (name.c_str(), 26 Dependency_checking_unit * _Dependency_checking_unit = new Dependency_checking_unit 27 (name.c_str(), 55 28 #ifdef STATISTICS 56 29 _parameters_statistics, 57 30 #endif 58 _param); 31 _param, 32 USE_ALL); 59 33 60 34 #ifdef SYSTEMC -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_OOO_Engine/OOO_Engine/Rename_unit/Register_translation_unit/Dependency_checking_unit/include/Dependency_checking_unit.h
r81 r82 132 132 #endif 133 133 Parameters * param, 134 morpheo::behavioural::Tusage_t usage =USE_ALL134 morpheo::behavioural::Tusage_t usage 135 135 ); 136 136 public : ~Dependency_checking_unit (void); -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_OOO_Engine/OOO_Engine/Rename_unit/Register_translation_unit/Dependency_checking_unit/include/Parameters.h
r81 r82 48 48 public : ~Parameters () ; 49 49 50 public : std::stringmsg_error (void);50 public : Parameters_test msg_error (void); 51 51 52 public : std::string print (uint32_t depth);53 public : friend std::ostream& operator<< (std::ostream& output_stream,54 morpheo::behavioural::core::multi_ooo_engine::ooo_engine::rename_unit::register_translation_unit::dependency_checking_unit::Parameters & x);52 public : std::string print (uint32_t depth); 53 public : friend std::ostream& operator<< (std::ostream& output_stream, 54 morpheo::behavioural::core::multi_ooo_engine::ooo_engine::rename_unit::register_translation_unit::dependency_checking_unit::Parameters & x); 55 55 }; 56 56 -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_OOO_Engine/OOO_Engine/Rename_unit/Register_translation_unit/Dependency_checking_unit/src/Parameters_msg_error.cpp
r81 r82 22 22 #undef FUNCTION 23 23 #define FUNCTION "Dependency_checking_unit::msg_error" 24 std::stringParameters::msg_error(void)24 Parameters_test Parameters::msg_error(void) 25 25 { 26 26 log_printf(FUNC,Dependency_checking_unit,FUNCTION,"Begin"); 27 27 28 std::string msg = "";28 Parameters_test test ("Dependency_checking_unit"); 29 29 30 return msg;30 return test; 31 31 32 32 log_printf(FUNC,Dependency_checking_unit,FUNCTION,"End"); -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_OOO_Engine/OOO_Engine/Rename_unit/Register_translation_unit/Free_List_unit/SelfTest/src/test.cpp
r81 r82 7 7 */ 8 8 9 #define NB_ITERATION 1 10 #define CYCLE_MAX (128*NB_ITERATION) 11 9 12 #include "Behavioural/Core/Multi_OOO_Engine/OOO_Engine/Rename_unit/Register_translation_unit/Free_List_unit/SelfTest/include/test.h" 10 13 #include "Common/include/Test.h" 11 14 #include "Behavioural/include/Allocation.h" 12 13 #define NB_ITERATION 114 #define CYCLE_MAX (128*NB_ITERATION)15 16 #define LABEL(str...) \17 { \18 msg (_("{%d} "),static_cast<uint32_t>(sc_simulation_time())); \19 msg (str); \20 msg (_("\n")); \21 } while(0)22 23 #define SC_START(cycle_offset) \24 do \25 { \26 /*cout << "SC_START (begin)" << endl;*/ \27 \28 uint32_t cycle_current = static_cast<uint32_t>(sc_simulation_time()); \29 if (cycle_offset != 0) \30 { \31 cout << "##########[ cycle "<< cycle_current+cycle_offset << " ]" << endl; \32 } \33 \34 if (cycle_current > CYCLE_MAX) \35 { \36 TEST_KO("Maximal cycles Reached"); \37 } \38 \39 sc_start(cycle_offset); \40 \41 /*cout << "SC_START (end )" << endl;*/ \42 } while(0)43 15 44 16 void test (string name, … … 51 23 #endif 52 24 53 Free_List_unit * _Free_List_unit = new Free_List_unit (name.c_str(), 25 Free_List_unit * _Free_List_unit = new Free_List_unit 26 (name.c_str(), 54 27 #ifdef STATISTICS 55 _parameters_statistics, 56 #endif 57 _param); 28 _parameters_statistics, 29 #endif 30 _param, 31 USE_ALL); 58 32 59 33 #ifdef SYSTEMC -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_OOO_Engine/OOO_Engine/Rename_unit/Register_translation_unit/Free_List_unit/include/Free_List_unit.h
r81 r82 117 117 #endif 118 118 Parameters * param, 119 morpheo::behavioural::Tusage_t usage =USE_ALL119 morpheo::behavioural::Tusage_t usage 120 120 ); 121 121 public : ~Free_List_unit (void); -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_OOO_Engine/OOO_Engine/Rename_unit/Register_translation_unit/Free_List_unit/include/Parameters.h
r81 r82 56 56 public : ~Parameters () ; 57 57 58 public : std::stringmsg_error (void);58 public : Parameters_test msg_error (void); 59 59 60 public : std::string print (uint32_t depth);61 public : friend std::ostream& operator<< (std::ostream& output_stream,62 morpheo::behavioural::core::multi_ooo_engine::ooo_engine::rename_unit::register_translation_unit::free_list_unit::Parameters & x);60 public : std::string print (uint32_t depth); 61 public : friend std::ostream& operator<< (std::ostream& output_stream, 62 morpheo::behavioural::core::multi_ooo_engine::ooo_engine::rename_unit::register_translation_unit::free_list_unit::Parameters & x); 63 63 }; 64 64 -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_OOO_Engine/OOO_Engine/Rename_unit/Register_translation_unit/Free_List_unit/src/Parameters_msg_error.cpp
r81 r82 22 22 #undef FUNCTION 23 23 #define FUNCTION "Free_List_unit::msg_error" 24 std::stringParameters::msg_error(void)24 Parameters_test Parameters::msg_error(void) 25 25 { 26 26 log_printf(FUNC,Free_List_unit,FUNCTION,"Begin"); 27 27 28 std::string msg = "";28 Parameters_test test ("Free_List_unit"); 29 29 30 30 if (_nb_general_register <= _nb_thread*_nb_general_register_logic) 31 msg += " - The number of physical general register is insufficient.\n";31 test.error(_("The number of physical general register is insufficient.\n")); 32 32 if (_nb_special_register <= _nb_thread*_nb_special_register_logic) 33 msg += " - The number of physical special register is insufficient.\n";33 test.error(_("The number of physical special register is insufficient.\n")); 34 34 if (not is_multiple (_nb_bank, _nb_pop)) 35 msg += " - Number of pop must be a multiple of number of bank.\n";35 test.error(_("Number of pop must be a multiple of number of bank.\n")); 36 36 if (not is_power2 (_nb_bank)) 37 msg += " - Number of bank must be a power of 2.\n";37 test.error(_("Number of bank must be a power of 2.\n")); 38 38 39 39 if ((_priority != PRIORITY_STATIC) and 40 40 (_priority != PRIORITY_ROUND_ROBIN)) 41 msg += " - Unsupported priority scheme. Supported scheme are "+toString(PRIORITY_STATIC)+" and "+toString(PRIORITY_ROUND_ROBIN)+".\n";41 test.error(toString(_("Unsupported priority scheme. Supported scheme are %s and %s.\n"),toString(PRIORITY_STATIC).c_str(),toString(PRIORITY_ROUND_ROBIN).c_str())); 42 42 43 return msg;43 return test; 44 44 45 45 log_printf(FUNC,Free_List_unit,FUNCTION,"End"); -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_OOO_Engine/OOO_Engine/Rename_unit/Register_translation_unit/Register_Address_Translation_unit/SelfTest/src/test.cpp
r81 r82 7 7 */ 8 8 9 #define NB_ITERATION 64 10 #define CYCLE_MAX (1024*NB_ITERATION) 11 9 12 #include "Behavioural/Core/Multi_OOO_Engine/OOO_Engine/Rename_unit/Register_translation_unit/Register_Address_Translation_unit/SelfTest/include/test.h" 10 13 #include "Common/include/Test.h" … … 12 15 #include "Behavioural/include/Allocation.h" 13 16 14 #define NB_ITERATION 6415 #define CYCLE_MAX (1024*NB_ITERATION)16 17 #define LABEL(str...) \18 { \19 msg (_("{%d} "),static_cast<uint32_t>(sc_simulation_time())); \20 msg (str); \21 msg (_("\n")); \22 } while(0)23 24 #define SC_START(cycle_offset) \25 do \26 { \27 /*cout << "SC_START (begin)" << endl;*/ \28 \29 uint32_t cycle_current = static_cast<uint32_t>(sc_simulation_time()); \30 if (cycle_offset != 0) \31 { \32 cout << "##########[ cycle "<< cycle_current+cycle_offset << " ]" << endl; \33 } \34 \35 if (cycle_current > CYCLE_MAX) \36 { \37 TEST_KO("Maximal cycles Reached"); \38 } \39 \40 sc_start(cycle_offset); \41 \42 /*cout << "SC_START (end )" << endl;*/ \43 } while(0)44 45 17 void test (string name, 46 18 morpheo::behavioural::core::multi_ooo_engine::ooo_engine::rename_unit::register_translation_unit::register_address_translation_unit::Parameters * _param) … … 52 24 #endif 53 25 54 Register_Address_Translation_unit * _Register_Address_Translation_unit = new Register_Address_Translation_unit (name.c_str(), 26 Register_Address_Translation_unit * _Register_Address_Translation_unit = new Register_Address_Translation_unit 27 (name.c_str(), 55 28 #ifdef STATISTICS 56 29 _parameters_statistics, 57 30 #endif 58 _param); 31 _param, 32 USE_ALL); 59 33 60 34 #ifdef SYSTEMC -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_OOO_Engine/OOO_Engine/Rename_unit/Register_translation_unit/Register_Address_Translation_unit/include/Parameters.h
r81 r82 51 51 public : ~Parameters () ; 52 52 53 public : std::stringmsg_error (void);53 public : Parameters_test msg_error (void); 54 54 55 public : std::string print (uint32_t depth);56 public : friend std::ostream& operator<< (std::ostream& output_stream,57 morpheo::behavioural::core::multi_ooo_engine::ooo_engine::rename_unit::register_translation_unit::register_address_translation_unit::Parameters & x);55 public : std::string print (uint32_t depth); 56 public : friend std::ostream& operator<< (std::ostream& output_stream, 57 morpheo::behavioural::core::multi_ooo_engine::ooo_engine::rename_unit::register_translation_unit::register_address_translation_unit::Parameters & x); 58 58 }; 59 59 -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_OOO_Engine/OOO_Engine/Rename_unit/Register_translation_unit/Register_Address_Translation_unit/include/Register_Address_Translation_unit.h
r81 r82 135 135 #endif 136 136 Parameters * param, 137 morpheo::behavioural::Tusage_t usage =USE_ALL137 morpheo::behavioural::Tusage_t usage 138 138 ); 139 139 public : ~Register_Address_Translation_unit (void); -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_OOO_Engine/OOO_Engine/Rename_unit/Register_translation_unit/Register_Address_Translation_unit/src/Parameters_msg_error.cpp
r81 r82 19 19 namespace register_address_translation_unit { 20 20 21 22 21 #undef FUNCTION 23 22 #define FUNCTION "Register_Address_Translation_unit::msg_error" 24 std::stringParameters::msg_error(void)23 Parameters_test Parameters::msg_error(void) 25 24 { 26 25 log_printf(FUNC,Register_Address_Translation_unit,FUNCTION,"Begin"); 27 26 28 std::string msg = "";27 Parameters_test test ("Register_Address_Translation_unit"); 29 28 30 return msg;29 return test; 31 30 32 31 log_printf(FUNC,Register_Address_Translation_unit,FUNCTION,"End"); -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_OOO_Engine/OOO_Engine/Rename_unit/Register_translation_unit/Register_translation_unit_Glue/SelfTest/src/test.cpp
r81 r82 7 7 */ 8 8 9 #define NB_ITERATION 256 10 #define CYCLE_MAX (128*NB_ITERATION) 11 9 12 #include "Behavioural/Core/Multi_OOO_Engine/OOO_Engine/Rename_unit/Register_translation_unit/Register_translation_unit_Glue/SelfTest/include/test.h" 10 13 #include "Common/include/Test.h" 11 14 #include "Behavioural/include/Allocation.h" 12 13 #define NB_ITERATION 25614 #define CYCLE_MAX (128*NB_ITERATION)15 16 #define LABEL(str...) \17 { \18 msg (_("{%d} "),static_cast<uint32_t>(sc_simulation_time())); \19 msg (str); \20 msg (_("\n")); \21 } while(0)22 23 #define SC_START(cycle_offset) \24 do \25 { \26 /*cout << "SC_START (begin)" << endl;*/ \27 \28 uint32_t cycle_current = static_cast<uint32_t>(sc_simulation_time()); \29 if (cycle_offset != 0) \30 { \31 cout << "##########[ cycle "<< cycle_current+cycle_offset << " ]" << endl; \32 } \33 \34 if (cycle_current > CYCLE_MAX) \35 { \36 TEST_KO("Maximal cycles Reached"); \37 } \38 \39 sc_start(cycle_offset); \40 \41 /*cout << "SC_START (end )" << endl;*/ \42 } while(0)43 15 44 16 void test (string name, … … 51 23 #endif 52 24 53 Register_translation_unit_Glue * _Register_translation_unit_Glue = new Register_translation_unit_Glue (name.c_str(), 25 Register_translation_unit_Glue * _Register_translation_unit_Glue = new Register_translation_unit_Glue 26 (name.c_str(), 54 27 #ifdef STATISTICS 55 _parameters_statistics, 56 #endif 57 _param); 28 _parameters_statistics, 29 #endif 30 _param, 31 USE_ALL); 58 32 59 33 #ifdef SYSTEMC -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_OOO_Engine/OOO_Engine/Rename_unit/Register_translation_unit/Register_translation_unit_Glue/include/Parameters.h
r81 r82 35 35 public : ~Parameters () ; 36 36 37 public : std::stringmsg_error (void);37 public : Parameters_test msg_error (void); 38 38 39 public : std::string print (uint32_t depth);40 public : friend std::ostream& operator<< (std::ostream& output_stream,41 morpheo::behavioural::core::multi_ooo_engine::ooo_engine::rename_unit::register_translation_unit::register_translation_unit_glue::Parameters & x);39 public : std::string print (uint32_t depth); 40 public : friend std::ostream& operator<< (std::ostream& output_stream, 41 morpheo::behavioural::core::multi_ooo_engine::ooo_engine::rename_unit::register_translation_unit::register_translation_unit_glue::Parameters & x); 42 42 }; 43 43 -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_OOO_Engine/OOO_Engine/Rename_unit/Register_translation_unit/Register_translation_unit_Glue/include/Register_translation_unit_Glue.h
r81 r82 107 107 #endif 108 108 Parameters * param, 109 morpheo::behavioural::Tusage_t usage =USE_ALL109 morpheo::behavioural::Tusage_t usage 110 110 ); 111 111 public : ~Register_translation_unit_Glue (void); -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_OOO_Engine/OOO_Engine/Rename_unit/Register_translation_unit/Register_translation_unit_Glue/src/Parameters_msg_error.cpp
r81 r82 22 22 #undef FUNCTION 23 23 #define FUNCTION "Register_translation_unit_Glue::msg_error" 24 std::stringParameters::msg_error(void)24 Parameters_test Parameters::msg_error(void) 25 25 { 26 26 log_printf(FUNC,Register_translation_unit_Glue,FUNCTION,"Begin"); 27 27 28 std::string msg = "";28 Parameters_test test ("Register_translation_unit_Glue"); 29 29 30 return msg;30 return test; 31 31 32 32 log_printf(FUNC,Register_translation_unit_Glue,FUNCTION,"End"); -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_OOO_Engine/OOO_Engine/Rename_unit/Register_translation_unit/SelfTest/src/test.cpp
r81 r82 7 7 */ 8 8 9 #define NB_ITERATION 1 10 #define CYCLE_MAX (128*NB_ITERATION) 11 9 12 #include "Behavioural/Core/Multi_OOO_Engine/OOO_Engine/Rename_unit/Register_translation_unit/SelfTest/include/test.h" 10 13 #include "Common/include/Test.h" 11 14 #include "Behavioural/include/Allocation.h" 12 13 #define NB_ITERATION 114 #define CYCLE_MAX (128*NB_ITERATION)15 16 #define LABEL(str...) \17 { \18 msg (_("{%d} "),static_cast<uint32_t>(sc_simulation_time())); \19 msg (str); \20 msg (_("\n")); \21 } while(0)22 23 #define SC_START(cycle_offset) \24 do \25 { \26 /*cout << "SC_START (begin)" << endl;*/ \27 \28 uint32_t cycle_current = static_cast<uint32_t>(sc_simulation_time()); \29 if (cycle_offset != 0) \30 { \31 cout << "##########[ cycle "<< cycle_current+cycle_offset << " ]" << endl; \32 } \33 \34 if (cycle_current > CYCLE_MAX) \35 { \36 TEST_KO("Maximal cycles Reached"); \37 } \38 \39 sc_start(cycle_offset); \40 \41 /*cout << "SC_START (end )" << endl;*/ \42 } while(0)43 15 44 16 void test (string name, … … 51 23 #endif 52 24 53 Register_translation_unit * _Register_translation_unit = new Register_translation_unit (name.c_str(), 25 Register_translation_unit * _Register_translation_unit = new Register_translation_unit 26 (name.c_str(), 54 27 #ifdef STATISTICS 55 _parameters_statistics, 56 #endif 57 _param); 28 _parameters_statistics, 29 #endif 30 _param, 31 USE_ALL); 58 32 59 33 #ifdef SYSTEMC -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_OOO_Engine/OOO_Engine/Rename_unit/Register_translation_unit/Stat_List_unit/SelfTest/src/test.cpp
r81 r82 7 7 */ 8 8 9 #define NB_ITERATION 1 10 #define CYCLE_MAX (128*NB_ITERATION) 11 9 12 #include "Behavioural/Core/Multi_OOO_Engine/OOO_Engine/Rename_unit/Register_translation_unit/Stat_List_unit/SelfTest/include/test.h" 10 13 #include "Common/include/Test.h" 11 14 #include "Behavioural/include/Allocation.h" 12 15 #include <list> 13 14 #define NB_ITERATION 115 #define CYCLE_MAX (128*NB_ITERATION)16 17 #define LABEL(str...) \18 { \19 msg (_("{%d} "),static_cast<uint32_t>(sc_simulation_time())); \20 msg (str); \21 msg (_("\n")); \22 } while(0)23 24 #define SC_START(cycle_offset) \25 do \26 { \27 /*cout << "SC_START (begin)" << endl;*/ \28 \29 uint32_t cycle_current = static_cast<uint32_t>(sc_simulation_time()); \30 if (cycle_offset != 0) \31 { \32 cout << "##########[ cycle "<< cycle_current+cycle_offset << " ]" << endl; \33 } \34 \35 if (cycle_current > CYCLE_MAX) \36 { \37 TEST_KO("Maximal cycles Reached"); \38 } \39 \40 sc_start(cycle_offset); \41 \42 /*cout << "SC_START (end )" << endl;*/ \43 } while(0)44 16 45 17 … … 62 34 #endif 63 35 64 Stat_List_unit * _Stat_List_unit = new Stat_List_unit (name.c_str(), 36 Stat_List_unit * _Stat_List_unit = new Stat_List_unit 37 (name.c_str(), 65 38 #ifdef STATISTICS 66 39 _parameters_statistics, 67 40 #endif 68 _param); 41 _param, 42 USE_ALL); 69 43 70 44 #ifdef SYSTEMC -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_OOO_Engine/OOO_Engine/Rename_unit/Register_translation_unit/Stat_List_unit/include/Parameters.h
r81 r82 68 68 public : ~Parameters () ; 69 69 70 public : std::stringmsg_error (void);70 public : Parameters_test msg_error (void); 71 71 72 public : std::string print (uint32_t depth);73 public : friend std::ostream& operator<< (std::ostream& output_stream,74 morpheo::behavioural::core::multi_ooo_engine::ooo_engine::rename_unit::register_translation_unit::stat_list_unit::Parameters & x);72 public : std::string print (uint32_t depth); 73 public : friend std::ostream& operator<< (std::ostream& output_stream, 74 morpheo::behavioural::core::multi_ooo_engine::ooo_engine::rename_unit::register_translation_unit::stat_list_unit::Parameters & x); 75 75 }; 76 76 -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_OOO_Engine/OOO_Engine/Rename_unit/Register_translation_unit/Stat_List_unit/include/Stat_List_unit.h
r81 r82 136 136 #endif 137 137 Parameters * param, 138 morpheo::behavioural::Tusage_t usage =USE_ALL138 morpheo::behavioural::Tusage_t usage 139 139 ); 140 140 public : ~Stat_List_unit (void); -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_OOO_Engine/OOO_Engine/Rename_unit/Register_translation_unit/Stat_List_unit/src/Parameters_msg_error.cpp
r81 r82 22 22 #undef FUNCTION 23 23 #define FUNCTION "Stat_List_unit::msg_error" 24 std::stringParameters::msg_error(void)24 Parameters_test Parameters::msg_error(void) 25 25 { 26 26 log_printf(FUNC,Stat_List_unit,FUNCTION,"Begin"); 27 27 28 std::string msg = "";28 Parameters_test test("Stat_List_unit"); 29 29 30 30 if (not is_multiple(_nb_bank, _nb_reg_free)) 31 msg += " - nb_bank must be a multiple of nb_reg_free.\n";31 test.error(_("nb_bank must be a multiple of nb_reg_free.\n")); 32 32 33 33 if (_nb_general_register < _nb_gpr_use_init) 34 msg += " - the number of physical general register is insuffisant. (you need less "+toString(_nb_gpr_use_init)+" registers.\n";34 test.error(toString(_("the number of physical general register is insuffisant. (you need less %d registers.\n"),_nb_gpr_use_init)); 35 35 36 36 if (_nb_special_register < _nb_spr_use_init) 37 msg += " - the number of physical special register is insuffisant. (you need less "+toString(_nb_spr_use_init)+" registers.\n";37 test.error(toString(_("the number of physical special register is insuffisant. (you need less %d registers.\n"),_nb_spr_use_init)); 38 38 39 39 if (not is_power2(_nb_general_register)) 40 msg += " - the number of physical general register must be a power of 2.\n";40 test.error(_("the number of physical general register must be a power of 2.\n")); 41 41 42 42 if (not is_power2(_nb_special_register)) 43 msg += " - the number of physical special register must be a power of 2.\n";43 test.error(_("the number of physical special register must be a power of 2.\n")); 44 44 45 45 if (not is_power2(_nb_bank)) 46 msg += " - the number of bank must be a power of 2.\n";46 test.error(_("the number of bank must be a power of 2.\n")); 47 47 48 return msg;48 return test; 49 49 50 50 log_printf(FUNC,Stat_List_unit,FUNCTION,"End"); -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_OOO_Engine/OOO_Engine/Rename_unit/Register_translation_unit/include/Parameters.h
r81 r82 66 66 public : ~Parameters () ; 67 67 68 public : std::stringmsg_error (void);68 public : Parameters_test msg_error (void); 69 69 70 public : std::string print (uint32_t depth);71 public : friend std::ostream& operator<< (std::ostream& output_stream,72 morpheo::behavioural::core::multi_ooo_engine::ooo_engine::rename_unit::register_translation_unit::Parameters & x);70 public : std::string print (uint32_t depth); 71 public : friend std::ostream& operator<< (std::ostream& output_stream, 72 morpheo::behavioural::core::multi_ooo_engine::ooo_engine::rename_unit::register_translation_unit::Parameters & x); 73 73 }; 74 74 -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_OOO_Engine/OOO_Engine/Rename_unit/Register_translation_unit/include/Register_translation_unit.h
r81 r82 155 155 #endif 156 156 Parameters * param, 157 morpheo::behavioural::Tusage_t usage =USE_ALL157 morpheo::behavioural::Tusage_t usage 158 158 ); 159 159 public : ~Register_translation_unit (void); -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_OOO_Engine/OOO_Engine/Rename_unit/Register_translation_unit/src/Parameters_msg_error.cpp
r81 r82 21 21 #undef FUNCTION 22 22 #define FUNCTION "Register_translation_unit::msg_error" 23 std::stringParameters::msg_error(void)23 Parameters_test Parameters::msg_error(void) 24 24 { 25 25 log_printf(FUNC,Register_translation_unit,FUNCTION,"Begin"); 26 26 27 std::string msg = "";27 Parameters_test test("Register_translation_unit"); 28 28 29 return msg;29 return test; 30 30 31 31 log_printf(FUNC,Register_translation_unit,FUNCTION,"End"); -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_OOO_Engine/OOO_Engine/Rename_unit/Register_translation_unit/src/Register_translation_unit_allocation.cpp
r81 r82 137 137 ,param_statistics 138 138 #endif 139 ,_param->_param_dependency_checking_unit); 139 ,_param->_param_dependency_checking_unit 140 ,_usage); 140 141 141 142 _component->set_component (_component_dependency_checking_unit->_component … … 155 156 ,param_statistics 156 157 #endif 157 ,_param->_param_free_list_unit); 158 ,_param->_param_free_list_unit 159 ,_usage); 158 160 159 161 _component->set_component (_component_free_list_unit->_component … … 173 175 ,param_statistics 174 176 #endif 175 ,_param->_param_register_address_translation_unit); 177 ,_param->_param_register_address_translation_unit 178 ,_usage); 176 179 177 180 _component->set_component (_component_register_address_translation_unit->_component … … 191 194 ,param_statistics 192 195 #endif 193 ,_param->_param_stat_list_unit); 196 ,_param->_param_stat_list_unit 197 ,_usage); 194 198 195 199 _component->set_component (_component_stat_list_unit->_component … … 209 213 ,param_statistics 210 214 #endif 211 ,_param->_param_register_translation_unit_glue); 215 ,_param->_param_register_translation_unit_glue 216 ,_usage); 212 217 213 218 _component->set_component (_component_register_translation_unit_glue->_component
Note: See TracChangeset
for help on using the changeset viewer.