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

#include "Behavioural/Generic/Sort/include/Parameters.h"

namespace morpheo {
namespace behavioural {
namespace generic {
namespace sort {


#undef  FUNCTION
#define FUNCTION "Sort::Parameters"
  Parameters::Parameters (uint32_t nb_input           ,
			  uint32_t nb_output          ,
			  bool     ascending          ,
			  uint32_t size_data          ,
			  bool     have_port_index_out,
			  bool     have_port_data_out )
  {
    log_printf(FUNC,Sort,FUNCTION,"Begin");
    
    _nb_input            = nb_input           ;
    _nb_output           = nb_output          ;
    _ascending           = ascending          ;
    _size_data           = size_data          ;
    _have_port_index_out = have_port_index_out;
    _have_port_data_out  = have_port_data_out ;

    _size_address        = log2(nb_input);

    test();
    log_printf(FUNC,Sort,FUNCTION,"End");
  };
  
// #undef  FUNCTION
// #define FUNCTION "Sort::Parameters (copy)"
//   Parameters::Parameters (Parameters & param)
//   {
//     log_printf(FUNC,Sort,FUNCTION,"Begin");
//     test();
//     log_printf(FUNC,Sort,FUNCTION,"End");
//   };

#undef  FUNCTION
#define FUNCTION "Sort::~Parameters"
  Parameters::~Parameters () 
  {
    log_printf(FUNC,Sort,FUNCTION,"Begin");
    log_printf(FUNC,Sort,FUNCTION,"End");
  };

#undef  FUNCTION
#define FUNCTION "Sort::copy"
  void Parameters::copy (void) 
  {
    log_printf(FUNC,Sort,FUNCTION,"Begin");
    log_printf(FUNC,Sort,FUNCTION,"End");
  };

}; // end namespace sort
}; // end namespace generic

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