Ignore:
Timestamp:
Dec 10, 2008, 7:31:39 PM (16 years ago)
Author:
rosiere
Message:

Almost complete design
with Test and test platform

Location:
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Write_unit/Write_unit/Write_queue
Files:
13 edited

Legend:

Unmodified
Added
Removed
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Write_unit/Write_unit/Write_queue/SelfTest/Makefile

    r81 r88  
    2424library_clean                   : Write_queue_library_clean
    2525
     26local_clean                     :
     27
    2628include                         $(DIR_COMPONENT)/Makefile.deps
    2729include                         $(DIR_MORPHEO)/Behavioural/Makefile.flags
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Write_unit/Write_unit/Write_queue/SelfTest/configuration.cfg

    r81 r88  
    992       2       *2 # uint32_t size_special_data 
    101016      16      *2 # uint32_t nb_special_register
    11 1       8       *2 # uint32_t nb_bypass_write 
     111       8       *4 # uint32_t nb_bypass_write 
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Write_unit/Write_unit/Write_queue/SelfTest/src/main.cpp

    r81 r88  
    6363         size_special_data  ,
    6464         nb_special_register,
    65          nb_bypass_write    );
     65         nb_bypass_write    ,
     66         true // is_toplevel
     67         );
    6668     
    6769      msg(_("%s"),param->print(1).c_str());
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Write_unit/Write_unit/Write_queue/SelfTest/src/test.cpp

    r82 r88  
    88
    99#define NB_ITERATION  1
    10 #define CYCLE_MAX     (128*NB_ITERATION)
     10#define CYCLE_MAX     (1024*NB_ITERATION)
    1111
    1212#include "Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Write_unit/Write_unit/Write_queue/SelfTest/include/test.h"
     
    9898#endif
    9999
     100  Tusage_t _usage = USE_ALL;
     101
     102//   _usage = usage_unset(_usage,USE_SYSTEMC              );
     103//   _usage = usage_unset(_usage,USE_VHDL                 );
     104//   _usage = usage_unset(_usage,USE_VHDL_TESTBENCH       );
     105//   _usage = usage_unset(_usage,USE_VHDL_TESTBENCH_ASSERT);
     106//   _usage = usage_unset(_usage,USE_POSITION             );
     107   _usage = usage_unset(_usage,USE_STATISTICS           );
     108//   _usage = usage_unset(_usage,USE_INFORMATION          );
    100109
    101110  Write_queue * _Write_queue = new Write_queue
     
    105114#endif
    106115     _param,
    107      USE_ALL);
     116     _usage);
    108117 
    109118#ifdef SYSTEMC
     
    145154  ALLOC_SC_SIGNAL (out_WRITE_QUEUE_OUT_NO_SEQUENCE  ,"out_WRITE_QUEUE_OUT_NO_SEQUENCE"  , Tcontrol_t        );
    146155  ALLOC_SC_SIGNAL (out_WRITE_QUEUE_OUT_ADDRESS      ,"out_WRITE_QUEUE_OUT_ADDRESS"      , Tgeneral_data_t   );
     156  ALLOC_SC_SIGNAL (out_WRITE_QUEUE_OUT_DATA         ,"out_WRITE_QUEUE_OUT_DATA"         , Tgeneral_data_t   );
    147157  ALLOC1_SC_SIGNAL(out_GPR_WRITE_VAL                ,"out_GPR_WRITE_VAL"                , Tcontrol_t        , _param->_nb_gpr_write);
    148158  ALLOC1_SC_SIGNAL( in_GPR_WRITE_ACK                ," in_GPR_WRITE_ACK"                , Tcontrol_t        , _param->_nb_gpr_write);
     
    180190  if (_param->_have_port_ooo_engine_id)
    181191  INSTANCE_SC_SIGNAL (_Write_queue,  in_WRITE_QUEUE_IN_OOO_ENGINE_ID );
    182   if (_param->_have_port_packet_id)
     192  if (_param->_have_port_rob_ptr  )
    183193  INSTANCE_SC_SIGNAL (_Write_queue,  in_WRITE_QUEUE_IN_PACKET_ID     );
    184194//INSTANCE_SC_SIGNAL (_Write_queue,  in_WRITE_QUEUE_IN_OPERATION     );
     
    201211  if (_param->_have_port_ooo_engine_id)
    202212  INSTANCE_SC_SIGNAL (_Write_queue, out_WRITE_QUEUE_OUT_OOO_ENGINE_ID);
    203   if (_param->_have_port_packet_id)
     213  if (_param->_have_port_rob_ptr  )
    204214  INSTANCE_SC_SIGNAL (_Write_queue, out_WRITE_QUEUE_OUT_PACKET_ID    );
    205215//INSTANCE_SC_SIGNAL (_Write_queue, out_WRITE_QUEUE_OUT_OPERATION    );
     
    209219  INSTANCE_SC_SIGNAL (_Write_queue, out_WRITE_QUEUE_OUT_NO_SEQUENCE  );
    210220  INSTANCE_SC_SIGNAL (_Write_queue, out_WRITE_QUEUE_OUT_ADDRESS      );
     221  INSTANCE_SC_SIGNAL (_Write_queue, out_WRITE_QUEUE_OUT_DATA         );
    211222  INSTANCE1_SC_SIGNAL(_Write_queue, out_GPR_WRITE_VAL                , _param->_nb_gpr_write);
    212223  INSTANCE1_SC_SIGNAL(_Write_queue,  in_GPR_WRITE_ACK                , _param->_nb_gpr_write);
     
    444455          {
    445456            Tcontext_t packet;
    446             if (_param->_have_port_packet_id)
     457            if (_param->_have_port_rob_ptr)
    447458              packet = out_WRITE_QUEUE_OUT_PACKET_ID->read();
    448459            else
     
    478489            TEST(Tcontrol_t     , out_WRITE_QUEUE_OUT_NO_SEQUENCE  ->read(), request [packet]->_no_sequence  );
    479490            TEST(Tgeneral_data_t, out_WRITE_QUEUE_OUT_ADDRESS      ->read(), request [packet]->_address      );
     491            TEST(Tgeneral_data_t, out_WRITE_QUEUE_OUT_DATA         ->read(), request [packet]->_data_rd      );
    480492
    481493            nb_request_out ++;
     
    531543  delete    out_WRITE_QUEUE_OUT_NO_SEQUENCE  ;
    532544  delete    out_WRITE_QUEUE_OUT_ADDRESS      ;
     545  delete    out_WRITE_QUEUE_OUT_DATA         ;
    533546  delete [] out_GPR_WRITE_VAL                ;
    534547  delete []  in_GPR_WRITE_ACK                ;
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Write_unit/Write_unit/Write_queue/include/Parameters.h

    r81 r88  
    2626  {
    2727    //-----[ fields ]------------------------------------------------------------
    28   public : const uint32_t            _size_queue                   ;
    29   public : const uint32_t            _nb_context                   ;
    30   public : const uint32_t            _nb_front_end                 ;
    31   public : const uint32_t            _nb_ooo_engine                ;
    32   public : const uint32_t            _nb_packet                    ;
    33   public : const uint32_t            _size_general_data            ;
    34   public : const uint32_t            _nb_general_register          ;
    35   public : const uint32_t            _size_special_data            ;
    36   public : const uint32_t            _nb_special_register          ;
    37   public : const uint32_t            _nb_bypass_write              ;
     28  public : uint32_t            _size_queue                   ;
     29  public : uint32_t            _nb_context                   ;
     30  public : uint32_t            _nb_front_end                 ;
     31  public : uint32_t            _nb_ooo_engine                ;
     32  public : uint32_t            _nb_packet                    ;
     33//public : uint32_t            _size_general_data            ;
     34  public : uint32_t            _nb_general_register          ;
     35//public : uint32_t            _size_special_data            ;
     36  public : uint32_t            _nb_special_register          ;
     37  public : uint32_t            _nb_bypass_write              ;
    3838
    39   public : const uint32_t            _nb_gpr_write                 ;
    40   public : const uint32_t            _nb_spr_write                 ;
     39  public : uint32_t            _nb_gpr_write                 ;
     40  public : uint32_t            _nb_spr_write                 ;
    4141
    42   public : const uint32_t            _size_context_id              ;
    43   public : const uint32_t            _size_front_end_id            ;
    44   public : const uint32_t            _size_ooo_engine_id           ;
    45   public : const uint32_t            _size_packet_id               ;
    46   public : const uint32_t            _size_general_register        ;
    47   public : const uint32_t            _size_special_register        ;
     42//public : uint32_t            _size_context_id              ;
     43//public : uint32_t            _size_front_end_id            ;
     44//public : uint32_t            _size_ooo_engine_id           ;
     45//public : uint32_t            _size_packet_id               ;
     46//public : uint32_t            _size_general_register        ;
     47//public : uint32_t            _size_special_register        ;
    4848
    49   public : const bool                _have_port_context_id         ;
    50   public : const bool                _have_port_front_end_id       ;
    51   public : const bool                _have_port_ooo_engine_id      ;
    52   public : const bool                _have_port_packet_id          ;
     49//public : bool                _have_port_context_id         ;
     50//public : bool                _have_port_front_end_id       ;
     51//public : bool                _have_port_ooo_engine_id      ;
     52//public : bool                _have_port_packet_id          ;
    5353
    5454    //-----[ methods ]-----------------------------------------------------------
     
    6262                        uint32_t size_special_data  ,
    6363                        uint32_t nb_special_register,
    64                         uint32_t nb_bypass_write    );
    65   public : Parameters  (Parameters & param) ;
     64                        uint32_t nb_bypass_write    ,
     65                        bool     is_toplevel=false  );
     66//public : Parameters  (Parameters & param) ;
    6667  public : ~Parameters () ;
     68
     69  public :        void            copy       (void);
    6770
    6871  public :        Parameters_test msg_error  (void);
    6972
    70   public :        std::string   print      (uint32_t depth);
    71   public : friend std::ostream& operator<< (std::ostream& output_stream,
    72                                             morpheo::behavioural::core::multi_execute_loop::execute_loop::multi_write_unit::write_unit::write_queue::Parameters & x);
     73  public :        std::string     print      (uint32_t depth);
     74  public : friend std::ostream&   operator<< (std::ostream& output_stream,
     75                                              morpheo::behavioural::core::multi_execute_loop::execute_loop::multi_write_unit::write_unit::write_queue::Parameters & x);
    7376  };
    7477
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Write_unit/Write_unit/Write_queue/include/Write_queue.h

    r82 r88  
    100100  public    : SC_OUT(Tcontrol_t        )    * out_WRITE_QUEUE_OUT_NO_SEQUENCE  ;
    101101  public    : SC_OUT(Tgeneral_data_t   )    * out_WRITE_QUEUE_OUT_ADDRESS      ;
     102  public    : SC_OUT(Tgeneral_data_t   )    * out_WRITE_QUEUE_OUT_DATA         ;
    102103
    103104    // -----[ Interface "gpr_write" ]-------------------------------------
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Write_unit/Write_unit/Write_queue/src/Parameters.cpp

    r81 r88  
    2929                          uint32_t size_special_data  ,
    3030                          uint32_t nb_special_register,
    31                           uint32_t nb_bypass_write    ):
    32     _size_queue              (size_queue         ),
    33     _nb_context              (nb_context         ),
    34     _nb_front_end            (nb_front_end       ),
    35     _nb_ooo_engine           (nb_ooo_engine      ),
    36     _nb_packet               (nb_packet          ),
    37     _size_general_data       (size_general_data  ),
    38     _nb_general_register     (nb_general_register),
    39     _size_special_data       (size_special_data  ),
    40     _nb_special_register     (nb_special_register),
    41     _nb_bypass_write         (nb_bypass_write    ),
    42 
    43     _nb_gpr_write            (1),
    44     _nb_spr_write            (1),
    45 
    46     _size_context_id         (log2(_nb_context         )),
    47     _size_front_end_id       (log2(_nb_front_end       )),
    48     _size_ooo_engine_id      (log2(_nb_ooo_engine      )),
    49     _size_packet_id          (log2(_nb_packet          )),
    50     _size_general_register   (log2(_nb_general_register)),
    51     _size_special_register   (log2(_nb_special_register)),
    52 
    53     _have_port_context_id    (_size_context_id    > 0),
    54     _have_port_front_end_id  (_size_front_end_id  > 0),
    55     _have_port_ooo_engine_id (_size_ooo_engine_id > 0),
    56     _have_port_packet_id     (_size_packet_id     > 0)
     31                          uint32_t nb_bypass_write    ,
     32                          bool     is_toplevel)
    5733  {
    5834    log_printf(FUNC,Write_queue,FUNCTION,"Begin");
     35
     36    _size_queue              = size_queue         ;
     37    _nb_context              = nb_context         ;
     38    _nb_front_end            = nb_front_end       ;
     39    _nb_ooo_engine           = nb_ooo_engine      ;
     40    _nb_packet               = nb_packet          ;
     41    _nb_general_register     = nb_general_register;
     42    _nb_special_register     = nb_special_register;
     43    _nb_bypass_write         = nb_bypass_write    ;
     44
     45    _nb_gpr_write            = 1;
     46    _nb_spr_write            = 1;
     47
    5948    test();
     49   
     50    if (is_toplevel)
     51      {
     52        _size_context_id         = log2(_nb_context         );
     53        _size_front_end_id       = log2(_nb_front_end       );
     54        _size_ooo_engine_id      = log2(_nb_ooo_engine      );
     55        _size_rob_ptr            = log2(_nb_packet          );
     56        _size_general_register   = log2(_nb_general_register);
     57        _size_special_register   = log2(_nb_special_register);
     58        _size_general_data       = size_general_data  ;
     59        _size_special_data       = size_special_data  ;
     60       
     61        _have_port_context_id    = _size_context_id    > 0;
     62        _have_port_front_end_id  = _size_front_end_id  > 0;
     63        _have_port_ooo_engine_id = _size_ooo_engine_id > 0;
     64        _have_port_rob_ptr       = _size_rob_ptr       > 0;
     65
     66        copy();
     67      }
     68
    6069    log_printf(FUNC,Write_queue,FUNCTION,"End");
    6170  };
    6271 
     72// #undef  FUNCTION
     73// #define FUNCTION "Write_queue::Parameters (copy)"
     74//   Parameters::Parameters (Parameters & param):
     75//     _size_queue              (param._size_queue             ),
     76//     _nb_context              (param._nb_context             ),
     77//     _nb_front_end            (param._nb_front_end           ),
     78//     _nb_ooo_engine           (param._nb_ooo_engine          ),
     79//     _nb_packet               (param._nb_packet              ),
     80//     _size_general_data       (param._size_general_data      ),
     81//     _nb_general_register     (param._nb_general_register    ),
     82//     _size_special_data       (param._size_special_data      ),
     83//     _nb_special_register     (param._nb_special_register    ),
     84//     _nb_bypass_write         (param._nb_bypass_write        ),
     85
     86//     _nb_gpr_write            (param._nb_gpr_write           ),
     87//     _nb_spr_write            (param._nb_spr_write           ),
     88
     89//     _size_context_id         (param._size_context_id        ),
     90//     _size_front_end_id       (param._size_front_end_id      ),
     91//     _size_ooo_engine_id      (param._size_ooo_engine_id     ),
     92//     _size_packet_id          (param._size_packet_id         ),
     93//     _size_general_register   (param._size_general_register  ),
     94//     _size_special_register   (param._size_special_register  ),
     95
     96//     _have_port_context_id    (param._have_port_context_id   ),
     97//     _have_port_front_end_id  (param._have_port_front_end_id ),
     98//     _have_port_ooo_engine_id (param._have_port_ooo_engine_id),
     99//     _have_port_packet_id     (param._have_port_packet_id    )
     100//   {
     101//     log_printf(FUNC,Write_queue,FUNCTION,"Begin");
     102//     test();
     103//     log_printf(FUNC,Write_queue,FUNCTION,"End");
     104//   };
     105
    63106#undef  FUNCTION
    64 #define FUNCTION "Write_queue::Parameters (copy)"
    65   Parameters::Parameters (Parameters & param):
    66     _size_queue              (param._size_queue             ),
    67     _nb_context              (param._nb_context             ),
    68     _nb_front_end            (param._nb_front_end           ),
    69     _nb_ooo_engine           (param._nb_ooo_engine          ),
    70     _nb_packet               (param._nb_packet              ),
    71     _size_general_data       (param._size_general_data      ),
    72     _nb_general_register     (param._nb_general_register    ),
    73     _size_special_data       (param._size_special_data      ),
    74     _nb_special_register     (param._nb_special_register    ),
    75     _nb_bypass_write         (param._nb_bypass_write        ),
    76 
    77     _nb_gpr_write            (param._nb_gpr_write           ),
    78     _nb_spr_write            (param._nb_spr_write           ),
    79 
    80     _size_context_id         (param._size_context_id        ),
    81     _size_front_end_id       (param._size_front_end_id      ),
    82     _size_ooo_engine_id      (param._size_ooo_engine_id     ),
    83     _size_packet_id          (param._size_packet_id         ),
    84     _size_general_register   (param._size_general_register  ),
    85     _size_special_register   (param._size_special_register  ),
    86 
    87     _have_port_context_id    (param._have_port_context_id   ),
    88     _have_port_front_end_id  (param._have_port_front_end_id ),
    89     _have_port_ooo_engine_id (param._have_port_ooo_engine_id),
    90     _have_port_packet_id     (param._have_port_packet_id    )
     107#define FUNCTION "Write_queue::~Parameters"
     108  Parameters::~Parameters (void)
    91109  {
    92110    log_printf(FUNC,Write_queue,FUNCTION,"Begin");
    93     test();
    94111    log_printf(FUNC,Write_queue,FUNCTION,"End");
    95112  };
    96113
    97114#undef  FUNCTION
    98 #define FUNCTION "Write_queue::~Parameters"
    99   Parameters::~Parameters ()
     115#define FUNCTION "Write_queue::copy"
     116  void Parameters::copy (void)
    100117  {
    101118    log_printf(FUNC,Write_queue,FUNCTION,"Begin");
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Write_unit/Write_unit/Write_queue/src/Write_queue.cpp

    r81 r88  
    3939    log_printf(FUNC,Write_queue,FUNCTION,"Begin");
    4040
     41#if DEBUG_Write_queue == true
     42    log_printf(INFO,Write_queue,FUNCTION,_("<%s> Parameters"),_name.c_str());
     43
     44    std::cout << *param << std::endl;
     45#endif   
     46
    4147    log_printf(INFO,Write_queue,FUNCTION,"Allocation");
    4248    allocation ();
    4349
    4450#ifdef STATISTICS
    45     if (_usage & USE_STATISTICS)
     51    if (usage_is_set(_usage,USE_STATISTICS))
    4652      {
    4753        log_printf(INFO,Write_queue,FUNCTION,"Allocation of statistics");
     
    5258
    5359#ifdef VHDL
    54     if (_usage & USE_VHDL)
     60    if (usage_is_set(_usage,USE_VHDL))
    5561      {
    5662        // generate the vhdl
     
    6268
    6369#ifdef SYSTEMC
    64     if (_usage & USE_SYSTEMC)
     70    if (usage_is_set(_usage,USE_SYSTEMC))
    6571      {
    6672        log_printf(INFO,Write_queue,FUNCTION,"Method - transition");
     
    96102
    97103#ifdef STATISTICS
    98     if (_usage & USE_STATISTICS)
     104    if (usage_is_set(_usage,USE_STATISTICS))
    99105      {
    100106        log_printf(INFO,Write_queue,FUNCTION,"Generate Statistics file");
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Write_unit/Write_unit/Write_queue/src/Write_queue_allocation.cpp

    r81 r88  
    5858       ALLOC_SIGNAL_IN ( in_WRITE_QUEUE_IN_FRONT_END_ID ,"front_end_id" ,Tcontext_t        ,_param->_size_front_end_id     );
    5959       ALLOC_SIGNAL_IN ( in_WRITE_QUEUE_IN_OOO_ENGINE_ID,"ooo_engine_id",Tcontext_t        ,_param->_size_ooo_engine_id    );
    60        ALLOC_SIGNAL_IN ( in_WRITE_QUEUE_IN_PACKET_ID    ,"packet_id"    ,Tpacket_t         ,_param->_size_packet_id        );
     60       ALLOC_SIGNAL_IN ( in_WRITE_QUEUE_IN_PACKET_ID    ,"packet_id"    ,Tpacket_t         ,_param->_size_rob_ptr          );
    6161//     ALLOC_SIGNAL_IN ( in_WRITE_QUEUE_IN_OPERATION    ,"operation"    ,Toperation_t      ,_param->_size_operation        );
    6262       ALLOC_SIGNAL_IN ( in_WRITE_QUEUE_IN_TYPE         ,"type"         ,Ttype_t           ,_param->_size_type             );
     
    8181       ALLOC_SIGNAL_OUT(out_WRITE_QUEUE_OUT_FRONT_END_ID ,"front_end_id" ,Tcontext_t     ,_param->_size_front_end_id );
    8282       ALLOC_SIGNAL_OUT(out_WRITE_QUEUE_OUT_OOO_ENGINE_ID,"ooo_engine_id",Tcontext_t     ,_param->_size_ooo_engine_id);
    83        ALLOC_SIGNAL_OUT(out_WRITE_QUEUE_OUT_PACKET_ID    ,"packet_id"    ,Tpacket_t      ,_param->_size_packet_id    );
     83       ALLOC_SIGNAL_OUT(out_WRITE_QUEUE_OUT_PACKET_ID    ,"packet_id"    ,Tpacket_t      ,_param->_size_rob_ptr      );
    8484//     ALLOC_SIGNAL_OUT(out_WRITE_QUEUE_OUT_OPERATION    ,"operation"    ,Toperation_t   ,_param->_size_operation    );
    8585//     ALLOC_SIGNAL_OUT(out_WRITE_QUEUE_OUT_TYPE         ,"type"         ,Ttype_t        ,_param->_size_type         );
     
    8888       ALLOC_SIGNAL_OUT(out_WRITE_QUEUE_OUT_NO_SEQUENCE  ,"no_sequence"  ,Tcontrol_t     ,1                          );
    8989       ALLOC_SIGNAL_OUT(out_WRITE_QUEUE_OUT_ADDRESS      ,"address"      ,Tgeneral_data_t,_param->_size_general_data );
     90       ALLOC_SIGNAL_OUT(out_WRITE_QUEUE_OUT_DATA         ,"data"         ,Tgeneral_data_t,_param->_size_general_data );
    9091     }
    9192
     
    129130
    130131#ifdef POSITION
    131     _component->generate_file();
     132     if (usage_is_set(_usage,USE_POSITION))
     133       _component->generate_file();
    132134#endif
    133135
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Write_unit/Write_unit/Write_queue/src/Write_queue_deallocation.cpp

    r81 r88  
    2424    log_printf(FUNC,Write_queue,FUNCTION,"Begin");
    2525
    26     if (_usage & USE_SYSTEMC)
     26    if (usage_is_set(_usage,USE_SYSTEMC))
    2727      {
    2828        delete    in_CLOCK ;
     
    3838        if (_param->_have_port_ooo_engine_id)
    3939        delete      in_WRITE_QUEUE_IN_OOO_ENGINE_ID;
    40         if (_param->_have_port_packet_id)
     40        if (_param->_have_port_rob_ptr  )
    4141        delete      in_WRITE_QUEUE_IN_PACKET_ID    ;
    4242//      delete      in_WRITE_QUEUE_IN_OPERATION    ;
     
    6161        if (_param->_have_port_ooo_engine_id)
    6262        delete     out_WRITE_QUEUE_OUT_OOO_ENGINE_ID;
    63         if (_param->_have_port_packet_id)
     63        if (_param->_have_port_rob_ptr  )
    6464        delete     out_WRITE_QUEUE_OUT_PACKET_ID    ;
    6565//      delete     out_WRITE_QUEUE_OUT_OPERATION    ;
     
    6969        delete     out_WRITE_QUEUE_OUT_NO_SEQUENCE  ;
    7070        delete     out_WRITE_QUEUE_OUT_ADDRESS      ;
     71        delete     out_WRITE_QUEUE_OUT_DATA         ;
    7172
    7273        // -----[ Interface "gpr_write" ]-------------------------------------
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Write_unit/Write_unit/Write_queue/src/Write_queue_end_cycle.cpp

    r81 r88  
    2626
    2727#ifdef STATISTICS
    28     _stat->end_cycle();
     28    if (usage_is_set(_usage,USE_STATISTICS))
     29      _stat->end_cycle();
    2930#endif   
    3031
     
    3233    // Evaluation before read the ouput signal
    3334//  sc_start(0);
    34     _interfaces->testbench();
     35    if (usage_is_set(_usage,USE_VHDL_TESTBENCH))
     36      _interfaces->testbench();
    3537#endif
    3638
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Write_unit/Write_unit/Write_queue/src/Write_queue_genMoore.cpp

    r81 r88  
    4949          if (_param->_have_port_ooo_engine_id)
    5050          PORT_WRITE(out_WRITE_QUEUE_OUT_OOO_ENGINE_ID, _queue->front()->_ooo_engine_id);
    51           if (_param->_have_port_packet_id)
     51          if (_param->_have_port_rob_ptr  )
    5252          PORT_WRITE(out_WRITE_QUEUE_OUT_PACKET_ID    , _queue->front()->_packet_id    );
    5353//        PORT_WRITE(out_WRITE_QUEUE_OUT_OPERATION    , _queue->front()->_operation    );
     
    5757          PORT_WRITE(out_WRITE_QUEUE_OUT_NO_SEQUENCE  , _queue->front()->_no_sequence  );
    5858          PORT_WRITE(out_WRITE_QUEUE_OUT_ADDRESS      , _queue->front()->_address      );
     59          PORT_WRITE(out_WRITE_QUEUE_OUT_DATA         , _queue->front()->_data_rd      );
    5960        }
    6061    }
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Write_unit/Write_unit/Write_queue/src/Write_queue_transition.cpp

    r81 r88  
    5151               (_param->_have_port_front_end_id )?PORT_READ(in_WRITE_QUEUE_IN_FRONT_END_ID ):0,
    5252               (_param->_have_port_ooo_engine_id)?PORT_READ(in_WRITE_QUEUE_IN_OOO_ENGINE_ID):0,
    53                (_param->_have_port_packet_id    )?PORT_READ(in_WRITE_QUEUE_IN_PACKET_ID    ):0,
     53               (_param->_have_port_rob_ptr      )?PORT_READ(in_WRITE_QUEUE_IN_PACKET_ID    ):0,
    5454             //PORT_READ(in_WRITE_QUEUE_IN_OPERATION    ),
    5555               PORT_READ(in_WRITE_QUEUE_IN_TYPE         ),
     
    8383
    8484#ifdef STATISTICS
    85     *(_stat_use_queue) += _queue->size();
     85    if (usage_is_set(_usage,USE_STATISTICS))
     86      *(_stat_use_queue) += _queue->size();
    8687#endif
    8788
Note: See TracChangeset for help on using the changeset viewer.