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/Multi_Execute_loop/Execute_loop/Multi_Execute_unit/Execute_unit
Files:
4 deleted
9 edited

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       
Note: See TracChangeset for help on using the changeset viewer.