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

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

Almost complete design
with Test and test platform

  • Property svn:keywords set to Id
File size: 1.0 KB
RevLine 
[10]1/*
2 * $Id: Select_Priority_Fixed_deallocation.cpp 88 2008-12-10 18:31:39Z rosiere $
3 *
4 * [ Description ]
5 *
6 */
7
[15]8#include "Behavioural/Generic/Select/Select_Priority_Fixed/include/Select_Priority_Fixed.h"
[10]9
10namespace morpheo                    {
11namespace behavioural {
12namespace generic {
13namespace select {
[15]14namespace select_priority_fixed {
[10]15
16
[15]17  void Select_Priority_Fixed::deallocation (void)
[10]18  {
[15]19    log_printf(FUNC,Select_Priority_Fixed,"deallocation","Begin");
[10]20
[88]21    if (usage_is_set(_usage,USE_SYSTEMC))
[10]22      {
[57]23        delete     in_CLOCK;
24        delete     in_NRESET;
25       
26        delete []  in_VAL;
27        if (_param->_encoding_one_hot)
28          delete [] out_ACK;
29       
30        if (_param->_encoding_compact)
31          {
32            delete    out_ENTITY;
33            delete    out_ENTITY_ACK;
34          }
[10]35      }
36    // ~~~~~[ Component ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~   
[57]37   
[42]38    delete _component;
39
[15]40    log_printf(FUNC,Select_Priority_Fixed,"deallocation","End");
[10]41  };
42
[15]43}; // end namespace select_priority_fixed
[10]44}; // end namespace select
45}; // end namespace generic
46
47}; // end namespace behavioural
48}; // end namespace morpheo             
Note: See TracBrowser for help on using the repository browser.