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