Ignore:
Timestamp:
May 1, 2008, 6:48:45 PM (16 years ago)
Author:
rosiere
Message:
  • support locale (now must "just" translate)
  • update all component with new test format
  • update all component with usage
  • New component : decod queue and prediction_unit
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/src/test2.cpp

    r81 r82  
    99#include <queue>
    1010#include "Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Execute_unit/Execute_unit/Load_store_unit/SelfTest/include/test.h"
    11 
    12 #define CYCLE_MAX     1024
    13 
    14 #define LABEL(str)                                                      \
    15   {                                                                     \
    16     cout << "{"+toString(static_cast<uint32_t>(sc_simulation_time()))+"} " << str << endl; \
    17   } while(0)
    18 
    19 #define SC_START(cycle_offset)                                          \
    20   do                                                                    \
    21     {                                                                   \
    22       /*cout << "SC_START (begin)" << endl;*/                           \
    23                                                                         \
    24       uint32_t cycle_current = static_cast<uint32_t>(sc_simulation_time()); \
    25       if (cycle_offset != 0)                                            \
    26         {                                                               \
    27           cout << "##########[ cycle "<< cycle_current+cycle_offset << " ]" << endl; \
    28         }                                                               \
    29                                                                         \
    30       if (cycle_current > CYCLE_MAX)                                    \
    31         {                                                               \
    32           TEST_KO("Maximal cycles Reached");                            \
    33         }                                                               \
    34       sc_start(cycle_offset);                                           \
    35       /*cout << "SC_START (end  )" << endl;*/                           \
    36     } while(0)
    37 
    3811
    3912//===================================================================={test}
     
    7144                                                            _parameters_statistics,
    7245#endif
    73                                                             _param);
     46                                                            _param,
     47                                                            USE_ALL);
    7448 
    7549#ifdef SYSTEMC
     
    487461              SC_START(0);
    488462
    489               LABEL("MEMORY_IN  : "+toString(in_MEMORY_IN_VAL ->read())+" - "+toString(out_MEMORY_IN_ACK ->read()));
     463              LABEL("MEMORY_IN  : %d - %d",in_MEMORY_IN_VAL ->read(),out_MEMORY_IN_ACK ->read());
    490464              if ( in_MEMORY_IN_VAL ->read() and out_MEMORY_IN_ACK ->read())
    491465                {
    492466                  Tpacket_t  packet_id = in_MEMORY_IN_PACKET_ID->read();
    493467
    494                   LABEL(" * Accepted MEMORY_IN  : " + toString(packet_id));
     468                  LABEL(" * Accepted MEMORY_IN  : %d",packet_id);
    495469                  cout << fifo_request.top();
    496470
     
    509483                }
    510484
    511               LABEL("MEMORY_OUT : "+toString(out_MEMORY_OUT_VAL->read())+" - "+toString(in_MEMORY_OUT_ACK ->read()));
     485              LABEL("MEMORY_OUT : %d - %d",out_MEMORY_OUT_VAL->read(),in_MEMORY_OUT_ACK ->read());
    512486              if (out_MEMORY_OUT_VAL->read() and  in_MEMORY_OUT_ACK->read())
    513487                {
    514488                  Tpacket_t  packet_id = out_MEMORY_OUT_PACKET_ID->read();
    515489
    516                   LABEL(" * Accepted MEMORY_OUT : " + toString(packet_id));
     490                  LABEL(" * Accepted MEMORY_OUT : %d",packet_id);
    517491
    518492                  if (is_operation_memory_store(tab_request[packet_id]._operation))
     
    650624                }
    651625
    652               LABEL("DCACHE_REQ : "+toString(out_DCACHE_REQ_VAL->read())+" - "+toString(in_DCACHE_REQ_ACK ->read()));
     626              LABEL("DCACHE_REQ : %d - %d",out_DCACHE_REQ_VAL->read(),in_DCACHE_REQ_ACK ->read());
    653627              if (out_DCACHE_REQ_VAL->read() and  in_DCACHE_REQ_ACK->read())
    654628                {
     
    665639                  packet_id  = (out_DCACHE_REQ_PACKET_ID ->read())>>1;
    666640             
    667                   LABEL(" * Accepted DCACHE_REQ : " + toString(packet_id));
     641                  LABEL(" * Accepted DCACHE_REQ : %d",packet_id);
    668642
    669643                  if (address >= size_memory)
     
    676650                    {
    677651                      rdata = _memory->access (context_id, address, out_DCACHE_REQ_TYPE->read(), out_DCACHE_REQ_WDATA->read());
    678                       LABEL("   * rdata : " + toString(rdata));
     652                      LABEL("   * rdata : 0x%x",rdata);
    679653                    }
    680654
     
    699673                }
    700674
    701               LABEL("DCACHE_RSP : "+toString(in_DCACHE_RSP_VAL->read())+" - "+toString(out_DCACHE_RSP_ACK ->read()));
     675              LABEL("DCACHE_RSP : %d - %d",in_DCACHE_RSP_VAL->read(),out_DCACHE_RSP_ACK ->read());
    702676              if (in_DCACHE_RSP_VAL->read() and out_DCACHE_RSP_ACK->read())
    703677                {
Note: See TracChangeset for help on using the changeset viewer.