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

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

1) Add modelsim simulation systemC
2) Modelsim cosimulation systemC / VHDL is not finish !!!! (cf execute_queue and write_unit)
3) Add multi architecture
5) Add template for comparator, multiplier and divider
6) Change Message
Warning) Various test macro have change, many selftest can't compile

  • Property svn:keywords set to Id
File size: 1.7 KB
Line 
1/*
2 * $Id: Queue_deallocation.cpp 113 2009-04-14 18:39:12Z 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        DELETE0_SIGNAL( in_CLOCK ,1);
26        DELETE0_SIGNAL( in_NRESET,1);
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       
45      if (usage_is_set(_usage,USE_SYSTEMC))
46      { 
47        // ~~~~~[ Component ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~   
48        delete _queue_control;
49        delete _queue_data;
50      }
51
52    delete _component;
53
54    log_printf(FUNC,Queue,FUNCTION,"End");
55  };
56
57}; // end namespace queue
58}; // end namespace generic
59
60}; // end namespace behavioural
61}; // end namespace morpheo             
Note: See TracBrowser for help on using the repository browser.