source: trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/RegisterFile/src/RegisterFile_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.2 KB
Line 
1#ifdef SYSTEMC
2/*
3 * $Id$
4 *
5 * [ Description ]
6 *
7 */
8
9#include "Behavioural/Generic/RegisterFile/include/RegisterFile.h"
10
11namespace morpheo                    {
12namespace behavioural {
13namespace generic {
14namespace registerfile {
15
16
17  void RegisterFile::deallocation (void)
18  {
19    log_printf(FUNC,RegisterFile,"deallocation","Begin");
20
21    delete in_CLOCK;
22    delete in_NRESET;
23    // ----- Interface Read
24    delete []  in_READ_VAL    ;
25    delete [] out_READ_ACK    ;
26    if (_param->_have_port_address == true)
27    delete []  in_READ_ADDRESS;
28    delete [] out_READ_DATA   ;
29
30    // ----- Interface Write
31    delete []  in_WRITE_VAL    ;
32    delete [] out_WRITE_ACK    ;
33    if (_param->_have_port_address == true)
34    delete []  in_WRITE_ADDRESS;
35    delete []  in_WRITE_DATA   ;
36
37    // ~~~~~[ Component ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~   
38
39//   delete _component;
40
41    if (_param->_instance == instance_RegisterFile_Monolithic)
42      delete component_RegisterFile_Monolithic  ;
43    else
44      delete component_RegisterFile_Multi_Banked;
45
46    log_printf(FUNC,RegisterFile,"deallocation","End");
47  };
48
49}; // end namespace registerfile
50}; // end namespace generic
51
52}; // end namespace behavioural
53}; // end namespace morpheo             
54#endif
Note: See TracBrowser for help on using the repository browser.