Ignore:
Timestamp:
Dec 10, 2008, 7:31:39 PM (16 years ago)
Author:
rosiere
Message:

Almost complete design
with Test and test platform

Location:
trunk/IPs/systemC/processor/Morpheo/Script
Files:
1 deleted
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/IPs/systemC/processor/Morpheo/Script/SelfTest.sh

    r85 r88  
    1010declare    test_ok="Test OK";
    1111declare    tmp="${MORPHEO_HOME}/tmp/SelfTest";
    12 declare    path="${MORPHEO_TOPLEVEL}/IPs/systemC/processor/Morpheo/Behavioural";
     12declare    path="${MORPHEO_TOPLEVEL}/IPs/systemC/processor/Morpheo/";
    1313
    1414declare -a directory=(
    15     ""
    16     "Custom"
    17 
    18     "Generic/Counter"
    19     "Generic/Queue_Control"                                 
    20     "Generic/Queue"                                 
    21     "Generic/RegisterFile/RegisterFile_Monolithic" 
    22     "Generic/RegisterFile/RegisterFile_Multi_Banked"
    23     "Generic/RegisterFile"                         
    24     "Generic/Select/Select_Priority_Fixed"           
    25     "Generic/Select"                               
    26     "Generic/Shifter"                               
    27     "Generic/Sort"                                 
    28     "Generic/Victim/Victim_Pseudo_LRU"             
    29     "Generic/Victim"                               
    30 
    31     "Core/Multi_Execute_loop/Execute_loop/Multi_Execute_unit/Execute_unit/Functionnal_unit/Operation"
    32     "Core/Multi_Execute_loop/Execute_loop/Multi_Execute_unit/Execute_unit/Functionnal_unit"
    33     "Core/Multi_Execute_loop/Execute_loop/Multi_Execute_unit/Execute_unit/Load_store_unit"
    34     "Core/Multi_Execute_loop/Execute_loop/Multi_Execute_unit/Execute_unit"
    35     "Core/Multi_Execute_loop/Execute_loop/Multi_Execute_unit"
    36     "Core/Multi_Execute_loop/Execute_loop/Multi_Read_unit/Read_unit/Read_queue"
    37     "Core/Multi_Execute_loop/Execute_loop/Multi_Read_unit/Read_unit/Reservation_station"
    38     "Core/Multi_Execute_loop/Execute_loop/Multi_Read_unit/Read_unit"
    39     "Core/Multi_Execute_loop/Execute_loop/Multi_Read_unit"
    40     "Core/Multi_Execute_loop/Execute_loop/Multi_Write_unit/Write_unit/Execute_queue"
    41     "Core/Multi_Execute_loop/Execute_loop/Multi_Write_unit/Write_unit/Write_queue"
    42     "Core/Multi_Execute_loop/Execute_loop/Multi_Write_unit/Write_unit"
    43     "Core/Multi_Execute_loop/Execute_loop/Multi_Write_unit"
    44     "Core/Multi_Execute_loop/Execute_loop/Network/Execution_unit_to_Write_unit"
    45     "Core/Multi_Execute_loop/Execute_loop/Network/Read_unit_to_Execution_unit"
    46     "Core/Multi_Execute_loop/Execute_loop/Network"
    47     "Core/Multi_Execute_loop/Execute_loop/Register_unit/Register_unit_Glue"
    48     "Core/Multi_Execute_loop/Execute_loop/Register_unit"
    49 #   "Core/Multi_Execute_loop/Execute_loop"
    50 #   "Core/Multi_Execute_loop"
    51 
    52     "Core/Multi_OOO_Engine/OOO_Engine/Rename_unit/Load_Store_pointer_unit"
    53     "Core/Multi_OOO_Engine/OOO_Engine/Rename_unit/Register_translation_unit/Dependency_checking_unit"
    54     "Core/Multi_OOO_Engine/OOO_Engine/Rename_unit/Register_translation_unit/Free_List_unit"
    55     "Core/Multi_OOO_Engine/OOO_Engine/Rename_unit/Register_translation_unit/Register_Address_Translation_unit"
    56     "Core/Multi_OOO_Engine/OOO_Engine/Rename_unit/Register_translation_unit/Register_translation_unit_Glue"
    57     "Core/Multi_OOO_Engine/OOO_Engine/Rename_unit/Register_translation_unit/Stat_List_unit"
    58     "Core/Multi_OOO_Engine/OOO_Engine/Rename_unit/Register_translation_unit"
    59     "Core/Multi_OOO_Engine/OOO_Engine/Rename_unit/Rename_queue"
    60     "Core/Multi_OOO_Engine/OOO_Engine/Rename_unit/Rename_select"
    61     "Core/Multi_OOO_Engine/OOO_Engine/Rename_unit"
    62     "Core/Multi_OOO_Engine/OOO_Engine"
    63     "Core/Multi_OOO_Engine"
     15    "Common"
     16
     17    "Behavioural"
     18    "Behavioural/Configuration"
     19    "Behavioural/Custom"
     20
     21    "Behavioural/Generic/Counter"
     22    "Behavioural/Generic/Priority"
     23    "Behavioural/Generic/Queue_Control"                                 
     24    "Behavioural/Generic/Queue"                                 
     25    "Behavioural/Generic/RegisterFile/RegisterFile_Monolithic" 
     26    "Behavioural/Generic/RegisterFile/RegisterFile_Multi_Banked"
     27    "Behavioural/Generic/RegisterFile"                         
     28    "Behavioural/Generic/Select/Select_Priority_Fixed"           
     29    "Behavioural/Generic/Select"                               
     30    "Behavioural/Generic/Shifter"                               
     31    "Behavioural/Generic/Sort"                                 
     32    "Behavioural/Generic/Victim/Victim_Pseudo_LRU"             
     33    "Behavioural/Generic/Victim"                               
     34
     35    "Behavioural/Core/Multi_Execute_loop/Execute_loop/Execute_loop_Glue"
     36    "Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Execute_unit/Execute_unit/Functionnal_unit/Operation"
     37    "Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Execute_unit/Execute_unit/Functionnal_unit"
     38    "Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Execute_unit/Execute_unit/Load_store_unit"
     39    "Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Execute_unit/Execute_unit"
     40    "Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Execute_unit"
     41    "Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Read_unit/Read_unit/Read_queue"
     42    "Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Read_unit/Read_unit/Reservation_station"
     43    "Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Read_unit/Read_unit"
     44    "Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Read_unit"
     45    "Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Write_unit/Write_unit/Execute_queue"
     46    "Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Write_unit/Write_unit/Write_queue"
     47    "Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Write_unit/Write_unit"
     48    "Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Write_unit"
     49    "Behavioural/Core/Multi_Execute_loop/Execute_loop/Network/Execution_unit_to_Write_unit"
     50    "Behavioural/Core/Multi_Execute_loop/Execute_loop/Network/Read_unit_to_Execution_unit"
     51    "Behavioural/Core/Multi_Execute_loop/Execute_loop/Network"
     52    "Behavioural/Core/Multi_Execute_loop/Execute_loop/Register_unit/Register_unit_Glue"
     53    "Behavioural/Core/Multi_Execute_loop/Execute_loop/Register_unit"
     54    "Behavioural/Core/Multi_Execute_loop/Execute_loop"
     55    "Behavioural/Core/Multi_Execute_loop"
     56
     57    "Behavioural/Core/Multi_OOO_Engine/OOO_Engine/Commit_unit"
     58    "Behavioural/Core/Multi_OOO_Engine/OOO_Engine/Issue_queue"
     59    "Behavioural/Core/Multi_OOO_Engine/OOO_Engine/OOO_Engine_Glue"
     60    "Behavioural/Core/Multi_OOO_Engine/OOO_Engine/Reexecute_unit"
     61    "Behavioural/Core/Multi_OOO_Engine/OOO_Engine/Rename_unit/Load_Store_pointer_unit"
     62    "Behavioural/Core/Multi_OOO_Engine/OOO_Engine/Rename_unit/Register_translation_unit/Dependency_checking_unit"
     63    "Behavioural/Core/Multi_OOO_Engine/OOO_Engine/Rename_unit/Register_translation_unit/Free_List_unit"
     64    "Behavioural/Core/Multi_OOO_Engine/OOO_Engine/Rename_unit/Register_translation_unit/Register_Address_Translation_unit"
     65    "Behavioural/Core/Multi_OOO_Engine/OOO_Engine/Rename_unit/Register_translation_unit/Register_translation_unit_Glue"
     66    "Behavioural/Core/Multi_OOO_Engine/OOO_Engine/Rename_unit/Register_translation_unit/Stat_List_unit"
     67    "Behavioural/Core/Multi_OOO_Engine/OOO_Engine/Rename_unit/Register_translation_unit"
     68    "Behavioural/Core/Multi_OOO_Engine/OOO_Engine/Rename_unit/Rename_unit_Glue"
     69    "Behavioural/Core/Multi_OOO_Engine/OOO_Engine/Rename_unit/Rename_select"
     70    "Behavioural/Core/Multi_OOO_Engine/OOO_Engine/Rename_unit"
     71    "Behavioural/Core/Multi_OOO_Engine/OOO_Engine/Special_Register_unit"
     72    "Behavioural/Core/Multi_OOO_Engine/OOO_Engine"
     73    "Behavioural/Core/Multi_OOO_Engine"
    6474   
    65     "Core/Multi_Front_end/Front_end/Context_State"
    66     "Core/Multi_Front_end/Front_end/Decod_unit/Decod/Instruction"
    67     "Core/Multi_Front_end/Front_end/Decod_unit/Decod"
    68     "Core/Multi_Front_end/Front_end/Decod_unit/Decod_queue"
    69     "Core/Multi_Front_end/Front_end/Decod_unit"
    70     "Core/Multi_Front_end/Front_end/Ifetch_unit/Address_management"
    71     "Core/Multi_Front_end/Front_end/Ifetch_unit/Ifetch_queue"
    72     "Core/Multi_Front_end/Front_end/Ifetch_unit/Ifetch_unit_Glue"
    73     "Core/Multi_Front_end/Front_end/Ifetch_unit"
    74     "Core/Multi_Front_end/Front_end/Prediction_unit/Branch_Target_Buffer/Branch_Target_Buffer_Glue"
    75     "Core/Multi_Front_end/Front_end/Prediction_unit/Branch_Target_Buffer/Branch_Target_Buffer_Register"
    76     "Core/Multi_Front_end/Front_end/Prediction_unit/Branch_Target_Buffer"
    77     "Core/Multi_Front_end/Front_end/Prediction_unit/Direction/Direction_Glue"
    78     "Core/Multi_Front_end/Front_end/Prediction_unit/Direction"
    79 #   "Core/Multi_Front_end/Front_end/Prediction_unit/Direction/Meta_Predictor/Meta_Predictor_Glue"
    80 #   "Core/Multi_Front_end/Front_end/Prediction_unit/Direction/Meta_Predictor/Two_Level_Branch_Predictor/Two_Level_Branch_Predictor_Glue"
    81 #   "Core/Multi_Front_end/Front_end/Prediction_unit/Direction/Meta_Predictor/Two_Level_Branch_Predictor/Branch_History_Table"
    82 #   "Core/Multi_Front_end/Front_end/Prediction_unit/Direction/Meta_Predictor/Two_Level_Branch_Predictor/Pattern_History_Table"
    83 #   "Core/Multi_Front_end/Front_end/Prediction_unit/Direction/Meta_Predictor/Two_Level_Branch_Predictor"
    84 #   "Core/Multi_Front_end/Front_end/Prediction_unit/Direction/Meta_Predictor"
    85     "Core/Multi_Front_end/Front_end/Prediction_unit/Prediction_unit_Glue"
    86     "Core/Multi_Front_end/Front_end/Prediction_unit/Return_Address_Stack"
    87     "Core/Multi_Front_end/Front_end/Prediction_unit/Update_Prediction_Table"
    88     "Core/Multi_Front_end/Front_end/Prediction_unit"
    89     "Core/Multi_Front_end/Front_end"
    90     "Core/Multi_Front_end"
    91 
     75    "Behavioural/Core/Multi_Front_end/Front_end/Context_State"
     76    "Behavioural/Core/Multi_Front_end/Front_end/Decod_unit/Decod/Instruction"
     77    "Behavioural/Core/Multi_Front_end/Front_end/Decod_unit/Decod"
     78    "Behavioural/Core/Multi_Front_end/Front_end/Decod_unit/Decod_queue"
     79    "Behavioural/Core/Multi_Front_end/Front_end/Decod_unit"
     80    "Behavioural/Core/Multi_Front_end/Front_end/Front_end_Glue"
     81    "Behavioural/Core/Multi_Front_end/Front_end/Ifetch_unit/Address_management"
     82    "Behavioural/Core/Multi_Front_end/Front_end/Ifetch_unit/Ifetch_queue"
     83    "Behavioural/Core/Multi_Front_end/Front_end/Ifetch_unit/Ifetch_unit_Glue"
     84    "Behavioural/Core/Multi_Front_end/Front_end/Ifetch_unit"
     85    "Behavioural/Core/Multi_Front_end/Front_end/Prediction_unit/Branch_Target_Buffer/Branch_Target_Buffer_Glue"
     86    "Behavioural/Core/Multi_Front_end/Front_end/Prediction_unit/Branch_Target_Buffer/Branch_Target_Buffer_Register"
     87    "Behavioural/Core/Multi_Front_end/Front_end/Prediction_unit/Branch_Target_Buffer"
     88    "Behavioural/Core/Multi_Front_end/Front_end/Prediction_unit/Direction/Direction_Glue"
     89    "Behavioural/Core/Multi_Front_end/Front_end/Prediction_unit/Direction"
     90#   "Behavioural/Core/Multi_Front_end/Front_end/Prediction_unit/Direction/Meta_Predictor/Meta_Predictor_Glue"
     91#   "Behavioural/Core/Multi_Front_end/Front_end/Prediction_unit/Direction/Meta_Predictor/Two_Level_Branch_Predictor/Two_Level_Branch_Predictor_Glue"
     92#   "Behavioural/Core/Multi_Front_end/Front_end/Prediction_unit/Direction/Meta_Predictor/Two_Level_Branch_Predictor/Branch_History_Table"
     93#   "Behavioural/Core/Multi_Front_end/Front_end/Prediction_unit/Direction/Meta_Predictor/Two_Level_Branch_Predictor/Pattern_History_Table"
     94#   "Behavioural/Core/Multi_Front_end/Front_end/Prediction_unit/Direction/Meta_Predictor/Two_Level_Branch_Predictor"
     95#   "Behavioural/Core/Multi_Front_end/Front_end/Prediction_unit/Direction/Meta_Predictor"
     96    "Behavioural/Core/Multi_Front_end/Front_end/Prediction_unit/Prediction_unit_Glue"
     97    "Behavioural/Core/Multi_Front_end/Front_end/Prediction_unit/Return_Address_Stack"
     98    "Behavioural/Core/Multi_Front_end/Front_end/Prediction_unit/Update_Prediction_Table"
     99    "Behavioural/Core/Multi_Front_end/Front_end/Prediction_unit"
     100    "Behavioural/Core/Multi_Front_end/Front_end"
     101    "Behavioural/Core/Multi_Front_end"
     102
     103    "Behavioural/Core/Icache_Access"
     104    "Behavioural/Core/Dcache_Access"
     105
     106    "Behavioural/Core/Core_Glue"
     107    "Behavioural/Core"
     108
     109    "TopLevel"
    92110    );
    93111                                           
     
    126144
    127145    if test ! -d ${tmp}; then
    128         mkdir ${tmp};
     146        mkdir -p ${tmp};
    129147    fi;
    130148
     
    212230
    213231                cd ${path}/${i};
    214                 make clean;
    215                 dir="SelfTest";
    216 
    217                 if test -d ${dir}; then
    218                     cd ${dir};
     232
     233                if test -f "Makefile"; then
    219234                    make clean;
    220                 else
    221                     echo "${component} have not SelfTest directory.";
    222                 fi;
    223                 cd ${pwd};
    224 
     235                    dir="SelfTest";
     236                   
     237                    if test -d ${dir}; then
     238                        cd ${dir};
     239                        make clean;
     240                    else
     241                        echo "${component} have not SelfTest directory.";
     242                    fi;
     243                    cd ${pwd};
     244                fi;
    225245            done;
    226246            ;;
  • trunk/IPs/systemC/processor/Morpheo/Script/version.sh

    r85 r88  
    77file_sed_src="${MORPHEO_TOPLEVEL}/IPs/systemC/processor/Morpheo/Behavioural/include/Version.h.sed";
    88file_sed_dest="${MORPHEO_TOPLEVEL}/IPs/systemC/processor/Morpheo/Behavioural/include/Version.h";
     9file_sed_script="/tmp/file_sed_script";
    910
    1011#-----[ usage ]---------------------------------------------
     
    4748            # +1 because is the next revision
    4849            revision=$(($(export LC_ALL=C; svnversion  | tr -d [:alpha:] | cut -d : -f 2) + 1));
    49    
    50             cat ${file_sed_src} |sed s/"@REVISION"/"${revision}"/ &> ${file_sed_dest};
    51    
     50            date_day=$(date +%d);
     51            date_month=$(date +%m);
     52            date_year=$(date +%Y);
     53           
     54            echo "s/\"@REVISION\"/\"${revision}\"/"     >  ${file_sed_script};
     55            echo "s/\"@DATE_DAY\"/\"${date_day}\"/"     >> ${file_sed_script};
     56            echo "s/\"@DATE_MONTH\"/\"${date_month}\"/" >> ${file_sed_script};
     57            echo "s/\"@DATE_YEAR\"/\"${date_year}\"/"   >> ${file_sed_script};
     58
     59            cat ${file_sed_src} |sed -f ${file_sed_script} &> ${file_sed_dest};
     60
     61            rm ${file_sed_script};
     62           
    5263            svn commit;
    5364
Note: See TracChangeset for help on using the changeset viewer.