Changeset 101 for trunk/Platforms/Test


Ignore:
Timestamp:
Jan 15, 2009, 6:19:08 PM (16 years ago)
Author:
rosiere
Message:

1) Add soc test
2) fix bug (Pc management, Decod and execute, Update prediction ...)

Location:
trunk/Platforms/Test
Files:
22 deleted
28 edited

Legend:

Unmodified
Added
Removed
  • trunk/Platforms/Test/Makefile

    r98 r101  
    3535DIR_OBJ                         =       $(DIR_TMP)/obj
    3636DIR_BIN                         =       $(DIR_TMP)/bin
    37 DIR_LOG                         =       ./log
     37DIR_LOG                         =       $(DIR_TMP)/log
    3838DIR_DATA                        =       ./data
    3939DIR_SOFT                        =       $(MORPHEO_TOPLEVEL)/Softwares
     
    115115                                fi;                                                     \
    116116                                $(MAKE) $$logs;                                         \
    117                                 declare -i have_test_ko=0;                              \
     117                                declare -i nb_test=0;                                   \
     118                                declare -i nb_test_ko=0;                                \
    118119                                for log in $$logs; do                                   \
    119120                                        $(GREP) -q "Test OK" $$log;                     \
     
    122123                                        declare -i test_ko=$$?;                         \
    123124                                        if $(TEST) $$test_ko -eq 0 -o $$test_ok -ne 0;  \
    124                                         then have_test_ko=1;                            \
     125                                        then nb_test_ko=$$(($${nb_test_ko} + 1));       \
    125126                                        fi;                                             \
     127                                        nb_test=$$(($${nb_test} + 1));                  \
    126128                                done;                                                   \
    127                                 if $(TEST) $$have_test_ko -ne 0;                        \
    128                                 then $(ECHO) "-------------------| Test KO"; exit 1;    \
     129                                if $(TEST) $${nb_test_ko} -ne 0;                        \
     130                                then $(ECHO) "-------------------| Test KO !!! ($${nb_test_ko}/$${nb_test})"; exit 1;   \
    129131                                else $(ECHO) "-------------------| Test OK"; exit 0;    \
    130132                                fi;
    131133
    132134execute                         : run
    133 
    134135
    135136$(DIR_LOG)/%.log                : %.cfg
     
    146147                                declare timing=$$($(GREP) -h "Timing" $$log);           \
    147148                                if $(TEST) $$test_ko -ne 0 -a $$test_ok -eq 0;          \
    148                                 then $(ECHO) -e "                     $$file ... OK\t$$timing"; \
    149                                 else $(ECHO) -e "                     $$file ... KO\t$$timing"; \
    150                                      have_test_ko=1;                                    \
     149                                then $(ECHO) -e "                     $$file ... OK    \t$$timing";     \
     150                                else $(ECHO) -e "                     $$file ... KO !!!\t$$timing";     \
    151151                                fi;                                                     \
    152152
  • trunk/Platforms/Test/data/Test_000_000.cfg

    r98 r101  
    11../../IPs/systemC/processor/Morpheo/Files/Morpheo.sim
    22../../IPs/systemC/processor/Morpheo/Files/Morpheo.gen
    3 ../../IPs/systemC/processor/Morpheo/Files/Instance_min.cfg
     3../../IPs/systemC/processor/Morpheo/Files/Instance_debug.cfg
    44../../Softwares/Test/Test_000/bin/soft.x
    550
  • trunk/Platforms/Test/data/Test_000_001.cfg

    r98 r101  
    11../../IPs/systemC/processor/Morpheo/Files/Morpheo.sim
    22../../IPs/systemC/processor/Morpheo/Files/Morpheo.gen
    3 ../../IPs/systemC/processor/Morpheo/Files/Instance_min.cfg
     3../../IPs/systemC/processor/Morpheo/Files/Instance_debug.cfg
    44../../Softwares/Test/Test_001/bin/soft.x
    550
  • trunk/Platforms/Test/data/Test_000_002.cfg

    r98 r101  
    11../../IPs/systemC/processor/Morpheo/Files/Morpheo.sim
    22../../IPs/systemC/processor/Morpheo/Files/Morpheo.gen
    3 ../../IPs/systemC/processor/Morpheo/Files/Instance_min.cfg
     3../../IPs/systemC/processor/Morpheo/Files/Instance_debug.cfg
    44../../Softwares/Test/Test_002/bin/soft.x
    550
  • trunk/Platforms/Test/data/Test_000_003.cfg

    r98 r101  
    11../../IPs/systemC/processor/Morpheo/Files/Morpheo.sim
    22../../IPs/systemC/processor/Morpheo/Files/Morpheo.gen
    3 ../../IPs/systemC/processor/Morpheo/Files/Instance_min.cfg
     3../../IPs/systemC/processor/Morpheo/Files/Instance_debug.cfg
    44../../Softwares/Test/Test_003/bin/soft.x
    550
  • trunk/Platforms/Test/data/Test_000_004.cfg

    r98 r101  
    11../../IPs/systemC/processor/Morpheo/Files/Morpheo.sim
    22../../IPs/systemC/processor/Morpheo/Files/Morpheo.gen
    3 ../../IPs/systemC/processor/Morpheo/Files/Instance_min.cfg
     3../../IPs/systemC/processor/Morpheo/Files/Instance_debug.cfg
    44../../Softwares/Test/Test_004/bin/soft.x
    550
  • trunk/Platforms/Test/data/Test_000_005.cfg

    r98 r101  
    11../../IPs/systemC/processor/Morpheo/Files/Morpheo.sim
    22../../IPs/systemC/processor/Morpheo/Files/Morpheo.gen
    3 ../../IPs/systemC/processor/Morpheo/Files/Instance_min.cfg
     3../../IPs/systemC/processor/Morpheo/Files/Instance_debug.cfg
    44../../Softwares/Test/Test_005/bin/soft.x
    550
  • trunk/Platforms/Test/data/Test_000_006.cfg

    r98 r101  
    11../../IPs/systemC/processor/Morpheo/Files/Morpheo.sim
    22../../IPs/systemC/processor/Morpheo/Files/Morpheo.gen
    3 ../../IPs/systemC/processor/Morpheo/Files/Instance_min.cfg
     3../../IPs/systemC/processor/Morpheo/Files/Instance_debug.cfg
    44../../Softwares/Test/Test_006/bin/soft.x
    550
  • trunk/Platforms/Test/data/Test_000_007.cfg

    r98 r101  
    11../../IPs/systemC/processor/Morpheo/Files/Morpheo.sim
    22../../IPs/systemC/processor/Morpheo/Files/Morpheo.gen
    3 ../../IPs/systemC/processor/Morpheo/Files/Instance_min.cfg
     3../../IPs/systemC/processor/Morpheo/Files/Instance_debug.cfg
    44../../Softwares/Test/Test_007/bin/soft.x
    550
  • trunk/Platforms/Test/data/Test_000_008.cfg

    r98 r101  
    11../../IPs/systemC/processor/Morpheo/Files/Morpheo.sim
    22../../IPs/systemC/processor/Morpheo/Files/Morpheo.gen
    3 ../../IPs/systemC/processor/Morpheo/Files/Instance_min.cfg
     3../../IPs/systemC/processor/Morpheo/Files/Instance_debug.cfg
    44../../Softwares/Test/Test_008/bin/soft.x
    550
  • trunk/Platforms/Test/data/Test_000_009.cfg

    r98 r101  
    11../../IPs/systemC/processor/Morpheo/Files/Morpheo.sim
    22../../IPs/systemC/processor/Morpheo/Files/Morpheo.gen
    3 ../../IPs/systemC/processor/Morpheo/Files/Instance_min.cfg
     3../../IPs/systemC/processor/Morpheo/Files/Instance_debug.cfg
    44../../Softwares/Test/Test_009/bin/soft.x
    550
  • trunk/Platforms/Test/data/Test_000_010.cfg

    r100 r101  
    11../../IPs/systemC/processor/Morpheo/Files/Morpheo.sim
    22../../IPs/systemC/processor/Morpheo/Files/Morpheo.gen
    3 ../../IPs/systemC/processor/Morpheo/Files/Instance_min.cfg
     3../../IPs/systemC/processor/Morpheo/Files/Instance_debug.cfg
    44../../Softwares/Test/Test_010/bin/soft.x
    550
  • trunk/Platforms/Test/data/Test_000_011.cfg

    r100 r101  
    11../../IPs/systemC/processor/Morpheo/Files/Morpheo.sim
    22../../IPs/systemC/processor/Morpheo/Files/Morpheo.gen
    3 ../../IPs/systemC/processor/Morpheo/Files/Instance_min.cfg
     3../../IPs/systemC/processor/Morpheo/Files/Instance_debug.cfg
    44../../Softwares/Test/Test_011/bin/soft.x
    550
  • trunk/Platforms/Test/data/Test_000_012.cfg

    r100 r101  
    11../../IPs/systemC/processor/Morpheo/Files/Morpheo.sim
    22../../IPs/systemC/processor/Morpheo/Files/Morpheo.gen
    3 ../../IPs/systemC/processor/Morpheo/Files/Instance_min.cfg
     3../../IPs/systemC/processor/Morpheo/Files/Instance_debug.cfg
    44../../Softwares/Test/Test_012/bin/soft.x
    550
  • trunk/Platforms/Test/data/Test_000_013.cfg

    r100 r101  
    11../../IPs/systemC/processor/Morpheo/Files/Morpheo.sim
    22../../IPs/systemC/processor/Morpheo/Files/Morpheo.gen
    3 ../../IPs/systemC/processor/Morpheo/Files/Instance_min.cfg
     3../../IPs/systemC/processor/Morpheo/Files/Instance_debug.cfg
    44../../Softwares/Test/Test_013/bin/soft.x
    550
  • trunk/Platforms/Test/data/Test_000_014.cfg

    r100 r101  
    11../../IPs/systemC/processor/Morpheo/Files/Morpheo.sim
    22../../IPs/systemC/processor/Morpheo/Files/Morpheo.gen
    3 ../../IPs/systemC/processor/Morpheo/Files/Instance_min.cfg
     3../../IPs/systemC/processor/Morpheo/Files/Instance_debug.cfg
    44../../Softwares/Test/Test_014/bin/soft.x
    550
  • trunk/Platforms/Test/data/Test_000_015.cfg

    r100 r101  
    11../../IPs/systemC/processor/Morpheo/Files/Morpheo.sim
    22../../IPs/systemC/processor/Morpheo/Files/Morpheo.gen
    3 ../../IPs/systemC/processor/Morpheo/Files/Instance_min.cfg
     3../../IPs/systemC/processor/Morpheo/Files/Instance_debug.cfg
    44../../Softwares/Test/Test_015/bin/soft.x
    550
  • trunk/Platforms/Test/data/Test_000_016.cfg

    r100 r101  
    11../../IPs/systemC/processor/Morpheo/Files/Morpheo.sim
    22../../IPs/systemC/processor/Morpheo/Files/Morpheo.gen
    3 ../../IPs/systemC/processor/Morpheo/Files/Instance_min.cfg
     3../../IPs/systemC/processor/Morpheo/Files/Instance_debug.cfg
    44../../Softwares/Test/Test_016/bin/soft.x
    550
  • trunk/Platforms/Test/data/Test_000_017.cfg

    r100 r101  
    11../../IPs/systemC/processor/Morpheo/Files/Morpheo.sim
    22../../IPs/systemC/processor/Morpheo/Files/Morpheo.gen
    3 ../../IPs/systemC/processor/Morpheo/Files/Instance_min.cfg
     3../../IPs/systemC/processor/Morpheo/Files/Instance_debug.cfg
    44../../Softwares/Test/Test_017/bin/soft.x
    550
  • trunk/Platforms/Test/data/Test_000_018.cfg

    r100 r101  
    11../../IPs/systemC/processor/Morpheo/Files/Morpheo.sim
    22../../IPs/systemC/processor/Morpheo/Files/Morpheo.gen
    3 ../../IPs/systemC/processor/Morpheo/Files/Instance_min.cfg
     3../../IPs/systemC/processor/Morpheo/Files/Instance_debug.cfg
    44../../Softwares/Test/Test_018/bin/soft.x
    550
  • trunk/Platforms/Test/data/Test_000_019.cfg

    r100 r101  
    11../../IPs/systemC/processor/Morpheo/Files/Morpheo.sim
    22../../IPs/systemC/processor/Morpheo/Files/Morpheo.gen
    3 ../../IPs/systemC/processor/Morpheo/Files/Instance_min.cfg
     3../../IPs/systemC/processor/Morpheo/Files/Instance_debug.cfg
    44../../Softwares/Test/Test_019/bin/soft.x
    550
  • trunk/Platforms/Test/data/Test_000_020.cfg

    r100 r101  
    11../../IPs/systemC/processor/Morpheo/Files/Morpheo.sim
    22../../IPs/systemC/processor/Morpheo/Files/Morpheo.gen
    3 ../../IPs/systemC/processor/Morpheo/Files/Instance_min.cfg
     3../../IPs/systemC/processor/Morpheo/Files/Instance_debug.cfg
    44../../Softwares/Test/Test_020/bin/soft.x
    550
  • trunk/Platforms/Test/data/Test_000_021.cfg

    r100 r101  
    11../../IPs/systemC/processor/Morpheo/Files/Morpheo.sim
    22../../IPs/systemC/processor/Morpheo/Files/Morpheo.gen
    3 ../../IPs/systemC/processor/Morpheo/Files/Instance_min.cfg
     3../../IPs/systemC/processor/Morpheo/Files/Instance_debug.cfg
    44../../Softwares/Test/Test_021/bin/soft.x
    550
  • trunk/Platforms/Test/data/Test_000_022.cfg

    r100 r101  
    11../../IPs/systemC/processor/Morpheo/Files/Morpheo.sim
    22../../IPs/systemC/processor/Morpheo/Files/Morpheo.gen
    3 ../../IPs/systemC/processor/Morpheo/Files/Instance_min.cfg
     3../../IPs/systemC/processor/Morpheo/Files/Instance_debug.cfg
    44../../Softwares/Test/Test_022/bin/soft.x
    550
  • trunk/Platforms/Test/data/Test_000_023.cfg

    r100 r101  
    11../../IPs/systemC/processor/Morpheo/Files/Morpheo.sim
    22../../IPs/systemC/processor/Morpheo/Files/Morpheo.gen
    3 ../../IPs/systemC/processor/Morpheo/Files/Instance_min.cfg
     3../../IPs/systemC/processor/Morpheo/Files/Instance_debug.cfg
    44../../Softwares/Test/Test_023/bin/soft.x
    550
  • trunk/Platforms/Test/data/Test_000_024.cfg

    r100 r101  
    11../../IPs/systemC/processor/Morpheo/Files/Morpheo.sim
    22../../IPs/systemC/processor/Morpheo/Files/Morpheo.gen
    3 ../../IPs/systemC/processor/Morpheo/Files/Instance_min.cfg
     3../../IPs/systemC/processor/Morpheo/Files/Instance_debug.cfg
    44../../Softwares/Test/Test_024/bin/soft.x
    550
  • trunk/Platforms/Test/data/Test_000_025.cfg

    r100 r101  
    11../../IPs/systemC/processor/Morpheo/Files/Morpheo.sim
    22../../IPs/systemC/processor/Morpheo/Files/Morpheo.gen
    3 ../../IPs/systemC/processor/Morpheo/Files/Instance_min.cfg
     3../../IPs/systemC/processor/Morpheo/Files/Instance_debug.cfg
    44../../Softwares/Test/Test_025/bin/soft.x
    550
  • trunk/Platforms/Test/src/test.cpp

    r88 r101  
    240240  segtable->setDefaultTarget(0,0);
    241241   
    242   // Add a segment    ,name      ,address of base   ,size              ,global index,local index,uncache
    243   segtable->addSegment("text"    ,TEXT_BASE         ,TEXT_SIZE         ,0           ,0          ,false);
    244   segtable->addSegment("data"    ,DATA_CACHED_BASE  ,DATA_CACHED_SIZE  ,0           ,0          ,false);
    245   segtable->addSegment("data_unc",DATA_UNCACHED_BASE,DATA_UNCACHED_SIZE,0           ,0          ,true );
     242  // Add a segment    ,name          ,address of base   ,size              ,global index,local index,uncache
     243  segtable->addSegment("text"        ,TEXT_BASE         ,TEXT_SIZE         ,0           ,0          ,false);
     244  segtable->addSegment("data"        ,DATA_CACHED_BASE  ,DATA_CACHED_SIZE  ,0           ,0          ,false);
     245  segtable->addSegment("data_stack"  ,DATA_STACK_BASE   ,DATA_STACK_SIZE   ,0           ,0          ,false);
     246  segtable->addSegment("data_unc"    ,DATA_UNCACHED_BASE,DATA_UNCACHED_SIZE,0           ,0          ,true );
    246247
    247248  Parameters * param_environment = new Parameters
Note: See TracChangeset for help on using the changeset viewer.