Ignore:
Timestamp:
Dec 10, 2008, 7:31:39 PM (15 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_OOO_Engine/OOO_Engine/Rename_unit/Rename_select/src/Parameters.cpp

    r81 r88  
    2222  Parameters::Parameters (uint32_t          nb_front_end         ,
    2323                          uint32_t *        nb_context           ,
     24//                           uint32_t          size_front_end_id    ,
     25//                           uint32_t          size_context_id      ,
    2426                          uint32_t          max_branch_speculated,
    2527                          uint32_t          size_general_data    ,
     
    2830                          uint32_t          nb_front_end_select  ,
    2931                          Tpriority_t       priority             ,
    30                           Tload_balancing_t load_balancing       )
     32                          Tload_balancing_t load_balancing       ,
     33                          bool              is_toplevel)
    3134  {
    3235    log_printf(FUNC,Rename_select,FUNCTION,"Begin");
     
    3538    _nb_context            = nb_context           ;
    3639    _max_branch_speculated = max_branch_speculated;
    37     _size_general_data     = size_general_data    ;
    3840    _nb_inst_rename        = nb_inst_rename       ;
    3941    _nb_inst_decod         = nb_inst_decod        ;
     
    4446    _max_nb_inst_decod     = max<uint32_t>(nb_inst_decod,nb_front_end);
    4547
    46     _size_front_end_id     = log2(nb_front_end);
    47     _size_context_id       = log2(max<uint32_t>(nb_context,nb_front_end));
    48     _size_depth            = log2(max_branch_speculated);
     48    test();
    4949
    50     _have_port_front_end_id= _size_front_end_id > 0;
    51     _have_port_context_id  = _size_context_id   > 0;
    52     _have_port_depth       = _size_depth        > 0;
     50    if (is_toplevel)
     51      {
     52        _size_general_data     = size_general_data    ;
     53        _size_depth            = log2(max_branch_speculated);
     54        _size_front_end_id     = log2(_nb_front_end);
     55        _size_context_id       = log2(max<uint32_t>(_nb_context,_nb_front_end));
    5356       
    54     test();
     57        _have_port_front_end_id= _size_front_end_id > 0;
     58        _have_port_context_id  = _size_context_id   > 0;
     59        _have_port_depth       = _size_depth        > 0;
     60       
     61        copy();
     62      }
     63
    5564    log_printf(FUNC,Rename_select,FUNCTION,"End");
    5665  };
     
    7382  };
    7483
     84#undef  FUNCTION
     85#define FUNCTION "Rename_select::copy"
     86  void Parameters::copy (void)
     87  {
     88    log_printf(FUNC,Rename_select,FUNCTION,"Begin");
     89    log_printf(FUNC,Rename_select,FUNCTION,"End");
     90  };
     91
    7592}; // end namespace rename_select
    7693}; // end namespace rename_unit
Note: See TracChangeset for help on using the changeset viewer.