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/Decod_unit/Decod/src/Parameters.cpp

    r87 r88  
    11/*
    2 
    32 * $Id$
    43 *
     
    2423                          uint32_t          * nb_inst_fetch                ,
    2524                          uint32_t            nb_inst_decod                ,
    26                           uint32_t            nb_branch_speculated         ,
    27                           uint32_t            size_branch_update_prediction,
     25                          uint32_t          * nb_branch_speculated         ,
     26//                        uint32_t          * size_branch_update_prediction,
    2827                          uint32_t            nb_context_select            ,
    2928                          uint32_t            size_general_data            ,
     
    3130                          Tload_balancing_t   load_balancing               ,
    3231                          bool             ** instruction_implemeted       ,
    33                           morpheo::behavioural::custom::custom_information_t (*get_custom_information) (uint32_t))
     32                          morpheo::behavioural::custom::custom_information_t (*get_custom_information) (void),
     33                          bool                is_toplevel
     34                          )
    3435  {
    3536    log_printf(FUNC,Decod,FUNCTION,"Begin");
     
    4041    _nb_branch_speculated          = nb_branch_speculated         ;
    4142    _nb_context_select             = nb_context_select            ;
    42     _size_branch_update_prediction = size_branch_update_prediction;
    43     _size_general_data             = size_general_data            ;
     43//  _size_branch_update_prediction = size_branch_update_prediction;
     44//  _size_general_data             = size_general_data            ;
    4445    _priority                      = priority                     ;
    4546    _load_balancing                = load_balancing               ;
     
    5253
    5354   
    54     _max_nb_inst_fetch                     = max<uint32_t>(nb_inst_fetch,nb_context);
     55    _max_nb_inst_fetch                        = max<uint32_t>(nb_inst_fetch,nb_context);
     56                                             
     57//  _size_address_inst                        = size_general_data-2;
    5558
    56     _size_address_inst                     = size_general_data-2;
    57     _size_context_id                       = log2(nb_context          );
    58     _size_depth                            = log2(nb_branch_speculated);
    59     _size_inst_ifetch_ptr                  = log2(_max_nb_inst_fetch  );
     59    test();
    6060
    61     _have_port_context_id                  = _size_context_id > 0;
    62     _have_port_depth                       = _size_depth      > 0;
    63     _have_port_branch_update_prediction_id = _size_branch_update_prediction > 0;
    64     _have_port_inst_ifetch_ptr             = _size_inst_ifetch_ptr > 0;
    65    
    66     test();
     61    if (is_toplevel)
     62      {
     63        _size_context_id                      = log2(nb_context          );
     64        _size_depth                           = log2(max<uint32_t>(_nb_branch_speculated,_nb_context));
     65//      _size_branch_update_prediction_id     = max<uint32_t>(_size_branch_update_prediction,_nb_context);
     66        _size_inst_ifetch_ptr                 = log2(_max_nb_inst_fetch  );
     67        _size_instruction_address             = size_general_data-2;
     68        _size_general_data                    = size_general_data;
     69
     70        _have_port_context_id                 = _size_context_id > 0;
     71        _have_port_depth                      = _size_depth                       > 0;
     72//      _have_port_branch_update_prediction_id= _size_branch_update_prediction_id > 0;
     73        _have_port_inst_ifetch_ptr            = _size_inst_ifetch_ptr             > 0;
     74
     75        copy ();
     76      }
     77
    6778    log_printf(FUNC,Decod,FUNCTION,"End");
    6879  };
     
    8293  {
    8394    log_printf(FUNC,Decod,FUNCTION,"Begin");
     95
     96    log_printf(FUNC,Decod,FUNCTION,"End");
     97  };
     98
     99#undef  FUNCTION
     100#define FUNCTION "Decod::copy"
     101  void Parameters::copy (void)
     102  {
     103    log_printf(FUNC,Decod,FUNCTION,"Begin");
     104
    84105    log_printf(FUNC,Decod,FUNCTION,"End");
    85106  };
Note: See TracChangeset for help on using the changeset viewer.