Ignore:
Timestamp:
Jan 31, 2008, 6:46:41 PM (16 years ago)
Author:
rosiere
Message:

Update all component (except front_end) to :

  • new statistics model
  • no namespace std
Location:
trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Queue/src
Files:
1 added
5 deleted
5 edited
1 moved

Legend:

Unmodified
Added
Removed
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Queue/src/Parameters_msg_error.cpp

    r67 r75  
    99#include "Behavioural/Generic/Queue/include/Parameters.h"
    1010#include <sstream>
    11 using namespace std;
    12 
    1311namespace morpheo                    {
    1412namespace behavioural {
     
    1917#undef  FUNCTION
    2018#define FUNCTION "Queue::msg_error"
    21   string Parameters::msg_error(void)
     19  std::string Parameters::msg_error(void)
    2220  {
    2321    log_printf(FUNC,Queue,FUNCTION,"Begin");
    2422
    25     string msg = "";
     23    std::string msg = "";
    2624
    2725    return msg;
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Queue/src/Parameters_print.cpp

    r67 r75  
    88#include "Behavioural/Generic/Queue/include/Parameters.h"
    99#include "Behavioural/include/XML.h"
    10 using namespace std;
    1110
    1211namespace morpheo                    {
     
    1817#undef  FUNCTION
    1918#define FUNCTION "Queue::print"
    20   string Parameters::print (uint32_t depth)
     19  std::string Parameters::print (uint32_t depth)
    2120  {
    2221    log_printf(FUNC,Queue,FUNCTION,"Begin");
     
    3635#undef  FUNCTION
    3736#define FUNCTION "Queue::operator<<"
    38   ostream& operator<< (ostream& output_stream ,
    39                        morpheo::behavioural::generic::queue::Parameters & x)
     37  std::ostream& operator<< (std::ostream& output_stream ,
     38                            morpheo::behavioural::generic::queue::Parameters & x)
    4039  {
    4140    log_printf(FUNC,Queue,FUNCTION,"Begin");
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Queue/src/Queue.cpp

    r68 r75  
    3232    ,_param            (param)
    3333    ,_usage            (usage)
    34 // #ifdef STATISTICS
    35 //                            ,_param_statistics (param_statistics)
    36 // #endif
    3734  {
    3835    log_printf(FUNC,Queue,FUNCTION,"Begin");
     
    4643        log_printf(INFO,Queue,FUNCTION,"Allocation of statistics");
    4744       
    48         // Allocation of statistics
    49         _stat = new Statistics (static_cast<string>(_name),
    50                                 param_statistics          ,
    51                                 param);
     45        statistics_declaration(param_statistics);
    5246      }
    5347#endif
     
    10296        log_printf(INFO,Queue,FUNCTION,"Generate Statistics file");
    10397       
    104         _stat->generate_file(statistics(0));
    10598        delete _stat;
    10699      }
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Queue/src/Queue_allocation.cpp

    r68 r75  
    1919  void Queue::allocation (void)
    2020  {
    21     string rename;
    22 
    2321    log_printf(FUNC,Queue,FUNCTION,"Begin");
    2422
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Queue/src/Queue_statistics_declaration.cpp

    r67 r75  
    1414namespace queue {
    1515
    16 
    1716#undef  FUNCTION
    18 #define FUNCTION "Queue::statistics"
    19   string Queue::statistics (uint32_t depth)
     17#define FUNCTION "Queue::statistics_declaration"
     18  void Queue::statistics_declaration (morpheo::behavioural::Parameters_Statistics * param_statistics)
    2019  {
    2120    log_printf(FUNC,Queue,FUNCTION,"Begin");
    2221
    23     string txt = _stat->print(depth);
     22    _stat = new Stat (static_cast<std::string>(_name),
     23                      "Queue",
     24                      param_statistics);
    2425   
    2526    log_printf(FUNC,Queue,FUNCTION,"End");
    26 
    27     return txt;
    2827  };
    2928
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Queue/src/Queue_transition.cpp

    r67 r75  
    5353      }
    5454
    55 #ifdef STATISTICS
    56     _stat->add();
    57 #endif   
    58 
    59 #ifdef VHDL_TESTBENCH
    60     vhdl_testbench_transition ();
     55#if defined(STATISTICS) or defined(VHDL_TESTBENCH)
     56    end_cycle ();
    6157#endif
    6258
Note: See TracChangeset for help on using the changeset viewer.