/*
 * $Id$
 *
 * [ Description ]
 * 
 */

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

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


#ifdef SYSTEMC
  RegisterFile::RegisterFile (sc_module_name name,
#else
  RegisterFile::RegisterFile (string name,
#endif
#ifdef STATISTICS
			      morpheo::behavioural::Parameters_Statistics             * param_statistics,
#endif
			      morpheo::behavioural::generic::registerfile::Parameters * param ):
			      _name              (name)
			      ,_param            (param)
#ifdef STATISTICS
			      ,_param_statistics (param_statistics)
#endif
  {
    log_printf(FUNC,RegisterFile,"RegisterFile","Begin");

#ifdef SYSTEMC
    log_printf(INFO,RegisterFile,"RegisterFile","Allocation");

    allocation ();
#endif

    log_printf(FUNC,RegisterFile,"RegisterFile","End");
  };
  
  RegisterFile::~RegisterFile (void)
  {
    log_printf(FUNC,RegisterFile,"~RegisterFile","Begin");

#ifdef SYSTEMC
    log_printf(INFO,RegisterFile,"~RegisterFile","Deallocation");

    deallocation ();
#endif

    log_printf(FUNC,RegisterFile,"~RegisterFile","End");
  };

}; // end namespace registerfile
}; // end namespace generic

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