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
Files:
4 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);
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/New_Component/include/Parameters.h

    r44 r72  
    2626  public : ~Parameters () ;
    2727
    28   public : string msg_error (void);
     28  public :        std::string   msg_error (void);
    2929
    30   public :        string   print      (uint32_t depth);
    31   public : friend ostream& operator<< (ostream& output_stream,
    32                                        morpheo::behavioural::@NAMESPACE_USE::Parameters & x);
     30  public :        std::string   print      (uint32_t depth);
     31  public : friend std::ostream& operator<< (std::ostream& output_stream,
     32                                            morpheo::behavioural::@NAMESPACE_USE::Parameters & x);
    3333  };
    3434
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/New_Component/src/Parameters_print.cpp

    r71 r72  
    3232#undef  FUNCTION
    3333#define FUNCTION "@COMPONENT::operator<<"
    34   ostream& operator<< (ostream& output_stream ,
    35                        morpheo::behavioural::@NAMESPACE_USE::Parameters & x)
     34  std::stringostream& operator<< (std::stringostream& output_stream ,
     35                                  morpheo::behavioural::@NAMESPACE_USE::Parameters & x)
    3636  {
    3737    log_printf(FUNC,@COMPONENT,FUNCTION,"Begin");
Note: See TracChangeset for help on using the changeset viewer.