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
Location:
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop
Files:
4 added
40 edited

Legend:

Unmodified
Added
Removed
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Execute_unit/Execute_unit/Functionnal_unit/SelfTest/configuration.cfg

    r81 r82  
    331       1       +1      # nb_front_end       
    442       2       +1      # nb_ooo_engine     
    5 1024    1024    +1      # nb_packet         
     5256     256     +1      # nb_packet         
    6632      32      +1      # size_general_data 
    7732      32      +1      # nb_general_register
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Execute_unit/Execute_unit/Functionnal_unit/SelfTest/src/test.cpp

    r81 r82  
    77 */
    88
     9#define NB_ITERATION  1
     10#define CYCLE_MAX     (1024*NB_ITERATION)
     11
    912#include "Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Execute_unit/Execute_unit/Functionnal_unit/SelfTest/include/test.h"
    1013#include "Common/include/Test.h"
    11 
    12 #define NB_ITERATION  1
    13 #define CYCLE_MAX     (1024*NB_ITERATION)
    14 
    15 #define LABEL(str...)                                                   \
    16   {                                                                     \
    17     msg (_("{%d} "),static_cast<uint32_t>(sc_simulation_time()));       \
    18     msg (str);                                                          \
    19     msg (_("\n"));                                                      \
    20   } while(0)
    21 
    22 #define SC_START(cycle_offset)                                                       \
    23   do                                                                                 \
    24     {                                                                                \
    25       /*cout << "SC_START (begin)" << endl;*/                                        \
    26                                                                                      \
    27       uint32_t cycle_current = static_cast<uint32_t>(sc_simulation_time());          \
    28       if (cycle_offset != 0)                                                         \
    29         {                                                                            \
    30           cout << "##########[ cycle "<< cycle_current+cycle_offset << " ]" << endl; \
    31         }                                                                            \
    32                                                                                      \
    33       if (cycle_current > CYCLE_MAX)                                                 \
    34         {                                                                            \
    35           TEST_KO("Maximal cycles Reached");                                         \
    36         }                                                                            \
    37                                                                                      \
    38       sc_start(cycle_offset);                                                        \
    39                                                                                      \
    40       /*cout << "SC_START (end  )" << endl;*/                                        \
    41     } while(0)
    4214
    4315class execute_transaction
     
    12193  Functionnal_unit * _Functionnal_unit = new Functionnal_unit (name.c_str(),
    12294#ifdef STATISTICS
    123                                              _parameters_statistics,
     95                                                               _parameters_statistics,
    12496#endif
    125                                              _param);
     97                                                               _param,
     98                                                               USE_ALL);
    12699 
    127100#ifdef SYSTEMC
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Execute_unit/Execute_unit/Functionnal_unit/include/Functionnal_unit.h

    r81 r82  
    148148#endif
    149149   Parameters                                  * param,
    150    morpheo::behavioural::Tusage_t                usage=USE_ALL
     150   morpheo::behavioural::Tusage_t                usage
    151151   );
    152152  public  :             ~Functionnal_unit         (void);
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Execute_unit/Execute_unit/Load_store_unit/SelfTest/include/test.h

    r81 r82  
    77 */
    88
     9#define CYCLE_MAX     1024
    910
    1011#include "Common/include/Time.h"
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Execute_unit/Execute_unit/Load_store_unit/SelfTest/src/test1.cpp

    r81 r82  
    77 */
    88
     9  /*
     10
    911#include <queue>
    1012#include "Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Execute_unit/Execute_unit/Load_store_unit/SelfTest/include/test.h"
    11 
    12 #define NB_ITERATION  1
    13 #define CYCLE_MAX     (1024*NB_ITERATION)
    14 
    15 #define LABEL(str)                                                      \
    16   {                                                                     \
    17     cout << "{"+toString(static_cast<uint32_t>(sc_simulation_time()))+"} " << str << endl; \
    18   } while(0)
    19 
    20 #define SC_START(cycle_offset)                                          \
    21   do                                                                    \
    22     {                                                                   \
    23       /*cout << "SC_START (begin)" << endl;*/                           \
    24                                                                         \
    25       uint32_t cycle_current = static_cast<uint32_t>(sc_simulation_time()); \
    26       if (cycle_offset != 0)                                            \
    27         {                                                               \
    28           cout << "##########[ cycle "<< cycle_current+cycle_offset << " ]" << endl; \
    29         }                                                               \
    30                                                                         \
    31       if (cycle_current > CYCLE_MAX)                                    \
    32         {                                                               \
    33           TEST_KO("Maximal cycles Reached");                            \
    34         }                                                               \
    35       sc_start(cycle_offset);                                           \
    36       /*cout << "SC_START (end  )" << endl;*/                           \
    37     } while(0)
    3813
    3914
     
    5530 
    5631#ifdef SYSTEMC
    57   /*********************************************************************
    58    * Déclarations des signaux
    59    *********************************************************************/
     32
    6033  string rename = "";
    6134
     
    129102    }
    130103 
    131   /********************************************************
    132    * Instanciation
    133    ********************************************************/
     104  // Instanciation
    134105 
    135106  cout << "<" << name << "> Instanciation of _Load_store_unit" << endl;
     
    215186  Time * _time = new Time();
    216187
    217   /********************************************************
    218    * Simulation - Begin
    219    ********************************************************/
     188  // Simulation - Begin
    220189
    221190  // Initialisation
     
    656625                }
    657626
    658               LABEL("DCACHE_RSP : "+toString(in_DCACHE_RSP_VAL->read())+" - "+toString(out_DCACHE_RSP_ACK ->read()));
     627                LABEL("DCACHE_RSP : "+toString(in_DCACHE_RSP_VAL->read())+" - "+toString(out_DCACHE_RSP_ACK ->read()));
    659628              if (in_DCACHE_RSP_VAL->read() and out_DCACHE_RSP_ACK->read())
    660629                {
     
    677646
    678647 
    679   /********************************************************
    680    * Simulation - End
    681    ********************************************************/
     648  // Simulation - End
    682649
    683650  TEST_OK ("End of Simulation");
     
    755722#endif
    756723}
     724  */
  • 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                {
  • 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

    r81 r82  
    3030#include "Behavioural/include/Vhdl.h"
    3131#endif
     32#include "Behavioural/include/Usage.h"
    3233
    3334namespace morpheo {
     
    4849    // -----[ fields ]----------------------------------------------------
    4950    // Parameters
    50   protected : const std::string       _name;
    51 
     51  protected : const std::string  _name;
    5252  protected : const Parameters * _param;
     53  private   : const Tusage_t     _usage;
    5354
    5455#ifdef STATISTICS
     
    202203   morpheo::behavioural::Parameters_Statistics * param_statistics,
    203204#endif
    204    Parameters                                  * param );
     205   Parameters                                  * param,
     206   morpheo::behavioural::Tusage_t                usage );
    205207  public  :          ~Load_store_unit             (void);
    206208                                               
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Execute_unit/Execute_unit/Load_store_unit/src/Load_store_unit.cpp

    r81 r82  
    2020#undef  FUNCTION
    2121#define FUNCTION "Load_store_unit::Load_store_unit"
     22  Load_store_unit::Load_store_unit
     23  (
    2224#ifdef SYSTEMC
    23   Load_store_unit::Load_store_unit (sc_module_name name,
     25   sc_module_name name,
    2426#else
    25   Load_store_unit::Load_store_unit (string name,
     27   std::string name,
    2628#endif
    2729#ifdef STATISTICS
    28                           morpheo::behavioural::Parameters_Statistics * param_statistics,
     30   morpheo::behavioural::Parameters_Statistics * param_statistics,
    2931#endif
    30                           morpheo::behavioural::core::multi_execute_loop::execute_loop::multi_execute_unit::execute_unit::load_store_unit::Parameters * param ):
    31                               _name              (name)
    32                               ,_param            (param)
     32   morpheo::behavioural::core::multi_execute_loop::execute_loop::multi_execute_unit::execute_unit::load_store_unit::Parameters * param ,
     33   morpheo::behavioural::Tusage_t usage
     34   ):
     35    _name              (name)
     36    ,_param            (param)
     37    ,_usage (usage)
    3338  {
    3439    log_printf(FUNC,Load_store_unit,FUNCTION,"Begin");
  • 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

    r81 r82  
    2626    log_printf(FUNC,Load_store_unit,FUNCTION,"Begin");
    2727
    28     _component   = new Component ();
     28    _component   = new Component (_usage);
    2929
    3030    Entity * entity = _component->set_entity (_name       
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Read_unit/Read_unit/Read_queue/SelfTest/src/test.cpp

    r81 r82  
    77 */
    88
    9 #include "Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Read_unit/Read_unit/Read_queue/SelfTest/include/test.h"
    10 #include "Common/include/Test.h"
    11 
    129#define NB_ITERATION  1
    1310//64
    1411#define CYCLE_MAX     (1024*NB_ITERATION)
    1512
    16 #define LABEL(str)                                                                       \
    17 {                                                                                        \
    18   cout << "{"+toString(static_cast<uint32_t>(sc_simulation_time()))+"} " << str << endl; \
    19 } while(0)
    20 
    21 static uint32_t cycle = 0;
    22 
    23 #define SC_START(cycle_offset)                                          \
    24 do                                                                      \
    25 {                                                                       \
    26 /*cout << "SC_START (begin)" << endl;*/                                 \
    27                                                                         \
    28   uint32_t cycle_current = static_cast<uint32_t>(sc_simulation_time()); \
    29   if (cycle_current != cycle)                                           \
    30     {                                                                   \
    31       cycle = cycle_current;                                            \
    32       cout << "##########[ cycle "<< cycle << " ]" << endl;             \
    33     }                                                                   \
    34                                                                         \
    35   if (cycle_current > CYCLE_MAX)                                        \
    36     {                                                                   \
    37       TEST_KO("Maximal cycles Reached");                                \
    38     }                                                                   \
    39   sc_start(cycle_offset);                                               \
    40 /*cout << "SC_START (end  )" << endl;*/                                 \
    41 } while(0)
     13#include "Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Read_unit/Read_unit/Read_queue/SelfTest/include/test.h"
     14#include "Common/include/Test.h"
    4215
    4316void test (string name,
     
    5427                                             _parameters_statistics,
    5528#endif
    56                                              _param);
     29                                             _param,
     30                                             USE_ALL);
    5731 
    5832#ifdef SYSTEMC
     
    362336  for (uint32_t iteration=0; iteration<NB_ITERATION; iteration ++)
    363337    {
    364       LABEL("Iteration "+toString(iteration));
     338      LABEL("Iteration %d",iteration);
    365339      int32_t percent_transaction_queue_in     = (rand()%45)+30;
    366340      int32_t percent_transaction_queue_out    = (rand()%45)+30;
     
    518492          SC_START(0);
    519493         
    520           LABEL("Test     READ_QUEUE_IN  : "+toString(READ_QUEUE_IN_VAL->read())+","+toString(READ_QUEUE_IN_ACK->read()));
     494          LABEL("Test     READ_QUEUE_IN  : %d,%d",READ_QUEUE_IN_VAL->read(),READ_QUEUE_IN_ACK->read());
    521495          if ((READ_QUEUE_IN_VAL->read() == 1) and
    522496              (READ_QUEUE_IN_ACK->read() == 1))
    523497            {
    524               LABEL("Accepted READ_QUEUE_IN  ["+toString(request_in)+"]");
     498              LABEL("Accepted READ_QUEUE_IN  [%d]",request_in);
    525499              request_in  ++;
    526500            }
    527           LABEL("Test     READ_QUEUE_OUT : "+toString(READ_QUEUE_OUT_VAL->read())+","+toString(READ_QUEUE_OUT_ACK->read()));
     501          LABEL("Test     READ_QUEUE_OUT : %d,%d",READ_QUEUE_OUT_VAL->read(),READ_QUEUE_OUT_ACK->read());
    528502          if ((READ_QUEUE_OUT_VAL->read() == 1) and
    529503              (READ_QUEUE_OUT_ACK->read() == 1))
     
    535509                rob_id = 0;
    536510              Tcontext_t ctxt   = _ooo_engine_id [rob_id];
    537               LABEL("Accepted READ_QUEUE_OUT ["+toString(rob_id)+"]");
     511              LABEL("Accepted READ_QUEUE_OUT [%d]",rob_id);
    538512             
    539513              TEST(uint32_t          , rob_id ,request_out);
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Read_unit/Read_unit/Read_queue/include/Read_queue.h

    r81 r82  
    1717#include "Common/include/ToString.h"
    1818#include "Common/include/Debug.h"
    19 #include "Behavioural/include/Types.h"
    2019
    2120#include "Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Read_unit/Read_unit/Read_queue/include/Parameters.h"
     21#include "Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Read_unit/Read_unit/Read_queue/include/Types.h"
    2222#ifdef STATISTICS
    2323#include "Behavioural/include/Stat.h"
     
    2727#include "Behavioural/include/Vhdl.h"
    2828#endif
     29#include "Behavioural/include/Usage.h"
    2930
    3031namespace morpheo {
     
    3637namespace read_unit {
    3738namespace read_queue {
    38  
    39   class Tread_queue_entry_t
    40   {
    41   public    : Tcontext_t         _context_id   ;
    42   public    : Tcontext_t         _front_end_id ;
    43   public    : Tcontext_t         _ooo_engine_id;
    44   public    : Tpacket_t          _rob_id       ;
    45   public    : Toperation_t       _operation    ;
    46   public    : Ttype_t            _type         ;
    47   public    : Tlsq_ptr_t         _store_queue_ptr_write;
    48   public    : Tlsq_ptr_t         _load_queue_ptr_write;
    49   public    : Tcontrol_t         _has_immediat ;
    50   public    : Tgeneral_data_t    _immediat     ;
    51   public    : Tcontrol_t         _read_ra      ;
    52   public    : Tgeneral_address_t _num_reg_ra   ;
    53   public    : Tcontrol_t         _read_rb      ;
    54   public    : Tgeneral_address_t _num_reg_rb   ;
    55   public    : Tcontrol_t         _read_rc      ;
    56   public    : Tspecial_address_t _num_reg_rc   ;
    57   public    : Tcontrol_t         _write_rd     ;
    58   public    : Tgeneral_address_t _num_reg_rd   ;
    59   public    : Tcontrol_t         _write_re     ;
    60   public    : Tspecial_address_t _num_reg_re   ;
    61 
    62     friend std::ostream& operator<< (std::ostream& output_stream,
    63                                 morpheo::behavioural::core::multi_execute_loop::execute_loop::multi_read_unit::read_unit::read_queue::Tread_queue_entry_t & x)
    64     {
    65       output_stream << " * _context_id            : " << toString(x._context_id   ) << std::endl
    66                     << " * _front_end_id          : " << toString(x._front_end_id ) << std::endl
    67                     << " * _ooo_engine_id         : " << toString(x._ooo_engine_id) << std::endl
    68                     << " * _rob_id                : " << toString(x._rob_id       ) << std::endl
    69                     << " * _operation             : " << toString(x._operation    ) << std::endl
    70                     << " * _type                  : " << toString(x._type         ) << std::endl
    71                     << " * _store_queue_ptr_write : " << toString(x._store_queue_ptr_write) << std::endl
    72                     << " * _load_queue_ptr_write  : " << toString(x._load_queue_ptr_write ) << std::endl
    73                     << " * _has_immediat          : " << toString(x._has_immediat ) << std::endl
    74                     << " * _immediat              : " << toString(x._immediat     ) << std::endl
    75                     << " * _read_ra               : " << toString(x._read_ra      ) << std::endl
    76                     << " * _num_reg_ra            : " << toString(x._num_reg_ra   ) << std::endl
    77                     << " * _read_rb               : " << toString(x._read_rb      ) << std::endl
    78                     << " * _num_reg_rb            : " << toString(x._num_reg_rb   ) << std::endl
    79                     << " * _read_rc               : " << toString(x._read_rc      ) << std::endl
    80                     << " * _num_reg_rc            : " << toString(x._num_reg_rc   ) << std::endl
    81                     << " * _write_rd              : " << toString(x._write_rd     ) << std::endl
    82                     << " * _num_reg_rd            : " << toString(x._num_reg_rd   ) << std::endl
    83                     << " * _write_re              : " << toString(x._write_re     ) << std::endl
    84                     << " * _num_reg_re            : " << toString(x._num_reg_re   ) << std::endl;
    85 
    86       return output_stream;
    87     }
    88 
    89   };
    90 
    91   class Tread_queue_head_entry_t
    92   {
    93   public    : Tcontext_t         _context_id   ;
    94   public    : Tcontext_t         _front_end_id ;
    95   public    : Tcontext_t         _ooo_engine_id;
    96   public    : Tpacket_t          _rob_id       ;
    97   public    : Toperation_t       _operation    ;
    98   public    : Ttype_t            _type         ;
    99   public    : Tlsq_ptr_t         _store_queue_ptr_write;
    100   public    : Tlsq_ptr_t         _load_queue_ptr_write;
    101   public    : Tcontrol_t         _has_immediat ;
    102   public    : Tgeneral_data_t    _immediat     ;
    103   public    : Tcontrol_t         _read_ra      ;
    104   public    : Tcontrol_t         _read_ra_val  ; // 1 : must access at the registerFile (after access, is set at 0)
    105   public    : Tgeneral_address_t _num_reg_ra   ;
    106   public    : Tcontrol_t         _data_ra_val  ; // 1 : the read of registerFile is valid
    107   public    : Tgeneral_data_t    _data_ra      ;
    108   public    : Tcontrol_t         _read_rb      ;
    109   public    : Tcontrol_t         _read_rb_val  ;
    110   public    : Tgeneral_address_t _num_reg_rb   ;
    111   public    : Tcontrol_t         _data_rb_val  ;
    112   public    : Tgeneral_data_t    _data_rb      ;
    113   public    : Tcontrol_t         _read_rc      ;
    114   public    : Tcontrol_t         _read_rc_val  ;
    115   public    : Tspecial_address_t _num_reg_rc   ;
    116   public    : Tcontrol_t         _data_rc_val  ;
    117   public    : Tspecial_data_t    _data_rc      ;
    118   public    : Tcontrol_t         _write_rd     ;
    119   public    : Tgeneral_address_t _num_reg_rd   ;
    120   public    : Tcontrol_t         _write_re     ;
    121   public    : Tspecial_address_t _num_reg_re   ;
    122 
    123 #undef  FUNCTION
    124 #define FUNCTION "Tread_queue_head_entry_t::operator="
    125   public    : Tread_queue_head_entry_t& operator=(Tread_queue_entry_t x)
    126     {
    127       log_printf(FUNC,Read_queue,FUNCTION,"Begin");
    128          
    129       _context_id   = x._context_id   ;
    130       _front_end_id = x._front_end_id ;
    131       _ooo_engine_id= x._ooo_engine_id;
    132       _rob_id       = x._rob_id       ;
    133       _operation    = x._operation    ;
    134       _type         = x._type         ;
    135       _store_queue_ptr_write = x._store_queue_ptr_write;
    136       _load_queue_ptr_write  = x._load_queue_ptr_write ;
    137       _has_immediat = x._has_immediat ;
    138       _immediat     = x._immediat     ;
    139       _read_ra      = x._read_ra      ;
    140       _read_ra_val  = x._read_ra == 1 ; //if not must read, the registerFile is already access
    141       _num_reg_ra   = x._num_reg_ra   ;
    142       _data_ra_val  = x._read_ra == 0 ; //if not must read, the data is already valid
    143       _data_ra      = 0               ;
    144       _read_rb      = x._read_rb      ;
    145       _read_rb_val  = x._read_rb == 1 ;
    146       _num_reg_rb   = x._num_reg_rb   ;
    147       _data_rb_val  = x._read_rb == 0 ;
    148       _data_rb      = 0               ;
    149       _read_rc      = x._read_rc      ;
    150       _read_rc_val  = x._read_rc == 1 ;
    151       _num_reg_rc   = x._num_reg_rc   ;
    152       _data_rc_val  = x._read_rc == 0 ;
    153       _data_rc      = 0               ;
    154       _write_rd     = x._write_rd     ;
    155       _num_reg_rd   = x._num_reg_rd   ;
    156       _write_re     = x._write_re     ;
    157       _num_reg_re   = x._num_reg_re   ;
    158 
    159       log_printf(FUNC,Read_queue,FUNCTION,"End");
    160 
    161       return *this;
    162     }
    163 
    164     friend std::ostream& operator<< (std::ostream& output_stream,
    165                                 morpheo::behavioural::core::multi_execute_loop::execute_loop::multi_read_unit::read_unit::read_queue::Tread_queue_head_entry_t & x)
    166     {
    167       output_stream << " * _context_id            : " << x._context_id   << std::endl
    168                     << " * _front_end_id          : " << x._front_end_id << std::endl
    169                     << " * _ooo_engine_id         : " << x._ooo_engine_id<< std::endl
    170                     << " * _rob_id                : " << x._rob_id       << std::endl
    171                     << " * _operation             : " << x._operation    << std::endl
    172                     << " * _type                  : " << x._type         << std::endl
    173                     << " * _store_queue_ptr_write : " << toString(x._store_queue_ptr_write) << std::endl
    174                     << " * _load_queue_ptr_write  : " << toString(x._load_queue_ptr_write ) << std::endl
    175                     << " * _has_immediat          : " << x._has_immediat << std::endl
    176                     << " * _immediat              : " << x._immediat     << std::endl
    177                     << " * _read_ra               : " << x._read_ra      << std::endl
    178                     << " * _read_ra_val           : " << x._read_ra_val  << std::endl
    179                     << " * _num_reg_ra            : " << x._num_reg_ra   << std::endl
    180                     << " * _data_ra_val           : " << x._data_ra_val  << std::endl
    181                     << " * _data_ra               : " << x._data_ra      << std::endl
    182                     << " * _read_rb               : " << x._read_rb      << std::endl
    183                     << " * _read_rb_val           : " << x._read_rb_val  << std::endl
    184                     << " * _num_reg_rb            : " << x._num_reg_rb   << std::endl
    185                     << " * _data_rb_val           : " << x._data_rb_val  << std::endl
    186                     << " * _data_rb               : " << x._data_rb      << std::endl
    187                     << " * _read_rc               : " << x._read_rc      << std::endl
    188                     << " * _read_rc_val           : " << x._read_rc_val  << std::endl
    189                     << " * _num_reg_rc            : " << x._num_reg_rc   << std::endl
    190                     << " * _data_rc_val           : " << x._data_rc_val  << std::endl
    191                     << " * _data_rc               : " << x._data_rc      << std::endl
    192                     << " * _write_rd              : " << x._write_rd     << std::endl
    193                     << " * _num_reg_rd            : " << x._num_reg_rd   << std::endl
    194                     << " * _write_re              : " << x._write_re     << std::endl
    195                     << " * _num_reg_re            : " << x._num_reg_re   << std::endl;
    196 
    197       return output_stream;
    198     }
    199   };
    20039
    20140  class Read_queue
     
    20645    // -----[ fields ]----------------------------------------------------
    20746    // Parameters
    208   protected : const std::string                _name;
    209   protected : const Parameters               * _param;
     47  protected : const std::string  _name;
     48  protected : const Parameters * _param;
     49  private   : const Tusage_t     _usage;
    21050
    21151#ifdef STATISTICS
     
    345185                                              morpheo::behavioural::Parameters_Statistics * param_statistics,
    346186#endif
    347                                               Parameters                                  * param );
     187                                              Parameters                                  * param,
     188                                              morpheo::behavioural::Tusage_t                usage);
    348189                                               
    349190  public  :          Read_queue              (Parameters * param );
     
    381222}; // end namespace multi_execute_loop
    382223}; // end namespace core
    383 
    384224}; // end namespace behavioural
    385225}; // end namespace morpheo             
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Read_unit/Read_unit/Read_queue/src/Read_queue.cpp

    r81 r82  
    1818
    1919
    20 #ifdef SYSTEMC
    21   Read_queue::Read_queue (sc_module_name name,
     20  Read_queue::Read_queue
     21  (
     22#ifdef SYSTEMC
     23   sc_module_name name,
    2224#else
    23   Read_queue::Read_queue (string name,
     25   std::string name,
    2426#endif
    2527#ifdef STATISTICS
    26                               morpheo::behavioural::Parameters_Statistics            * param_statistics,
    27 #endif
    28                               morpheo::behavioural::core::multi_execute_loop::execute_loop::multi_read_unit::read_unit::read_queue::Parameters * param ):
    29                               _name              (name)
    30                               ,_param            (param)
     28   morpheo::behavioural::Parameters_Statistics            * param_statistics,
     29#endif
     30   morpheo::behavioural::core::multi_execute_loop::execute_loop::multi_read_unit::read_unit::read_queue::Parameters * param,
     31   morpheo::behavioural::Tusage_t usage ):
     32    _name              (name)
     33    ,_param            (param)
     34    ,_usage (usage)
    3135  {
    3236    log_printf(FUNC,Read_queue,"Read_queue","Begin");
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Read_unit/Read_unit/Read_queue/src/Read_queue_allocation.cpp

    r81 r82  
    2323    log_printf(FUNC,Read_queue,"allocation","Begin");
    2424
    25     _component   = new Component ();
     25    _component   = new Component (_usage);
    2626
    2727    Entity * entity = _component->set_entity (_name       
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Read_unit/Read_unit/Reservation_station/SelfTest/src/test.cpp

    r81 r82  
    66 * Test
    77 */
     8#define NB_ITERATION  2
     9#define CYCLE_MAX     (2048*NB_ITERATION)
    810
    911#include "Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Read_unit/Read_unit/Reservation_station/SelfTest/include/test.h"
    1012#include "Common/include/Test.h"
    1113#include "Common/include/BitManipulation.h"
    12 
    13 #define NB_ITERATION  2
    14 #define CYCLE_MAX     (2048*NB_ITERATION)
    15 
    16 #define LABEL(str)                                                                       \
    17 {                                                                                        \
    18   cout << "{"+toString(static_cast<uint32_t>(sc_simulation_time()))+"} " << str << endl; \
    19 } while(0)
    20 
    21 static uint32_t cycle = 0;
    22 
    23 #define SC_START(cycle_offset)                                          \
    24 do                                                                      \
    25 {                                                                       \
    26 /*cout << "SC_START (begin)" << endl;*/                                 \
    27                                                                         \
    28   uint32_t cycle_current = static_cast<uint32_t>(sc_simulation_time()); \
    29   sc_start(cycle_offset);                                               \
    30   if (cycle_current != cycle)                                           \
    31     {                                                                   \
    32       cycle = cycle_current;                                            \
    33       cout << "##########[ cycle "<< cycle << " ]" << endl;             \
    34     }                                                                   \
    35                                                                         \
    36   if (cycle_current > CYCLE_MAX)                                        \
    37     {                                                                   \
    38       TEST_KO("Maximal cycles Reached");                                \
    39     }                                                                   \
    40 /*cout << "SC_START (end  )" << endl;*/                                 \
    41 } while(0)
    4214
    4315void test (string name,
     
    5022#endif
    5123
    52   Reservation_station * _Reservation_station = new Reservation_station (name.c_str(),
     24  Reservation_station * _Reservation_station = new Reservation_station
     25    (name.c_str(),
    5326#ifdef STATISTICS
    54                                              _parameters_statistics,
     27     _parameters_statistics,
    5528#endif
    56                                              _param);
     29     _param,
     30     USE_ALL);
    5731 
    5832#ifdef SYSTEMC
     
    354328  for (uint32_t iteration=0; iteration<NB_ITERATION; iteration ++)
    355329    {
    356       LABEL("Iteration "+toString(iteration));
     330      LABEL("Iteration %d",iteration);
    357331
    358332      int32_t percent_transaction_queue_in     = (rand()%50)+25;
     
    507481              if (val)
    508482                {
    509                   LABEL(" * GPR_WRITE     ["+toString(i)+"] - gpr["+toString(num_reg)+"]["+toString(ooo_engine)+"] <- "+toString(data));
     483                  LABEL(" * GPR_WRITE     [%d] - gpr[%d][%d] <- 0x%x",i,num_reg,ooo_engine,data);
    510484                  can_gpr_use [ooo_engine][num_reg] = false;
    511485                  need_gpr [ooo_engine][num_reg]    = false;
     
    533507              if (val == 1)
    534508                {
    535                   LABEL(" * SPR_WRITE     ["+toString(i)+"] - spr["+toString(num_reg)+"]["+toString(ooo_engine)+"] <- "+toString(data));
     509                  LABEL(" * SPR_WRITE     [%d] - spr[%d][%d] <- 0x%x",i,num_reg,ooo_engine,data);
     510
    536511                  can_spr_use [ooo_engine][num_reg] = false;
    537512                  need_spr[ooo_engine][num_reg]     = false;
     
    560535              if (gpr_val)
    561536                {
    562                   LABEL(" * BYPASS_WRITE  ["+toString(i)+"] - gpr["+toString(gpr_num_reg)+"]["+toString(ooo_engine)+"] <- "+toString(gpr_data));
     537                  LABEL(" * BYPASS_WRITE  [%d] - gpr[%d][%d] <- 0x%x",i,gpr_num_reg,ooo_engine,gpr_data);
    563538                  can_gpr_use [ooo_engine][gpr_num_reg] = false;
    564539                  need_gpr[ooo_engine][gpr_num_reg]     = false;
     
    580555              if (spr_val)
    581556                {
    582                   LABEL(" * BYPASS_WRITE  ["+toString(i)+"] - spr["+toString(spr_num_reg)+"]["+toString(ooo_engine)+"] <- "+toString(spr_data));
     557                  LABEL(" * BYPASS_WRITE  [%d] - spr[%d][%d] <- 0x%x",i,spr_num_reg,ooo_engine,spr_data);
     558
    583559                  can_spr_use [ooo_engine][spr_num_reg] = false;
    584560                  need_spr[ooo_engine][spr_num_reg]     = false;
     
    608584              if (val)
    609585                {
    610                   LABEL(" * BYPASS_MEMORY ["+toString(i)+"] - gpr["+toString(num_reg)+"]["+toString(ooo_engine)+"] <- "+toString(data));
     586                  LABEL(" * BYPASS_MEMORY [%d] - spr[%d][%d] <- 0x%x",i,num_reg,ooo_engine,data);
     587
    611588                  can_gpr_use [ooo_engine][num_reg] = false;
    612589                  need_gpr [ooo_engine][num_reg] = false;
     
    622599              (out_INSERT_ACK->read() == 1))
    623600            {
    624               LABEL("Accepted INSERT  number : "+toString(request_in));
     601              LABEL("Accepted INSERT  number : %d",request_in);
    625602              request_in  ++;
    626603            }
     
    628605          for (uint32_t i=0; i<_param->_nb_inst_retire; i++)
    629606            {
    630               LABEL("Test     RETIRE "+toString(i)+" : "+toString(out_RETIRE_VAL[i]->read())+","+toString(in_RETIRE_ACK[i]->read()));
     607              LABEL("Test     RETIRE %d : %d,%d",i,out_RETIRE_VAL[i]->read(),in_RETIRE_ACK[i]->read());
    631608              if ((out_RETIRE_VAL [i]->read() == 1) and
    632609                  ( in_RETIRE_ACK [i]->read() == 1))
     
    637614                  else
    638615                    rob_id = 0;
    639                   LABEL("Accepted RETIRE ["+toString(i)+"] number : "+toString(rob_id)+", request number : "+toString(request_out));
     616                  LABEL("Accepted RETIRE [%d] number : %d, request number : %d",i,rob_id,request_out);
    640617                  TEST(bool, request_out_wait [rob_id] , true);
    641618
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Read_unit/Read_unit/Reservation_station/include/Reservation_station.h

    r81 r82  
    2121#endif
    2222#include "Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Read_unit/Read_unit/Reservation_station/include/Parameters.h"
    23 #include "Behavioural/include/Types.h"
     23#include "Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Read_unit/Read_unit/Reservation_station/include/Types.h"
    2424#ifdef STATISTICS
    2525#include "Behavioural/include/Stat.h"
     
    2929#include "Behavioural/include/Vhdl.h"
    3030#endif
     31#include "Behavioural/include/Usage.h"
    3132
    3233namespace morpheo {
     
    3940namespace reservation_station {
    4041
    41   class Treservation_station_entry_t
    42   {
    43   public    : Tcontext_t         _context_id     ;
    44   public    : Tcontext_t         _front_end_id   ;
    45   public    : Tcontext_t         _ooo_engine_id  ;
    46   public    : Tpacket_t          _rob_id         ;
    47   public    : Toperation_t       _operation   ;
    48   public    : Ttype_t            _type        ;
    49   public    : Tlsq_ptr_t         _store_queue_ptr_write;
    50   public    : Tlsq_ptr_t         _load_queue_ptr_write ;
    51   public    : Tcontrol_t         _has_immediat;
    52   public    : Tgeneral_data_t    _immediat    ;
    53 //public    : Tcontrol_t         _read_ra     ;
    54   public    : Tgeneral_address_t _num_reg_ra  ;
    55   public    : Tcontrol_t         _data_ra_val ;
    56   public    : Tgeneral_data_t    _data_ra     ;
    57 //public    : Tcontrol_t         _read_rb     ;
    58   public    : Tgeneral_address_t _num_reg_rb  ;
    59   public    : Tcontrol_t         _data_rb_val ;
    60   public    : Tgeneral_data_t    _data_rb     ;
    61 //public    : Tcontrol_t         _read_rc     ;
    62   public    : Tspecial_address_t _num_reg_rc  ;
    63   public    : Tcontrol_t         _data_rc_val ;
    64   public    : Tspecial_data_t    _data_rc     ;
    65   public    : Tcontrol_t         _write_rd    ;
    66   public    : Tgeneral_address_t _num_reg_rd  ;
    67   public    : Tcontrol_t         _write_re    ;
    68   public    : Tspecial_address_t _num_reg_re  ;
    69 
    70     friend std::ostream& operator<< (std::ostream& output_stream,
    71                                 morpheo::behavioural::core::multi_execute_loop::execute_loop::multi_read_unit::read_unit::reservation_station::Treservation_station_entry_t & x)
    72     {
    73       output_stream << " * _context_id            : " << toString(x._context_id     ) << std::endl
    74                     << " * _front_end_id          : " << toString(x._front_end_id   ) << std::endl
    75                     << " * _ooo_engine_id         : " << toString(x._ooo_engine_id  ) << std::endl
    76                     << " * _rob_id                : " << toString(x._rob_id         ) << std::endl
    77                     << " * _operation             : " << toString(x._operation      ) << std::endl
    78                     << " * _type                  : " << toString(x._type           ) << std::endl
    79                     << " * _store_queue_ptr_write : " << toString(x._store_queue_ptr_write) << std::endl
    80                     << " * _load_queue_ptr_write  : " << toString(x._load_queue_ptr_write ) << std::endl
    81                     << " * _has_immediat          : " << toString(x._has_immediat   ) << std::endl
    82                     << " * _immediat              : " << toString(x._immediat       ) << std::endl
    83 //                  << " * _read_ra               : " << toString(x._read_ra        ) << std::endl
    84                     << " * _num_reg_ra            : " << toString(x._num_reg_ra     ) << std::endl
    85                     << " * _data_ra_val           : " << toString(x._data_ra_val    ) << std::endl
    86                     << " * _data_ra               : " << toString(x._data_ra        ) << std::endl
    87 //                  << " * _read_rb               : " << toString(x._read_rb        ) << std::endl
    88                     << " * _num_reg_rb            : " << toString(x._num_reg_rb     ) << std::endl
    89                     << " * _data_rb_val           : " << toString(x._data_rb_val    ) << std::endl
    90                     << " * _data_rb               : " << toString(x._data_rb        ) << std::endl
    91 //                  << " * _read_rc               : " << toString(x._read_rc        ) << std::endl
    92                     << " * _num_reg_rc            : " << toString(x._num_reg_rc     ) << std::endl
    93                     << " * _data_rc_val           : " << toString(x._data_rc_val    ) << std::endl
    94                     << " * _data_rc               : " << toString(x._data_rc        ) << std::endl
    95                     << " * _write_rd              : " << toString(x._write_rd       ) << std::endl
    96                     << " * _num_reg_rd            : " << toString(x._num_reg_rd     ) << std::endl
    97                     << " * _write_re              : " << toString(x._write_re       ) << std::endl
    98                     << " * _num_reg_re            : " << toString(x._num_reg_re     ) << std::endl;
    99 
    100       return output_stream;
    101     }
    102   };
    103 
    10442  class Reservation_station
    10543#if SYSTEMC
     
    10947    // -----[ fields ]----------------------------------------------------
    11048    // Parameters
    111   protected : const std::string       _name;
    112 
     49  protected : const std::string  _name;
    11350  protected : const Parameters * _param;
     51  private   : const Tusage_t     _usage;
    11452
    11553#ifdef STATISTICS
     
    241179                                                       morpheo::behavioural::Parameters_Statistics * param_statistics,
    242180#endif
    243                                                        Parameters                                  * param );
     181                                                       Parameters                                  * param,
     182                                                       morpheo::behavioural::Tusage_t                usage );
     183
    244184  public  :          ~Reservation_station             (void);
    245185                                               
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Read_unit/Read_unit/Reservation_station/src/Reservation_station.cpp

    r81 r82  
    2020#undef  FUNCTION
    2121#define FUNCTION "Reservation_station::Reservation_station"
     22
     23  Reservation_station::Reservation_station
     24  (
    2225#ifdef SYSTEMC
    23   Reservation_station::Reservation_station (sc_module_name name,
     26   sc_module_name name,
    2427#else
    25   Reservation_station::Reservation_station (string name,
     28   std::string name,
    2629#endif
    2730#ifdef STATISTICS
    28                           morpheo::behavioural::Parameters_Statistics * param_statistics,
     31   morpheo::behavioural::Parameters_Statistics * param_statistics,
    2932#endif
    30                           morpheo::behavioural::core::multi_execute_loop::execute_loop::multi_read_unit::read_unit::reservation_station::Parameters * param ):
    31                               _name              (name)
    32                               ,_param            (param)
     33   morpheo::behavioural::core::multi_execute_loop::execute_loop::multi_read_unit::read_unit::reservation_station::Parameters * param,
     34   morpheo::behavioural::Tusage_t                usage ):
     35    _name   (name)
     36    ,_param (param)
     37    ,_usage (usage)
    3338  {
    3439    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_allocation.cpp

    r81 r82  
    2626    log_printf(FUNC,Reservation_station,FUNCTION,"Begin");
    2727
    28     _component   = new Component ();
     28    _component   = new Component (_usage);
    2929
    3030    Entity * entity = _component->set_entity (_name       
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Read_unit/Read_unit/SelfTest/src/test.cpp

    r81 r82  
    77 */
    88
     9#define NB_ITERATION  1
     10#define CYCLE_MAX     (128*NB_ITERATION)
     11
    912#include "Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Read_unit/Read_unit/SelfTest/include/test.h"
    1013#include "Common/include/Test.h"
    1114#include "Behavioural/include/Allocation.h"
    12 
    13 #define NB_ITERATION  1
    14 #define CYCLE_MAX     (128*NB_ITERATION)
    15 
    16 #define LABEL(str...)                                                   \
    17   {                                                                     \
    18     msg (_("{%d} "),static_cast<uint32_t>(sc_simulation_time()));       \
    19     msg (str);                                                          \
    20     msg (_("\n"));                                                      \
    21   } while(0)
    22 
    23 #define SC_START(cycle_offset)                                                       \
    24   do                                                                                 \
    25     {                                                                                \
    26       /*cout << "SC_START (begin)" << endl;*/                                        \
    27                                                                                      \
    28       uint32_t cycle_current = static_cast<uint32_t>(sc_simulation_time());          \
    29       if (cycle_offset != 0)                                                         \
    30         {                                                                            \
    31           cout << "##########[ cycle "<< cycle_current+cycle_offset << " ]" << endl; \
    32         }                                                                            \
    33                                                                                      \
    34       if (cycle_current > CYCLE_MAX)                                                 \
    35         {                                                                            \
    36           TEST_KO("Maximal cycles Reached");                                         \
    37         }                                                                            \
    38                                                                                      \
    39       sc_start(cycle_offset);                                                        \
    40                                                                                      \
    41       /*cout << "SC_START (end  )" << endl;*/                                        \
    42     } while(0)
    4315
    4416void test (string name,
     
    5123#endif
    5224
    53   Read_unit * _Read_unit = new Read_unit (name.c_str(),
     25  Read_unit * _Read_unit = new Read_unit
     26    (name.c_str(),
    5427#ifdef STATISTICS
    55                                              _parameters_statistics,
    56 #endif
    57                                              _param);
     28     _parameters_statistics,
     29#endif
     30     _param,
     31     USE_ALL);
    5832 
    5933#ifdef SYSTEMC
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Read_unit/Read_unit/include/Read_unit.h

    r81 r82  
    178178#endif
    179179   Parameters                                  * param,
    180    morpheo::behavioural::Tusage_t                usage=USE_ALL
     180   morpheo::behavioural::Tusage_t                usage
    181181   );
    182182  public  :          ~Read_unit             (void);
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Read_unit/Read_unit/src/Read_unit_allocation.cpp

    r81 r82  
    184184       name = _name+"_read_queue";
    185185       
    186        _component_read_queue  = new morpheo::behavioural::core::multi_execute_loop::execute_loop::multi_read_unit::read_unit::read_queue::Read_queue (name.c_str()
     186       _component_read_queue  = new morpheo::behavioural::core::multi_execute_loop::execute_loop::multi_read_unit::read_unit::read_queue::Read_queue
     187         (name.c_str()
    187188#ifdef STATISTICS
    188                                                                                                                                                       ,param_statistics
    189 #endif
    190                                                                                                                                                       ,_param->_param_read_queue);
     189          ,param_statistics
     190#endif
     191          ,_param->_param_read_queue
     192          ,_usage);
    191193       
    192194       _component->set_component (_component_read_queue->_component
     
    199201       name = _name+"_reservation_station";
    200202       
    201        _component_reservation_station  = new morpheo::behavioural::core::multi_execute_loop::execute_loop::multi_read_unit::read_unit::reservation_station::Reservation_station (name.c_str()
     203       _component_reservation_station  = new morpheo::behavioural::core::multi_execute_loop::execute_loop::multi_read_unit::read_unit::reservation_station::Reservation_station
     204         (name.c_str()
    202205#ifdef STATISTICS
    203                                                                                                                                                                                  ,param_statistics
    204 #endif
    205                                                                                                                                                                                  ,_param->_param_reservation_station);
     206          ,param_statistics
     207#endif
     208          ,_param->_param_reservation_station
     209          ,_usage);
    206210       
    207211       _component->set_component (_component_reservation_station->_component
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Write_unit/Write_unit/Execute_queue/SelfTest/src/test.cpp

    r81 r82  
    77 */
    88
     9#define NB_ITERATION  1
     10#define CYCLE_MAX     (128*NB_ITERATION)
     11
    912#include "Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Write_unit/Write_unit/Execute_queue/SelfTest/include/test.h"
    1013#include "Common/include/Test.h"
    1114#include "Behavioural/include/Allocation.h"
    1215#include "Common/include/BitManipulation.h"
    13 
    14 #define NB_ITERATION  1
    15 #define CYCLE_MAX     (128*NB_ITERATION)
    16 
    17 #define LABEL(str...)                                                   \
    18   {                                                                     \
    19     msg (_("{%d} "),static_cast<uint32_t>(sc_simulation_time()));       \
    20     msg (str);                                                          \
    21     msg (_("\n"));                                                      \
    22   } while(0)
    23 
    24 #define SC_START(cycle_offset)                                                       \
    25   do                                                                                 \
    26     {                                                                                \
    27       /*cout << "SC_START (begin)" << endl;*/                                        \
    28                                                                                      \
    29       uint32_t cycle_current = static_cast<uint32_t>(sc_simulation_time());          \
    30       if (cycle_offset != 0)                                                         \
    31         {                                                                            \
    32           cout << "##########[ cycle "<< cycle_current+cycle_offset << " ]" << endl; \
    33         }                                                                            \
    34                                                                                      \
    35       if (cycle_current > CYCLE_MAX)                                                 \
    36         {                                                                            \
    37           TEST_KO("Maximal cycles Reached");                                         \
    38         }                                                                            \
    39                                                                                      \
    40       sc_start(cycle_offset);                                                        \
    41                                                                                      \
    42       /*cout << "SC_START (end  )" << endl;*/                                        \
    43     } while(0)
    4416
    4517  class entry_t
     
    10981#endif
    11082
    111   Execute_queue * _Execute_queue = new Execute_queue (name.c_str(),
     83  Execute_queue * _Execute_queue = new Execute_queue
     84    (name.c_str(),
    11285#ifdef STATISTICS
    113                                              _parameters_statistics,
     86     _parameters_statistics,
    11487#endif
    115                                              _param);
     88     _param,
     89     USE_ALL);
    11690 
    11791#ifdef SYSTEMC
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Write_unit/Write_unit/Execute_queue/include/Execute_queue.h

    r81 r82  
    1717#include "Common/include/ToString.h"
    1818#include "Common/include/Debug.h"
    19 #include "Behavioural/include/Types.h"
    2019
    2120#include "Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Write_unit/Write_unit/Execute_queue/include/Parameters.h"
     21#include "Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Write_unit/Write_unit/Execute_queue/include/Types.h"
    2222#ifdef STATISTICS
    2323#include "Behavioural/include/Stat.h"
     
    3131namespace morpheo {
    3232namespace behavioural {
    33 
    3433namespace core {
    3534namespace multi_execute_loop {
     
    3837namespace write_unit {
    3938namespace execute_queue {
    40 
    41 
    42   class execute_queue_entry_t
    43   {
    44   public  : Tcontext_t         _context_id   ;
    45   public  : Tcontext_t         _front_end_id ;
    46   public  : Tcontext_t         _ooo_engine_id;
    47   public  : Tpacket_t          _packet_id    ;
    48 //public  : Toperation_t       _operation    ;
    49 //public  : Ttype_t            _type         ;
    50   public  : Tspecial_data_t    _flags        ;
    51   public  : Texception_t       _exception    ;
    52   public  : Tcontrol_t         _no_sequence  ;
    53   public  : Tgeneral_data_t    _address      ;
    54    
    55   public  : execute_queue_entry_t (Tcontext_t         context_id   ,
    56                                    Tcontext_t         front_end_id ,
    57                                    Tcontext_t         ooo_engine_id,
    58                                    Tpacket_t          packet_id    ,
    59                                  //Toperation_t       operation    ,
    60                                  //Ttype_t            type         ,
    61                                    Tspecial_data_t    flags        ,
    62                                    Texception_t       exception    ,
    63                                    Tcontrol_t         no_sequence  ,
    64                                    Tgeneral_data_t    address      )
    65     {
    66       _context_id    = context_id   ;
    67       _front_end_id  = front_end_id ;
    68       _ooo_engine_id = ooo_engine_id;
    69       _packet_id     = packet_id    ;
    70     //_operation     = operation    ;
    71     //_type          = type         ;
    72       _flags         = flags        ;
    73       _exception     = exception    ;
    74       _no_sequence   = no_sequence  ;
    75       _address       = address      ;
    76     };
    77   };
    78 
    7939
    8040  class Execute_queue
     
    159119#endif
    160120   Parameters                                  * param,
    161    morpheo::behavioural::Tusage_t                usage=USE_ALL
     121   morpheo::behavioural::Tusage_t                usage
    162122   );
    163123  public  :          ~Execute_queue             (void);
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Write_unit/Write_unit/SelfTest/src/test.cpp

    r81 r82  
    77 */
    88
     9#define NB_ITERATION  1
     10#define CYCLE_MAX     (128*NB_ITERATION)
     11
    912#include "Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Write_unit/Write_unit/SelfTest/include/test.h"
    1013#include "Common/include/Test.h"
    1114#include "Common/include/BitManipulation.h"
    1215#include "Behavioural/include/Allocation.h"
    13 
    14 #define NB_ITERATION  1
    15 #define CYCLE_MAX     (128*NB_ITERATION)
    16 
    17 #define LABEL(str...)                                                   \
    18   {                                                                     \
    19     msg (_("{%d} "),static_cast<uint32_t>(sc_simulation_time()));       \
    20     msg (str);                                                          \
    21     msg (_("\n"));                                                      \
    22   } while(0)
    23 
    24 #define SC_START(cycle_offset)                                                       \
    25   do                                                                                 \
    26     {                                                                                \
    27       /*cout << "SC_START (begin)" << endl;*/                                        \
    28                                                                                      \
    29       uint32_t cycle_current = static_cast<uint32_t>(sc_simulation_time());          \
    30       if (cycle_offset != 0)                                                         \
    31         {                                                                            \
    32           cout << "##########[ cycle "<< cycle_current+cycle_offset << " ]" << endl; \
    33         }                                                                            \
    34                                                                                      \
    35       if (cycle_current > CYCLE_MAX)                                                 \
    36         {                                                                            \
    37           TEST_KO("Maximal cycles Reached");                                         \
    38         }                                                                            \
    39                                                                                      \
    40       sc_start(cycle_offset);                                                        \
    41                                                                                      \
    42       /*cout << "SC_START (end  )" << endl;*/                                        \
    43     } while(0)
    4416
    4517  class entry_t
     
    12799#endif
    128100
    129   Write_unit * _Write_unit = new Write_unit (name.c_str(),
     101  Write_unit * _Write_unit = new Write_unit
     102    (name.c_str(),
    130103#ifdef STATISTICS
    131                                              _parameters_statistics,
     104     _parameters_statistics,
    132105#endif
    133                                              _param);
     106     _param,
     107     USE_ALL);
    134108 
    135109#ifdef SYSTEMC
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Write_unit/Write_unit/Write_queue/SelfTest/src/test.cpp

    r81 r82  
    77 */
    88
     9#define NB_ITERATION  1
     10#define CYCLE_MAX     (128*NB_ITERATION)
     11
    912#include "Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Write_unit/Write_unit/Write_queue/SelfTest/include/test.h"
    1013#include "Common/include/Test.h"
    1114#include "Common/include/BitManipulation.h"
    1215#include "Behavioural/include/Allocation.h"
    13 
    14 #define NB_ITERATION  1
    15 #define CYCLE_MAX     (128*NB_ITERATION)
    16 
    17 #define LABEL(str...)                                                   \
    18   {                                                                     \
    19     msg (_("{%d} "),static_cast<uint32_t>(sc_simulation_time()));       \
    20     msg (str);                                                          \
    21     msg (_("\n"));                                                      \
    22   } while(0)
    23 
    24 #define SC_START(cycle_offset)                                                       \
    25   do                                                                                 \
    26     {                                                                                \
    27       /*cout << "SC_START (begin)" << endl;*/                                        \
    28                                                                                      \
    29       uint32_t cycle_current = static_cast<uint32_t>(sc_simulation_time());          \
    30       if (cycle_offset != 0)                                                         \
    31         {                                                                            \
    32           cout << "##########[ cycle "<< cycle_current+cycle_offset << " ]" << endl; \
    33         }                                                                            \
    34                                                                                      \
    35       if (cycle_current > CYCLE_MAX)                                                 \
    36         {                                                                            \
    37           TEST_KO("Maximal cycles Reached");                                         \
    38         }                                                                            \
    39                                                                                      \
    40       sc_start(cycle_offset);                                                        \
    41                                                                                      \
    42       /*cout << "SC_START (end  )" << endl;*/                                        \
    43     } while(0)
    4416
    4517  class entry_t
     
    12799
    128100
    129   Write_queue * _Write_queue = new Write_queue (name.c_str(),
     101  Write_queue * _Write_queue = new Write_queue
     102    (name.c_str(),
    130103#ifdef STATISTICS
    131                                              _parameters_statistics,
     104     _parameters_statistics,
    132105#endif
    133                                              _param);
     106     _param,
     107     USE_ALL);
    134108 
    135109#ifdef SYSTEMC
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Write_unit/Write_unit/Write_queue/include/Write_queue.h

    r81 r82  
    1717#include "Common/include/ToString.h"
    1818#include "Common/include/Debug.h"
    19 #include "Behavioural/include/Types.h"
    2019
    2120#include "Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Write_unit/Write_unit/Write_queue/include/Parameters.h"
     21#include "Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Write_unit/Write_unit/Write_queue/include/Types.h"
     22
    2223#ifdef STATISTICS
    2324#include "Behavioural/include/Stat.h"
     
    3738namespace write_unit {
    3839namespace write_queue {
    39 
    40   class write_queue_entry_t
    41   {
    42   public  : Tcontext_t         _context_id   ;
    43   public  : Tcontext_t         _front_end_id ;
    44   public  : Tcontext_t         _ooo_engine_id;
    45   public  : Tpacket_t          _packet_id    ;
    46 //public  : Toperation_t       _operation    ;
    47   public  : Ttype_t            _type         ;
    48   public  : Tcontrol_t         _write_rd     ;
    49   public  : Tgeneral_address_t _num_reg_rd   ;
    50   public  : Tgeneral_data_t    _data_rd      ;
    51   public  : Tcontrol_t         _write_re     ;
    52   public  : Tspecial_address_t _num_reg_re   ;
    53   public  : Tspecial_data_t    _data_re      ;
    54   public  : Texception_t       _exception    ;
    55   public  : Tcontrol_t         _no_sequence  ;
    56   public  : Tgeneral_data_t    _address      ;
    57    
    58   public  : write_queue_entry_t (Tcontext_t         context_id   ,
    59                                  Tcontext_t         front_end_id ,
    60                                  Tcontext_t         ooo_engine_id,
    61                                  Tpacket_t          packet_id    ,
    62                                //Toperation_t       operation    ,
    63                                  Ttype_t            type         ,
    64                                  Tcontrol_t         write_rd     ,
    65                                  Tgeneral_address_t num_reg_rd   ,
    66                                  Tgeneral_data_t    data_rd      ,
    67                                  Tcontrol_t         write_re     ,
    68                                  Tspecial_address_t num_reg_re   ,
    69                                  Tspecial_data_t    data_re      ,
    70                                  Texception_t       exception    ,
    71                                  Tcontrol_t         no_sequence  ,
    72                                  Tgeneral_data_t    address      )
    73     {
    74       _context_id    = context_id   ;
    75       _front_end_id  = front_end_id ;
    76       _ooo_engine_id = ooo_engine_id;
    77       _packet_id     = packet_id    ;
    78     //_operation     = operation    ;
    79       _type          = type         ;
    80       _write_rd      = write_rd     ;
    81       _num_reg_rd    = num_reg_rd   ;
    82       _data_rd       = data_rd      ;
    83       _write_re      = write_re     ;
    84       _num_reg_re    = num_reg_re   ;
    85       _data_re       = data_re      ;
    86       _exception     = exception    ;
    87       _no_sequence   = no_sequence  ;
    88       _address       = address      ;
    89     };
    90   };
    91 
    9240
    9341  class Write_queue
     
    204152#endif
    205153   Parameters                                  * param,
    206    morpheo::behavioural::Tusage_t                usage=USE_ALL
     154   morpheo::behavioural::Tusage_t                usage
    207155   );
    208156  public  :          ~Write_queue             (void);
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Write_unit/Write_unit/include/Write_unit.h

    r81 r82  
    145145#endif
    146146   Parameters                                  * param,
    147    morpheo::behavioural::Tusage_t                usage=USE_ALL
     147   morpheo::behavioural::Tusage_t                usage
    148148   );
    149149  public  :          ~Write_unit             (void);
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Write_unit/Write_unit/src/Write_unit_allocation.cpp

    r81 r82  
    139139       name = _name+"_write_queue";
    140140       
    141        component_write_queue  = new morpheo::behavioural::core::multi_execute_loop::execute_loop::multi_write_unit::write_unit::write_queue::Write_queue (name.c_str()
     141       component_write_queue  = new morpheo::behavioural::core::multi_execute_loop::execute_loop::multi_write_unit::write_unit::write_queue::Write_queue
     142         (name.c_str()
    142143#ifdef STATISTICS
    143                                                                                                                                                           ,param_statistics
    144 #endif
    145                                                                                                                                                           ,_param->_param_write_queue);
     144          ,param_statistics
     145#endif
     146          ,_param->_param_write_queue
     147          ,_usage);
    146148       
    147149       _component->set_component (component_write_queue->_component
     
    156158       name = _name+"_execute_queue";
    157159       
    158        component_execute_queue  = new morpheo::behavioural::core::multi_execute_loop::execute_loop::multi_write_unit::write_unit::execute_queue::Execute_queue (name.c_str()
     160       component_execute_queue  = new morpheo::behavioural::core::multi_execute_loop::execute_loop::multi_write_unit::write_unit::execute_queue::Execute_queue
     161         (name.c_str()
    159162#ifdef STATISTICS
    160                                                                                                                                                                 ,param_statistics
    161 #endif
    162                                                                                                                                                                 ,_param->_param_execute_queue);
     163          ,param_statistics
     164#endif
     165          ,_param->_param_execute_queue
     166          ,_usage);
    163167       
    164168       _component->set_component (component_execute_queue->_component
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Network/Execution_unit_to_Write_unit/SelfTest/src/test.cpp

    r81 r82  
    77 */
    88
     9#define NB_ITERATION  1
     10#define CYCLE_MAX     (128*NB_ITERATION)
     11
    912#include "Behavioural/Core/Multi_Execute_loop/Execute_loop/Network/Execution_unit_to_Write_unit/SelfTest/include/test.h"
    1013#include "Common/include/Test.h"
     
    1215#include "Behavioural/include/Allocation.h"
    1316#include <set>
    14 
    15 #define NB_ITERATION  1
    16 #define CYCLE_MAX     (128*NB_ITERATION)
    17 
    18 #define LABEL(str...)                                                   \
    19   {                                                                     \
    20     msg (_("{%d} "),static_cast<uint32_t>(sc_simulation_time()));       \
    21     msg (str);                                                          \
    22     msg (_("\n"));                                                      \
    23   } while(0)
    24 
    25 #define SC_START(cycle_offset)                                                       \
    26   do                                                                                 \
    27     {                                                                                \
    28       /*cout << "SC_START (begin)" << endl;*/                                        \
    29                                                                                      \
    30       uint32_t cycle_current = static_cast<uint32_t>(sc_simulation_time());          \
    31       if (cycle_offset != 0)                                                         \
    32         {                                                                            \
    33           cout << "##########[ cycle "<< cycle_current+cycle_offset << " ]" << endl; \
    34         }                                                                            \
    35                                                                                      \
    36       if (cycle_current > CYCLE_MAX)                                                 \
    37         {                                                                            \
    38           TEST_KO("Maximal cycles Reached");                                         \
    39         }                                                                            \
    40                                                                                      \
    41       sc_start(cycle_offset);                                                        \
    42                                                                                      \
    43       /*cout << "SC_START (end  )" << endl;*/                                        \
    44     } while(0)
    4517
    4618
     
    10678#endif
    10779
    108   Execution_unit_to_Write_unit * _Execution_unit_to_Write_unit = new Execution_unit_to_Write_unit (name.c_str(),
     80  Execution_unit_to_Write_unit * _Execution_unit_to_Write_unit = new Execution_unit_to_Write_unit
     81    (name.c_str(),
    10982#ifdef STATISTICS
    110                                              _parameters_statistics,
     83     _parameters_statistics,
    11184#endif
    112                                              _param);
     85     _param,
     86     USE_ALL);
    11387 
    11488#ifdef SYSTEMC
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Network/Execution_unit_to_Write_unit/include/Execution_unit_to_Write_unit.h

    r81 r82  
    126126#endif
    127127   Parameters                                  * param,
    128    morpheo::behavioural::Tusage_t                usage=USE_ALL
     128   morpheo::behavioural::Tusage_t                usage
    129129   );
    130130  public  :          ~Execution_unit_to_Write_unit             (void);
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Network/Read_unit_to_Execution_unit/SelfTest/src/test.cpp

    r81 r82  
    77 */
    88
     9#define NB_ITERATION  1
     10#define CYCLE_MAX     (128*NB_ITERATION)
     11
    912#include "Behavioural/Core/Multi_Execute_loop/Execute_loop/Network/Read_unit_to_Execution_unit/SelfTest/include/test.h"
    1013#include "Common/include/Test.h"
     
    1316#include <list>
    1417#include <set>
    15 
    16 #define NB_ITERATION  1
    17 #define CYCLE_MAX     (128*NB_ITERATION)
    18 
    19 #define LABEL(str...)                                                   \
    20   {                                                                     \
    21     msg (_("{%d} "),static_cast<uint32_t>(sc_simulation_time()));       \
    22     msg (str);                                                          \
    23     msg (_("\n"));                                                      \
    24   } while(0)
    25 
    26 #define SC_START(cycle_offset)                                                       \
    27   do                                                                                 \
    28     {                                                                                \
    29       /*cout << "SC_START (begin)" << endl;*/                                        \
    30                                                                                      \
    31       uint32_t cycle_current = static_cast<uint32_t>(sc_simulation_time());          \
    32       if (cycle_offset != 0)                                                         \
    33         {                                                                            \
    34           cout << "##########[ cycle "<< cycle_current+cycle_offset << " ]" << endl; \
    35         }                                                                            \
    36                                                                                      \
    37       if (cycle_current > CYCLE_MAX)                                                 \
    38         {                                                                            \
    39           TEST_KO("Maximal cycles Reached");                                         \
    40         }                                                                            \
    41                                                                                      \
    42       sc_start(cycle_offset);                                                        \
    43                                                                                      \
    44       /*cout << "SC_START (end  )" << endl;*/                                        \
    45     } while(0)
    46 
    4718
    4819class entry_t
     
    11384#endif
    11485
    115   Read_unit_to_Execution_unit * _Read_unit_to_Execution_unit = new Read_unit_to_Execution_unit (name.c_str(),
     86  Read_unit_to_Execution_unit * _Read_unit_to_Execution_unit = new Read_unit_to_Execution_unit
     87    (name.c_str(),
    11688#ifdef STATISTICS
    117                                              _parameters_statistics,
     89     _parameters_statistics,
    11890#endif
    119                                              _param);
     91     _param,
     92     USE_ALL);
    12093 
    12194#ifdef SYSTEMC
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Network/Read_unit_to_Execution_unit/include/Read_unit_to_Execution_unit.h

    r81 r82  
    130130#endif
    131131   Parameters                                  * param,
    132    morpheo::behavioural::Tusage_t                usage=USE_ALL
     132   morpheo::behavioural::Tusage_t                usage
    133133   );
    134134  public  :          ~Read_unit_to_Execution_unit             (void);
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Register_unit/Register_unit_Glue/SelfTest/src/test.cpp

    r81 r82  
    77 */
    88
     9#define NB_ITERATION  128
     10#define CYCLE_MAX     (128*NB_ITERATION)
     11
    912#include "Behavioural/Core/Multi_Execute_loop/Execute_loop/Register_unit/Register_unit_Glue/SelfTest/include/test.h"
    1013#include "Common/include/Test.h"
    11 
    12 #define NB_ITERATION  128
    13 #define CYCLE_MAX     (128*NB_ITERATION)
    14 
    15 #define LABEL(str)                                                                       \
    16 {                                                                                        \
    17   cout << "{"+toString(static_cast<uint32_t>(sc_simulation_time()))+"} " << str << endl; \
    18 } while(0)
    19 
    20 static uint32_t cycle = 0;
    21 
    22 #define SC_START(cycle_offset)                                          \
    23 do                                                                      \
    24 {                                                                       \
    25 /*cout << "SC_START (begin)" << endl;*/                                 \
    26                                                                         \
    27   uint32_t cycle_current = static_cast<uint32_t>(sc_simulation_time()); \
    28   if (cycle_current != cycle)                                           \
    29     {                                                                   \
    30       cycle = cycle_current;                                            \
    31       cout << "##########[ cycle "<< cycle << " ]" << endl;             \
    32     }                                                                   \
    33                                                                         \
    34   if (cycle_current > CYCLE_MAX)                                        \
    35     {                                                                   \
    36       TEST_KO("Maximal cycles Reached");                                \
    37     }                                                                   \
    38   sc_start(cycle_offset);                                               \
    39 /*cout << "SC_START (end  )" << endl;*/                                 \
    40 } while(0)
    4114
    4215void test (string name,
     
    4922#endif
    5023
    51   Register_unit_Glue * _Register_unit_Glue = new Register_unit_Glue (name.c_str(),
     24  Register_unit_Glue * _Register_unit_Glue = new Register_unit_Glue
     25    (name.c_str(),
    5226#ifdef STATISTICS
    53                                              _parameters_statistics,
     27     _parameters_statistics,
    5428#endif
    55                                              _param);
     29     _param,
     30     USE_ALL);
    5631 
    5732#ifdef SYSTEMC
     
    575550  for (uint32_t iteration=0; iteration<NB_ITERATION; iteration ++)
    576551    {
    577       LABEL("Iteration "+toString(iteration));
     552      LABEL("Iteration %d",iteration);
    578553
    579554      if (test_read == true)
     
    584559              Tcontrol_t      val = (rand()%100)<=percent_transaction;
    585560             
    586               LABEL("GPR_READ  ["+toString(j)+"] : "+toString(val)+" - " +toString(static_cast<uint32_t>(context)));
     561              LABEL("GPR_READ  [%d] : %d - %d",j,val,context);
    587562             
    588563              in_GPR_READ_VAL           [j] ->write(val);
     
    623598              Tcontrol_t      val = (rand()%100)<=percent_transaction;
    624599             
    625               LABEL("SPR_READ  ["+toString(j)+"] : "+toString(val)+" - " +toString(static_cast<uint32_t>(context)));
     600              LABEL("SPR_READ  [%d] : %d - %d",j,val,context);
    626601             
    627602              in_SPR_READ_VAL           [j] ->write(val);
     
    666641              Tcontrol_t      val = (rand()%100)<=percent_transaction;
    667642             
    668               LABEL("GPR_WRITE ["+toString(j)+"] : "+toString(val)+" - " +toString(static_cast<uint32_t>(context)));
    669              
     643              LABEL("GPR_WRITE [%d] : %d - %d",j,val,context);
     644
    670645              in_GPR_WRITE_VAL           [j] ->write(val);
    671646              in_GPR_WRITE_OOO_ENGINE_ID [j] ->write(context);
     
    701676              Tcontrol_t      val = (rand()%100)<=percent_transaction;
    702677             
    703               LABEL("SPR_WRITE ["+toString(j)+"] : "+toString(val)+" - " +toString(static_cast<uint32_t>(context)));
     678              LABEL("SPR_WRITE [%d] : %d - %d",j,val,context);
    704679             
    705680              in_SPR_WRITE_VAL           [j] ->write(val);
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Register_unit/Register_unit_Glue/include/Register_unit_Glue.h

    r81 r82  
    169169#endif
    170170   Parameters                                  * param,
    171    morpheo::behavioural::Tusage_t                usage=USE_ALL
     171   morpheo::behavioural::Tusage_t                usage
    172172   );
    173173  public  :          ~Register_unit_Glue             (void);
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Register_unit/Register_unit_Glue/src/Register_unit_Glue_allocation.cpp

    r81 r82  
    2424    log_printf(FUNC,Register_unit_Glue,FUNCTION,"Begin");
    2525
    26     _component   = new Component ();
     26    _component   = new Component (_usage);
    2727
    2828    Entity * entity = _component->set_entity (_name       
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Register_unit/SelfTest/src/test.cpp

    r81 r82  
    77 */
    88
     9#define NB_ITERATION  1
     10#define CYCLE_MAX     (10240*NB_ITERATION)
     11
    912#include "Behavioural/Core/Multi_Execute_loop/Execute_loop/Register_unit/SelfTest/include/test.h"
    1013#include "Common/include/Test.h"
    11 
    12 #define NB_ITERATION  1
    13 #define CYCLE_MAX     (10240*NB_ITERATION)
    14 
    15 #define LABEL(str)                                                                       \
    16 {                                                                                        \
    17   cout << "{"+toString(static_cast<uint32_t>(sc_simulation_time()))+"} " << str << endl; \
    18 } while(0)
    19 
    20 static uint32_t cycle = 0;
    21 
    22 #define SC_START(cycle_offset)                                          \
    23 do                                                                      \
    24 {                                                                       \
    25 /*cout << "SC_START (begin)" << endl;*/                                 \
    26                                                                         \
    27   uint32_t cycle_current = static_cast<uint32_t>(sc_simulation_time()); \
    28   if (cycle_current != cycle)                                           \
    29     {                                                                   \
    30       cycle = cycle_current;                                            \
    31       cout << "##########[ cycle "<< cycle << " ]" << endl;             \
    32     }                                                                   \
    33                                                                         \
    34   if (cycle_current > CYCLE_MAX)                                        \
    35     {                                                                   \
    36       TEST_KO("Maximal cycles Reached");                                \
    37     }                                                                   \
    38   sc_start(cycle_offset);                                               \
    39 /*cout << "SC_START (end  )" << endl;*/                                 \
    40 } while(0)
    4114
    4215void test (string name,
     
    4922#endif
    5023
    51   Register_unit * _Register_unit = new Register_unit (name.c_str(),
     24  Register_unit * _Register_unit = new Register_unit
     25    (name.c_str(),
    5226#ifdef STATISTICS
    53                                              _parameters_statistics,
     27     _parameters_statistics,
    5428#endif
    55                                              _param);
     29     _param,
     30     USE_ALL);
    5631 
    5732#ifdef SYSTEMC
     
    406381  for (uint32_t iteration=0; iteration<NB_ITERATION; iteration ++)
    407382    {
    408       LABEL("Iteration "+toString(iteration));
     383      LABEL("Iteration %d",iteration);
    409384
    410385      LABEL("(GPR) Write default value");
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Register_unit/include/Register_unit.h

    r81 r82  
    142142#endif
    143143   Parameters                                  * param,
    144    morpheo::behavioural::Tusage_t                usage=USE_ALL
     144   morpheo::behavioural::Tusage_t                usage
    145145   );
    146146  public  :          ~Register_unit             (void);
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Register_unit/src/Register_unit_allocation.cpp

    r81 r82  
    2929    log_printf(FUNC,Register_unit,FUNCTION,"Begin");
    3030
    31     _component   = new Component ();
     31    _component   = new Component (_usage);
    3232
    3333    Entity * entity = _component->set_entity (_name       
     
    270270#endif
    271271           ,_param->_param_gpr [i]
     272           ,_usage
    272273           );
    273274         
     
    290291#endif
    291292           ,_param->_param_gpr_status [i]
     293           ,_usage
    292294           );
    293295
     
    310312#endif
    311313           ,_param->_param_spr [i]
     314           ,_usage
    312315           );
    313316
     
    329332#endif
    330333           ,_param->_param_spr_status [i]
     334           ,_usage
    331335           );
    332336
     
    350354#endif
    351355       ,_param->_param_glue
     356       ,_usage
    352357       );
    353358
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/SelfTest/src/test.cpp

    r81 r82  
    77 */
    88
     9#define NB_ITERATION  1
     10#define CYCLE_MAX     (128*NB_ITERATION)
     11
    912#include "Behavioural/Core/Multi_Execute_loop/Execute_loop/SelfTest/include/test.h"
    1013#include "Common/include/Test.h"
    1114#include "Behavioural/include/Allocation.h"
    1215
    13 #define NB_ITERATION  1
    14 #define CYCLE_MAX     (128*NB_ITERATION)
    15 
    16 #define LABEL(str...)                                                   \
    17   {                                                                     \
    18     msg (_("{%d} "),static_cast<uint32_t>(sc_simulation_time()));       \
    19     msg (str);                                                          \
    20     msg (_("\n"));                                                      \
    21   } while(0)
    22 
    23 #define SC_START(cycle_offset)                                                       \
    24   do                                                                                 \
    25     {                                                                                \
    26       /*cout << "SC_START (begin)" << endl;*/                                        \
    27                                                                                      \
    28       uint32_t cycle_current = static_cast<uint32_t>(sc_simulation_time());          \
    29       if (cycle_offset != 0)                                                         \
    30         {                                                                            \
    31           cout << "##########[ cycle "<< cycle_current+cycle_offset << " ]" << endl; \
    32         }                                                                            \
    33                                                                                      \
    34       if (cycle_current > CYCLE_MAX)                                                 \
    35         {                                                                            \
    36           TEST_KO("Maximal cycles Reached");                                         \
    37         }                                                                            \
    38                                                                                      \
    39       sc_start(cycle_offset);                                                        \
    40                                                                                      \
    41       /*cout << "SC_START (end  )" << endl;*/                                        \
    42     } while(0)
    4316
    4417void test (string name,
     
    5124#endif
    5225
    53   Execute_loop * _Execute_loop = new Execute_loop (name.c_str(),
     26  Execute_loop * _Execute_loop = new Execute_loop
     27    (name.c_str(),
    5428#ifdef STATISTICS
    55                                              _parameters_statistics,
     29     _parameters_statistics,
    5630#endif
    57                                              _param);
     31     _param,
     32     USE_ALL);
    5833 
    5934#ifdef SYSTEMC
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/include/Execute_loop.h

    r81 r82  
    176176#endif
    177177   Parameters                                  * param,
    178    morpheo::behavioural::Tusage_t                usage=USE_ALL
     178   morpheo::behavioural::Tusage_t                usage
    179179   );
    180180  public  :          ~Execute_loop             (void);
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/src/Execute_loop_allocation.cpp

    r81 r82  
    164164            ,param_statistics
    165165#endif
    166             ,_param->_param_read_unit[i]);
     166            ,_param->_param_read_unit[i]
     167            ,_usage);
    167168
    168169         _component->set_component (_component_read_unit [i]->_component
     
    184185            ,param_statistics
    185186#endif
    186             ,_param->_param_functionnal_unit[i]);
     187            ,_param->_param_functionnal_unit[i]
     188            ,_usage);
    187189
    188190         _component->set_component (_component_functionnal_unit [i]->_component
     
    204206            ,param_statistics
    205207#endif
    206             ,_param->_param_load_store_unit[i]);
     208            ,_param->_param_load_store_unit[i]
     209            ,_usage);
    207210
    208211         _component->set_component (_component_load_store_unit [i]->_component
     
    224227            ,param_statistics
    225228#endif
    226             ,_param->_param_write_unit[i]);
     229            ,_param->_param_write_unit[i]
     230            ,_usage);
    227231
    228232         _component->set_component (_component_write_unit [i]->_component
     
    242246          ,param_statistics
    243247#endif
    244           ,_param->_param_read_unit_to_execution_unit);
     248          ,_param->_param_read_unit_to_execution_unit
     249          ,_usage);
    245250       
    246251       _component->set_component (_component_read_unit_to_execution_unit->_component
     
    260265          ,param_statistics
    261266#endif
    262           ,_param->_param_execution_unit_to_write_unit);
     267          ,_param->_param_execution_unit_to_write_unit
     268          ,_usage);
    263269       
    264270       _component->set_component (_component_execution_unit_to_write_unit->_component
     
    278284          ,param_statistics
    279285#endif
    280           ,_param->_param_register_unit);
     286          ,_param->_param_register_unit
     287          ,_usage);
    281288       
    282289       _component->set_component (_component_register_unit->_component
Note: See TracChangeset for help on using the changeset viewer.