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

    r81 r88  
    2525                          uint32_t   nb_inst_predict,
    2626                          uint32_t   nb_inst_decod  ,
    27                           uint32_t   nb_inst_update )
     27                          uint32_t   nb_inst_update ,
     28                          bool       is_toplevel
     29                          )
    2830  {
    2931    log_printf(FUNC,Return_Address_Stack,FUNCTION,"Begin");
     
    3133    _nb_context      = nb_context     ;
    3234    _size_queue      = size_queue     ;
    33     _size_address    = size_address   ;
    3435    _nb_inst_predict = nb_inst_predict;
    3536    _nb_inst_decod   = nb_inst_decod  ;
    3637    _nb_inst_update  = nb_inst_update ;
    3738
    38     _size_context_id = log2(nb_context);
    3939    _size_index      = max<uint32_t>(size_queue,nb_context);
    4040
    41     _have_port_context_id = _size_context_id > 0;
     41    test();
    4242
    43     test();
     43    if (is_toplevel)
     44      {
     45        _size_instruction_address = size_address   ;
     46        _size_context_id          = log2(nb_context);
     47        _have_port_context_id     = _size_context_id > 0;
     48
     49        copy ();
     50      }
     51
    4452    log_printf(FUNC,Return_Address_Stack,FUNCTION,"End");
    4553  };
     
    6270  };
    6371
     72#undef  FUNCTION
     73#define FUNCTION "Return_Address_Stack::copy"
     74  void Parameters::copy (void)
     75  {
     76    log_printf(FUNC,Return_Address_Stack,FUNCTION,"Begin");
     77    log_printf(FUNC,Return_Address_Stack,FUNCTION,"End");
     78  };
     79
    6480}; // end namespace return_address_stack
    6581}; // end namespace prediction_unit
Note: See TracChangeset for help on using the changeset viewer.