source: trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Queue/src/Queue_deallocation.cpp @ 100

Last change on this file since 100 was 100, checked in by rosiere, 15 years ago

1) Bug fix (Operation, Instruction)
2) Modif Return Address Stack
3) Add Soft Test
4) Add Soc Test

  • Property svn:keywords set to Id
File size: 1.4 KB
Line 
1/*
2 * $Id: Queue_deallocation.cpp 100 2009-01-08 13:06:27Z rosiere $
3 *
4 * [ Description ]
5 *
6 */
7
8#include "Behavioural/Generic/Queue/include/Queue.h"
9#include "Behavioural/include/Allocation.h"
10
11namespace morpheo                    {
12namespace behavioural {
13namespace generic {
14namespace queue {
15
16
17#undef  FUNCTION
18#define FUNCTION "Queue::deallocation"
19  void Queue::deallocation (void)
20  {
21    log_printf(FUNC,Queue,FUNCTION,"Begin");
22
23    if (usage_is_set(_usage,USE_SYSTEMC))
24      { 
25        delete    in_CLOCK ;
26        delete    in_NRESET;
27
28        DELETE0_SIGNAL( in_INSERT_VAL                        ,1);
29        DELETE0_SIGNAL(out_INSERT_ACK                        ,1);
30        DELETE0_SIGNAL( in_INSERT_DATA                       ,_param->_size_data);
31
32        DELETE0_SIGNAL(out_RETIRE_VAL                        ,1);
33        DELETE0_SIGNAL( in_RETIRE_ACK                        ,1);
34        DELETE0_SIGNAL(out_RETIRE_DATA                       ,_param->_size_data);
35
36        DELETE1_SIGNAL(out_SLOT_VAL    ,_param->_nb_port_slot,1);
37        DELETE1_SIGNAL(out_SLOT_DATA   ,_param->_nb_port_slot,_param->_size_data);
38       
39        // ~~~~~[ Component ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~   
40        delete _queue_control;
41        delete _queue_data;
42      }
43
44    delete _component;
45
46    log_printf(FUNC,Queue,FUNCTION,"End");
47  };
48
49}; // end namespace queue
50}; // end namespace generic
51
52}; // end namespace behavioural
53}; // end namespace morpheo             
Note: See TracBrowser for help on using the repository browser.