Changeset 83 for trunk/IPs/systemC
- Timestamp:
- May 9, 2008, 8:00:21 PM (17 years ago)
- Location:
- trunk/IPs/systemC/processor/Morpheo
- Files:
-
- 95 added
- 17 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IPs/systemC/processor/Morpheo/Behavioural/Makefile.Common
r81 r83 2 2 # $Id$ 3 3 # 4 # [ 4 # [ Description ] 5 5 # 6 6 # Makefile … … 45 45 46 46 test_env : 47 @$(ECHO) "-------------------| $(ENTITY)"48 47 ifeq ($(origin MORPHEO_TOPLEVEL), undefined) 49 48 $(error "variable MORPHEO_TOPLEVEL is undefined"); … … 55 54 $(error "variable DIR_MORPHEO is undefined"); 56 55 endif 56 @$(ECHO) "-------------------| $(ENTITY)" 57 57 58 58 59 $(DIR_OBJ)/%.o : $(DIR_SRC)/%.cpp $(HEADERS) … … 68 69 common_clean : 69 70 @\ 70 $(ECHO) "Delete temporary files in directory "$(PWD);\71 $(ECHO) "Delete temporary files in directory $(PWD)";\ 71 72 $(RM) $(DIR_OBJ) \ 72 73 $(DIR_BIN) \ -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Makefile.Selftest
r82 r83 50 50 done; \ 51 51 if $(TEST) $$all_ok -eq 1; \ 52 then echo"-------------------| Test OK"; exit 0; \53 else echo"-------------------| Test KO"; exit 1; \52 then $(ECHO) "-------------------| Test OK"; exit 0; \ 53 else $(ECHO) "-------------------| Test KO"; exit 1; \ 54 54 fi; 55 55 -
trunk/IPs/systemC/processor/Morpheo/Behavioural/New_Component_vbe/SelfTest/include/test.h
r82 r83 11 11 #endif 12 12 13 #include <string> 14 #include <iostream> 15 #include <sys/time.h> 13 #define NB_ITERATION 1 14 #define CYCLE_MAX (1024*NB_ITERATION) 16 15 16 #include "Common/include/Test.h" 17 17 #include "Common/include/Time.h" 18 18 #include "Behavioural/@DIRECTORY/include/@COMPONENT.h" -
trunk/IPs/systemC/processor/Morpheo/Behavioural/New_Component_vbe/SelfTest/src/main.cpp
r82 r83 14 14 err (_("<Usage> %s name_instance list_params.\n"),argv[0]); 15 15 err (_("list_params is :\n")); 16 err (_(" * ()\n"));16 err (_(" * ()\n")); 17 17 18 18 exit (1); … … 31 31 32 32 string name = argv[x++]; 33 //const uint32_t size_data = atoi(argv[x++]);34 //const uint32_t nb_port = atoi(argv[x++]);35 33 36 34 int _return = EXIT_SUCCESS; … … 38 36 { 39 37 morpheo::behavioural::@NAMESPACE_USE::Parameters * param = new morpheo::behavioural::@NAMESPACE_USE::Parameters 40 (//size_data, 41 //nb_port 38 ( 42 39 ); 43 40 … … 51 48 _return = EXIT_FAILURE; 52 49 } 53 catch (...) 50 51 try 54 52 { 55 err (_("<%s> : This test must generate a error.\n"),name.c_str()); 53 if (_return == EXIT_SUCCESS) 54 TEST_OK("@COMPONENT : no error"); 55 else 56 TEST_KO("@COMPONENT : a lot of error"); 57 } 58 catch (morpheo::ErrorMorpheo & error) 59 { 60 msg (_("<%s> :\n%s"),name.c_str(), error.what ()); 56 61 _return = EXIT_FAILURE; 57 62 } -
trunk/IPs/systemC/processor/Morpheo/Behavioural/New_Component_vbe/SelfTest/src/test.cpp
r82 r83 7 7 */ 8 8 9 #define NB_ITERATION 110 #define CYCLE_MAX (128*NB_ITERATION)11 12 9 #include "Behavioural/@DIRECTORY/SelfTest/include/test.h" 13 #include "Common/include/Test.h"14 10 #include "Behavioural/include/Allocation.h" 15 11 -
trunk/IPs/systemC/processor/Morpheo/Behavioural/New_Component_vst/SelfTest/include/test.h
r82 r83 11 11 #endif 12 12 13 #define NB_ITERATION 1 14 #define CYCLE_MAX (1024*NB_ITERATION) 15 16 #include "Common/include/Test.h" 17 #include "Common/include/Time.h" 18 #include "Behavioural/@DIRECTORY/include/@COMPONENT.h" 19 13 20 #include <string> 14 21 #include <iostream> 15 22 #include <sys/time.h> 16 17 #include "Common/include/Time.h"18 #include "Behavioural/@DIRECTORY/include/@COMPONENT.h"19 23 20 24 using namespace std; -
trunk/IPs/systemC/processor/Morpheo/Behavioural/New_Component_vst/SelfTest/src/main.cpp
r82 r83 14 14 err (_("<Usage> %s name_instance list_params.\n"),argv[0]); 15 15 err (_("list_params is :\n")); 16 err (_(" * ()\n"));16 err (_(" * ()\n")); 17 17 18 18 exit (1); … … 31 31 32 32 string name = argv[x++]; 33 //const uint32_t size_data = atoi(argv[x++]);34 //const uint32_t nb_port = atoi(argv[x++]);35 33 36 34 int _return = EXIT_SUCCESS; … … 38 36 { 39 37 morpheo::behavioural::@NAMESPACE_USE::Parameters * param = new morpheo::behavioural::@NAMESPACE_USE::Parameters 40 (//size_data, 41 //nb_port 38 ( 42 39 ); 43 40 … … 51 48 _return = EXIT_FAILURE; 52 49 } 53 catch (...) 50 51 try 54 52 { 55 err (_("<%s> : This test must generate a error.\n"),name.c_str()); 53 if (_return == EXIT_SUCCESS) 54 TEST_OK("@COMPONENT : no error"); 55 else 56 TEST_KO("@COMPONENT : a lot of error"); 57 } 58 catch (morpheo::ErrorMorpheo & error) 59 { 60 msg (_("<%s> :\n%s"),name.c_str(), error.what ()); 56 61 _return = EXIT_FAILURE; 57 62 } -
trunk/IPs/systemC/processor/Morpheo/Behavioural/New_Component_vst/SelfTest/src/test.cpp
r82 r83 7 7 */ 8 8 9 #define NB_ITERATION 110 #define CYCLE_MAX (128*NB_ITERATION)11 12 9 #include "Behavioural/@DIRECTORY/SelfTest/include/test.h" 13 #include "Common/include/Test.h"14 10 #include "Behavioural/include/Allocation.h" 15 11 -
trunk/IPs/systemC/processor/Morpheo/Behavioural/New_Component_vst/src/New_Component_allocation.cpp
r82 r83 25 25 ) 26 26 { 27 log_begin @COMPONENT,FUNCTION);27 log_begin(@COMPONENT,FUNCTION); 28 28 29 29 _component = new Component (_usage); -
trunk/IPs/systemC/processor/Morpheo/Behavioural/include/Debug_component.h
r82 r83 41 41 # define DEBUG_Multi_Front_end false 42 42 # define DEBUG_Front_end false 43 # define DEBUG_Context_State true 43 44 # define DEBUG_Decod_unit false 44 45 # define DEBUG_Decod false 45 # define DEBUG_Decod_queue true46 # define DEBUG_Decod_queue false 46 47 # define DEBUG_Ifetch_unit false 47 48 # define DEBUG_Address_management false 48 49 # define DEBUG_Ifetch_queue false 49 50 # define DEBUG_Ifetch_unit_Glue false 50 # define DEBUG_Prediction_unit true51 # define DEBUG_Prediction_unit false 51 52 # define DEBUG_Branch_Target_Buffer false 52 53 # define DEBUG_Branch_Target_Buffer_Glue false … … 62 63 # define DEBUG_Prediction_unit_Glue false 63 64 # define DEBUG_Return_Address_Stack false 64 # define DEBUG_Update_Prediction_Table true65 # define DEBUG_Update_Prediction_Table false 65 66 # define DEBUG_Multi_OOO_Engine false 66 67 # define DEBUG_OOO_Engine false … … 73 74 # define DEBUG_Register_translation_unit_Glue false 74 75 # define DEBUG_Stat_List_unit false 75 //#define DEBUG_Rename_queue true76 //#define DEBUG_Rename_queue false 76 77 # define DEBUG_Rename_select false 77 78 #endif -
trunk/IPs/systemC/processor/Morpheo/Behavioural/include/Version.h
r82 r83 6 6 #define MORPHEO_MAJOR_VERSION 0 7 7 #define MORPHEO_MINOR_VERSION 2 8 #define MORPHEO_REVISION 8 28 #define MORPHEO_REVISION 83 9 9 10 10 // Identification : MORPHEO_MAJOR_VERSION.MORPHEO_MINOR_VERSION.MORPHEO_REVISION -
trunk/IPs/systemC/processor/Morpheo/Behavioural/src/XML_get_body.cpp
r81 r83 27 27 std::string tabulation = indent(depth); 28 28 29 30 for (size_t pos=body.find('\n',0); pos<body.length()-1; pos=body.find('\n',++pos))29 // body.insert(0,tabulation); 30 for (size_t pos=body.find('\n',0); (pos<body.length()-1); pos=body.find('\n',++pos)) 31 31 body.insert(++pos,tabulation); 32 32 -
trunk/IPs/systemC/processor/Morpheo/Common/include/Debug.h
r82 r83 128 128 { \ 129 129 if (x == NULL) \ 130 err(_("%s File %s, Line %d, this pointeur is null "),MSG_ERROR,__FILE__,__LINE__); \130 err(_("%s File %s, Line %d, this pointeur is null\n"),MSG_ERROR,__FILE__,__LINE__); \ 131 131 } \ 132 132 while (0) -
trunk/IPs/systemC/processor/Morpheo/Common/include/Message.h
r82 r83 28 28 do \ 29 29 { \ 30 fprintf(stderr,"%s ",MSG_ERROR); \31 30 fprintf(stderr,arg); \ 32 31 } while (0) -
trunk/IPs/systemC/processor/Morpheo/Common/include/Test.h
r81 r83 25 25 { 26 26 std::cerr << "[" << num_test << "] : Test KO" 27 << "\tline " << line 28 << " * Localisation" 29 << " - File : " << file 30 << " - Line : " << line 31 << " * Expression is different" 32 << " - exp1 : "+morpheo::toString(exp1) 33 << " - exp2 : "+morpheo::toString(exp2) 27 << "\tline " << line << std::endl 28 << " * Localisation" << std::endl 29 << " - File : " << file << std::endl 30 << " - Line : " << line << std::endl 31 << " * Expression is different" << std::endl 32 << " - exp1 : "+morpheo::toString(exp1) << std::endl 33 << " - exp2 : "+morpheo::toString(exp2) << std::endl; 34 34 35 35 test_ko_error (); … … 86 86 #define TEST_KO(str...) do {fprintf(stdout,str); fprintf(stdout,"\n"); morpheo::test_ko(__FILE__,__LINE__);} while(0) 87 87 88 89 88 #define LABEL(str...) \ 90 89 { \ -
trunk/IPs/systemC/processor/Morpheo/Script/SelfTest.sh
r82 r83 13 13 declare -a directory=( 14 14 "" 15 "Custom" 16 15 17 "Generic/Counter" 16 18 "Generic/Queue_Control" … … 26 28 "Generic/Victim" 27 29 30 "Core/Multi_Execute_loop/Execute_loop/Multi_Execute_unit/Execute_unit/Functionnal_unit/Operation" 28 31 "Core/Multi_Execute_loop/Execute_loop/Multi_Execute_unit/Execute_unit/Functionnal_unit" 29 32 "Core/Multi_Execute_loop/Execute_loop/Multi_Execute_unit/Execute_unit/Load_store_unit" … … 59 62 "Core/Multi_OOO_Engine" 60 63 64 "Core/Multi_Front_end/Front_end/Context_State" 65 "Core/Multi_Front_end/Front_end/Decod_unit/Decod/Instruction" 61 66 "Core/Multi_Front_end/Front_end/Decod_unit/Decod" 62 67 "Core/Multi_Front_end/Front_end/Decod_unit/Decod_queue" -
trunk/IPs/systemC/processor/Morpheo/Script/version.sh
r82 r83 10 10 function usage () 11 11 { 12 echo "Usage : ${0} action"; 13 echo "Arguments : "; 14 echo " * action"; 15 echo " * add : add all file unpresent in project and set proprity"; 16 echo " * commit : update revision number and commit"; 17 echo " * help : print this message"; 18 echo "Note :"; 12 echo "Usage : ${0} action"; 13 echo "Arguments : "; 14 echo " * action"; 15 echo " * add : add all file unpresent in project and set proprity"; 16 echo " * commit : update revision number and commit"; 17 echo " * status : print only locally modified items"; 18 echo " * status_new : print only locally new items"; 19 echo " * help : print this message"; 20 echo "Note :"; 19 21 echo " * Morpheo's environnement must be positionned."; 20 22 exit; … … 64 66 cd ${pwd}; 65 67 ;; 68 69 "status") 70 cd ${MORPHEO_TOPLEVEL}; 71 72 svn status; 73 74 cd ${pwd}; 75 ;; 76 77 "status_new") 78 cd ${MORPHEO_TOPLEVEL}; 79 80 svn status | grep '?'; 81 82 cd ${pwd}; 83 ;; 84 66 85 "help") 67 86 usage ${*};
Note: See TracChangeset
for help on using the changeset viewer.