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

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

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

  void RegisterFile_Monolithic::deallocation (void)
  {
    delete    in_CLOCK;
    delete    in_NRESET;
    // ----- Interface Read
    delete []  in_READ_VAL    ;
    delete [] out_READ_ACK    ;
    delete []  in_READ_ADDRESS;
    delete [] out_READ_DATA   ;

    // ----- Interface Write
    delete []  in_WRITE_VAL    ;
    delete [] out_WRITE_ACK    ;
    delete []  in_WRITE_ADDRESS;
    delete []  in_WRITE_DATA   ;

    // ----- Register
    delete [] reg_DATA;

#ifdef POSITION
    delete _position;
#else
    delete _interfaces;
#endif
  };

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