Ignore:
Timestamp:
Dec 10, 2008, 7:31:39 PM (16 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_Front_end/Front_end/Prediction_unit/Direction/src/Parameters.cpp

    r81 r88  
    2929                          uint32_t     pht_size_counter       [3],
    3030                          uint32_t     pht_nb_counter         [3],
    31                           uint32_t     pht_size_address_share [3])
     31                          uint32_t     pht_size_address_share [3],
     32                          bool         is_toplevel)
    3233  {
    3334    log_printf(FUNC,Direction,FUNCTION,"Begin");
     
    3637    _nb_inst_predict        = nb_inst_predict       ;
    3738    _nb_inst_update         = nb_inst_update        ;
    38     _size_address           = size_address          ;
     39//  _size_address           = size_address          ;
    3940   
    4041    for (uint32_t i=0; i<3; i++)
     
    141142    _have_port_history = (_size_history > 0);
    142143
     144    test();
     145
    143146    _param_glue = new morpheo::behavioural::core::multi_front_end::front_end::prediction_unit::direction::direction_glue::Parameters
    144147      (_predictor_scheme,
    145148       _nb_inst_predict ,
    146149       _nb_inst_update  ,
    147        _size_address    ,
     150        size_address    ,
    148151       _size_history    );
    149152
    150     test();
    151 
     153    if (is_toplevel)
     154      {
     155        _size_instruction_address = size_address;
     156
     157        copy ();
     158      }
     159   
    152160    log_printf(FUNC,Direction,FUNCTION,"End");
    153161  };
     
    172180  };
    173181
     182#undef  FUNCTION
     183#define FUNCTION "Direction::copy"
     184  void Parameters::copy (void)
     185  {
     186    log_printf(FUNC,Direction,FUNCTION,"Begin");
     187
     188    COPY(_param_glue);
     189
     190    log_printf(FUNC,Direction,FUNCTION,"End");
     191  };
     192
    174193}; // end namespace direction
    175194}; // end namespace prediction_unit
Note: See TracChangeset for help on using the changeset viewer.