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
RevLine 
[2]1/*
2 * $Id$
3 *
4 * [ Description ]
5 *
6 */
7
[15]8#include "Behavioural/Generic/RegisterFile/RegisterFile_Monolithic/include/RegisterFile_Monolithic.h"
[2]9
10namespace morpheo                    {
11namespace behavioural                {
12namespace generic                    {
13namespace registerfile               {
[15]14namespace registerfile_monolithic    {
[2]15
[15]16  void RegisterFile_Monolithic::deallocation (void)
[2]17  {
[42]18    delete _component;
19
[57]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    ;
[62]27        if (_param->_have_port_address)
[57]28        delete []  in_READ_ADDRESS;
29        delete [] out_READ_DATA   ;
30       
31        // ----- Interface Write
32        delete []  in_WRITE_VAL    ;
33        delete [] out_WRITE_ACK    ;
[62]34        if (_param->_have_port_address)
[57]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     ;
[62]42        if (_param->_have_port_address)
[57]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      }
[2]50  };
51
[15]52}; // end namespace registerfile_monolithic
[2]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.