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
File:
1 edited

Legend:

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