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/Core
Files:
37 deleted
56 edited
7 moved

Legend:

Unmodified
Added
Removed
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Execute_unit/Execute_unit/Functionnal_unit/include/Functionnal_unit.h

    r72 r75  
    5555
    5656#ifdef STATISTICS
    57   private   : Stat                           * _stat;
     57  public    : Stat                           * _stat;
    5858
    5959  private   : counter_t                      * _stat_use_functionnal_unit;
     
    162162#ifdef STATISTICS
    163163  public  : void        statistics_declaration    (morpheo::behavioural::Parameters_Statistics * param_statistics);
    164   public  : std::string statistics_print          (uint32_t depth);
    165164#endif
    166165                                               
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Execute_unit/Execute_unit/Functionnal_unit/src/Functionnal_unit_allocation.cpp

    r73 r75  
    2121  void Functionnal_unit::allocation (void)
    2222  {
    23     string rename;
    24 
    2523    log_printf(FUNC,Functionnal_unit,FUNCTION,"Begin");
    2624
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Execute_unit/Execute_unit/Functionnal_unit/src/Functionnal_unit_statistics_declaration.cpp

    r72 r75  
    2525    log_printf(FUNC,Functionnal_unit,FUNCTION,"Begin");
    2626
    27     _stat = new Stat (static_cast<string>(_name),
     27    _stat = new Stat (static_cast<std::string>(_name),
    2828                      "Functionnal_unit",
    2929                      param_statistics);
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Execute_unit/Execute_unit/Load_store_unit/SelfTest/include/Cache.h

    r71 r75  
    2727private : const uint32_t    _miss_rate;
    2828private : const uint32_t    _miss_penality;
    29 private : list<cache_rsp_t> _list_respons;
     29private : std::list<cache_rsp_t> _list_respons;
    3030                                         
    3131public  : Cache_t (uint32_t miss_rate, uint32_t miss_penality):
     
    5959
    6060    // find good place
    61     list<cache_rsp_t>::iterator i;
     61    std::list<cache_rsp_t>::iterator i;
    6262    for(i = _list_respons.begin(); (i != _list_respons.end()) and (i->_cycle<=cycle); i++);
    6363
     
    8282public  : void end_cycle (void)
    8383  {
    84     for(list<cache_rsp_t>::iterator i = _list_respons.begin(); i != _list_respons.end(); i++)
     84    for(std::list<cache_rsp_t>::iterator i = _list_respons.begin(); i != _list_respons.end(); i++)
    8585      {
    8686        i->_cycle --;
     
    9090public  : void print (void)
    9191  {
    92     for(list<cache_rsp_t>::iterator i = _list_respons.begin(); i != _list_respons.end(); i++)
     92    for(std::list<cache_rsp_t>::iterator i = _list_respons.begin(); i != _list_respons.end(); i++)
    9393      {
    9494        std::cout << "{" << i->_cycle << "}\t"
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Execute_unit/Execute_unit/Load_store_unit/SelfTest/include/Memory.h

    r72 r75  
    5353      }
    5454
    55     cout << "=====[ Memory's information ]" << endl
    56          << "  * _nb_context : " << _nb_context << endl
    57          << "  * _nb_word    : " << _nb_word    << endl
    58          << "  * _size_word  : " << _size_word  << endl
    59          << "  * _shift_addr : " << _shift_addr << endl
    60          << "  * _mask_addr  : " << hex << _mask_addr << dec << endl;
     55    std::cout << "=====[ Memory's information ]" << std::endl
     56              << "  * _nb_context : " << _nb_context << std::endl
     57              << "  * _nb_word    : " << _nb_word    << std::endl
     58              << "  * _size_word  : " << _size_word  << std::endl
     59              << "  * _shift_addr : " << _shift_addr << std::endl
     60              << "  * _mask_addr  : " << std::hex << _mask_addr << std::dec << std::endl;
    6161  }
    6262
     
    7171                                                       morpheo::behavioural::Tdcache_data_t    data)
    7272  {
    73     cout << "<Memory::access>" << endl
    74          << " * context : " << context << endl
    75          << " * address : " << hex << address << dec << endl
    76          << " * type    : " << type << endl
    77          << " * wdata   : " << hex << data << dec << endl;
     73    std::cout << "<Memory::access>" << std::endl
     74              << " * context : " << context << std::endl
     75              << " * address : " << std::hex << address << std::dec << std::endl
     76              << " * type    : " << type << std::endl
     77              << " * wdata   : " << std::hex << data << std::dec << std::endl;
    7878
    7979    morpheo::behavioural::Tdcache_data_t rdata;
     
    9090        rdata = other (context, address, type);
    9191
    92     cout << " * rdata   : " << hex << rdata << dec << endl;
     92    std::cout << " * rdata   : " << std::hex << rdata << std::dec << std::endl;
    9393
    9494    return rdata;
     
    161161                                                      morpheo::behavioural::Tdcache_data_t data)
    162162  {
    163     cout << "   * write" << endl;
     163    std::cout << "   * write" << std::endl;
    164164
    165165    if (context>_nb_context)
     
    172172    morpheo::behavioural::Tdcache_address_t MSB = address >> _shift_addr;
    173173
    174     cout << hex
    175          << "     * LSB         : " << LSB << endl
    176          << "     * MSB         : " << MSB << endl
    177          << dec;
     174    std::cout << std::hex
     175         << "     * LSB         : " << LSB << std::endl
     176         << "     * MSB         : " << MSB << std::endl
     177         << std::dec;
    178178 
    179179    morpheo::behavioural::Tdcache_data_t data_old    = _data [context][MSB];
     
    193193    uint32_t index_max = index_min+memory_size;
    194194
    195     cout << "     * type        : " << type << endl
    196          << "     * memory_size : " << memory_size << endl
    197          << "     * index_min   : " << index_min << endl
    198          << "     * index_max   : " << index_max << endl;
     195    std::cout << "     * type        : " << type << std::endl
     196         << "     * memory_size : " << memory_size << std::endl
     197         << "     * index_min   : " << index_min << std::endl
     198         << "     * index_max   : " << index_max << std::endl;
    199199   
    200200    morpheo::behavioural::Tdcache_data_t data_insert = data<<index_min; // the data is aligned at LSB
    201201
    202 //     cout << "read :" << endl
    203 //       << " * context     : " << context << endl
    204 //       << hex             
    205 //       << " * address     : " << address << endl
    206 //       << "   * LSB       : " << LSB       << endl
    207 //       << "   * MSB       : " << MSB       << endl
    208 //       << dec
    209 //       << "   * index_min : " << index_min << endl
    210 //       << "   * index_max : " << index_max << endl
    211 //       << " * type        : " << type    << endl;
     202//     std::cout << "read :" << std::endl
     203//       << " * context     : " << context << std::endl
     204//       << std::hex               
     205//       << " * address     : " << address << std::endl
     206//       << "   * LSB       : " << LSB       << std::endl
     207//       << "   * MSB       : " << MSB       << std::endl
     208//       << std::dec
     209//       << "   * index_min : " << index_min << std::endl
     210//       << "   * index_max : " << index_max << std::endl
     211//       << " * type        : " << type    << std::endl;
    212212
    213213    if (index_max > _size_word)
     
    218218    _data [context][MSB] = data_new;
    219219   
    220     cout << hex
    221          << "     * data_old    : " << data_old << endl
    222          << "     * data_new    : " << data_new << endl
    223          << dec;
     220    std::cout << std::hex
     221              << "     * data_old    : " << data_old << std::endl
     222              << "     * data_new    : " << data_new << std::endl
     223              << std::dec;
    224224
    225225
     
    277277          }
    278278        std::cout << " - "
    279                   << hex
     279                  << std::hex
    280280                  << i->_address << " : "
    281281                  << i->_data_old << " -> "
    282282                  << i->_data_new << std::endl
    283                   << hex;
     283                  << std::hex;
    284284      }
    285285  }
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Execute_unit/Execute_unit/Load_store_unit/SelfTest/include/MemoryRequest.h

    r71 r75  
    126126  {
    127127    return os << "<" << morpheo::toString(x._cycle) << "> : "
    128               << "{" << morpheo::toString(static_cast<uint32_t>(x._packet_id)) << "}" << endl
    129               << "\t * context / front_end / ooo_engine  : " << morpheo::toString(static_cast<uint32_t>(x._context_id   )) << " - " << morpheo::toString(static_cast<uint32_t>(x._front_end_id )) << " - " << morpheo::toString(static_cast<uint32_t>(x._ooo_engine_id)) << endl
    130               << "\t * operation  / type / write_spec_ko : " << morpheo::toString(static_cast<uint32_t>(x._operation)) << " " << morpheo::toString(static_cast<uint32_t>(x._type)) << " " << morpheo::toString(static_cast<uint32_t>(x._write_spec_ko)) << endl
    131               << "\t * ptr_write store/load              : " << morpheo::toString(static_cast<uint32_t>(x._store_queue_ptr_write)) << " " << morpheo::toString(static_cast<uint32_t>(x._load_queue_ptr_write)) << endl
    132               << "\t * immediat / data_ra / data_rb      : " << morpheo::toString(static_cast<uint32_t>(x._immediat)) << " - " << morpheo::toString(static_cast<uint32_t>(x._data_ra)) << " - " << morpheo::toString(static_cast<uint32_t>(x._data_rb)) << endl
    133               << "\t * write_rd / num_reg_rd             : " << morpheo::toString(static_cast<uint32_t>(x._write_rd)) << " " << morpheo::toString(static_cast<uint32_t>(x._num_reg_rd)) << endl
    134               << "\t * data_wait                         : " << morpheo::toString(static_cast<uint32_t>(x._data_wait)) << endl;
     128              << "{" << morpheo::toString(static_cast<uint32_t>(x._packet_id)) << "}" << std::endl
     129              << "\t * context / front_end / ooo_engine  : " << morpheo::toString(static_cast<uint32_t>(x._context_id   )) << " - " << morpheo::toString(static_cast<uint32_t>(x._front_end_id )) << " - " << morpheo::toString(static_cast<uint32_t>(x._ooo_engine_id)) << std::endl
     130              << "\t * operation  / type / write_spec_ko : " << morpheo::toString(static_cast<uint32_t>(x._operation)) << " " << morpheo::toString(static_cast<uint32_t>(x._type)) << " " << morpheo::toString(static_cast<uint32_t>(x._write_spec_ko)) << std::endl
     131              << "\t * ptr_write store/load              : " << morpheo::toString(static_cast<uint32_t>(x._store_queue_ptr_write)) << " " << morpheo::toString(static_cast<uint32_t>(x._load_queue_ptr_write)) << std::endl
     132              << "\t * immediat / data_ra / data_rb      : " << morpheo::toString(static_cast<uint32_t>(x._immediat)) << " - " << morpheo::toString(static_cast<uint32_t>(x._data_ra)) << " - " << morpheo::toString(static_cast<uint32_t>(x._data_rb)) << std::endl
     133              << "\t * write_rd / num_reg_rd             : " << morpheo::toString(static_cast<uint32_t>(x._write_rd)) << " " << morpheo::toString(static_cast<uint32_t>(x._num_reg_rd)) << std::endl
     134              << "\t * data_wait                         : " << morpheo::toString(static_cast<uint32_t>(x._data_wait)) << std::endl;
    135135  }
    136136
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Execute_unit/Execute_unit/Load_store_unit/include/Load_store_unit.h

    r71 r75  
    3030#include "Behavioural/include/Vhdl.h"
    3131#endif
    32 
    33 using namespace std;
    34 using namespace morpheo::behavioural::generic::queue_control;
    3532
    3633namespace morpheo {
     
    5148    // -----[ fields ]----------------------------------------------------
    5249    // Parameters
    53   protected : const string       _name;
     50  protected : const std::string       _name;
    5451
    5552  protected : const Parameters * _param;
     
    194191   sc_module_name                                name,
    195192#else                                         
    196    string                                        name,
     193   std::string                                   name,
    197194#endif                                         
    198195#ifdef STATISTICS
     
    221218#ifdef STATISTICS
    222219  public  : void     statistics_declaration    (morpheo::behavioural::Parameters_Statistics * param_statistics);
    223   public  : string   statistics_print          (uint32_t depth);
    224220#endif
    225221                                               
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Execute_unit/Execute_unit/Load_store_unit/src/Load_store_unit_allocation.cpp

    r72 r75  
    2424  void Load_store_unit::allocation (void)
    2525  {
    26     string rename;
    27 
    2826    log_printf(FUNC,Load_store_unit,FUNCTION,"Begin");
    2927
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Execute_unit/Execute_unit/Load_store_unit/src/Load_store_unit_function_speculative_load_commit_transition.cpp

    r72 r75  
    660660#if DEBUG>=DEBUG_TRACE
    661661        // ***** dump store queue
    662         cout << "Dump STORE_QUEUE :" << endl
    663              << "ptr_read : " << toString(static_cast<uint32_t>(reg_STORE_QUEUE_PTR_READ)) << endl;
     662        std::cout << "Dump STORE_QUEUE :" << std::endl
     663                  << "ptr_read : " << toString(static_cast<uint32_t>(reg_STORE_QUEUE_PTR_READ)) << std::endl;
    664664       
    665665        for (uint32_t i=0; i<_param->_size_store_queue; i++)
    666666          {
    667667            uint32_t j = (reg_STORE_QUEUE_PTR_READ+i)%_param->_size_store_queue;
    668             cout << "{" << j << "}" << endl
    669                  << _store_queue[j] << endl;
     668            std::cout << "{" << j << "}" << std::endl
     669                      << _store_queue[j] << std::endl;
    670670          }
    671671
    672672        // ***** dump speculative_access queue
    673         cout << "Dump SPECULATIVE_ACCESS_QUEUE :" << endl;
     673        std::cout << "Dump SPECULATIVE_ACCESS_QUEUE :" << std::endl;
    674674       
    675675        for (uint32_t i=0; i<_param->_size_speculative_access_queue; i++)
    676676          {
    677677            uint32_t j = (*_speculative_access_queue_control)[i];
    678             cout << "{" << j << "}" << endl
    679                  << _speculative_access_queue[j] << endl;
     678            std::cout << "{" << j << "}" << std::endl
     679                 << _speculative_access_queue[j] << std::endl;
    680680          }
    681681
    682682        // ***** dump load queue
    683         cout << "Dump LOAD_QUEUE :" << endl
    684              << "ptr_read_check_priority : " << toString(static_cast<uint32_t>(reg_LOAD_QUEUE_CHECK_PRIORITY)) << endl;
     683        std::cout << "Dump LOAD_QUEUE :" << std::endl
     684             << "ptr_read_check_priority : " << toString(static_cast<uint32_t>(reg_LOAD_QUEUE_CHECK_PRIORITY)) << std::endl;
    685685       
    686686        for (uint32_t i=0; i<_param->_size_load_queue; i++)
    687687          {
    688688            uint32_t j = i;
    689             cout << "{" << j << "}" << endl
    690                  << _load_queue[j] << endl;
     689            std::cout << "{" << j << "}" << std::endl
     690                 << _load_queue[j] << std::endl;
    691691          }
    692692       
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Read_unit/Read_unit/Read_queue/include/Parameters.h

    r68 r75  
    7777  public : ~Parameters () ;
    7878
    79   public : string msg_error (void);
     79  public : std::string          msg_error (void);
    8080
    81   public :        string   print      (uint32_t depth);
    82   public : friend ostream& operator<< (ostream& output_stream,
    83                                        morpheo::behavioural::core::multi_execute_loop::execute_loop::multi_read_unit::read_unit::read_queue::Parameters & x);
     81  public :        std::string   print      (uint32_t depth);
     82  public : friend std::ostream& operator<< (std::ostream& output_stream,
     83                                            morpheo::behavioural::core::multi_execute_loop::execute_loop::multi_read_unit::read_unit::read_queue::Parameters & x);
    8484  };
    8585
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Read_unit/Read_unit/Read_queue/include/Read_queue.h

    r66 r75  
    2121#include "Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Read_unit/Read_unit/Read_queue/include/Parameters.h"
    2222#ifdef STATISTICS
    23 #include "Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Read_unit/Read_unit/Read_queue/include/Statistics.h"
     23#include "Behavioural/include/Stat.h"
    2424#endif
    2525#include "Behavioural/include/Component.h"
     
    2727#include "Behavioural/include/Vhdl.h"
    2828#endif
    29 
    30 using namespace std;
    3129
    3230namespace morpheo {
     
    6058  public    : Tspecial_address_t _num_reg_re   ;
    6159
    62     friend ostream& operator<< (ostream& output_stream,
     60    friend std::ostream& operator<< (std::ostream& output_stream,
    6361                                morpheo::behavioural::core::multi_execute_loop::execute_loop::multi_read_unit::read_unit::read_queue::Tread_queue_entry_t & x)
    6462    {
    65       output_stream << " * _context_id    : " << toString(x._context_id   ) << endl
    66                     << " * _front_end_id  : " << toString(x._front_end_id ) << endl
    67                     << " * _ooo_engine_id : " << toString(x._ooo_engine_id) << endl
    68                     << " * _rob_id        : " << toString(x._rob_id       ) << endl
    69                     << " * _operation     : " << toString(x._operation    ) << endl
    70                     << " * _type          : " << toString(x._type         ) << endl
    71                     << " * _has_immediat  : " << toString(x._has_immediat ) << endl
    72                     << " * _immediat      : " << toString(x._immediat     ) << endl
    73                     << " * _read_ra       : " << toString(x._read_ra      ) << endl
    74                     << " * _num_reg_ra    : " << toString(x._num_reg_ra   ) << endl
    75                     << " * _read_rb       : " << toString(x._read_rb      ) << endl
    76                     << " * _num_reg_rb    : " << toString(x._num_reg_rb   ) << endl
    77                     << " * _read_rc       : " << toString(x._read_rc      ) << endl
    78                     << " * _num_reg_rc    : " << toString(x._num_reg_rc   ) << endl
    79                     << " * _write_rd      : " << toString(x._write_rd     ) << endl
    80                     << " * _num_reg_rd    : " << toString(x._num_reg_rd   ) << endl
    81                     << " * _write_re      : " << toString(x._write_re     ) << endl
    82                     << " * _num_reg_re    : " << toString(x._num_reg_re   ) << endl;
     63      output_stream << " * _context_id    : " << toString(x._context_id   ) << std::endl
     64                    << " * _front_end_id  : " << toString(x._front_end_id ) << std::endl
     65                    << " * _ooo_engine_id : " << toString(x._ooo_engine_id) << std::endl
     66                    << " * _rob_id        : " << toString(x._rob_id       ) << std::endl
     67                    << " * _operation     : " << toString(x._operation    ) << std::endl
     68                    << " * _type          : " << toString(x._type         ) << std::endl
     69                    << " * _has_immediat  : " << toString(x._has_immediat ) << std::endl
     70                    << " * _immediat      : " << toString(x._immediat     ) << std::endl
     71                    << " * _read_ra       : " << toString(x._read_ra      ) << std::endl
     72                    << " * _num_reg_ra    : " << toString(x._num_reg_ra   ) << std::endl
     73                    << " * _read_rb       : " << toString(x._read_rb      ) << std::endl
     74                    << " * _num_reg_rb    : " << toString(x._num_reg_rb   ) << std::endl
     75                    << " * _read_rc       : " << toString(x._read_rc      ) << std::endl
     76                    << " * _num_reg_rc    : " << toString(x._num_reg_rc   ) << std::endl
     77                    << " * _write_rd      : " << toString(x._write_rd     ) << std::endl
     78                    << " * _num_reg_rd    : " << toString(x._num_reg_rd   ) << std::endl
     79                    << " * _write_re      : " << toString(x._write_re     ) << std::endl
     80                    << " * _num_reg_re    : " << toString(x._num_reg_re   ) << std::endl;
    8381
    8482      return output_stream;
     
    156154    }
    157155
    158     friend ostream& operator<< (ostream& output_stream,
     156    friend std::ostream& operator<< (std::ostream& output_stream,
    159157                                morpheo::behavioural::core::multi_execute_loop::execute_loop::multi_read_unit::read_unit::read_queue::Tread_queue_head_entry_t & x)
    160158    {
    161       output_stream << " * _context_id    : " << x._context_id   << endl
    162                     << " * _front_end_id  : " << x._front_end_id << endl
    163                     << " * _ooo_engine_id : " << x._ooo_engine_id<< endl
    164                     << " * _rob_id        : " << x._rob_id       << endl
    165                     << " * _operation     : " << x._operation    << endl
    166                     << " * _type          : " << x._type         << endl
    167                     << " * _has_immediat  : " << x._has_immediat << endl
    168                     << " * _immediat      : " << x._immediat     << endl
    169                     << " * _read_ra       : " << x._read_ra      << endl
    170                     << " * _read_ra_val   : " << x._read_ra_val  << endl
    171                     << " * _num_reg_ra    : " << x._num_reg_ra   << endl
    172                     << " * _data_ra_val   : " << x._data_ra_val  << endl
    173                     << " * _data_ra       : " << x._data_ra      << endl
    174                     << " * _read_rb       : " << x._read_rb      << endl
    175                     << " * _read_rb_val   : " << x._read_rb_val  << endl
    176                     << " * _num_reg_rb    : " << x._num_reg_rb   << endl
    177                     << " * _data_rb_val   : " << x._data_rb_val  << endl
    178                     << " * _data_rb       : " << x._data_rb      << endl
    179                     << " * _read_rc       : " << x._read_rc      << endl
    180                     << " * _read_rc_val   : " << x._read_rc_val  << endl
    181                     << " * _num_reg_rc    : " << x._num_reg_rc   << endl
    182                     << " * _data_rc_val   : " << x._data_rc_val  << endl
    183                     << " * _data_rc       : " << x._data_rc      << endl
    184                     << " * _write_rd      : " << x._write_rd     << endl
    185                     << " * _num_reg_rd    : " << x._num_reg_rd   << endl
    186                     << " * _write_re      : " << x._write_re     << endl
    187                     << " * _num_reg_re    : " << x._num_reg_re   << endl;
     159      output_stream << " * _context_id    : " << x._context_id   << std::endl
     160                    << " * _front_end_id  : " << x._front_end_id << std::endl
     161                    << " * _ooo_engine_id : " << x._ooo_engine_id<< std::endl
     162                    << " * _rob_id        : " << x._rob_id       << std::endl
     163                    << " * _operation     : " << x._operation    << std::endl
     164                    << " * _type          : " << x._type         << std::endl
     165                    << " * _has_immediat  : " << x._has_immediat << std::endl
     166                    << " * _immediat      : " << x._immediat     << std::endl
     167                    << " * _read_ra       : " << x._read_ra      << std::endl
     168                    << " * _read_ra_val   : " << x._read_ra_val  << std::endl
     169                    << " * _num_reg_ra    : " << x._num_reg_ra   << std::endl
     170                    << " * _data_ra_val   : " << x._data_ra_val  << std::endl
     171                    << " * _data_ra       : " << x._data_ra      << std::endl
     172                    << " * _read_rb       : " << x._read_rb      << std::endl
     173                    << " * _read_rb_val   : " << x._read_rb_val  << std::endl
     174                    << " * _num_reg_rb    : " << x._num_reg_rb   << std::endl
     175                    << " * _data_rb_val   : " << x._data_rb_val  << std::endl
     176                    << " * _data_rb       : " << x._data_rb      << std::endl
     177                    << " * _read_rc       : " << x._read_rc      << std::endl
     178                    << " * _read_rc_val   : " << x._read_rc_val  << std::endl
     179                    << " * _num_reg_rc    : " << x._num_reg_rc   << std::endl
     180                    << " * _data_rc_val   : " << x._data_rc_val  << std::endl
     181                    << " * _data_rc       : " << x._data_rc      << std::endl
     182                    << " * _write_rd      : " << x._write_rd     << std::endl
     183                    << " * _num_reg_rd    : " << x._num_reg_rd   << std::endl
     184                    << " * _write_re      : " << x._write_re     << std::endl
     185                    << " * _num_reg_re    : " << x._num_reg_re   << std::endl;
    188186
    189187      return output_stream;
     
    198196    // -----[ fields ]----------------------------------------------------
    199197    // Parameters
    200   protected : const string                     _name;
     198  protected : const std::string                _name;
    201199  protected : const Parameters               * _param;
    202200
    203201#ifdef STATISTICS
    204   private   : Statistics                     * _stat;
     202  public    : Stat                           * _stat;
    205203#endif
    206204
     
    302300    // ~~~~~[ Register ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~   
    303301  protected : Tread_queue_head_entry_t       * _queue_head;
    304   protected : queue<Tread_queue_entry_t *>   * _queue;
     302  protected : std::queue<Tread_queue_entry_t *>   * _queue;
    305303
    306304    // ~~~~~[ Internal ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     
    328326                                              sc_module_name                              name,
    329327#else                                         
    330                                               string                                      name,
     328                                              std::string                                 name,
    331329#endif                                         
    332330#ifdef STATISTICS
     
    349347#endif                                         
    350348#ifdef STATISTICS
    351   public  : string   statistics                (uint32_t depth);
     349  public  : void     statistics_declaration    (morpheo::behavioural::Parameters_Statistics * param_statistics);
    352350#endif
    353351                                               
     
    357355  private : void     vhdl_body                 (Vhdl * & vhdl);
    358356#endif                                         
    359                                                
    360 #ifdef VHDL_TESTBENCH                         
    361   private : void     vhdl_testbench_transition (void);
     357                       
     358#if defined(STATISTICS) or defined(VHDL_TESTBENCH)
     359  private : void     end_cycle                (void);
    362360#endif
    363361  };
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Read_unit/Read_unit/Read_queue/src/Parameters_msg_error.cpp

    r68 r75  
    88#include "Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Read_unit/Read_unit/Read_queue/include/Parameters.h"
    99#include <sstream>
    10 using namespace std;
    1110
    1211namespace morpheo                    {
     
    2019
    2120
    22   string Parameters::msg_error(void)
     21  std::string Parameters::msg_error(void)
    2322  {
    2423    log_printf(FUNC,Read_queue,"msg_error","Begin");
    2524
    26     string msg = "";
     25    std::string msg = "";
    2726
    2827//     if (_size_queue < 2)
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Read_unit/Read_unit/Read_queue/src/Parameters_print.cpp

    r66 r75  
    88#include "Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Read_unit/Read_unit/Read_queue/include/Parameters.h"
    99#include "Behavioural/include/XML.h"
    10 using namespace std;
    1110
    1211namespace morpheo                    {
     
    2019
    2120
    22   string Parameters::print (uint32_t depth)
     21  std::string Parameters::print (uint32_t depth)
    2322  {
    2423    log_printf(FUNC,Read_queue,"print","Begin");
     
    4746  };
    4847
    49   ostream& operator<< (ostream& output_stream ,
    50                        morpheo::behavioural::core::multi_execute_loop::execute_loop::multi_read_unit::read_unit::read_queue::Parameters & x)
     48  std::ostream& operator<< (std::ostream& output_stream ,
     49                            morpheo::behavioural::core::multi_execute_loop::execute_loop::multi_read_unit::read_unit::read_queue::Parameters & x)
    5150  {
    5251    output_stream << x.print(0);
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Read_unit/Read_unit/Read_queue/src/Read_queue.cpp

    r68 r75  
    3939
    4040#ifdef STATISTICS
    41     log_printf(INFO,Read_queue,"Read_queue","Allocation of statistics");
    42 
    43     // Allocation of statistics
    44     _stat = new Statistics (static_cast<string>(_name),
    45                             param_statistics          ,
    46                             param);
     41    log_printf(INFO,Read_queue,FUNCTION,"Allocation of statistics");
     42   
     43    statistics_declaration(param_statistics);
    4744#endif
    4845
     
    217214    log_printf(INFO,Read_queue,"~Read_queue","Generate Statistics file");
    218215
    219     _stat->generate_file(statistics(0));
    220    
    221216    delete _stat;
    222217#endif
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Read_unit/Read_unit/Read_queue/src/Read_queue_allocation.cpp

    r68 r75  
    2121  void Read_queue::allocation (void)
    2222  {
    23     string rename;
    24 
    2523    log_printf(FUNC,Read_queue,"allocation","Begin");
    2624
     
    238236
    239237    // ~~~~~[ Component ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~   
    240     _queue      = new queue<Tread_queue_entry_t *>;
     238    _queue      = new std::queue<Tread_queue_entry_t *>;
    241239    _queue_head = new Tread_queue_head_entry_t;
    242240
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Read_unit/Read_unit/Read_queue/src/Read_queue_end_cycle.cpp

    r59 r75  
    1 #ifdef VHDL_TESTBENCH
     1#if defined(STATISTICS) or defined(VHDL_TESTBENCH)
    22/*
    33 * $Id$
     
    1919
    2020
    21   void Read_queue::vhdl_testbench_transition ()
     21  void Read_queue::end_cycle ()
    2222  {
    2323    log_printf(FUNC,Read_queue,"vhdl_testbench_transition","Begin");
    2424
     25#ifdef STATISTICS
     26    _stat->end_cycle();
     27#endif   
     28
     29#ifdef VHDL_TESTBENCH
    2530    // Evaluation before read the ouput signal
    26 //     sc_start(0);
    27 
     31//  sc_start(0);
    2832    _interfaces->testbench();
     33#endif
    2934
    3035    log_printf(FUNC,Read_queue,"vhdl_testbench_transition","End");
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Read_unit/Read_unit/Read_queue/src/Read_queue_statistics_declaration.cpp

    r59 r75  
    1818namespace read_queue {
    1919
     20#undef  FUNCTION
     21#define FUNCTION "Read_queue::statistics_declaration"
     22  void Read_queue::statistics_declaration (morpheo::behavioural::Parameters_Statistics * param_statistics)
     23  {
     24    log_printf(FUNC,Read_queue,FUNCTION,"Begin");
    2025
    21   string Read_queue::statistics (uint32_t depth)
    22   {
    23     log_printf(FUNC,Read_queue,"statistics","Begin");
    24 
    25     string txt = _stat->print(depth);
     26    _stat = new Stat (static_cast<std::string>(_name),
     27                      "Read_queue",
     28                      param_statistics);
    2629   
    27     log_printf(FUNC,Read_queue,"statistics","End");
    28 
    29     return txt;
     30    log_printf(FUNC,Read_queue,FUNCTION,"End");
    3031  };
    3132
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Read_unit/Read_unit/Read_queue/src/Read_queue_transition.cpp

    r68 r75  
    138138      }
    139139
    140 #ifdef STATISTICS
    141     _stat->add();
    142 #endif   
    143 
    144 #ifdef VHDL_TESTBENCH
    145     vhdl_testbench_transition ();
     140#if defined(STATISTICS) or defined(VHDL_TESTBENCH)
     141    end_cycle ();
    146142#endif
    147143
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Read_unit/Read_unit/Read_queue/src/Read_queue_vhdl.cpp

    r68 r75  
    3535       );
    3636   
    37     string queue_name = _name + "_queue";
     37    std::string queue_name = _name + "_queue";
    3838    queue = new morpheo::behavioural::generic::queue::Queue
    3939      (queue_name.c_str()
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Read_unit/Read_unit/Read_queue/src/Read_queue_vhdl_body.cpp

    r68 r75  
    208208      for (int32_t i=_param->_nb_gpr_write-1; i>=0 ; i--)
    209209        {
    210           string cmp;
     210          std::string cmp;
    211211         
    212212          if (_param->_have_port_ooo_engine_id)
     
    228228      for (int32_t i=_param->_nb_gpr_write-1; i>=0 ; i--)
    229229        {
    230           string cmp;
     230          std::string cmp;
    231231         
    232232          if (_param->_have_port_ooo_engine_id)
     
    248248      for (int32_t i=_param->_nb_spr_write-1; i>=0 ; i--)
    249249        {
    250           string cmp;
     250          std::string cmp;
    251251         
    252252          if (_param->_have_port_ooo_engine_id)
     
    278278      for (int32_t i=_param->_nb_gpr_write-1; i>=0 ; i--)
    279279        {
    280           string cmp;
     280          std::string cmp;
    281281       
    282282          if (_param->_have_port_ooo_engine_id)
     
    298298      for (int32_t i=_param->_nb_gpr_write-1; i>=0 ; i--)
    299299        {
    300           string cmp;
     300          std::string cmp;
    301301         
    302302          if (_param->_have_port_ooo_engine_id)
     
    318318      for (int32_t i=_param->_nb_spr_write-1; i>=0 ; i--)
    319319        {
    320           string cmp;
     320          std::string cmp;
    321321         
    322322          if (_param->_have_port_ooo_engine_id)
     
    343343      for (int32_t i=_param->_nb_gpr_write-1; i>=0 ; i--)
    344344        {
    345           string cmp;
     345          std::string cmp;
    346346       
    347347          if (_param->_have_port_ooo_engine_id)
     
    365365      for (int32_t i=_param->_nb_gpr_write-1; i>=0 ; i--)
    366366        {
    367           string cmp;
     367          std::string cmp;
    368368       
    369369          if (_param->_have_port_ooo_engine_id)
     
    387387      for (int32_t i=_param->_nb_spr_write-1; i>=0 ; i--)
    388388        {
    389           string cmp;
     389          std::string cmp;
    390390       
    391391          if (_param->_have_port_ooo_engine_id)
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Read_unit/Read_unit/Reservation_station/SelfTest/configuration_multi_port_bypass_memory.cfg

    r71 r75  
    8832      32      +1      # size_general_data 
    992       2       +1      # size_special_data 
    10 256     256     *2      # nb_general_register
    11 32      32      +1      # nb_special_register
     1016      16      *2      # nb_general_register
     118       8       +1      # nb_special_register
    12128       8       +1      # nb_operation       
    13134       4       +1      # nb_type           
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Read_unit/Read_unit/Reservation_station/SelfTest/configuration_multi_port_bypass_write.cfg

    r71 r75  
    8832      32      +1      # size_general_data 
    992       2       +1      # size_special_data 
    10 256     256     *2      # nb_general_register
    11 32      32      +1      # nb_special_register
     1016      16      *2      # nb_general_register
     118       8       +1      # nb_special_register
    12128       8       +1      # nb_operation       
    13134       4       +1      # nb_type           
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Read_unit/Read_unit/Reservation_station/SelfTest/configuration_multi_port_retire2.cfg

    r71 r75  
    8832      32      +1      # size_general_data 
    992       2       +1      # size_special_data 
    10 256     256     *2      # nb_general_register
    11 32      32      +1      # nb_special_register
     1018      16      *2      # nb_general_register
     118       8       +1      # nb_special_register
    12128       8       +1      # nb_operation       
    13134       4       +1      # nb_type           
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Read_unit/Read_unit/Reservation_station/SelfTest/configuration_multi_port_retire4.cfg

    r71 r75  
    8832      32      +1      # size_general_data 
    992       2       +1      # size_special_data 
    10 256     256     *2      # nb_general_register
    11 32      32      +1      # nb_special_register
     1016      16      *2      # nb_general_register
     118       8       +1      # nb_special_register
    12128       8       +1      # nb_operation       
    13134       4       +1      # nb_type           
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Read_unit/Read_unit/Reservation_station/SelfTest/configuration_multi_port_write.cfg

    r71 r75  
    8832      32      +1      # size_general_data 
    992       2       +1      # size_special_data 
    10 256     256     *2      # nb_general_register
    11 32      32      +1      # nb_special_register
     1016      16      *2      # nb_general_register
     118       8       +1      # nb_special_register
    12128       8       +1      # nb_operation       
    13134       4       +1      # nb_type           
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Read_unit/Read_unit/Reservation_station/SelfTest/src/test.cpp

    r69 r75  
    99#include "Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Read_unit/Read_unit/Reservation_station/SelfTest/include/test.h"
    1010#include "Common/include/Test.h"
     11#include "Common/include/BitManipulation.h"
    1112
    1213#define NB_ITERATION  2
     
    368369            {
    369370              _gpr_val      [i][j] = ((rand()%100) < percent_registerfile_valid);
    370               _gpr          [i][j] = rand()%((1<<_param->_size_general_data)-1);
     371              _gpr          [i][j] = range<Tgeneral_data_t>(rand(),_param->_size_general_data);
    371372            }
    372373          for (uint32_t i=0; i<_param->_nb_special_register; i++)
    373374            {
    374375              _spr_val      [i][j] = ((rand()%100) < percent_registerfile_valid);
    375               _spr          [i][j] = rand()%(1<<_param->_size_special_data);
     376              _spr          [i][j] = range<Tspecial_data_t>(rand(),_param->_size_special_data);
    376377            }
    377378        }
     
    479480              Tcontext_t         ooo_engine = rand()% _param->_nb_ooo_engine;
    480481              Tcontrol_t         val     = (_gpr_val [num_reg][ooo_engine]== 0)?((rand()%100) < percent_transaction_registerfile):0;
    481               Tgeneral_data_t    data    = rand()%((1<<_param->_size_general_data)-1);
     482              Tgeneral_data_t    data    = range<Tgeneral_data_t>(rand(),_param->_size_general_data);
    482483           
    483484              val = (val and can_gpr_use [ooo_engine][num_reg] and need_gpr [ooo_engine][num_reg]);
     
    505506              Tcontext_t         ooo_engine = rand()% _param->_nb_ooo_engine;
    506507              Tcontrol_t         val     = (_spr_val [num_reg][ooo_engine]== 0)?((rand()%100) < percent_transaction_registerfile):0;
    507               Tspecial_data_t    data    = rand()%(1<<_param->_size_special_data);
     508              Tspecial_data_t    data    = range<Tspecial_data_t>(rand(),_param->_size_special_data);
    508509
    509510              val = (val and can_spr_use [ooo_engine][num_reg] and need_spr[ooo_engine][num_reg]);
     
    534535              Tgeneral_address_t gpr_num_reg = rand()% _param->_nb_general_register;
    535536              Tcontrol_t         gpr_val     = (_gpr_val [gpr_num_reg][ooo_engine]== 0)?((rand()%100) < percent_transaction_bypass):0;
    536               Tgeneral_data_t    gpr_data    = rand()%((1<<_param->_size_general_data)-1);
     537              Tgeneral_data_t    gpr_data    = range<Tgeneral_data_t>(rand(),_param->_size_general_data);
    537538             
    538539              gpr_val = (gpr_val and can_gpr_use [ooo_engine][gpr_num_reg] and need_gpr[ooo_engine][gpr_num_reg]);
     
    554555              Tspecial_address_t spr_num_reg = rand()% _param->_nb_special_register;
    555556              Tcontrol_t         spr_val     = (_spr_val [spr_num_reg][ooo_engine]== 0)?((rand()%100) < percent_transaction_bypass):0;
    556               Tspecial_data_t    spr_data    = rand()%(1<<_param->_size_special_data);
     557              Tspecial_data_t    spr_data    = range<Tspecial_data_t>(rand(),_param->_size_special_data);
    557558             
    558559              spr_val = (spr_val and can_spr_use [ooo_engine][spr_num_reg] and need_spr[ooo_engine][spr_num_reg]);
     
    582583              Tgeneral_address_t num_reg = rand()% _param->_nb_general_register;
    583584              Tcontrol_t         val     = (_gpr_val [num_reg][ooo_engine]== 0)?((rand()%100) < percent_transaction_bypass):0;
    584               Tgeneral_data_t    data    = rand()%((1<<_param->_size_general_data)-1);
     585              Tgeneral_data_t    data    = range<Tgeneral_data_t>(rand(),_param->_size_general_data);
    585586             
    586587              val = (val and can_gpr_use [ooo_engine][num_reg] and need_gpr [ooo_engine][num_reg]);
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Read_unit/Read_unit/Reservation_station/include/Parameters.h

    r69 r75  
    8585  public : ~Parameters () ;
    8686
    87   public : string msg_error (void);
     87  public :        std::string   msg_error (void);
    8888
    89   public :        string   print      (uint32_t depth);
    90   public : friend ostream& operator<< (ostream& output_stream,
    91                                        morpheo::behavioural::core::multi_execute_loop::execute_loop::multi_read_unit::read_unit::reservation_station::Parameters & x);
     89  public :        std::string   print      (uint32_t depth);
     90  public : friend std::ostream& operator<< (std::ostream& output_stream,
     91                                            morpheo::behavioural::core::multi_execute_loop::execute_loop::multi_read_unit::read_unit::reservation_station::Parameters & x);
    9292  };
    9393
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Read_unit/Read_unit/Reservation_station/include/Reservation_station.h

    r69 r75  
    2323#include "Behavioural/include/Types.h"
    2424#ifdef STATISTICS
    25 #include "Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Read_unit/Read_unit/Reservation_station/include/Statistics.h"
     25#include "Behavioural/include/Stat.h"
    2626#endif
    2727#include "Behavioural/include/Component.h"
     
    2929#include "Behavioural/include/Vhdl.h"
    3030#endif
    31 
    32 using namespace std;
    33 using namespace morpheo::behavioural::generic::queue_control;
    3431
    3532namespace morpheo {
     
    6966  public    : Tspecial_address_t _num_reg_re  ;
    7067
    71     friend ostream& operator<< (ostream& output_stream,
     68    friend std::ostream& operator<< (std::ostream& output_stream,
    7269                                morpheo::behavioural::core::multi_execute_loop::execute_loop::multi_read_unit::read_unit::reservation_station::Treservation_station_entry_t & x)
    7370    {
    74       output_stream << " * _context_id     : " << toString(x._context_id     ) << endl
    75                     << " * _front_end_id   : " << toString(x._front_end_id   ) << endl
    76                     << " * _ooo_engine_id  : " << toString(x._ooo_engine_id  ) << endl
    77                     << " * _rob_id         : " << toString(x._rob_id         ) << endl
    78                     << " * _operation      : " << toString(x._operation      ) << endl
    79                     << " * _type           : " << toString(x._type           ) << endl
    80                     << " * _has_immediat   : " << toString(x._has_immediat   ) << endl
    81                     << " * _immediat       : " << toString(x._immediat       ) << endl
    82 //                  << " * _read_ra        : " << toString(x._read_ra        ) << endl
    83                     << " * _num_reg_ra     : " << toString(x._num_reg_ra     ) << endl
    84                     << " * _data_ra_val    : " << toString(x._data_ra_val    ) << endl
    85                     << " * _data_ra        : " << toString(x._data_ra        ) << endl
    86 //                  << " * _read_rb        : " << toString(x._read_rb        ) << endl
    87                     << " * _num_reg_rb     : " << toString(x._num_reg_rb     ) << endl
    88                     << " * _data_rb_val    : " << toString(x._data_rb_val    ) << endl
    89                     << " * _data_rb        : " << toString(x._data_rb        ) << endl
    90 //                  << " * _read_rc        : " << toString(x._read_rc        ) << endl
    91                     << " * _num_reg_rc     : " << toString(x._num_reg_rc     ) << endl
    92                     << " * _data_rc_val    : " << toString(x._data_rc_val    ) << endl
    93                     << " * _data_rc        : " << toString(x._data_rc        ) << endl
    94                     << " * _write_rd       : " << toString(x._write_rd       ) << endl
    95                     << " * _num_reg_rd     : " << toString(x._num_reg_rd     ) << endl
    96                     << " * _write_re       : " << toString(x._write_re       ) << endl
    97                     << " * _num_reg_re     : " << toString(x._num_reg_re     ) << endl;
     71      output_stream << " * _context_id     : " << toString(x._context_id     ) << std::endl
     72                    << " * _front_end_id   : " << toString(x._front_end_id   ) << std::endl
     73                    << " * _ooo_engine_id  : " << toString(x._ooo_engine_id  ) << std::endl
     74                    << " * _rob_id         : " << toString(x._rob_id         ) << std::endl
     75                    << " * _operation      : " << toString(x._operation      ) << std::endl
     76                    << " * _type           : " << toString(x._type           ) << std::endl
     77                    << " * _has_immediat   : " << toString(x._has_immediat   ) << std::endl
     78                    << " * _immediat       : " << toString(x._immediat       ) << std::endl
     79//                  << " * _read_ra        : " << toString(x._read_ra        ) << std::endl
     80                    << " * _num_reg_ra     : " << toString(x._num_reg_ra     ) << std::endl
     81                    << " * _data_ra_val    : " << toString(x._data_ra_val    ) << std::endl
     82                    << " * _data_ra        : " << toString(x._data_ra        ) << std::endl
     83//                  << " * _read_rb        : " << toString(x._read_rb        ) << std::endl
     84                    << " * _num_reg_rb     : " << toString(x._num_reg_rb     ) << std::endl
     85                    << " * _data_rb_val    : " << toString(x._data_rb_val    ) << std::endl
     86                    << " * _data_rb        : " << toString(x._data_rb        ) << std::endl
     87//                  << " * _read_rc        : " << toString(x._read_rc        ) << std::endl
     88                    << " * _num_reg_rc     : " << toString(x._num_reg_rc     ) << std::endl
     89                    << " * _data_rc_val    : " << toString(x._data_rc_val    ) << std::endl
     90                    << " * _data_rc        : " << toString(x._data_rc        ) << std::endl
     91                    << " * _write_rd       : " << toString(x._write_rd       ) << std::endl
     92                    << " * _num_reg_rd     : " << toString(x._num_reg_rd     ) << std::endl
     93                    << " * _write_re       : " << toString(x._write_re       ) << std::endl
     94                    << " * _num_reg_re     : " << toString(x._num_reg_re     ) << std::endl;
    9895
    9996      return output_stream;
     
    109106    // -----[ fields ]----------------------------------------------------
    110107    // Parameters
    111   protected : const string       _name;
     108  protected : const std::string       _name;
    112109
    113110  protected : const Parameters * _param;
    114 //#ifdef STATISTICS
    115 //  protected : const morpheo::behavioural::Parameters_Statistics * _param_statistics;
    116 //#endif
    117 
    118 #ifdef STATISTICS
    119   private   : Statistics                     * _stat;
     111
     112#ifdef STATISTICS
     113  public    : Stat                           * _stat;
    120114#endif
    121115
     
    233227  public  :          Reservation_station              (
    234228#ifdef SYSTEMC
    235                                               sc_module_name                                name,
     229                                                       sc_module_name                                name,
    236230#else                                         
    237                                               string                                        name,
     231                                                       string                                        name,
    238232#endif                                         
    239233#ifdef STATISTICS
    240                                               morpheo::behavioural::Parameters_Statistics * param_statistics,
    241 #endif
    242                                               Parameters                                  * param );
     234                                                       morpheo::behavioural::Parameters_Statistics * param_statistics,
     235#endif
     236                                                       Parameters                                  * param );
    243237  public  :          ~Reservation_station             (void);
    244238                                               
     
    250244  public  : void     genMoore                  (void);
    251245#endif                                         
    252 #ifdef STATISTICS
    253   public  : string   statistics                (uint32_t depth);
     246
     247#ifdef STATISTICS
     248  public  : void     statistics_declaration    (morpheo::behavioural::Parameters_Statistics * param_statistics);
    254249#endif
    255250                                               
     
    260255#endif                                         
    261256                                               
     257#if defined(STATISTICS) or defined(VHDL_TESTBENCH)
    262258  private : void     end_cycle                 (void);
     259#endif
    263260  };
    264261
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Read_unit/Read_unit/Reservation_station/src/Parameters_msg_error.cpp

    r69 r75  
    88#include "Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Read_unit/Read_unit/Reservation_station/include/Parameters.h"
    99#include <sstream>
    10 using namespace std;
    1110
    1211namespace morpheo                    {
     
    2221#undef  FUNCTION
    2322#define FUNCTION "Reservation_station::msg_error"
    24   string Parameters::msg_error(void)
     23  std::string Parameters::msg_error(void)
    2524  {
    2625    log_printf(FUNC,Reservation_station,FUNCTION,"Begin");
    2726
    28     string msg = "";
     27    std::string msg = "";
    2928
    3029//     if (_size_queue < 2)
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Read_unit/Read_unit/Reservation_station/src/Parameters_print.cpp

    r69 r75  
    88#include "Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Read_unit/Read_unit/Reservation_station/include/Parameters.h"
    99#include "Behavioural/include/XML.h"
    10 using namespace std;
    1110
    1211namespace morpheo                    {
     
    2221#undef  FUNCTION
    2322#define FUNCTION "Reservation_station::print"
    24   string Parameters::print (uint32_t depth)
     23  std::string Parameters::print (uint32_t depth)
    2524  {
    2625    log_printf(FUNC,Reservation_station,FUNCTION,"Begin");
     
    5453#undef  FUNCTION
    5554#define FUNCTION "Reservation_station::operator<<"
    56   ostream& operator<< (ostream& output_stream ,
    57                        morpheo::behavioural::core::multi_execute_loop::execute_loop::multi_read_unit::read_unit::reservation_station::Parameters & x)
     55  std::ostream& operator<< (std::ostream& output_stream ,
     56                            morpheo::behavioural::core::multi_execute_loop::execute_loop::multi_read_unit::read_unit::reservation_station::Parameters & x)
    5857  {
    5958    log_printf(FUNC,Reservation_station,FUNCTION,"Begin");
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Read_unit/Read_unit/Reservation_station/src/Reservation_station.cpp

    r55 r75  
    3131                              _name              (name)
    3232                              ,_param            (param)
    33 // #ifdef STATISTICS
    34 //                            ,_param_statistics (param_statistics)
    35 // #endif
    3633  {
    3734    log_printf(FUNC,Reservation_station,FUNCTION,"Begin");
     
    4643    log_printf(INFO,Reservation_station,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#endif
    5347
     
    9589    log_printf(INFO,Reservation_station,FUNCTION,"Generate Statistics file");
    9690
    97     _stat->generate_file(statistics(0));
    98    
    9991    delete _stat;
    10092#endif
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Read_unit/Read_unit/Reservation_station/src/Reservation_station_allocation.cpp

    r69 r75  
    2424  void Reservation_station::allocation (void)
    2525  {
    26     string rename;
    27 
    2826    log_printf(FUNC,Reservation_station,FUNCTION,"Begin");
    2927
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Read_unit/Read_unit/Reservation_station/src/Reservation_station_end_cycle.cpp

    r69 r75  
     1#if defined(STATISTICS) or defined(VHDL_TESTBENCH)
    12/*
    23 * $Id$
     
    2526
    2627#ifdef STATISTICS
    27     _stat->add();
     28    _stat->end_cycle();
    2829#endif   
    2930
     
    4546}; // end namespace behavioural
    4647}; // end namespace morpheo             
     48#endif
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Read_unit/Read_unit/Reservation_station/src/Reservation_station_statistics_declaration.cpp

    r59 r75  
    1818namespace reservation_station {
    1919
    20 
    2120#undef  FUNCTION
    22 #define FUNCTION "Reservation_station::statistics"
    23   string Reservation_station::statistics (uint32_t depth)
     21#define FUNCTION "Reservation_station::statistics_declaration"
     22  void Reservation_station::statistics_declaration (morpheo::behavioural::Parameters_Statistics * param_statistics)
    2423  {
    2524    log_printf(FUNC,Reservation_station,FUNCTION,"Begin");
    2625
    27     string txt = _stat->print(depth);
     26    _stat = new Stat (static_cast<std::string>(_name),
     27                      "Reservation_station",
     28                      param_statistics);
    2829   
    2930    log_printf(FUNC,Reservation_station,FUNCTION,"End");
    30 
    31     return txt;
    3231  };
    3332
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Read_unit/Read_unit/Reservation_station/src/Reservation_station_vhdl_body.cpp

    r70 r75  
    2222  void Reservation_station::vhdl_body (Vhdl * & vhdl)
    2323  {
    24     string range_retire, range_insert;
     24    std::string range_retire, range_insert;
    2525
    2626    if (_param->_size_queue == 1)
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Write_unit/Write_unit/Execute_queue/include/Execute_queue.h

    r74 r75  
    137137   
    138138    // ~~~~~[ Register ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~   
    139   private   : queue<execute_queue_entry_t *> * _queue;
     139  private   : std::queue<execute_queue_entry_t *> * _queue;
    140140    // ~~~~~[ Internal ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    141141  private   : Tcontrol_t                       internal_EXECUTE_QUEUE_IN_ACK ;
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Write_unit/Write_unit/Execute_queue/src/Execute_queue_allocation.cpp

    r73 r75  
    2424  void Execute_queue::allocation (void)
    2525  {
    26     string rename;
    27 
    2826    log_printf(FUNC,Execute_queue,FUNCTION,"Begin");
    2927
     
    9896    // ~~~~~[ Component ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~   
    9997
    100      _queue = new queue<execute_queue_entry_t *>;
     98     _queue = new std::queue<execute_queue_entry_t *>;
    10199
    102100#ifdef POSITION
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Write_unit/Write_unit/Execute_queue/src/Execute_queue_statistics_declaration.cpp

    r73 r75  
    2525    log_printf(FUNC,Execute_queue,FUNCTION,"Begin");
    2626
    27     _stat = new Stat (static_cast<string>(_name),
     27    _stat = new Stat (static_cast<std::string>(_name),
    2828                      "Execute_queue",
    2929                      param_statistics);
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Write_unit/Write_unit/Write_queue/include/Write_queue.h

    r74 r75  
    179179
    180180    // ~~~~~[ Register ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~   
    181   protected : list<write_queue_entry_t *> * _queue;
     181  protected : std::list<write_queue_entry_t *> * _queue;
    182182
    183183    // ~~~~~[ Internal ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Write_unit/Write_unit/Write_queue/src/Write_queue_allocation.cpp

    r74 r75  
    2323  void Write_queue::allocation (void)
    2424  {
    25     string rename;
    26 
    2725    log_printf(FUNC,Write_queue,FUNCTION,"Begin");
    2826
     
    139137    // ~~~~~[ Component ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~   
    140138
    141   _queue = new list<write_queue_entry_t *>;
     139     _queue = new std::list<write_queue_entry_t *>;
    142140
    143141#ifdef POSITION
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Write_unit/Write_unit/Write_queue/src/Write_queue_genMoore.cpp

    r73 r75  
    8686    // -----[ Interface "bypass_write" ]----------------------------------
    8787    {
    88       list<write_queue_entry_t *>::iterator it = _queue->begin();
     88      std::list<write_queue_entry_t *>::iterator it = _queue->begin();
    8989      for (uint32_t i=0; i<_param->_nb_bypass_write; i++)
    9090        {
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Write_unit/Write_unit/Write_queue/src/Write_queue_statistics_declaration.cpp

    r73 r75  
    2525    log_printf(FUNC,Write_queue,FUNCTION,"Begin");
    2626
    27     _stat = new Stat (static_cast<string>(_name),
     27    _stat = new Stat (static_cast<std::string>(_name),
    2828                      "Write_queue",
    2929                      param_statistics);
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Write_unit/Write_unit/src/Write_unit_allocation.cpp

    r74 r75  
    145145    // ~~~~~[ Component ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~   
    146146
    147      string name;
     147     std::string name;
    148148
    149149     {
     
    184184     {
    185185       name = _name+"_write_queue";
    186        cout << "Instance : " << name << endl;
     186       std::cout << "Instance : " << name << std::endl;
    187187       
    188188#ifdef POSITION
     
    196196
    197197#ifdef POSITION
    198        _component->interface_map (name ,"WRITE_QUEUE_IN",
    199                                   _name,"WRITE_UNIT_IN");
     198       _component->interface_map (name ,"write_queue_in",
     199                                  _name,"write_unit_in");
    200200#endif
    201201
     
    226226         {
    227227#ifdef POSITION
    228            _component->interface_map (name ,"WRITE_QUEUE_OUT",
    229                                       _name+"_execute_queue", "EXECUTE_QUEUE_IN");
     228           _component->interface_map (name ,"write_queue_out",
     229                                      _name+"_execute_queue", "execute_queue_in");
    230230#endif
    231231
     
    250250         {
    251251#ifdef POSITION
    252            _component->interface_map (name ,"WRITE_QUEUE_OUT",
    253                                       _name,"WRITE_UNIT_OUT");
     252           _component->interface_map (name ,"write_queue_out",
     253                                      _name,"write_unit_out");
    254254#endif
    255255
     
    275275         {
    276276#ifdef POSITION
    277            _component->interface_map (name ,"GPR_WRITE_"+toString(i),
    278                                       _name,"GPR_WRITE_"+toString(i));
     277           _component->interface_map (name ,"gpr_write_"+toString(i),
     278                                      _name,"gpr_write_"+toString(i));
    279279#endif     
    280280           
     
    290290         {
    291291#ifdef POSITION
    292            _component->interface_map (name ,"SPR_WRITE_"+toString(i),
    293                                       _name,"SPR_WRITE_"+toString(i));
     292           _component->interface_map (name ,"spr_write_"+toString(i),
     293                                      _name,"spr_write_"+toString(i));
    294294#endif     
    295295           
     
    306306         {
    307307#ifdef POSITION
    308            _component->interface_map (name ,"BYPASS_WRITE_"+toString(i),
    309                                       _name,"BYPASS_WRITE_"+toString(i));
     308           _component->interface_map (name ,"bypass_write_"+toString(i),
     309                                      _name,"bypass_write_"+toString(i));
    310310#endif     
    311311
     
    324324       {
    325325         name = _name+"_execute_queue";
    326          cout << "Instance : " << name << endl;
     326         std::cout << "Instance : " << name << std::endl;
    327327         
    328328#ifdef POSITION
     
    336336
    337337#ifdef POSITION
    338          _component->interface_map (name ,"WRITE_QUEUE_IN",
    339                                     _name+"_write_queue","WRITE_UNIT_IN");
     338         _component->interface_map (name ,"execute_queue_in",
     339                                    _name+"_write_queue","write_queue_in");
    340340#endif
    341341
     
    358358
    359359#ifdef POSITION
    360            _component->interface_map (name ,"EXECUTE_QUEUE_OUT",
    361                                       _name,"WRITE_UNIT_OUT_");
     360           _component->interface_map (name ,"execute_queue_out",
     361                                      _name,"write_unit_out");
    362362#endif
    363363
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Write_unit/Write_unit/src/Write_unit_statistics_declaration.cpp

    r74 r75  
    2424    log_printf(FUNC,Write_unit,FUNCTION,"Begin");
    2525
    26     _stat       = new Stat (static_cast<string>(_name),
     26    _stat       = new Stat (static_cast<std::string>(_name),
    2727                            "Write_unit",
    2828                            param_statistics);
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Register_unit/Makefile.deps

    r74 r75  
    4242#-----[ Rules ]--------------------------------------------
    4343
    44 #.NOTPARALLEL                   : Register_unit_library Register_unit_library_clean     
     44.NOTPARALLEL                    : Register_unit_library Register_unit_library_clean     
    4545
    4646Register_unit_library           : $(Register_unit_DEPENDENCIES)
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Register_unit/Register_unit_Glue/include/Parameters.h

    r60 r75  
    5050  public : ~Parameters () ;
    5151
    52   public : string msg_error (void);
     52  public :        std::string   msg_error (void);
    5353
    54   public :        string   print      (uint32_t depth);
    55   public : friend ostream& operator<< (ostream& output_stream,
    56                                        morpheo::behavioural::core::multi_execute_loop::execute_loop::register_unit::register_unit_glue::Parameters & x);
     54  public :        std::string   print      (uint32_t depth);
     55  public : friend std::ostream& operator<< (std::ostream& output_stream,
     56                                            morpheo::behavioural::core::multi_execute_loop::execute_loop::register_unit::register_unit_glue::Parameters & x);
    5757  };
    5858
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Register_unit/Register_unit_Glue/include/Register_unit_Glue.h

    r61 r75  
    2020#include "Behavioural/Core/Multi_Execute_loop/Execute_loop/Register_unit/Register_unit_Glue/include/Parameters.h"
    2121#ifdef STATISTICS
    22 #include "Behavioural/Core/Multi_Execute_loop/Execute_loop/Register_unit/Register_unit_Glue/include/Statistics.h"
     22#include "Behavioural/include/Stat.h"
    2323#endif
    2424#include "Behavioural/include/Component.h"
     
    2727#endif
    2828#include "Behavioural/include/Usage.h"
    29 
    30 using namespace std;
    3129
    3230namespace morpheo {
     
    4745    // -----[ fields ]----------------------------------------------------
    4846    // Parameters
    49   protected : const string       _name;
     47  protected : const std::string       _name;
    5048  protected : const Parameters * _param;
    5149  private   : const Tusage_t     _usage;
    5250
    53 //#ifdef STATISTICS
    54 //  protected : const morpheo::behavioural::Parameters_Statistics * _param_statistics;
    55 //#endif
    56 
    57 #ifdef STATISTICS
    58   private   : Statistics                     * _stat;
     51#ifdef STATISTICS
     52  public    : Stat                           * _stat;
    5953#endif
    6054
     
    169163   sc_module_name                                name,
    170164#else                                         
    171    string                                        name,
     165   std::string                                        name,
    172166#endif                                         
    173167#ifdef STATISTICS
     
    183177                                               
    184178#ifdef SYSTEMC                                 
    185 //#if defined(STATISTICS) or defined(VHDL_TESTBENCH)
    186179  public  : void     transition                      (void);
    187180  public  : void     genMealy_gpr_read               (void);
     
    199192  public  : void     genMealy_insert                 (void);
    200193  public  : void     genMealy_retire                 (void);
    201 
    202 //#endif
    203194#endif                                         
    204 #ifdef STATISTICS
    205   public  : string   statistics                (uint32_t depth);
     195
     196#ifdef STATISTICS
     197  public  : void     statistics_declaration    (morpheo::behavioural::Parameters_Statistics * param_statistics);
    206198#endif
    207199                                               
     
    212204#endif                                         
    213205                                               
    214 #ifdef VHDL_TESTBENCH                         
    215   private : void     vhdl_testbench_transition (void);
     206#if defined(STATISTICS) or defined(VHDL_TESTBENCH)
     207  private : void     end_cycle                (void);
    216208#endif
    217209  };
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Register_unit/Register_unit_Glue/src/Parameters_msg_error.cpp

    r60 r75  
    99#include "Behavioural/Core/Multi_Execute_loop/Execute_loop/Register_unit/Register_unit_Glue/include/Parameters.h"
    1010#include <sstream>
    11 using namespace std;
    1211
    1312namespace morpheo                    {
     
    2221#undef  FUNCTION
    2322#define FUNCTION "Register_unit_Glue::msg_error"
    24   string Parameters::msg_error(void)
     23  std::string Parameters::msg_error(void)
    2524  {
    2625    log_printf(FUNC,Register_unit_Glue,FUNCTION,"Begin");
    2726
    28     string msg = "";
     27    std::string msg = "";
    2928
    3029    return msg;
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Register_unit/Register_unit_Glue/src/Parameters_print.cpp

    r60 r75  
    88#include "Behavioural/Core/Multi_Execute_loop/Execute_loop/Register_unit/Register_unit_Glue/include/Parameters.h"
    99#include "Behavioural/include/XML.h"
    10 using namespace std;
    1110
    1211namespace morpheo                    {
     
    2120#undef  FUNCTION
    2221#define FUNCTION "Register_unit_Glue::print"
    23   string Parameters::print (uint32_t depth)
     22  std::string Parameters::print (uint32_t depth)
    2423  {
    2524    log_printf(FUNC,Register_unit_Glue,FUNCTION,"Begin");
     
    5655#undef  FUNCTION
    5756#define FUNCTION "Register_unit_Glue::operator<<"
    58   ostream& operator<< (ostream& output_stream ,
    59                        morpheo::behavioural::core::multi_execute_loop::execute_loop::register_unit::register_unit_glue::Parameters & x)
     57  std::ostream& operator<< (std::ostream& output_stream ,
     58                            morpheo::behavioural::core::multi_execute_loop::execute_loop::register_unit::register_unit_glue::Parameters & x)
    6059  {
    6160    log_printf(FUNC,Register_unit_Glue,FUNCTION,"Begin");
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Register_unit/Register_unit_Glue/src/Register_unit_Glue.cpp

    r61 r75  
    2424   sc_module_name name,
    2525#else
    26    string name,
     26   std::string name,
    2727#endif
    2828#ifdef STATISTICS
     
    3535    ,_param            (param)
    3636    ,_usage            (usage)
    37 // #ifdef STATISTICS
    38 //                            ,_param_statistics (param_statistics)
    39 // #endif
    4037  {
    4138    log_printf(FUNC,Register_unit_Glue,FUNCTION,"Begin");
     
    4845
    4946    // Allocation of statistics
    50     _stat = new Statistics (static_cast<string>(_name),
    51                             param_statistics          ,
    52                             param);
     47    statistics_declaration(param_statistics);
    5348#endif
    5449
     
    549544    log_printf(INFO,Register_unit_Glue,FUNCTION,"Generate Statistics file");
    550545
    551     _stat->generate_file(statistics(0));
    552546    delete _stat;
    553547#endif
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Register_unit/Register_unit_Glue/src/Register_unit_Glue_allocation.cpp

    r60 r75  
    2222  void Register_unit_Glue::allocation (void)
    2323  {
    24     string rename;
    25 
    2624    log_printf(FUNC,Register_unit_Glue,FUNCTION,"Begin");
    2725
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Register_unit/Register_unit_Glue/src/Register_unit_Glue_end_cycle.cpp

    r60 r75  
    1 #ifdef VHDL_TESTBENCH
     1#if defined(STATISTICS) or defined(VHDL_TESTBENCH)
    22/*
    33 * $Id$
     
    1717namespace register_unit_glue {
    1818
    19 
    2019#undef  FUNCTION
    21 #define FUNCTION "Register_unit_Glue::vhdl_testbench_transition"
    22   void Register_unit_Glue::vhdl_testbench_transition ()
     20#define FUNCTION "Register_unit_Glue::end_cycle"
     21void Register_unit_Glue::end_cycle ()
    2322  {
    2423    log_printf(FUNC,Register_unit_Glue,FUNCTION,"Begin");
    2524
     25#ifdef STATISTICS
     26    _stat->end_cycle();
     27#endif   
     28
     29#ifdef VHDL_TESTBENCH
    2630    // Evaluation before read the ouput signal
    27 //     sc_start(0);
    28 
     31//  sc_start(0);
    2932    _interfaces->testbench();
     33#endif
    3034
    3135    log_printf(FUNC,Register_unit_Glue,FUNCTION,"End");
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Register_unit/Register_unit_Glue/src/Register_unit_Glue_statistics_declaration.cpp

    r60 r75  
    1717namespace register_unit_glue {
    1818
    19 
    2019#undef  FUNCTION
    21 #define FUNCTION "Register_unit_Glue::statistics"
    22   string Register_unit_Glue::statistics (uint32_t depth)
     20#define FUNCTION "Register_unit_Glue::statistics_declaration"
     21  void Register_unit_Glue::statistics_declaration (morpheo::behavioural::Parameters_Statistics * param_statistics)
    2322  {
    2423    log_printf(FUNC,Register_unit_Glue,FUNCTION,"Begin");
    2524
    26     string txt = _stat->print(depth);
     25    _stat = new Stat (static_cast<std::string>(_name),
     26                      "Register_unit_Glue",
     27                      param_statistics);
    2728   
    2829    log_printf(FUNC,Register_unit_Glue,FUNCTION,"End");
    29 
    30     return txt;
    3130  };
    3231
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Register_unit/Register_unit_Glue/src/Register_unit_Glue_transition.cpp

    r60 r75  
    11#ifdef SYSTEMC
    2 //#if defined(STATISTICS) or defined(VHDL_TESTBENCH)
    32/*
    43 * $Id$
     
    2524    log_printf(FUNC,Register_unit_Glue,FUNCTION,"Begin");
    2625
    27 #ifdef STATISTICS
    28     _stat->add();
    29 #endif   
    30 
    31 #ifdef VHDL_TESTBENCH
    32     vhdl_testbench_transition ();
     26#if defined(STATISTICS) or defined(VHDL_TESTBENCH)
     27    end_cycle();
    3328#endif
    3429
     
    4540}; // end namespace morpheo             
    4641#endif
    47 //#endif
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Register_unit/include/Parameters.h

    r60 r75  
    7979  public : ~Parameters () ;
    8080
    81   public : string msg_error (void);
    82 
    83   public :        string   print      (uint32_t depth);
    84   public : friend ostream& operator<< (ostream& output_stream,
    85                                        morpheo::behavioural::core::multi_execute_loop::execute_loop::register_unit::Parameters & x);
     81  public :        std::string   msg_error  (void);
     82  public :        std::string   print      (uint32_t depth);
     83  public : friend std::ostream& operator<< (std::ostream& output_stream,
     84                                            morpheo::behavioural::core::multi_execute_loop::execute_loop::register_unit::Parameters & x);
    8685  };
    8786
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Register_unit/include/Register_unit.h

    r60 r75  
    2424#include "Behavioural/Core/Multi_Execute_loop/Execute_loop/Register_unit/include/Parameters.h"
    2525#ifdef STATISTICS
    26 #include "Behavioural/Core/Multi_Execute_loop/Execute_loop/Register_unit/include/Statistics.h"
     26#include "Behavioural/include/Stat.h"
    2727#endif
    2828#include "Behavioural/include/Component.h"
     
    3232#include "Behavioural/include/Usage.h"
    3333
    34 using namespace std;
    35 
    3634namespace morpheo {
    3735namespace behavioural {
    38 
    3936namespace core {
    4037namespace multi_execute_loop {
     
    5047    // -----[ fields ]----------------------------------------------------
    5148    // Parameters
    52   protected : const string       _name;
     49  protected : const std::string       _name;
    5350  protected : const Parameters * _param;
    5451  private   : const Tusage_t     _usage;
    5552
    5653#ifdef STATISTICS
    57   protected : morpheo::behavioural::Parameters_Statistics * _param_statistics;
    58 #endif
    59 
    60 #ifdef STATISTICS
    61   private   : Statistics                     * _stat;
     54  public    : Stat                           * _stat;
    6255#endif
    6356
     
    143136   sc_module_name                                name,
    144137#else                                         
    145    string                                        name,
     138   std::string                                        name,
    146139#endif                                         
    147140#ifdef STATISTICS
     
    153146  public  :          ~Register_unit             (void);
    154147                                               
    155   private : void     allocation                (void);
     148  private : void     allocation                (
     149#ifdef STATISTICS
     150                                                morpheo::behavioural::Parameters_Statistics * param_statistics
     151#else
     152                                                void
     153#endif
     154                                                );
    156155  private : void     deallocation              (void);
    157156                                               
     
    161160//#endif
    162161#endif                                         
    163 #ifdef STATISTICS
    164   public  : string   statistics                (uint32_t depth);
    165 #endif
    166162                                               
    167163#if VHDL                                       
     
    171167#endif                                         
    172168                                               
    173 #ifdef VHDL_TESTBENCH                         
    174   private : void     vhdl_testbench_transition (void);
     169#ifdef STATISTICS
     170  public  : void        statistics_declaration    (morpheo::behavioural::Parameters_Statistics * param_statistics);
     171#endif
     172#if defined(STATISTICS) or defined(VHDL_TESTBENCH)
     173  private : void        end_cycle                 (void);
    175174#endif
    176175  };
     176
    177177
    178178}; // end namespace register_unit
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Register_unit/src/Parameters_msg_error.cpp

    r60 r75  
    66 */
    77
    8 #include "Behavioural/include/Types.h"
    98#include "Behavioural/Core/Multi_Execute_loop/Execute_loop/Register_unit/include/Parameters.h"
    10 #include <sstream>
    11 using namespace std;
    129
    1310namespace morpheo                    {
     
    2118#undef  FUNCTION
    2219#define FUNCTION "Register_unit::msg_error"
    23   string Parameters::msg_error(void)
     20  std::string Parameters::msg_error(void)
    2421  {
    2522    log_printf(FUNC,Register_unit,FUNCTION,"Begin");
    2623
    27     string msg = "";
     24    std::string msg = "";
    2825
    2926    return msg;
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Register_unit/src/Parameters_print.cpp

    r60 r75  
    88#include "Behavioural/Core/Multi_Execute_loop/Execute_loop/Register_unit/include/Parameters.h"
    99#include "Behavioural/include/XML.h"
    10 using namespace std;
    1110
    1211namespace morpheo                    {
     
    2019#undef  FUNCTION
    2120#define FUNCTION "Register_unit::print"
    22   string Parameters::print (uint32_t depth)
     21  std::string Parameters::print (uint32_t depth)
    2322  {
    2423    log_printf(FUNC,Register_unit,FUNCTION,"Begin");
     
    7372#undef  FUNCTION
    7473#define FUNCTION "Register_unit::operator<<"
    75   ostream& operator<< (ostream& output_stream ,
    76                        morpheo::behavioural::core::multi_execute_loop::execute_loop::register_unit::Parameters & x)
     74  std::ostream& operator<< (std::ostream& output_stream ,
     75                            morpheo::behavioural::core::multi_execute_loop::execute_loop::register_unit::Parameters & x)
    7776  {
    7877    log_printf(FUNC,Register_unit,FUNCTION,"Begin");
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Register_unit/src/Register_unit.cpp

    r60 r75  
    3434    ,_param            (param)
    3535    ,_usage            (usage)
    36 #ifdef STATISTICS
    37     ,_param_statistics (param_statistics)
    38 #endif
    3936  {
    4037    log_printf(FUNC,Register_unit,FUNCTION,"Begin");
    4138
    4239    log_printf(INFO,Register_unit,FUNCTION,"Allocation");
    43     allocation ();
     40    allocation (
     41#ifdef STATISTICS
     42                param_statistics
     43#endif
     44                );
    4445
    4546#ifdef STATISTICS
     
    4748
    4849    // Allocation of statistics
    49     _stat = new Statistics (static_cast<string>(_name),
    50                             param_statistics          ,
    51                             param);
     50    statistics_declaration(param_statistics);
    5251#endif
    5352
     
    8483#ifdef STATISTICS
    8584    log_printf(INFO,Register_unit,FUNCTION,"Generate Statistics file");
    86 
    87     _stat->generate_file(statistics(0));
    8885    delete _stat;
    8986#endif
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Register_unit/src/Register_unit_allocation.cpp

    r65 r75  
    1919#undef  FUNCTION
    2020#define FUNCTION "Register_unit::allocation"
    21   void Register_unit::allocation (void)
     21  void Register_unit::allocation (
     22#ifdef STATISTICS
     23                                  morpheo::behavioural::Parameters_Statistics * param_statistics
     24#else
     25                                  void
     26#endif
     27                                  )
    2228  {
    23     string rename, name_component;
    24 
    2529    log_printf(FUNC,Register_unit,FUNCTION,"Begin");
    2630
     
    249253    // ~~~~~[ Component ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~   
    250254
    251     string name;
     255    std::string name;
    252256     
    253257    component_gpr        = new morpheo::behavioural::generic::registerfile::RegisterFile::RegisterFile * [_param->_nb_ooo_engine];
     
    263267          (name.c_str()
    264268#ifdef STATISTICS
    265            ,_param_statistics
     269           ,param_statistics
    266270#endif
    267271           ,_param->_param_gpr [i]
     
    283287          (name.c_str()
    284288#ifdef STATISTICS
    285            ,_param_statistics
     289           ,param_statistics
    286290#endif
    287291           ,_param->_param_gpr_status [i]
     
    303307          (name.c_str()
    304308#ifdef STATISTICS
    305            ,_param_statistics
     309           ,param_statistics
    306310#endif
    307311           ,_param->_param_spr [i]
     
    322326          (name.c_str()
    323327#ifdef STATISTICS
    324            ,_param_statistics
     328           ,param_statistics
    325329#endif
    326330           ,_param->_param_spr_status [i]
     
    343347      (name.c_str()
    344348#ifdef STATISTICS
    345        ,_param_statistics
     349       ,param_statistics
    346350#endif
    347351       ,_param->_param_glue
     
    358362     
    359363    // ~~~~~[ Instanciation ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~   
    360 
     364    std::string name_component;
     365   
    361366    for (uint32_t i=0; i<_param->_nb_ooo_engine; i++)
    362367      {
    363368        name_component = _name+"_gpr_"+toString(i);
    364369       
    365         cout << "Instance : " << name_component << endl;
     370        std::cout << "Instance : " << name_component << std::endl;
    366371       
    367372#ifdef POSITION
     
    420425          name_component = _name+"_gpr_status_"+toString(i);
    421426         
    422           cout << "Instance : " << name_component << endl;
     427          std::cout << "Instance : " << name_component << std::endl;
    423428         
    424429#ifdef POSITION
     
    544549        name_component = _name+"_spr_"+toString(i);
    545550       
    546         cout << "Instance : " << name_component << endl;
     551        std::cout << "Instance : " << name_component << std::endl;
    547552       
    548553#ifdef POSITION
     
    601606          name_component = _name+"_spr_status_"+toString(i);
    602607         
    603           cout << "Instance : " << name_component << endl;
     608          std::cout << "Instance : " << name_component << std::endl;
    604609         
    605610#ifdef POSITION
     
    724729      name_component = _name+"_glue";
    725730     
    726       cout << "Instance : " << name_component << endl;
     731      std::cout << "Instance : " << name_component << std::endl;
    727732     
    728733#ifdef POSITION
     
    10341039#endif
    10351040
    1036 //     cout << *_component << endl;
     1041//     std::cout << *_component << std::endl;
    10371042
    10381043    log_printf(FUNC,Register_unit,FUNCTION,"End");
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Register_unit/src/Register_unit_end_cycle.cpp

    r60 r75  
    1 #ifdef VHDL_TESTBENCH
     1#if defined(STATISTICS) or defined(VHDL_TESTBENCH)
    22/*
    33 * $Id$
     
    1616namespace register_unit {
    1717
    18 
    1918#undef  FUNCTION
    20 #define FUNCTION "Register_unit::vhdl_testbench_transition"
    21   void Register_unit::vhdl_testbench_transition ()
     19#define FUNCTION "Register_unit::end_cycle"
     20void Register_unit::end_cycle ()
    2221  {
    2322    log_printf(FUNC,Register_unit,FUNCTION,"Begin");
    2423
     24#ifdef STATISTICS
     25    _stat->end_cycle();
     26#endif   
     27
     28#ifdef VHDL_TESTBENCH
    2529    // Evaluation before read the ouput signal
    26 //     sc_start(0);
    27 
     30//  sc_start(0);
    2831    _interfaces->testbench();
     32#endif
    2933
    3034    log_printf(FUNC,Register_unit,FUNCTION,"End");
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Register_unit/src/Register_unit_statistics_declaration.cpp

    r60 r75  
    1616namespace register_unit {
    1717
    18 
    1918#undef  FUNCTION
    20 #define FUNCTION "Register_unit::statistics"
    21   string Register_unit::statistics (uint32_t depth)
     19#define FUNCTION "Register_unit::statistics_declaration"
     20  void Register_unit::statistics_declaration (morpheo::behavioural::Parameters_Statistics * param_statistics)
    2221  {
    2322    log_printf(FUNC,Register_unit,FUNCTION,"Begin");
    2423
    25     string txt = _stat->print(depth);
    26    
     24    _stat = new Stat (static_cast<std::string>(_name),
     25                      "Register_unit",
     26                      param_statistics);
     27
     28    for (uint32_t i=0; i<_param->_nb_ooo_engine; i++)
     29      {
     30        _stat->add_stat(component_gpr       [i]->_stat);
     31        _stat->add_stat(component_gpr_status[i]->_stat);
     32        _stat->add_stat(component_spr       [i]->_stat);
     33        _stat->add_stat(component_spr_status[i]->_stat);
     34      }
     35    _stat->add_stat(component_glue->_stat);
     36
    2737    log_printf(FUNC,Register_unit,FUNCTION,"End");
    28 
    29     return txt;
    3038  };
    3139
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Register_unit/src/Register_unit_transition.cpp

    r60 r75  
    2424    log_printf(FUNC,Register_unit,FUNCTION,"Begin");
    2525
    26 #ifdef STATISTICS
    27     _stat->add();
    28 #endif   
    29 
    30 #ifdef VHDL_TESTBENCH
    31     vhdl_testbench_transition ();
     26#if defined(STATISTICS) or defined(VHDL_TESTBENCH)
     27    end_cycle();
    3228#endif
    3329
Note: See TracChangeset for help on using the changeset viewer.