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

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

1) Add soc test
2) fix bug (Pc management, Decod and execute, Update prediction ...)

  • Property svn:keywords set to Id
File size: 1.6 KB
Line 
1/*
2 * $Id: Queue_deallocation.cpp 101 2009-01-15 17:19:08Z 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        if (_param->_have_port_ptr_write)
40        DELETE0_SIGNAL(out_PTR_WRITE   ,_param->_size_ptr);
41        if (_param->_have_port_ptr_read )
42        DELETE0_SIGNAL(out_PTR_READ    ,_param->_size_ptr);
43       
44        // ~~~~~[ Component ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~   
45        delete _queue_control;
46        delete _queue_data;
47      }
48
49    delete _component;
50
51    log_printf(FUNC,Queue,FUNCTION,"End");
52  };
53
54}; // end namespace queue
55}; // end namespace generic
56
57}; // end namespace behavioural
58}; // end namespace morpheo             
Note: See TracBrowser for help on using the repository browser.