source: trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/RegisterFile/RegisterFile_Monolithic/src/RegisterFile_Monolithic_deallocation.cpp @ 62

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

Modification en profondeur de Component-port_map.
Compilation ok pour Register_unit ... a tester (systemC et vhdl)

File size: 1.3 KB
Line 
1/*
2 * $Id$
3 *
4 * [ Description ]
5 *
6 */
7
8#include "Behavioural/Generic/RegisterFile/RegisterFile_Monolithic/include/RegisterFile_Monolithic.h"
9
10namespace morpheo                    {
11namespace behavioural                {
12namespace generic                    {
13namespace registerfile               {
14namespace registerfile_monolithic    {
15
16  void RegisterFile_Monolithic::deallocation (void)
17  {
18    delete _component;
19
20    if (_usage & USE_SYSTEMC)
21      {
22        delete    in_CLOCK;
23        delete    in_NRESET;
24        // ----- Interface Read
25        delete []  in_READ_VAL    ;
26        delete [] out_READ_ACK    ;
27        if (_param->_have_port_address)
28        delete []  in_READ_ADDRESS;
29        delete [] out_READ_DATA   ;
30       
31        // ----- Interface Write
32        delete []  in_WRITE_VAL    ;
33        delete [] out_WRITE_ACK    ;
34        if (_param->_have_port_address)
35        delete []  in_WRITE_ADDRESS;
36        delete []  in_WRITE_DATA   ;
37       
38        // ----- Interface Read_Write
39        delete []  in_READ_WRITE_VAL    ;
40        delete [] out_READ_WRITE_ACK    ;
41        delete []  in_READ_WRITE_RW     ;
42        if (_param->_have_port_address)
43        delete []  in_READ_WRITE_ADDRESS;
44        delete []  in_READ_WRITE_WDATA  ;
45        delete [] out_READ_WRITE_RDATA  ;
46       
47        // ----- Register
48        delete [] reg_DATA;
49      }
50  };
51
52}; // end namespace registerfile_monolithic
53}; // end namespace registerfile
54}; // end namespace generic
55}; // end namespace behavioural         
56}; // end namespace morpheo             
Note: See TracBrowser for help on using the repository browser.