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/New_Component_vst
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • 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);
Note: See TracChangeset for help on using the changeset viewer.