source: trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/RegisterFile/src/RegisterFile_deallocation.cpp @ 6

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

Banc de registres

  • ajout de 2 ports additionnels inutiles (reset et ack) mais nécessaire pour uniformisé les différentes version du banc de registres
File size: 1.3 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  void RegisterFile::deallocation (void)
17  {
18    delete in_CLOCK;
19    delete in_NRESET;
20    // ----- Interface Read
21    for (uint32_t i=0; i<_param._nb_port_read; i++)
22      {
23        delete  in_READ_VAL     [i];
24        delete out_READ_ACK     [i];
25        delete  in_READ_ADDRESS [i];
26        delete out_READ_DATA    [i];
27      }
28
29    delete  in_READ_VAL    ;
30    delete out_READ_ACK    ;
31    delete  in_READ_ADDRESS;
32    delete out_READ_DATA   ;
33
34    // ----- Interface Write
35    for (uint32_t i=0; i<_param._nb_port_write; i++)
36      {
37        delete  in_WRITE_VAL     [i];
38        delete out_WRITE_ACK     [i];
39        delete  in_WRITE_ADDRESS [i];
40        delete  in_WRITE_DATA    [i];
41      }
42
43    delete  in_WRITE_VAL    ;
44    delete out_WRITE_ACK    ;
45    delete  in_WRITE_ADDRESS;
46    delete  in_WRITE_DATA   ;
47
48    // ----- Register
49    for (uint32_t i=0; i<_param._nb_word; i++)
50      {
51        delete reg_DATA [i];
52      }   
53
54    delete reg_DATA;
55  };
56
57}; // end namespace registerfile
58}; // end namespace generic
59}; // end namespace behavioural         
60}; // end namespace morpheo             
61#endif
Note: See TracBrowser for help on using the repository browser.