Ignore:
Timestamp:
Jul 5, 2007, 5:50:19 PM (17 years ago)
Author:
rosiere
Message:

Modification des classes d'encapsulation des interfaces :

  • gère les signaux à écrire dans le vhdl
  • les traces pour le testbench
  • la génération des vhdl structurelles

-> test sur la Pattern History Table

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Stage_1_Ifetch/Predictor/Meta_Predictor/Two_Level_Branch_Predictor/Two_Level_Branch_Predictor_Glue/SelfTest/src/test.cpp

    r2 r42  
    4444   *********************************************************************/
    4545  sc_clock                                 CLOCK ("clock", 1.0, 0.5);
     46  sc_signal<Tcontrol_t>                    NRESET;
    4647
    4748  sc_signal<Tcontrol_t>                    PREDICT_BHT_ACK             [param._nb_prediction];
     
    6869  cout << "<" << name << "> Instanciation of _Two_Level_Branch_Predictor_Glue" << endl;
    6970 
    70 #if defined(STATISTICS) or defined(VHDL_TESTBENCH)
    7171  (*(_Two_Level_Branch_Predictor_Glue->in_CLOCK))        (CLOCK);
    72 #endif
     72  (*(_Two_Level_Branch_Predictor_Glue->in_NRESET))       (NRESET);
    7373
    7474  for (uint32_t i=0; i<param._nb_prediction; i++)
     
    125125
    126126  sc_start(0);
    127   _Two_Level_Branch_Predictor_Glue->vhdl_testbench_label("Initialisation");
     127
    128128  cout << "{"+toString(static_cast<uint32_t>(sc_simulation_time()))+"} Initialisation" << endl;
    129129
    130 
    131   _Two_Level_Branch_Predictor_Glue->vhdl_testbench_label("Test ack");
     130  NRESET.write(1);
     131
    132132  cout << "{"+toString(static_cast<uint32_t>(sc_simulation_time()))+"} Test ack" << endl;
    133133
    134134  for (uint32_t iteration=0; iteration<NB_ITERATION; iteration ++)
    135135    {
    136       _Two_Level_Branch_Predictor_Glue->vhdl_testbench_label("Iteration "+toString(iteration));
    137 
    138136      // Branch History Table
    139137      if (param._have_bht)
     
    191189
    192190
    193   _Two_Level_Branch_Predictor_Glue->vhdl_testbench_label("Test address");
    194191  cout << "{"+toString(static_cast<uint32_t>(sc_simulation_time()))+"} Test address" << endl;
    195192
    196193  for (uint32_t iteration=0; iteration<NB_ITERATION; iteration ++)
    197194    {
    198       _Two_Level_Branch_Predictor_Glue->vhdl_testbench_label("Iteration "+toString(iteration));
    199      
    200195      predict_address             = rand()%(1<<param._size_address    );
    201196      predict_bht_history         = 0;
Note: See TracChangeset for help on using the changeset viewer.