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

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

namespace morpheo                    {
namespace behavioural {
namespace generic {
namespace counter {


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

#if defined(STATISTICS) or defined(VHDL_TESTBENCH)
    delete in_CLOCK;
#endif
    
    for (uint32_t i=0; i<_param._nb_port; i++)
      {
	delete  in_COUNTER_DATA  [i];
	delete  in_COUNTER_ADDSUB[i];
	delete out_COUNTER_DATA  [i];
      }
    delete  in_COUNTER_DATA  ;
    delete  in_COUNTER_ADDSUB;
    delete out_COUNTER_DATA  ;
    
    // ~~~~~[ Component ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~    

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

}; // end namespace counter
}; // end namespace generic

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