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

Last change on this file since 88 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.4 KB
RevLine 
[2]1/*
2 * $Id: RegisterFile_Monolithic_deallocation.cpp 88 2008-12-10 18:31:39Z rosiere $
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
[88]20    if (usage_is_set(_usage,USE_SYSTEMC))
[57]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.