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_Front_end/Front_end/Decod_unit/Decod_queue/src/Parameters.cpp

    r82 r88  
    1010
    1111namespace morpheo {
    12 namespace behavioural {
     12  namespace behavioural {
    1313namespace core {
    1414namespace multi_front_end {
     
    2424                          uint32_t   size_queue          ,
    2525                          uint32_t   size_general_data   ,
    26                           uint32_t * nb_branch_speculated)
     26                          uint32_t * nb_branch_speculated,
     27                          bool       is_toplevel         )
    2728  {
    2829    log_begin(Decod_queue,FUNCTION);
     
    3132    _nb_inst_decod        = nb_inst_decod       ;
    3233    _size_queue           = size_queue          ;
    33     _size_general_data    = size_general_data   ;
     34//  _size_general_data    = size_general_data   ;
    3435    _nb_branch_speculated = nb_branch_speculated;
    3536
     
    3738    _size_bank            = _size_queue / _nb_bank;
    3839   
    39     _size_context_id      = log2(nb_context);
    40     _size_depth           = log2(max<uint32_t>(_nb_branch_speculated,_nb_context));
    41     _size_nb_inst         = log2(_size_queue);
     40    test();
    4241
    43     _have_port_context_id = (_size_context_id > 0);
    44     _have_port_depth      = (_size_depth      > 0);
    45    
    46     test();
     42    if (is_toplevel)
     43      {
     44        _size_context_id      = log2(nb_context);
     45        _size_nb_inst_decod   = log2(_size_queue)+1;
     46        _size_depth           = log2(max<uint32_t>(_nb_branch_speculated,_nb_context));
     47        _size_general_data    = size_general_data;
     48
     49        _have_port_context_id = _size_context_id > 0;
     50        _have_port_depth      = _size_depth > 0;
     51
     52        copy ();
     53      }
     54
    4755    log_end(Decod_queue,FUNCTION);
    4856  };
     
    6270  {
    6371    log_begin(Decod_queue,FUNCTION);
     72
     73    log_end(Decod_queue,FUNCTION);
     74  };
     75
     76#undef  FUNCTION
     77#define FUNCTION "Decod_queue::copy"
     78  void Parameters::copy (void)
     79  {
     80    log_begin(Decod_queue,FUNCTION);
     81
    6482    log_end(Decod_queue,FUNCTION);
    6583  };
Note: See TracChangeset for help on using the changeset viewer.