/* * $Id: Counter_deallocation.cpp 112 2009-03-18 22:36:26Z rosiere $ * * [ Description ] * */ #include "Behavioural/Generic/Counter/include/Counter.h" #include "Behavioural/include/Allocation.h" namespace morpheo { namespace behavioural { namespace generic { namespace counter { void Counter::deallocation (void) { log_printf(FUNC,Counter,"deallocation","Begin"); if (usage_is_set(_usage,USE_SYSTEMC)) { delete in_CLOCK; delete in_NRESET; DELETE1_SIGNAL( in_COUNTER_DATA , _param._nb_port,_param._size_data); DELETE1_SIGNAL( in_COUNTER_ADDSUB, _param._nb_port,1 ); DELETE1_SIGNAL(out_COUNTER_DATA , _param._nb_port,_param._size_data); } // ~~~~~[ Component ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ delete _component; log_printf(FUNC,Counter,"deallocation","End"); }; }; // end namespace counter }; // end namespace generic }; // end namespace behavioural }; // end namespace morpheo