Ignore:
Timestamp:
Dec 10, 2008, 7:31:39 PM (16 years ago)
Author:
rosiere
Message:

Almost complete design
with Test and test platform

Location:
trunk/IPs/systemC/processor/Morpheo/Behavioural/New_Component_vst
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/New_Component_vst/SelfTest/Makefile

    r82 r88  
    2424library_clean                   : @COMPONENT_library_clean
    2525
     26local_clean                     :
     27
    2628include                         $(DIR_COMPONENT)/Makefile.deps
    2729include                         $(DIR_MORPHEO)/Behavioural/Makefile.flags
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/New_Component_vst/SelfTest/src/main.cpp

    r83 r88  
    3737      morpheo::behavioural::@NAMESPACE_USE::Parameters * param = new morpheo::behavioural::@NAMESPACE_USE::Parameters
    3838        (
     39         true // is_toplevel
    3940        );
    4041     
    41       msg(_("%s"),param->print(1).c_str());
     42      msg(_("%s"),param->print(0).c_str());
    4243     
    4344      test (name,param);
     
    5859  catch (morpheo::ErrorMorpheo & error)
    5960    {
    60       msg (_("<%s> :\n%s"),name.c_str(), error.what ());
     61//       msg (_("<%s> :\n%s"),name.c_str(), error.what ());
    6162      _return = EXIT_FAILURE;
    6263    }
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/New_Component_vst/SelfTest/src/test.cpp

    r87 r88  
    1414{
    1515  msg(_("<%s> : Simulation SystemC.\n"),name.c_str());
     16 
     17  if (setlocale (LC_ALL, "") == NULL)
     18    msg(_("setlocale ko.\n"));
    1619
    1720#ifdef STATISTICS
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/New_Component_vst/include/Parameters.h

    r82 r88  
    2121
    2222    //-----[ methods ]-----------------------------------------------------------
    23   public : Parameters  ();
    24 //   public : Parameters  (Parameters & param) ;
    25   public : ~Parameters () ;
     23  public : Parameters  (bool is_toplevel=false);
     24//public : Parameters  (Parameters & param) ;
     25  public : ~Parameters (void);
     26
     27  public :        void            copy       (void);
    2628
    2729  public :        Parameters_test msg_error  (void);
    2830
    2931  public :        std::string     print      (uint32_t depth);
    30   public : friend std::ostream&   operator<< (std::ostream& output_stream,
    31                                             morpheo::behavioural::@NAMESPACE_USE::Parameters & x);
     32  public : friend std::ostream&   operator<< (std::ostream& output,
     33                                              morpheo::behavioural::@NAMESPACE_USE::Parameters & x);
    3234  };
    3335
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/New_Component_vst/src/New_Component.cpp

    r82 r88  
    3535    usage_environment(_usage);
    3636
    37     log_printf(INFO,@COMPONENT,FUNCTION,_("Allocation"));
     37    log_printf(INFO,@COMPONENT,FUNCTION,_("<%s> : Allocation"),_name.c_str());
    3838
    3939    allocation (
     
    4646    if (usage_is_set(_usage,USE_STATISTICS))
    4747      {
    48         log_printf(INFO,@COMPONENT,FUNCTION,_("Allocation of statistics"));
     48        log_printf(INFO,@COMPONENT,FUNCTION,_("<%s> : Allocation of statistics"),_name.c_str());
    4949
    5050        statistics_allocation(param_statistics);
     
    5656      {
    5757        // generate the vhdl
    58         log_printf(INFO,@COMPONENT,FUNCTION,_("Generate the vhdl"));
     58        log_printf(INFO,@COMPONENT,FUNCTION,_("<%s> : Generate the vhdl"),_name.c_str());
    5959       
    6060        vhdl();
     
    6565    if (usage_is_set(_usage,USE_SYSTEMC))
    6666      {
    67         log_printf(INFO,@COMPONENT,FUNCTION,_("Method - transition"));
     67        log_printf(INFO,@COMPONENT,FUNCTION,_("<%s> : Method - transition"),_name.c_str());
    6868
    6969        SC_METHOD (transition);
     
    9393#endif
    9494
    95     log_printf(INFO,@COMPONENT,FUNCTION,_("Deallocation"));
     95    log_printf(INFO,@COMPONENT,FUNCTION,_("<%s> : Deallocation"),_name.c_str());
    9696    deallocation ();
    9797
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/New_Component_vst/src/New_Component_statistics_deallocation.cpp

    r82 r88  
    1919    log_begin(@COMPONENT,FUNCTION);
    2020
    21     log_printf(INFO,@COMPONENT,FUNCTION,_("Generate Statistics file"));
     21    log_printf(INFO,@COMPONENT,FUNCTION,_("<%s> : Generate Statistics file"),_name.c_str());
    2222   
    2323    delete _stat;
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/New_Component_vst/src/Parameters.cpp

    r82 r88  
    1414#undef  FUNCTION
    1515#define FUNCTION "@COMPONENT::Parameters"
    16   Parameters::Parameters ()
     16  Parameters::Parameters (bool is_toplevel)
    1717  {
    1818    log_begin(@COMPONENT,FUNCTION);
     19
    1920    test();
     21
     22    if (is_toplevel)
     23      {
     24        copy();
     25      }
     26
    2027    log_end(@COMPONENT,FUNCTION);
    2128  };
     
    3239#undef  FUNCTION
    3340#define FUNCTION "@COMPONENT::~Parameters"
    34   Parameters::~Parameters ()
     41  Parameters::~Parameters (void)
     42  {
     43    log_begin(@COMPONENT,FUNCTION);
     44    log_end(@COMPONENT,FUNCTION);
     45  };
     46
     47#undef  FUNCTION
     48#define FUNCTION "@COMPONENT::copy"
     49  void Parameters::copy (void)
    3550  {
    3651    log_begin(@COMPONENT,FUNCTION);
Note: See TracChangeset for help on using the changeset viewer.