Changeset 131 for trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Register_unit/SelfTest
- Timestamp:
- Jul 8, 2009, 8:40:08 PM (15 years ago)
- Location:
- trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Register_unit/SelfTest
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Register_unit/SelfTest/include/test.h
r88 r131 15 15 #include <sys/time.h> 16 16 17 #define NB_ITERATION 128 18 #define CYCLE_MAX (128*NB_ITERATION) 19 20 #include "Common/include/Time.h" 21 #include "Common/include/Test.h" 17 22 #include "Behavioural/Core/Multi_Execute_loop/Execute_loop/Register_unit/include/Register_unit.h" 18 #include "Common/include/Time.h"19 23 20 24 using namespace std; -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Register_unit/SelfTest/src/main.cpp
r88 r131 85 85 _nb_inst_retire_rob [i] = atoi(argv[x++]); 86 86 87 int _return = EXIT_SUCCESS; 87 88 try 88 89 { … … 114 115 catch (morpheo::ErrorMorpheo & error) 115 116 { 116 cout << "<" << name << "> : " << error.what (); 117 exit (EXIT_FAILURE); 118 } 119 catch (...) 120 { 121 cerr << "<" << name << "> : This test must generate a error" << endl; 122 exit (EXIT_FAILURE); 117 msg (_("<%s> :\n%s"),name.c_str(), error.what ()); 118 _return = EXIT_FAILURE; 123 119 } 124 120 125 return (EXIT_SUCCESS); 121 try 122 { 123 if (_return == EXIT_SUCCESS) 124 TEST_OK("OOO_Engine : no error"); 125 else 126 TEST_KO("OOO_Engine : a lot of error"); 127 } 128 catch (morpheo::ErrorMorpheo & error) 129 { 130 // msg (_("<%s> :\n%s"),name.c_str(), error.what ()); 131 _return = EXIT_FAILURE; 132 } 133 134 return (_return); 126 135 } 127 136 -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Register_unit/SelfTest/src/test.cpp
r128 r131 7 7 */ 8 8 9 #define NB_ITERATION 110 #define CYCLE_MAX (10240*NB_ITERATION)11 12 9 #include "Behavioural/Core/Multi_Execute_loop/Execute_loop/Register_unit/SelfTest/include/test.h" 13 #include "Common/include/Test.h"14 10 15 11 void test (string name, … … 22 18 #endif 23 19 24 _model.set_model(NAME_Register_unit ,MODEL_SYSTEMC, true); 25 _model.set_model(NAME_RegisterFile ,MODEL_SYSTEMC, true); 26 _model.set_model(NAME_RegisterFile_Monolithic ,MODEL_SYSTEMC, true); 27 _model.set_model(NAME_RegisterFile_Multi_Banked,MODEL_SYSTEMC, true); 28 _model.set_model(NAME_Register_unit_Glue ,MODEL_SYSTEMC, true); 20 _model.set_model(MODEL_SYSTEMC,true); 29 21 30 22 Tusage_t _usage = USE_ALL;
Note: See TracChangeset
for help on using the changeset viewer.