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

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

Interface normalisé
Début du banc de registres multi niveaux

File size: 1.4 KB
Line 
1#ifdef SYSTEMC
2/*
3 * $Id$
4 *
5 * [ Description ]
6 *
7 */
8
9#include "Behavioural/Generic/RegisterFile/RegisterFile_Monolithic/include/RegisterFile_Monolithic.h"
10
11namespace morpheo                    {
12namespace behavioural                {
13namespace generic                    {
14namespace registerfile               {
15namespace registerfile_monolithic    {
16
17  void RegisterFile_Monolithic::deallocation (void)
18  {
19    delete in_CLOCK;
20    delete in_NRESET;
21    // ----- Interface Read
22    for (uint32_t i=0; i<_param._nb_port_read; i++)
23      {
24        delete  in_READ_VAL     [i];
25        delete out_READ_ACK     [i];
26        delete  in_READ_ADDRESS [i];
27        delete out_READ_DATA    [i];
28      }
29
30    delete  in_READ_VAL    ;
31    delete out_READ_ACK    ;
32    delete  in_READ_ADDRESS;
33    delete out_READ_DATA   ;
34
35    // ----- Interface Write
36    for (uint32_t i=0; i<_param._nb_port_write; i++)
37      {
38        delete  in_WRITE_VAL     [i];
39        delete out_WRITE_ACK     [i];
40        delete  in_WRITE_ADDRESS [i];
41        delete  in_WRITE_DATA    [i];
42      }
43
44    delete  in_WRITE_VAL    ;
45    delete out_WRITE_ACK    ;
46    delete  in_WRITE_ADDRESS;
47    delete  in_WRITE_DATA   ;
48
49    // ----- Register
50    for (uint32_t i=0; i<_param._nb_word; i++)
51      {
52        delete reg_DATA [i];
53      }   
54
55    delete reg_DATA;
56  };
57
58}; // end namespace registerfile_monolithic
59}; // end namespace registerfile
60}; // end namespace generic
61}; // end namespace behavioural         
62}; // end namespace morpheo             
63#endif
Note: See TracBrowser for help on using the repository browser.