#ifdef STATISTICS
/*
 * $Id$
 *
 * [ Description ]
 * 
 */

#include "Behavioural/Generic/RegisterFile/include/Statistics.h"

namespace morpheo                    {
namespace behavioural                {
namespace generic                    {
namespace registerfile               {

  Statistics::Statistics (string                                      name                       ,
			  morpheo::behavioural::Parameters_Statistics parameters_statistics      ,
			  Parameters                                  parameters
			  ) :
    morpheo::behavioural::Statistics(name                  ,
				     parameters_statistics ),
    _parameters(parameters)
  {
    _stat_port_read  = new morpheo::behavioural::generic::group::Statistics (name + "_port_read"   ,
									     parameters_statistics ,
									     morpheo::behavioural::generic::group::Parameters(_parameters._nb_port_read));
    _stat_port_write = new morpheo::behavioural::generic::group::Statistics (name + "_port_write"   ,
									     parameters_statistics ,
									     morpheo::behavioural::generic::group::Parameters(_parameters._nb_port_write));
  };
  
  //   Statistics::Statistics (Statistics & stat) :
  // 		       _nb_port_read      (param._nb_port_read ),
  // 		       _nb_port_write     (param._nb_port_write),
  // 		       _nb_word           (param._nb_word      ),
  // 		       _size_word         (param._size_word    )
  //     { };
  
  Statistics::~Statistics () 
  { 
    delete _stat_port_read ;
    delete _stat_port_write;
  };

}; // end namespace registerfile
}; // end namespace generic
}; // end namespace behavioural          
}; // end namespace morpheo              
#endif
