/*
 * $Id: Parameters.cpp 88 2008-12-10 18:31:39Z rosiere $
 *
 * [ Description ]
 * 
 */

#include "Behavioural/Core/Multi_Execute_loop/Execute_loop/Execute_loop_Glue/include/Parameters.h"

namespace morpheo {
namespace behavioural {
namespace core {
namespace multi_execute_loop {
namespace execute_loop {
namespace execute_loop_glue {


#undef  FUNCTION
#define FUNCTION "Execute_loop_Glue::Parameters"
  Parameters::Parameters (uint32_t nb_gpr_write           ,
			  uint32_t nb_spr_write           ,
			  uint32_t size_ooo_engine_id     ,
			  uint32_t size_general_register  ,
			  uint32_t size_special_register  ,
			  uint32_t size_general_data      ,
			  uint32_t size_special_data      ,
                          bool     is_toplevel)
  {
    log_begin(Execute_loop_Glue,FUNCTION);

    _nb_gpr_write            = nb_gpr_write           ;
    _nb_spr_write            = nb_spr_write           ;
//  _size_ooo_engine_id      = size_ooo_engine_id     ;
//  _size_general_register   = size_general_register  ;
//  _size_special_register   = size_special_register  ;
//  _size_general_data       = size_general_data      ;
//  _size_special_data       = size_special_data      ;
    
//  _have_port_ooo_engine_id = _size_ooo_engine_id > 0;

    test();

    if (is_toplevel)
      {
        _size_ooo_engine_id      = size_ooo_engine_id     ;
        _size_general_register   = size_general_register  ;
        _size_special_register   = size_special_register  ;
        _size_general_data       = size_general_data      ;
        _size_special_data       = size_special_data      ;
        
        _have_port_ooo_engine_id = _size_ooo_engine_id > 0;

        copy();
      }

    log_end(Execute_loop_Glue,FUNCTION);
  };
  
// #undef  FUNCTION
// #define FUNCTION "Execute_loop_Glue::Parameters (copy)"
//   Parameters::Parameters (Parameters & param)
//   {
//     log_begin(Execute_loop_Glue,FUNCTION);
//     test();
//     log_end(Execute_loop_Glue,FUNCTION);
//   };

#undef  FUNCTION
#define FUNCTION "Execute_loop_Glue::~Parameters"
  Parameters::~Parameters (void) 
  {
    log_begin(Execute_loop_Glue,FUNCTION);
    log_end(Execute_loop_Glue,FUNCTION);
  };

#undef  FUNCTION
#define FUNCTION "Execute_loop_Glue::copy"
  void Parameters::copy (void) 
  {
    log_begin(Execute_loop_Glue,FUNCTION);
    log_end(Execute_loop_Glue,FUNCTION);
  };

}; // end namespace execute_loop_glue
}; // end namespace execute_loop
}; // end namespace multi_execute_loop
}; // end namespace core

}; // end namespace behavioural
}; // end namespace morpheo              
