Ignore:
Timestamp:
Jan 29, 2008, 1:34:47 PM (16 years ago)
Author:
rosiere
Message:
  • SystemC de l'unite fonctionnelle.
  • gestion des groupes / instructions custom
Location:
trunk/IPs/systemC/processor/Morpheo/Behavioural/New_Component/SelfTest/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/New_Component/SelfTest/src/main.cpp

    r71 r72  
    4040        );
    4141     
    42       msg(_("%s"),param->print(1).c_str()):
     42      msg(_("%s"),param->print(1).c_str());
    4343     
    4444      test (name,param);
     
    4646  catch (morpheo::ErrorMorpheo & error)
    4747    {
    48       msg (_("<%s> : %s.\n"),name, error.what ());
     48      msg (_("<%s> : %s.\n"),name.c_str(), error.what ());
    4949      exit (EXIT_FAILURE);
    5050    }
    5151  catch (...)
    5252    {
    53      
    54       err (_("<%s> : This test must generate a error.\n"),name);
     53      err (_("<%s> : This test must generate a error.\n"),name.c_str());
    5554      exit (EXIT_FAILURE);
    5655    }
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/New_Component/SelfTest/src/test.cpp

    r71 r72  
    1313#define CYCLE_MAX     (128*NB_ITERATION)
    1414
    15 #define LABEL(str)                                                      \
     15#define LABEL(str...)                                                   \
    1616  {                                                                     \
    17   msg (_("{%d} %s\n"),static_cast<uint32_t>(sc_simulation_time()),str); \
    18 } while(0)
     17    msg (_("{%d} "),static_cast<uint32_t>(sc_simulation_time()));       \
     18    msg (str);                                                          \
     19    msg (_("\n"));                                                      \
     20  } while(0)
    1921
    2022#define SC_START(cycle_offset)                                                       \
     
    100102  for (uint32_t iteration=0; iteration<NB_ITERATION; iteration ++)
    101103    {
    102       LABEL("Iteration "+toString(iteration));
     104      LABEL("Iteration %d",iteration);
    103105
    104106      SC_START(1);
Note: See TracChangeset for help on using the changeset viewer.