source: trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/RegisterFile/RegisterFile_Multi_Banked/src/RegisterFile_Multi_Banked_deallocation.cpp @ 10

Last change on this file since 10 was 10, checked in by rosiere, 17 years ago
File size: 1.5 KB
Line 
1#ifdef SYSTEMC
2/*
3 * $Id$
4 *
5 * [ Description ]
6 *
7 */
8
9#include "Behavioural/Generic/RegisterFile_Multi_Banked/include/RegisterFile_Multi_Banked.h"
10
11namespace morpheo                    {
12namespace behavioural {
13namespace generic {
14namespace registerfile_multi_banked {
15
16
17  void RegisterFile_Multi_Banked::deallocation (void)
18  {
19    log_printf(FUNC,RegisterFile_Multi_Banked,"deallocation","Begin");
20
21//#if defined(STATISTICS) or defined(VHDL_TESTBENCH)
22    delete in_CLOCK;
23//#endif
24    delete in_NRESET;
25
26    // ----- Interface Read
27    for (uint32_t i=0; i<_param._nb_port_read; i++)
28      {
29        delete  in_READ_VAL     [i];
30        delete out_READ_ACK     [i];
31        delete  in_READ_ADDRESS [i];
32        delete out_READ_DATA    [i];
33      }
34
35    delete  in_READ_VAL    ;
36    delete out_READ_ACK    ;
37    delete  in_READ_ADDRESS;
38    delete out_READ_DATA   ;
39
40    // ----- Interface Write
41    for (uint32_t i=0; i<_param._nb_port_write; i++)
42      {
43        delete  in_WRITE_VAL     [i];
44        delete out_WRITE_ACK     [i];
45        delete  in_WRITE_ADDRESS [i];
46        delete  in_WRITE_DATA    [i];
47      }
48
49    delete  in_WRITE_VAL    ;
50    delete out_WRITE_ACK    ;
51    delete  in_WRITE_ADDRESS;
52    delete  in_WRITE_DATA   ;
53
54    // ~~~~~[ Component ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~   
55
56    log_printf(FUNC,RegisterFile_Multi_Banked,"deallocation","End");
57  };
58
59}; // end namespace registerfile_multi_banked
60}; // end namespace generic
61
62}; // end namespace behavioural
63}; // end namespace morpheo             
64#endif
Note: See TracBrowser for help on using the repository browser.