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

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

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


  void RegisterFile_Multi_Banked::deallocation (void)
  {
    log_printf(FUNC,RegisterFile_Multi_Banked,"deallocation","Begin");

//#if defined(STATISTICS) or defined(VHDL_TESTBENCH)
    delete in_CLOCK;
//#endif
    delete in_NRESET;

    // ----- Interface Read
    for (uint32_t i=0; i<_param._nb_port_read; i++)
      {
	delete  in_READ_VAL     [i];
	delete out_READ_ACK     [i];
	delete  in_READ_ADDRESS [i];
	delete out_READ_DATA    [i];
      }

    delete  in_READ_VAL    ;
    delete out_READ_ACK    ;
    delete  in_READ_ADDRESS;
    delete out_READ_DATA   ;

    // ----- Interface Write
    for (uint32_t i=0; i<_param._nb_port_write; i++)
      {
	delete  in_WRITE_VAL     [i];
	delete out_WRITE_ACK     [i];
	delete  in_WRITE_ADDRESS [i];
	delete  in_WRITE_DATA    [i];
      }

    delete  in_WRITE_VAL    ;
    delete out_WRITE_ACK    ;
    delete  in_WRITE_ADDRESS;
    delete  in_WRITE_DATA   ;

    // ~~~~~[ Component ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~    

    log_printf(FUNC,RegisterFile_Multi_Banked,"deallocation","End");
  };

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

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