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