Ignore:
Timestamp:
Mar 9, 2007, 7:16:58 PM (17 years ago)
Author:
rosiere
Message:

Ajout du composant Meta_Predictor

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Stage_1_Ifetch/Predictor/Meta_Predictor/Meta_Predictor_Glue/src/Meta_Predictor_Glue.cpp

    r4 r5  
    163163      }
    164164#endif   
     165
     166    if (_param._have_meta_predictor)
     167      {
     168    log_printf(INFO,Meta_Predictor_Glue,"Meta_Predictor_Glue","method - genMealy_branch_complete_val");
     169    SC_METHOD (genMealy_branch_complete_val);
     170    dont_initialize ();
     171    for (uint32_t i=0; i<_param._nb_branch_complete; i++)
     172      {
     173        sensitive << *(in_BRANCH_COMPLETE_VAL       [i])
     174                  << *(in_BRANCH_COMPLETE_HISTORY   [i])
     175                  << *(in_BRANCH_COMPLETE_DIRECTION [i]);
     176      }
     177
     178#ifdef SYSTEMCASS_SPECIFIC
     179    // List dependency information
     180    for (uint32_t i=0; i<_param._nb_branch_complete; i++)
     181      {
     182        (*(out_BRANCH_COMPLETE_PREDICTOR_2_VAL       [i])) (*(in_BRANCH_COMPLETE_VAL       [i]));
     183        (*(out_BRANCH_COMPLETE_PREDICTOR_2_VAL       [i])) (*(in_BRANCH_COMPLETE_HISTORY   [i]));
     184        (*(out_BRANCH_COMPLETE_PREDICTOR_2_VAL       [i])) (*(in_BRANCH_COMPLETE_DIRECTION [i]));
     185
     186        (*(out_BRANCH_COMPLETE_PREDICTOR_2_DIRECTION [i])) (*(in_BRANCH_COMPLETE_VAL       [i]));
     187        (*(out_BRANCH_COMPLETE_PREDICTOR_2_DIRECTION [i])) (*(in_BRANCH_COMPLETE_HISTORY   [i]));
     188        (*(out_BRANCH_COMPLETE_PREDICTOR_2_DIRECTION [i])) (*(in_BRANCH_COMPLETE_DIRECTION [i]));
     189      }
     190#endif   
     191      }
    165192
    166193    log_printf(INFO,Meta_Predictor_Glue,"Meta_Predictor_Glue","method - genMealy_branch_complete_ack");
Note: See TracChangeset for help on using the changeset viewer.