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_OOO_Engine/OOO_Engine/Rename_unit/Register_translation_unit/Register_Address_Translation_unit/src/Parameters.cpp

    r81 r88  
    2525                          uint32_t   nb_special_register,
    2626                          uint32_t   nb_inst_insert     ,
    27                           uint32_t   nb_inst_retire     )
     27                          uint32_t   nb_inst_retire     ,
     28                          bool       is_toplevel)
    2829  {
    2930    log_printf(FUNC,Register_Address_Translation_unit,FUNCTION,"Begin");
     
    3637    _nb_inst_retire         = nb_inst_retire     ;
    3738
    38     _size_front_end_id      = log2(nb_front_end       );
    39     _size_context_id        = log2(max<uint32_t>(nb_context, nb_front_end));
    40     _size_general_register  = log2(nb_general_register);
    41     _size_special_register  = log2(nb_special_register);
     39    test();
     40
     41    if (is_toplevel)
     42      {
     43        _size_front_end_id      = log2(nb_front_end       );
     44        _size_context_id        = log2(max<uint32_t>(nb_context, nb_front_end));
     45        _size_general_register  = log2(nb_general_register);
     46        _size_special_register  = log2(nb_special_register);
    4247   
    43     _have_port_front_end_id = _size_front_end_id>0;
    44     _have_port_context_id   = _size_context_id  >0;
    45 
    46     test();
     48        _have_port_front_end_id = _size_front_end_id>0;
     49        _have_port_context_id   = _size_context_id  >0;
     50       
     51        copy();
     52      }
    4753
    4854    log_printf(FUNC,Register_Address_Translation_unit,FUNCTION,"End");
     
    6066#undef  FUNCTION
    6167#define FUNCTION "Register_Address_Translation_unit::~Parameters"
    62   Parameters::~Parameters ()
     68  Parameters::~Parameters (void)
     69  {
     70    log_printf(FUNC,Register_Address_Translation_unit,FUNCTION,"Begin");
     71    log_printf(FUNC,Register_Address_Translation_unit,FUNCTION,"End");
     72  };
     73
     74#undef  FUNCTION
     75#define FUNCTION "Register_Address_Translation_unit::copy"
     76  void Parameters::copy (void)
    6377  {
    6478    log_printf(FUNC,Register_Address_Translation_unit,FUNCTION,"Begin");
Note: See TracChangeset for help on using the changeset viewer.