Ignore:
Timestamp:
May 16, 2009, 4:42:39 PM (15 years ago)
Author:
rosiere
Message:

1) Platforms : add new organization for test
2) Load_Store_Unit : add array to count nb_check in store_queue
3) Issue_queue and Core_Glue : rewrite the issue network
4) Special_Register_Unit : add reset value to register CID
5) Softwares : add multicontext test
6) Softwares : add SPECINT
7) Softwares : add MiBench?
7) Read_queue : inhib access for r0
8) Change Core_Glue (network) - dont yet support priority and load balancing scheme

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_OOO_Engine/OOO_Engine/Rename_unit/Register_translation_unit/Stat_List_unit/SelfTest/src/test.cpp

    r113 r117  
    6363  sc_signal<Tcontrol_t        >   **  in_INSERT_VAL               ;//[nb_inst_insert]
    6464  sc_signal<Tcontrol_t        >   ** out_INSERT_ACK               ;//[nb_inst_insert]
    65   sc_signal<Tcontrol_t        >   **  in_INSERT_READ_RA           ;//[nb_inst_insert]
    66   sc_signal<Tgeneral_address_t>   **  in_INSERT_NUM_REG_RA_PHY    ;//[nb_inst_insert]
    67   sc_signal<Tcontrol_t        >   **  in_INSERT_READ_RB           ;//[nb_inst_insert]
    68   sc_signal<Tgeneral_address_t>   **  in_INSERT_NUM_REG_RB_PHY    ;//[nb_inst_insert]
    69   sc_signal<Tcontrol_t        >   **  in_INSERT_READ_RC           ;//[nb_inst_insert]
    70   sc_signal<Tspecial_address_t>   **  in_INSERT_NUM_REG_RC_PHY    ;//[nb_inst_insert]
     65//sc_signal<Tcontrol_t        >   **  in_INSERT_READ_RA           ;//[nb_inst_insert]
     66//sc_signal<Tgeneral_address_t>   **  in_INSERT_NUM_REG_RA_PHY    ;//[nb_inst_insert]
     67//sc_signal<Tcontrol_t        >   **  in_INSERT_READ_RB           ;//[nb_inst_insert]
     68//sc_signal<Tgeneral_address_t>   **  in_INSERT_NUM_REG_RB_PHY    ;//[nb_inst_insert]
     69//sc_signal<Tcontrol_t        >   **  in_INSERT_READ_RC           ;//[nb_inst_insert]
     70//sc_signal<Tspecial_address_t>   **  in_INSERT_NUM_REG_RC_PHY    ;//[nb_inst_insert]
    7171  sc_signal<Tcontrol_t        >   **  in_INSERT_WRITE_RD          ;//[nb_inst_insert]
     72  sc_signal<Tgeneral_address_t>   **  in_INSERT_NUM_REG_RD_PHY_OLD;//[nb_inst_insert]
    7273  sc_signal<Tgeneral_address_t>   **  in_INSERT_NUM_REG_RD_PHY_NEW;//[nb_inst_insert]
    7374  sc_signal<Tcontrol_t        >   **  in_INSERT_WRITE_RE          ;//[nb_inst_insert]
     75  sc_signal<Tspecial_address_t>   **  in_INSERT_NUM_REG_RE_PHY_OLD;//[nb_inst_insert]
    7476  sc_signal<Tspecial_address_t>   **  in_INSERT_NUM_REG_RE_PHY_NEW;//[nb_inst_insert]
    7577  sc_signal<Tcontrol_t        >   **  in_RETIRE_VAL               ;//[nb_inst_retire]
    7678  sc_signal<Tcontrol_t        >   ** out_RETIRE_ACK               ;//[nb_inst_retire]
    7779  sc_signal<Tcontrol_t        >   **  in_RETIRE_RESTORE           ;//[nb_inst_retire]
    78   sc_signal<Tcontrol_t        >   **  in_RETIRE_READ_RA           ;//[nb_inst_retire]
    79   sc_signal<Tgeneral_address_t>   **  in_RETIRE_NUM_REG_RA_PHY    ;//[nb_inst_retire]
    80   sc_signal<Tcontrol_t        >   **  in_RETIRE_READ_RB           ;//[nb_inst_retire]
    81   sc_signal<Tgeneral_address_t>   **  in_RETIRE_NUM_REG_RB_PHY    ;//[nb_inst_retire]
    82   sc_signal<Tcontrol_t        >   **  in_RETIRE_READ_RC           ;//[nb_inst_retire]
    83   sc_signal<Tspecial_address_t>   **  in_RETIRE_NUM_REG_RC_PHY    ;//[nb_inst_retire]
     80//sc_signal<Tcontrol_t        >   **  in_RETIRE_READ_RA           ;//[nb_inst_retire]
     81//sc_signal<Tgeneral_address_t>   **  in_RETIRE_NUM_REG_RA_PHY    ;//[nb_inst_retire]
     82//sc_signal<Tcontrol_t        >   **  in_RETIRE_READ_RB           ;//[nb_inst_retire]
     83//sc_signal<Tgeneral_address_t>   **  in_RETIRE_NUM_REG_RB_PHY    ;//[nb_inst_retire]
     84//sc_signal<Tcontrol_t        >   **  in_RETIRE_READ_RC           ;//[nb_inst_retire]
     85//sc_signal<Tspecial_address_t>   **  in_RETIRE_NUM_REG_RC_PHY    ;//[nb_inst_retire]
    8486  sc_signal<Tcontrol_t        >   **  in_RETIRE_WRITE_RD          ;//[nb_inst_retire]
    8587  sc_signal<Tcontrol_t        >   **  in_RETIRE_RESTORE_RD_PHY_OLD;//[nb_inst_retire]
     
    99101  ALLOC1_SC_SIGNAL( in_INSERT_VAL               ," in_INSERT_VAL               ",Tcontrol_t        ,_param->_nb_inst_insert);
    100102  ALLOC1_SC_SIGNAL(out_INSERT_ACK               ,"out_INSERT_ACK               ",Tcontrol_t        ,_param->_nb_inst_insert);
    101   ALLOC1_SC_SIGNAL( in_INSERT_READ_RA           ," in_INSERT_READ_RA           ",Tcontrol_t        ,_param->_nb_inst_insert);
    102   ALLOC1_SC_SIGNAL( in_INSERT_NUM_REG_RA_PHY    ," in_INSERT_NUM_REG_RA_PHY    ",Tgeneral_address_t,_param->_nb_inst_insert);
    103   ALLOC1_SC_SIGNAL( in_INSERT_READ_RB           ," in_INSERT_READ_RB           ",Tcontrol_t        ,_param->_nb_inst_insert);
    104   ALLOC1_SC_SIGNAL( in_INSERT_NUM_REG_RB_PHY    ," in_INSERT_NUM_REG_RB_PHY    ",Tgeneral_address_t,_param->_nb_inst_insert);
    105   ALLOC1_SC_SIGNAL( in_INSERT_READ_RC           ," in_INSERT_READ_RC           ",Tcontrol_t        ,_param->_nb_inst_insert);
    106   ALLOC1_SC_SIGNAL( in_INSERT_NUM_REG_RC_PHY    ," in_INSERT_NUM_REG_RC_PHY    ",Tspecial_address_t,_param->_nb_inst_insert);
     103//ALLOC1_SC_SIGNAL( in_INSERT_READ_RA           ," in_INSERT_READ_RA           ",Tcontrol_t        ,_param->_nb_inst_insert);
     104//ALLOC1_SC_SIGNAL( in_INSERT_NUM_REG_RA_PHY    ," in_INSERT_NUM_REG_RA_PHY    ",Tgeneral_address_t,_param->_nb_inst_insert);
     105//ALLOC1_SC_SIGNAL( in_INSERT_READ_RB           ," in_INSERT_READ_RB           ",Tcontrol_t        ,_param->_nb_inst_insert);
     106//ALLOC1_SC_SIGNAL( in_INSERT_NUM_REG_RB_PHY    ," in_INSERT_NUM_REG_RB_PHY    ",Tgeneral_address_t,_param->_nb_inst_insert);
     107//ALLOC1_SC_SIGNAL( in_INSERT_READ_RC           ," in_INSERT_READ_RC           ",Tcontrol_t        ,_param->_nb_inst_insert);
     108//ALLOC1_SC_SIGNAL( in_INSERT_NUM_REG_RC_PHY    ," in_INSERT_NUM_REG_RC_PHY    ",Tspecial_address_t,_param->_nb_inst_insert);
    107109  ALLOC1_SC_SIGNAL( in_INSERT_WRITE_RD          ," in_INSERT_WRITE_RD          ",Tcontrol_t        ,_param->_nb_inst_insert);
     110  ALLOC1_SC_SIGNAL( in_INSERT_NUM_REG_RD_PHY_OLD," in_INSERT_NUM_REG_RD_PHY_OLD",Tgeneral_address_t,_param->_nb_inst_insert);
    108111  ALLOC1_SC_SIGNAL( in_INSERT_NUM_REG_RD_PHY_NEW," in_INSERT_NUM_REG_RD_PHY_NEW",Tgeneral_address_t,_param->_nb_inst_insert);
    109112  ALLOC1_SC_SIGNAL( in_INSERT_WRITE_RE          ," in_INSERT_WRITE_RE          ",Tcontrol_t        ,_param->_nb_inst_insert);
     113  ALLOC1_SC_SIGNAL( in_INSERT_NUM_REG_RE_PHY_OLD," in_INSERT_NUM_REG_RE_PHY_OLD",Tspecial_address_t,_param->_nb_inst_insert);
    110114  ALLOC1_SC_SIGNAL( in_INSERT_NUM_REG_RE_PHY_NEW," in_INSERT_NUM_REG_RE_PHY_NEW",Tspecial_address_t,_param->_nb_inst_insert);
    111115  ALLOC1_SC_SIGNAL( in_RETIRE_VAL               ," in_RETIRE_VAL               ",Tcontrol_t        ,_param->_nb_inst_retire);
    112116  ALLOC1_SC_SIGNAL(out_RETIRE_ACK               ,"out_RETIRE_ACK               ",Tcontrol_t        ,_param->_nb_inst_retire);
    113117  ALLOC1_SC_SIGNAL( in_RETIRE_RESTORE           ," in_RETIRE_RESTORE           ",Tcontrol_t        ,_param->_nb_inst_retire);
    114   ALLOC1_SC_SIGNAL( in_RETIRE_READ_RA           ," in_RETIRE_READ_RA           ",Tcontrol_t        ,_param->_nb_inst_retire);
    115   ALLOC1_SC_SIGNAL( in_RETIRE_NUM_REG_RA_PHY    ," in_RETIRE_NUM_REG_RA_PHY    ",Tgeneral_address_t,_param->_nb_inst_retire);
    116   ALLOC1_SC_SIGNAL( in_RETIRE_READ_RB           ," in_RETIRE_READ_RB           ",Tcontrol_t        ,_param->_nb_inst_retire);
    117   ALLOC1_SC_SIGNAL( in_RETIRE_NUM_REG_RB_PHY    ," in_RETIRE_NUM_REG_RB_PHY    ",Tgeneral_address_t,_param->_nb_inst_retire);
    118   ALLOC1_SC_SIGNAL( in_RETIRE_READ_RC           ," in_RETIRE_READ_RC           ",Tcontrol_t        ,_param->_nb_inst_retire);
    119   ALLOC1_SC_SIGNAL( in_RETIRE_NUM_REG_RC_PHY    ," in_RETIRE_NUM_REG_RC_PHY    ",Tspecial_address_t,_param->_nb_inst_retire);
     118//ALLOC1_SC_SIGNAL( in_RETIRE_READ_RA           ," in_RETIRE_READ_RA           ",Tcontrol_t        ,_param->_nb_inst_retire);
     119//ALLOC1_SC_SIGNAL( in_RETIRE_NUM_REG_RA_PHY    ," in_RETIRE_NUM_REG_RA_PHY    ",Tgeneral_address_t,_param->_nb_inst_retire);
     120//ALLOC1_SC_SIGNAL( in_RETIRE_READ_RB           ," in_RETIRE_READ_RB           ",Tcontrol_t        ,_param->_nb_inst_retire);
     121//ALLOC1_SC_SIGNAL( in_RETIRE_NUM_REG_RB_PHY    ," in_RETIRE_NUM_REG_RB_PHY    ",Tgeneral_address_t,_param->_nb_inst_retire);
     122//ALLOC1_SC_SIGNAL( in_RETIRE_READ_RC           ," in_RETIRE_READ_RC           ",Tcontrol_t        ,_param->_nb_inst_retire);
     123//ALLOC1_SC_SIGNAL( in_RETIRE_NUM_REG_RC_PHY    ," in_RETIRE_NUM_REG_RC_PHY    ",Tspecial_address_t,_param->_nb_inst_retire);
    120124  ALLOC1_SC_SIGNAL( in_RETIRE_WRITE_RD          ," in_RETIRE_WRITE_RD          ",Tcontrol_t        ,_param->_nb_inst_retire);
    121125  ALLOC1_SC_SIGNAL( in_RETIRE_RESTORE_RD_PHY_OLD," in_RETIRE_RESTORE_RD_PHY_OLD",Tcontrol_t        ,_param->_nb_inst_retire);
     
    145149  INSTANCE1_SC_SIGNAL(_Stat_List_unit, in_INSERT_VAL               ,_param->_nb_inst_insert);
    146150  INSTANCE1_SC_SIGNAL(_Stat_List_unit,out_INSERT_ACK               ,_param->_nb_inst_insert);
    147   INSTANCE1_SC_SIGNAL(_Stat_List_unit, in_INSERT_READ_RA           ,_param->_nb_inst_insert);
    148   INSTANCE1_SC_SIGNAL(_Stat_List_unit, in_INSERT_NUM_REG_RA_PHY    ,_param->_nb_inst_insert);
    149   INSTANCE1_SC_SIGNAL(_Stat_List_unit, in_INSERT_READ_RB           ,_param->_nb_inst_insert);
    150   INSTANCE1_SC_SIGNAL(_Stat_List_unit, in_INSERT_NUM_REG_RB_PHY    ,_param->_nb_inst_insert);
    151   INSTANCE1_SC_SIGNAL(_Stat_List_unit, in_INSERT_READ_RC           ,_param->_nb_inst_insert);
    152   INSTANCE1_SC_SIGNAL(_Stat_List_unit, in_INSERT_NUM_REG_RC_PHY    ,_param->_nb_inst_insert);
     151//INSTANCE1_SC_SIGNAL(_Stat_List_unit, in_INSERT_READ_RA           ,_param->_nb_inst_insert);
     152//INSTANCE1_SC_SIGNAL(_Stat_List_unit, in_INSERT_NUM_REG_RA_PHY    ,_param->_nb_inst_insert);
     153//INSTANCE1_SC_SIGNAL(_Stat_List_unit, in_INSERT_READ_RB           ,_param->_nb_inst_insert);
     154//INSTANCE1_SC_SIGNAL(_Stat_List_unit, in_INSERT_NUM_REG_RB_PHY    ,_param->_nb_inst_insert);
     155//INSTANCE1_SC_SIGNAL(_Stat_List_unit, in_INSERT_READ_RC           ,_param->_nb_inst_insert);
     156//INSTANCE1_SC_SIGNAL(_Stat_List_unit, in_INSERT_NUM_REG_RC_PHY    ,_param->_nb_inst_insert);
    153157  INSTANCE1_SC_SIGNAL(_Stat_List_unit, in_INSERT_WRITE_RD          ,_param->_nb_inst_insert);
     158  INSTANCE1_SC_SIGNAL(_Stat_List_unit, in_INSERT_NUM_REG_RD_PHY_OLD,_param->_nb_inst_insert);
    154159  INSTANCE1_SC_SIGNAL(_Stat_List_unit, in_INSERT_NUM_REG_RD_PHY_NEW,_param->_nb_inst_insert);
    155160  INSTANCE1_SC_SIGNAL(_Stat_List_unit, in_INSERT_WRITE_RE          ,_param->_nb_inst_insert);
     161  INSTANCE1_SC_SIGNAL(_Stat_List_unit, in_INSERT_NUM_REG_RE_PHY_OLD,_param->_nb_inst_insert);
    156162  INSTANCE1_SC_SIGNAL(_Stat_List_unit, in_INSERT_NUM_REG_RE_PHY_NEW,_param->_nb_inst_insert);
    157163
     
    159165  INSTANCE1_SC_SIGNAL(_Stat_List_unit,out_RETIRE_ACK               ,_param->_nb_inst_retire);
    160166  INSTANCE1_SC_SIGNAL(_Stat_List_unit, in_RETIRE_RESTORE           ,_param->_nb_inst_retire);
    161   INSTANCE1_SC_SIGNAL(_Stat_List_unit, in_RETIRE_READ_RA           ,_param->_nb_inst_retire);
    162   INSTANCE1_SC_SIGNAL(_Stat_List_unit, in_RETIRE_NUM_REG_RA_PHY    ,_param->_nb_inst_retire);
    163   INSTANCE1_SC_SIGNAL(_Stat_List_unit, in_RETIRE_READ_RB           ,_param->_nb_inst_retire);
    164   INSTANCE1_SC_SIGNAL(_Stat_List_unit, in_RETIRE_NUM_REG_RB_PHY    ,_param->_nb_inst_retire);
    165   INSTANCE1_SC_SIGNAL(_Stat_List_unit, in_RETIRE_READ_RC           ,_param->_nb_inst_retire);
    166   INSTANCE1_SC_SIGNAL(_Stat_List_unit, in_RETIRE_NUM_REG_RC_PHY    ,_param->_nb_inst_retire);
     167//INSTANCE1_SC_SIGNAL(_Stat_List_unit, in_RETIRE_READ_RA           ,_param->_nb_inst_retire);
     168//INSTANCE1_SC_SIGNAL(_Stat_List_unit, in_RETIRE_NUM_REG_RA_PHY    ,_param->_nb_inst_retire);
     169//INSTANCE1_SC_SIGNAL(_Stat_List_unit, in_RETIRE_READ_RB           ,_param->_nb_inst_retire);
     170//INSTANCE1_SC_SIGNAL(_Stat_List_unit, in_RETIRE_NUM_REG_RB_PHY    ,_param->_nb_inst_retire);
     171//INSTANCE1_SC_SIGNAL(_Stat_List_unit, in_RETIRE_READ_RC           ,_param->_nb_inst_retire);
     172//INSTANCE1_SC_SIGNAL(_Stat_List_unit, in_RETIRE_NUM_REG_RC_PHY    ,_param->_nb_inst_retire);
    167173  INSTANCE1_SC_SIGNAL(_Stat_List_unit, in_RETIRE_WRITE_RD          ,_param->_nb_inst_retire);
    168174  INSTANCE1_SC_SIGNAL(_Stat_List_unit, in_RETIRE_RESTORE_RD_PHY_OLD,_param->_nb_inst_retire);
     
    348354
    349355              in_INSERT_VAL                [i]->write((rand()%100) < percent_transaction_insert);
    350               in_INSERT_READ_RA            [i]->write(read_ra );
    351               in_INSERT_NUM_REG_RA_PHY     [i]->write(ra);
    352               in_INSERT_READ_RB            [i]->write(read_rb );
    353               in_INSERT_NUM_REG_RB_PHY     [i]->write(rb);
    354               in_INSERT_READ_RC            [i]->write(read_rc );
    355               in_INSERT_NUM_REG_RC_PHY     [i]->write(rc);
     356//            in_INSERT_READ_RA            [i]->write(read_ra );
     357//            in_INSERT_NUM_REG_RA_PHY     [i]->write(ra);
     358//            in_INSERT_READ_RB            [i]->write(read_rb );
     359//            in_INSERT_NUM_REG_RB_PHY     [i]->write(rb);
     360//            in_INSERT_READ_RC            [i]->write(read_rc );
     361//            in_INSERT_NUM_REG_RC_PHY     [i]->write(rc);
    356362              in_INSERT_WRITE_RD           [i]->write(write_rd);
    357363              in_INSERT_NUM_REG_RD_PHY_NEW [i]->write(rd);
     
    394400
    395401              in_RETIRE_VAL                [i]->write((rand()%100) < percent_transaction_retire);
    396               in_RETIRE_READ_RA            [i]->write(read_ra );
    397               in_RETIRE_RESTORE            [i]->write(0);
    398               in_RETIRE_NUM_REG_RA_PHY     [i]->write(ra);
    399               in_RETIRE_READ_RB            [i]->write(read_rb );
    400               in_RETIRE_NUM_REG_RB_PHY     [i]->write(rb);
    401               in_RETIRE_READ_RC            [i]->write(read_rc );
    402               in_RETIRE_NUM_REG_RC_PHY     [i]->write(rc);
     402//            in_RETIRE_READ_RA            [i]->write(read_ra );
     403//            in_RETIRE_RESTORE            [i]->write(0);
     404//            in_RETIRE_NUM_REG_RA_PHY     [i]->write(ra);
     405//            in_RETIRE_READ_RB            [i]->write(read_rb );
     406//            in_RETIRE_NUM_REG_RB_PHY     [i]->write(rb);
     407//            in_RETIRE_READ_RC            [i]->write(read_rc );
     408//            in_RETIRE_NUM_REG_RC_PHY     [i]->write(rc);
    403409              in_RETIRE_WRITE_RD           [i]->write(write_rd);
    404410              in_RETIRE_RESTORE_RD_PHY_OLD [i]->write(0);
     
    454460              if (in_INSERT_VAL [i]->read() and out_INSERT_ACK [i]->read())
    455461                {
    456                   Tcontrol_t         read_ra  = in_INSERT_READ_RA            [i]->read();
    457                   Tgeneral_address_t ra       = in_INSERT_NUM_REG_RA_PHY     [i]->read();
    458                   Tcontrol_t         read_rb  = in_INSERT_READ_RB            [i]->read();
    459                   Tgeneral_address_t rb       = in_INSERT_NUM_REG_RB_PHY     [i]->read();
    460                   Tcontrol_t         read_rc  = in_INSERT_READ_RC            [i]->read();
    461                   Tspecial_address_t rc       = in_INSERT_NUM_REG_RC_PHY     [i]->read();
     462//                Tcontrol_t         read_ra  = in_INSERT_READ_RA            [i]->read();
     463//                Tgeneral_address_t ra       = in_INSERT_NUM_REG_RA_PHY     [i]->read();
     464//                Tcontrol_t         read_rb  = in_INSERT_READ_RB            [i]->read();
     465//                Tgeneral_address_t rb       = in_INSERT_NUM_REG_RB_PHY     [i]->read();
     466//                Tcontrol_t         read_rc  = in_INSERT_READ_RC            [i]->read();
     467//                Tspecial_address_t rc       = in_INSERT_NUM_REG_RC_PHY     [i]->read();
    462468                  Tgeneral_address_t rd_new   = in_INSERT_NUM_REG_RD_PHY_NEW [i]->read();
    463469                  Tspecial_address_t re_new   = in_INSERT_NUM_REG_RE_PHY_NEW [i]->read();               
    464470                 
    465471                  LABEL("INSERT [%d] - Accepted",i);
    466                   LABEL(" * read_ra          : %d",read_ra );
    467                   LABEL(" * reg_ra           : %d",ra      );
    468                   LABEL("   * status[%d]._is_free  : %d",ra,spr_status[ra]._is_free );
    469                   LABEL("   * status[%d]._is_link  : %d",ra,spr_status[ra]._is_link );
    470                   LABEL("   * status[%d]._is_valid : %d",ra,spr_status[ra]._is_valid);
    471                   LABEL("   * status[%d]._counter  : %d",ra,spr_status[ra]._counter );
    472                   LABEL(" * read_rb          : %d",read_rb );
    473                   LABEL(" * reg_rb           : %d",rb      );
    474                   LABEL("   * status[%d]._is_free  : %d",rb,spr_status[rb]._is_free );
    475                   LABEL("   * status[%d]._is_link  : %d",rb,spr_status[rb]._is_link );
    476                   LABEL("   * status[%d]._is_valid : %d",rb,spr_status[rb]._is_valid);
    477                   LABEL("   * status[%d]._counter  : %d",rb,spr_status[rb]._counter );
    478                   LABEL(" * read_rc          : %d",read_rc );
    479                   LABEL(" * reg_rc           : %d",rc      );
    480                   LABEL("   * status[%d]._is_free  : %d",rc,spr_status[rc]._is_free );
    481                   LABEL("   * status[%d]._is_link  : %d",rc,spr_status[rc]._is_link );
    482                   LABEL("   * status[%d]._is_valid : %d",rc,spr_status[rc]._is_valid);
    483                   LABEL("   * status[%d]._counter  : %d",rc,spr_status[rc]._counter );
     472//                LABEL(" * read_ra          : %d",read_ra );
     473//                LABEL(" * reg_ra           : %d",ra      );
     474//                LABEL("   * status[%d]._is_free  : %d",ra,spr_status[ra]._is_free );
     475//                LABEL("   * status[%d]._is_link  : %d",ra,spr_status[ra]._is_link );
     476//                LABEL("   * status[%d]._is_valid : %d",ra,spr_status[ra]._is_valid);
     477//                LABEL("   * status[%d]._counter  : %d",ra,spr_status[ra]._counter );
     478//                LABEL(" * read_rb          : %d",read_rb );
     479//                LABEL(" * reg_rb           : %d",rb      );
     480//                LABEL("   * status[%d]._is_free  : %d",rb,spr_status[rb]._is_free );
     481//                LABEL("   * status[%d]._is_link  : %d",rb,spr_status[rb]._is_link );
     482//                LABEL("   * status[%d]._is_valid : %d",rb,spr_status[rb]._is_valid);
     483//                LABEL("   * status[%d]._counter  : %d",rb,spr_status[rb]._counter );
     484//                LABEL(" * read_rc          : %d",read_rc );
     485//                LABEL(" * reg_rc           : %d",rc      );
     486//                LABEL("   * status[%d]._is_free  : %d",rc,spr_status[rc]._is_free );
     487//                LABEL("   * status[%d]._is_link  : %d",rc,spr_status[rc]._is_link );
     488//                LABEL("   * status[%d]._is_valid : %d",rc,spr_status[rc]._is_valid);
     489//                LABEL("   * status[%d]._counter  : %d",rc,spr_status[rc]._counter );
    484490                  LABEL(" * read_rd          : %d",write_rd);
    485491                  LABEL(" * reg_rd_new       : %d",rd_new  );
     
    495501                  LABEL("   * status[%d]._counter  : %d",re_new,spr_status[re_new]._counter );
    496502                 
    497                   if (read_ra)
    498                     {
    499                       gpr_status[ra]._counter ++;
    500                     }
    501                   if (read_rb)
    502                     {
    503                       gpr_status[rb]._counter ++;
    504                     }
    505                   if (read_rc)
    506                     {
    507                       spr_status[rc]._counter ++;
    508                     }
     503//                if (read_ra)
     504//                  {
     505//                    gpr_status[ra]._counter ++;
     506//                  }
     507//                if (read_rb)
     508//                  {
     509//                    gpr_status[rb]._counter ++;
     510//                  }
     511//                if (read_rc)
     512//                  {
     513//                    spr_status[rc]._counter ++;
     514//                  }
    509515                  if (write_rd)
    510516                    {
     
    544550              {
    545551                Tcontrol_t         restore        = in_RETIRE_RESTORE            [i]->read();
    546                 Tcontrol_t         read_ra        = in_RETIRE_READ_RA            [i]->read();
    547                 Tgeneral_address_t ra             = in_RETIRE_NUM_REG_RA_PHY     [i]->read();
    548                 Tcontrol_t         read_rb        = in_RETIRE_READ_RB            [i]->read();
    549                 Tgeneral_address_t rb             = in_RETIRE_NUM_REG_RB_PHY     [i]->read();
    550                 Tcontrol_t         read_rc        = in_RETIRE_READ_RC            [i]->read();
    551                 Tspecial_address_t rc             = in_RETIRE_NUM_REG_RC_PHY     [i]->read();
     552//              Tcontrol_t         read_ra        = in_RETIRE_READ_RA            [i]->read();
     553//              Tgeneral_address_t ra             = in_RETIRE_NUM_REG_RA_PHY     [i]->read();
     554//              Tcontrol_t         read_rb        = in_RETIRE_READ_RB            [i]->read();
     555//              Tgeneral_address_t rb             = in_RETIRE_NUM_REG_RB_PHY     [i]->read();
     556//              Tcontrol_t         read_rc        = in_RETIRE_READ_RC            [i]->read();
     557//              Tspecial_address_t rc             = in_RETIRE_NUM_REG_RC_PHY     [i]->read();
    552558                Tcontrol_t         write_rd       = in_RETIRE_WRITE_RD           [i]->read();
    553559                Tcontrol_t         restore_rd_old = in_RETIRE_RESTORE_RD_PHY_OLD [i]->read();
     
    561567                LABEL("RETIRE [%d] - Accepted",i);
    562568                LABEL(" * restore          : %d",restore);
    563                 LABEL(" * read_ra          : %d",read_ra );
    564                 LABEL(" * reg_ra           : %d",ra      );
    565                 LABEL("   * status[%d]._is_free  : %d",ra,spr_status[ra]._is_free );
    566                 LABEL("   * status[%d]._is_link  : %d",ra,spr_status[ra]._is_link );
    567                 LABEL("   * status[%d]._is_valid : %d",ra,spr_status[ra]._is_valid);
    568                 LABEL("   * status[%d]._counter  : %d",ra,spr_status[ra]._counter );
    569                 LABEL(" * read_rb          : %d",read_rb );
    570                 LABEL(" * reg_rb           : %d",rb      );
    571                 LABEL("   * status[%d]._is_free  : %d",rb,spr_status[rb]._is_free );
    572                 LABEL("   * status[%d]._is_link  : %d",rb,spr_status[rb]._is_link );
    573                 LABEL("   * status[%d]._is_valid : %d",rb,spr_status[rb]._is_valid);
    574                 LABEL("   * status[%d]._counter  : %d",rb,spr_status[rb]._counter );
    575                 LABEL(" * read_rc          : %d",read_rc );
    576                 LABEL(" * reg_rc           : %d",rc      );
    577                 LABEL("   * status[%d]._is_free  : %d",rc,spr_status[rc]._is_free );
    578                 LABEL("   * status[%d]._is_link  : %d",rc,spr_status[rc]._is_link );
    579                 LABEL("   * status[%d]._is_valid : %d",rc,spr_status[rc]._is_valid);
    580                 LABEL("   * status[%d]._counter  : %d",rc,spr_status[rc]._counter );
     569//              LABEL(" * read_ra          : %d",read_ra );
     570//              LABEL(" * reg_ra           : %d",ra      );
     571//              LABEL("   * status[%d]._is_free  : %d",ra,spr_status[ra]._is_free );
     572//              LABEL("   * status[%d]._is_link  : %d",ra,spr_status[ra]._is_link );
     573//              LABEL("   * status[%d]._is_valid : %d",ra,spr_status[ra]._is_valid);
     574//              LABEL("   * status[%d]._counter  : %d",ra,spr_status[ra]._counter );
     575//              LABEL(" * read_rb          : %d",read_rb );
     576//              LABEL(" * reg_rb           : %d",rb      );
     577//              LABEL("   * status[%d]._is_free  : %d",rb,spr_status[rb]._is_free );
     578//              LABEL("   * status[%d]._is_link  : %d",rb,spr_status[rb]._is_link );
     579//              LABEL("   * status[%d]._is_valid : %d",rb,spr_status[rb]._is_valid);
     580//              LABEL("   * status[%d]._counter  : %d",rb,spr_status[rb]._counter );
     581//              LABEL(" * read_rc          : %d",read_rc );
     582//              LABEL(" * reg_rc           : %d",rc      );
     583//              LABEL("   * status[%d]._is_free  : %d",rc,spr_status[rc]._is_free );
     584//              LABEL("   * status[%d]._is_link  : %d",rc,spr_status[rc]._is_link );
     585//              LABEL("   * status[%d]._is_valid : %d",rc,spr_status[rc]._is_valid);
     586//              LABEL("   * status[%d]._counter  : %d",rc,spr_status[rc]._counter );
    581587                LABEL(" * read_rd          : %d",write_rd);
    582588                LABEL(" * restore_rd_old   : %d",restore_rd_old);
     
    604610                LABEL("   * status[%d]._counter  : %d",re_new,spr_status[re_new]._counter );
    605611
    606                 if (read_ra)
    607                   {
    608                     gpr_status[ra]._counter --;
    609                   }
    610                 if (read_rb)
    611                   {
    612                     gpr_status[rb]._counter --;
    613                   }
    614                 if (read_rc)
    615                   {
    616                     spr_status[rc]._counter --;
    617                   }
     612//              if (read_ra)
     613//                {
     614//                  gpr_status[ra]._counter --;
     615//                }
     616//              if (read_rb)
     617//                {
     618//                  gpr_status[rb]._counter --;
     619//                }
     620//              if (read_rc)
     621//                {
     622//                  spr_status[rc]._counter --;
     623//                }
    618624                if (write_rd)
    619625                  {
     
    721727  delete []  in_INSERT_VAL               ;
    722728  delete [] out_INSERT_ACK               ;
    723   delete []  in_INSERT_READ_RA           ;
    724   delete []  in_INSERT_NUM_REG_RA_PHY    ;
    725   delete []  in_INSERT_READ_RB           ;
    726   delete []  in_INSERT_NUM_REG_RB_PHY    ;
    727   delete []  in_INSERT_READ_RC           ;
    728   delete []  in_INSERT_NUM_REG_RC_PHY    ;
     729//delete []  in_INSERT_READ_RA           ;
     730//delete []  in_INSERT_NUM_REG_RA_PHY    ;
     731//delete []  in_INSERT_READ_RB           ;
     732//delete []  in_INSERT_NUM_REG_RB_PHY    ;
     733//delete []  in_INSERT_READ_RC           ;
     734//delete []  in_INSERT_NUM_REG_RC_PHY    ;
    729735  delete []  in_INSERT_WRITE_RD          ;
     736  delete []  in_INSERT_NUM_REG_RD_PHY_OLD;
    730737  delete []  in_INSERT_NUM_REG_RD_PHY_NEW;
    731738  delete []  in_INSERT_WRITE_RE          ;
     739  delete []  in_INSERT_NUM_REG_RE_PHY_OLD;
    732740  delete []  in_INSERT_NUM_REG_RE_PHY_NEW;
    733741  delete []  in_RETIRE_VAL               ;
    734742  delete [] out_RETIRE_ACK               ;
    735743  delete []  in_RETIRE_RESTORE           ;
    736   delete []  in_RETIRE_READ_RA           ;
    737   delete []  in_RETIRE_NUM_REG_RA_PHY    ;
    738   delete []  in_RETIRE_READ_RB           ;
    739   delete []  in_RETIRE_NUM_REG_RB_PHY    ;
    740   delete []  in_RETIRE_READ_RC           ;
    741   delete []  in_RETIRE_NUM_REG_RC_PHY    ;
     744//delete []  in_RETIRE_READ_RA           ;
     745//delete []  in_RETIRE_NUM_REG_RA_PHY    ;
     746//delete []  in_RETIRE_READ_RB           ;
     747//delete []  in_RETIRE_NUM_REG_RB_PHY    ;
     748//delete []  in_RETIRE_READ_RC           ;
     749//delete []  in_RETIRE_NUM_REG_RC_PHY    ;
    742750  delete []  in_RETIRE_WRITE_RD          ;
    743751  delete []  in_RETIRE_RESTORE_RD_PHY_OLD;
Note: See TracChangeset for help on using the changeset viewer.