Ignore:
Timestamp:
May 9, 2008, 8:00:21 PM (16 years ago)
Author:
rosiere
Message:

Add component : Context_State (manage miss prediction, exception , decod_enable, synchronisation instruction ...)

Location:
trunk/IPs/systemC/processor/Morpheo/Behavioural
Files:
95 added
12 edited

Legend:

Unmodified
Added
Removed
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Makefile.Common

    r81 r83  
    22# $Id$
    33#
    4 # [ Description ]
     4# [ Description ]
    55#
    66# Makefile
     
    4545
    4646test_env                        :
    47                                 @$(ECHO) "-------------------| $(ENTITY)"
    4847ifeq ($(origin MORPHEO_TOPLEVEL), undefined)
    4948                                $(error "variable MORPHEO_TOPLEVEL is undefined");
     
    5554                                $(error "variable DIR_MORPHEO      is undefined");
    5655endif
     56                                @$(ECHO) "-------------------| $(ENTITY)"
     57
    5758
    5859$(DIR_OBJ)/%.o                  : $(DIR_SRC)/%.cpp $(HEADERS)
     
    6869common_clean                    :
    6970                                @\
    70                                 $(ECHO) "Delete     temporary files in directory "$(PWD);\
     71                                $(ECHO) "Delete     temporary files in directory $(PWD)";\
    7172                                $(RM)   $(DIR_OBJ)      \
    7273                                        $(DIR_BIN)      \
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Makefile.Selftest

    r82 r83  
    5050                                done;                                                   \
    5151                                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;    \
    5454                                fi;
    5555
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/New_Component_vbe/SelfTest/include/test.h

    r82 r83  
    1111#endif
    1212
    13 #include <string>
    14 #include <iostream>
    15 #include <sys/time.h>
     13#define NB_ITERATION  1
     14#define CYCLE_MAX     (1024*NB_ITERATION)
    1615
     16#include "Common/include/Test.h"
    1717#include "Common/include/Time.h"
    1818#include "Behavioural/@DIRECTORY/include/@COMPONENT.h"
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/New_Component_vbe/SelfTest/src/main.cpp

    r82 r83  
    1414  err (_("<Usage> %s name_instance list_params.\n"),argv[0]);
    1515  err (_("list_params is :\n"));
    16   err (_(" * ()\n"));
     16  err (_(" *  ()\n"));
    1717
    1818  exit (1);
     
    3131
    3232  string name = argv[x++];
    33 //const uint32_t size_data = atoi(argv[x++]);
    34 //const uint32_t nb_port   = atoi(argv[x++]);
    3533
    3634  int _return = EXIT_SUCCESS;
     
    3836    {
    3937      morpheo::behavioural::@NAMESPACE_USE::Parameters * param = new morpheo::behavioural::@NAMESPACE_USE::Parameters
    40         (//size_data,
    41          //nb_port 
     38        (
    4239        );
    4340     
     
    5148      _return = EXIT_FAILURE;
    5249    }
    53   catch (...)
     50 
     51  try
    5452    {
    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 ());
    5661      _return = EXIT_FAILURE;
    5762    }
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/New_Component_vbe/SelfTest/src/test.cpp

    r82 r83  
    77 */
    88
    9 #define NB_ITERATION  1
    10 #define CYCLE_MAX     (128*NB_ITERATION)
    11 
    129#include "Behavioural/@DIRECTORY/SelfTest/include/test.h"
    13 #include "Common/include/Test.h"
    1410#include "Behavioural/include/Allocation.h"
    1511
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/New_Component_vst/SelfTest/include/test.h

    r82 r83  
    1111#endif
    1212
     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
    1320#include <string>
    1421#include <iostream>
    1522#include <sys/time.h>
    16 
    17 #include "Common/include/Time.h"
    18 #include "Behavioural/@DIRECTORY/include/@COMPONENT.h"
    1923
    2024using namespace std;
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/New_Component_vst/SelfTest/src/main.cpp

    r82 r83  
    1414  err (_("<Usage> %s name_instance list_params.\n"),argv[0]);
    1515  err (_("list_params is :\n"));
    16   err (_(" * ()\n"));
     16  err (_(" *  ()\n"));
    1717
    1818  exit (1);
     
    3131
    3232  string name = argv[x++];
    33 //const uint32_t size_data = atoi(argv[x++]);
    34 //const uint32_t nb_port   = atoi(argv[x++]);
    3533
    3634  int _return = EXIT_SUCCESS;
     
    3836    {
    3937      morpheo::behavioural::@NAMESPACE_USE::Parameters * param = new morpheo::behavioural::@NAMESPACE_USE::Parameters
    40         (//size_data,
    41          //nb_port 
     38        (
    4239        );
    4340     
     
    5148      _return = EXIT_FAILURE;
    5249    }
    53   catch (...)
     50
     51  try
    5452    {
    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 ());
    5661      _return = EXIT_FAILURE;
    5762    }
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/New_Component_vst/SelfTest/src/test.cpp

    r82 r83  
    77 */
    88
    9 #define NB_ITERATION  1
    10 #define CYCLE_MAX     (128*NB_ITERATION)
    11 
    129#include "Behavioural/@DIRECTORY/SelfTest/include/test.h"
    13 #include "Common/include/Test.h"
    1410#include "Behavioural/include/Allocation.h"
    1511
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/New_Component_vst/src/New_Component_allocation.cpp

    r82 r83  
    2525   )
    2626  {
    27     log_begin@COMPONENT,FUNCTION);
     27    log_begin(@COMPONENT,FUNCTION);
    2828
    2929    _component   = new Component (_usage);
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/include/Debug_component.h

    r82 r83  
    4141#  define     DEBUG_Multi_Front_end                                 false
    4242#  define       DEBUG_Front_end                                     false
     43#  define         DEBUG_Context_State                               true
    4344#  define         DEBUG_Decod_unit                                  false
    4445#  define           DEBUG_Decod                                     false
    45 #  define           DEBUG_Decod_queue                               true
     46#  define           DEBUG_Decod_queue                               false
    4647#  define         DEBUG_Ifetch_unit                                 false
    4748#  define           DEBUG_Address_management                        false
    4849#  define           DEBUG_Ifetch_queue                              false
    4950#  define           DEBUG_Ifetch_unit_Glue                          false
    50 #  define         DEBUG_Prediction_unit                             true
     51#  define         DEBUG_Prediction_unit                             false
    5152#  define           DEBUG_Branch_Target_Buffer                      false
    5253#  define             DEBUG_Branch_Target_Buffer_Glue               false
     
    6263#  define           DEBUG_Prediction_unit_Glue                      false
    6364#  define           DEBUG_Return_Address_Stack                      false
    64 #  define           DEBUG_Update_Prediction_Table                   true
     65#  define           DEBUG_Update_Prediction_Table                   false
    6566#  define     DEBUG_Multi_OOO_Engine                                false
    6667#  define       DEBUG_OOO_Engine                                    false
     
    7374#  define             DEBUG_Register_translation_unit_Glue          false
    7475#  define             DEBUG_Stat_List_unit                          false
    75 //#define           DEBUG_Rename_queue                              true
     76//#define           DEBUG_Rename_queue                              false
    7677#  define           DEBUG_Rename_select                             false
    7778#endif
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/include/Version.h

    r82 r83  
    66#define MORPHEO_MAJOR_VERSION 0
    77#define MORPHEO_MINOR_VERSION 2
    8 #define MORPHEO_REVISION      82
     8#define MORPHEO_REVISION      83
    99
    1010// Identification : MORPHEO_MAJOR_VERSION.MORPHEO_MINOR_VERSION.MORPHEO_REVISION
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/src/XML_get_body.cpp

    r81 r83  
    2727    std::string tabulation = indent(depth);
    2828
    29     body.insert(0,tabulation);
    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))
    3131      body.insert(++pos,tabulation);
    3232
Note: See TracChangeset for help on using the changeset viewer.