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

Almost complete design
with Test and test platform

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Write_unit/Write_unit/SelfTest/src/test.cpp

    r82 r88  
    9999#endif
    100100
     101  Tusage_t _usage = USE_ALL;
     102
     103//   _usage = usage_unset(_usage,USE_SYSTEMC              );
     104//   _usage = usage_unset(_usage,USE_VHDL                 );
     105//   _usage = usage_unset(_usage,USE_VHDL_TESTBENCH       );
     106//   _usage = usage_unset(_usage,USE_VHDL_TESTBENCH_ASSERT);
     107//   _usage = usage_unset(_usage,USE_POSITION             );
     108   _usage = usage_unset(_usage,USE_STATISTICS           );
     109//   _usage = usage_unset(_usage,USE_INFORMATION          );
     110
    101111  Write_unit * _Write_unit = new Write_unit
    102112    (name.c_str(),
     
    105115#endif
    106116     _param,
    107      USE_ALL);
     117     _usage);
    108118 
    109119#ifdef SYSTEMC
     
    145155  ALLOC_SC_SIGNAL (out_WRITE_UNIT_OUT_NO_SEQUENCE  ,"out_WRITE_UNIT_OUT_NO_SEQUENCE"  , Tcontrol_t        );
    146156  ALLOC_SC_SIGNAL (out_WRITE_UNIT_OUT_ADDRESS      ,"out_WRITE_UNIT_OUT_ADDRESS"      , Tgeneral_data_t   );
     157  ALLOC_SC_SIGNAL (out_WRITE_UNIT_OUT_DATA         ,"out_WRITE_UNIT_OUT_DATA"         , Tgeneral_data_t   );
    147158  ALLOC1_SC_SIGNAL(out_GPR_WRITE_VAL                ,"out_GPR_WRITE_VAL"                , Tcontrol_t        , _param->_nb_gpr_write);
    148159  ALLOC1_SC_SIGNAL( in_GPR_WRITE_ACK                ," in_GPR_WRITE_ACK"                , Tcontrol_t        , _param->_nb_gpr_write);
     
    181192  if (_param->_have_port_ooo_engine_id)
    182193  INSTANCE_SC_SIGNAL (_Write_unit,  in_WRITE_UNIT_IN_OOO_ENGINE_ID );
    183   if (_param->_have_port_packet_id)
     194  if (_param->_have_port_rob_ptr)
    184195  INSTANCE_SC_SIGNAL (_Write_unit,  in_WRITE_UNIT_IN_PACKET_ID     );
    185196//INSTANCE_SC_SIGNAL (_Write_unit,  in_WRITE_UNIT_IN_OPERATION     );
     
    202213  if (_param->_have_port_ooo_engine_id)
    203214  INSTANCE_SC_SIGNAL (_Write_unit, out_WRITE_UNIT_OUT_OOO_ENGINE_ID);
    204   if (_param->_have_port_packet_id)
     215  if (_param->_have_port_rob_ptr)
    205216  INSTANCE_SC_SIGNAL (_Write_unit, out_WRITE_UNIT_OUT_PACKET_ID    );
    206217//INSTANCE_SC_SIGNAL (_Write_unit, out_WRITE_UNIT_OUT_OPERATION    );
     
    210221  INSTANCE_SC_SIGNAL (_Write_unit, out_WRITE_UNIT_OUT_NO_SEQUENCE  );
    211222  INSTANCE_SC_SIGNAL (_Write_unit, out_WRITE_UNIT_OUT_ADDRESS      );
     223  INSTANCE_SC_SIGNAL (_Write_unit, out_WRITE_UNIT_OUT_DATA         );
    212224  INSTANCE1_SC_SIGNAL(_Write_unit, out_GPR_WRITE_VAL                , _param->_nb_gpr_write);
    213225  INSTANCE1_SC_SIGNAL(_Write_unit,  in_GPR_WRITE_ACK                , _param->_nb_gpr_write);
     
    445457          {
    446458            Tcontext_t packet;
    447             if (_param->_have_port_packet_id)
     459            if (_param->_have_port_rob_ptr)
    448460              packet = out_WRITE_UNIT_OUT_PACKET_ID->read();
    449461            else
     
    479491            TEST(Tcontrol_t     , out_WRITE_UNIT_OUT_NO_SEQUENCE  ->read(), request [packet]->_no_sequence  );
    480492            TEST(Tgeneral_data_t, out_WRITE_UNIT_OUT_ADDRESS      ->read(), request [packet]->_address      );
     493            TEST(Tgeneral_data_t, out_WRITE_UNIT_OUT_DATA         ->read(), request [packet]->_data_rd      );
    481494
    482495            nb_request_out ++;
Note: See TracChangeset for help on using the changeset viewer.