source: trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Select/Select_Priority_Fixed/src/Select_Priority_Fixed_deallocation.cpp @ 29

Last change on this file since 29 was 29, checked in by rosiere, 17 years ago

Changement de classes de gestions des Interfaces.

-> simplification pour les déclarations de ports, application pour le composant Select_Priority_Fixed.
-> !!! essayer de supprimer la redondance dans les fichierx xxx_vhdl_testbench_transition.cpp

File size: 1.1 KB
Line 
1#ifdef SYSTEMC
2/*
3 * $Id$
4 *
5 * [ Description ]
6 *
7 */
8
9#include "Behavioural/Generic/Select/Select_Priority_Fixed/include/Select_Priority_Fixed.h"
10
11namespace morpheo                    {
12namespace behavioural {
13namespace generic {
14namespace select {
15namespace select_priority_fixed {
16
17
18  void Select_Priority_Fixed::deallocation (void)
19  {
20    log_printf(FUNC,Select_Priority_Fixed,"deallocation","Begin");
21
22    delete in_CLOCK;
23    delete in_NRESET;
24
25    for (uint32_t i=0; i<_param._nb_entity; i++)
26      {
27        delete  in_VAL [i];
28        if (_param._encoding_one_hot)
29        delete out_ACK [i];
30      }
31
32    delete  in_VAL;
33    if (_param._encoding_one_hot)
34    delete out_ACK;
35    if (_param._encoding_compact)
36      {
37    delete out_ENTITY;
38    delete out_ENTITY_ACK;
39      }
40    // ~~~~~[ Component ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~   
41
42    delete interfaces;
43
44    log_printf(FUNC,Select_Priority_Fixed,"deallocation","End");
45  };
46
47}; // end namespace select_priority_fixed
48}; // end namespace select
49}; // end namespace generic
50
51}; // end namespace behavioural
52}; // end namespace morpheo             
53#endif
Note: See TracBrowser for help on using the repository browser.