Ignore:
Timestamp:
Dec 19, 2008, 4:34:00 PM (16 years ago)
Author:
rosiere
Message:

1) Update Prediction Table : statistics
2) Size instruction address on 30 bits
3) Change Log File
4) Add debug_level in simulation configuration file

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

    r88 r97  
    2222  public  : Tpacket_t          _packet_id    ;
    2323//public  : Toperation_t       _operation    ;
    24   public  : Ttype_t            _type         ;
     24//public  : Ttype_t            _type         ;
    2525  public  : Tcontrol_t         _write_rd     ;
    2626  public  : Tgeneral_address_t _num_reg_rd   ;
     
    3737                     Tcontext_t         ooo_engine_id,
    3838                     Tpacket_t          packet_id    ,
    39                      //Toperation_t       operation    ,
    40                      Ttype_t            type         ,
     39//                   Toperation_t       operation    ,
     40//                   Ttype_t            type         ,
    4141                     Tcontrol_t         write_rd     ,
    4242                     Tgeneral_address_t num_reg_rd   ,
     
    5353      _ooo_engine_id = ooo_engine_id;
    5454      _packet_id     = packet_id    ;
    55     //_operation     = operation    ;
    56       _type          = type         ;
     55//    _operation     = operation    ;
     56//    _type          = type         ;
    5757      _write_rd      = write_rd     ;
    5858      _num_reg_rd    = num_reg_rd   ;
     
    7474                    << " * _packet_id     : " << toString(x._packet_id    ) << std::endl
    7575                  //<< " * _operation     : " << toString(x._operation    ) << std::endl
    76                     << " * _type          : " << toString(x._type         ) << std::endl
     76                  //<< " * _type          : " << toString(x._type         ) << std::endl
    7777                    << " * _write_rd      : " << toString(x._write_rd     ) << std::endl
    7878                    << " * _num_reg_rd    : " << toString(x._num_reg_rd   ) << std::endl
     
    133133  ALLOC_SC_SIGNAL ( in_WRITE_UNIT_IN_PACKET_ID     ," in_WRITE_UNIT_IN_PACKET_ID"     , Tpacket_t         );
    134134//ALLOC_SC_SIGNAL ( in_WRITE_UNIT_IN_OPERATION     ," in_WRITE_UNIT_IN_OPERATION"     , Toperation_t      );
    135   ALLOC_SC_SIGNAL ( in_WRITE_UNIT_IN_TYPE          ," in_WRITE_UNIT_IN_TYPE"          , Ttype_t           );
     135//ALLOC_SC_SIGNAL ( in_WRITE_UNIT_IN_TYPE          ," in_WRITE_UNIT_IN_TYPE"          , Ttype_t           );
    136136  ALLOC_SC_SIGNAL ( in_WRITE_UNIT_IN_WRITE_RD      ," in_WRITE_UNIT_IN_WRITE_RD"      , Tcontrol_t        );
    137137  ALLOC_SC_SIGNAL ( in_WRITE_UNIT_IN_NUM_REG_RD    ," in_WRITE_UNIT_IN_NUM_REG_RD"    , Tgeneral_address_t);
     
    142142  ALLOC_SC_SIGNAL ( in_WRITE_UNIT_IN_EXCEPTION     ," in_WRITE_UNIT_IN_EXCEPTION"     , Texception_t      );
    143143  ALLOC_SC_SIGNAL ( in_WRITE_UNIT_IN_NO_SEQUENCE   ," in_WRITE_UNIT_IN_NO_SEQUENCE"   , Tcontrol_t        );
    144   ALLOC_SC_SIGNAL ( in_WRITE_UNIT_IN_ADDRESS       ," in_WRITE_UNIT_IN_ADDRESS"       , Tgeneral_data_t   );
     144  ALLOC_SC_SIGNAL ( in_WRITE_UNIT_IN_ADDRESS       ," in_WRITE_UNIT_IN_ADDRESS"       , Taddress_t        );
    145145  ALLOC_SC_SIGNAL (out_WRITE_UNIT_OUT_VAL          ,"out_WRITE_UNIT_OUT_VAL"          , Tcontrol_t        );
    146146  ALLOC_SC_SIGNAL ( in_WRITE_UNIT_OUT_ACK          ," in_WRITE_UNIT_OUT_ACK"          , Tcontrol_t        );
     
    154154  ALLOC_SC_SIGNAL (out_WRITE_UNIT_OUT_EXCEPTION    ,"out_WRITE_UNIT_OUT_EXCEPTION"    , Texception_t      );
    155155  ALLOC_SC_SIGNAL (out_WRITE_UNIT_OUT_NO_SEQUENCE  ,"out_WRITE_UNIT_OUT_NO_SEQUENCE"  , Tcontrol_t        );
    156   ALLOC_SC_SIGNAL (out_WRITE_UNIT_OUT_ADDRESS      ,"out_WRITE_UNIT_OUT_ADDRESS"      , Tgeneral_data_t   );
     156  ALLOC_SC_SIGNAL (out_WRITE_UNIT_OUT_ADDRESS      ,"out_WRITE_UNIT_OUT_ADDRESS"      , Taddress_t        );
    157157  ALLOC_SC_SIGNAL (out_WRITE_UNIT_OUT_DATA         ,"out_WRITE_UNIT_OUT_DATA"         , Tgeneral_data_t   );
    158158  ALLOC1_SC_SIGNAL(out_GPR_WRITE_VAL                ,"out_GPR_WRITE_VAL"                , Tcontrol_t        , _param->_nb_gpr_write);
     
    195195  INSTANCE_SC_SIGNAL (_Write_unit,  in_WRITE_UNIT_IN_PACKET_ID     );
    196196//INSTANCE_SC_SIGNAL (_Write_unit,  in_WRITE_UNIT_IN_OPERATION     );
    197   INSTANCE_SC_SIGNAL (_Write_unit,  in_WRITE_UNIT_IN_TYPE          );
     197//INSTANCE_SC_SIGNAL (_Write_unit,  in_WRITE_UNIT_IN_TYPE          );
    198198  INSTANCE_SC_SIGNAL (_Write_unit,  in_WRITE_UNIT_IN_WRITE_RD      );
    199199  INSTANCE_SC_SIGNAL (_Write_unit,  in_WRITE_UNIT_IN_NUM_REG_RD    );
     
    309309                                     i,
    310310                                   //range<Toperation_t      >(rand(),_param->_size_operation       ),
    311                                      range<Ttype_t           >(rand(),_param->_size_type            ),
     311                                   //range<Ttype_t           >(rand(),_param->_size_type            ),
    312312                                     range<Tcontrol_t        >(rand(),1                             ),
    313313                                     range<Tgeneral_address_t>(rand(),_param->_size_general_register),
     
    316316                                     range<Tspecial_address_t>(rand(),_param->_size_special_register),
    317317                                     range<Tspecial_data_t   >(rand(),_param->_size_special_data    ),
    318                                      range<Texception_t      >(rand(),_param->_size_exception       ),
     318                                     range<Texception_t      >(rand(),0                             ),
    319319                                     range<Tcontrol_t        >(rand(),1                             ),
    320320                                     range<Tgeneral_data_t   >(rand(),_param->_size_general_data    ));
     
    341341            in_WRITE_UNIT_IN_PACKET_ID    ->write(request [nb_request_in]->_packet_id    );
    342342          //in_WRITE_UNIT_IN_OPERATION    ->write(request [nb_request_in]->_operation    );
    343             in_WRITE_UNIT_IN_TYPE         ->write(request [nb_request_in]->_type         );
     343          //in_WRITE_UNIT_IN_TYPE         ->write(request [nb_request_in]->_type         );
    344344            in_WRITE_UNIT_IN_WRITE_RD     ->write(request [nb_request_in]->_write_rd     );
    345345            in_WRITE_UNIT_IN_NUM_REG_RD   ->write(request [nb_request_in]->_num_reg_rd   );
Note: See TracChangeset for help on using the changeset viewer.