1 | /* |
---|
2 | * $Id: RegisterFile_Monolithic_deallocation.cpp 145 2010-10-13 18:15:51Z rosiere $ |
---|
3 | * |
---|
4 | * [ Description ] |
---|
5 | * |
---|
6 | */ |
---|
7 | |
---|
8 | #include "Behavioural/Generic/RegisterFile/RegisterFile_Monolithic/include/RegisterFile_Monolithic.h" |
---|
9 | #include "Behavioural/include/Allocation.h" |
---|
10 | #include "Behavioural/include/Component.h" |
---|
11 | |
---|
12 | namespace morpheo { |
---|
13 | namespace behavioural { |
---|
14 | namespace generic { |
---|
15 | namespace registerfile { |
---|
16 | namespace registerfile_monolithic { |
---|
17 | |
---|
18 | void RegisterFile_Monolithic::deallocation (void) |
---|
19 | { |
---|
20 | delete _component; |
---|
21 | |
---|
22 | if (usage_is_set(_usage,USE_SYSTEMC)) |
---|
23 | { |
---|
24 | delete in_CLOCK; |
---|
25 | delete in_NRESET; |
---|
26 | |
---|
27 | DELETE1_SIGNAL( in_READ_VAL ,_param->_nb_port_read,1); |
---|
28 | DELETE1_SIGNAL(out_READ_ACK ,_param->_nb_port_read,1); |
---|
29 | DELETE1_SIGNAL( in_READ_ADDRESS ,_param->_nb_port_read,_param->_size_address); |
---|
30 | DELETE1_SIGNAL(out_READ_DATA ,_param->_nb_port_read,_param->_size_word); |
---|
31 | |
---|
32 | DELETE1_SIGNAL( in_WRITE_VAL ,_param->_nb_port_write,1); |
---|
33 | DELETE1_SIGNAL(out_WRITE_ACK ,_param->_nb_port_write,1); |
---|
34 | DELETE1_SIGNAL( in_WRITE_ADDRESS,_param->_nb_port_write,_param->_size_address); |
---|
35 | DELETE1_SIGNAL( in_WRITE_DATA ,_param->_nb_port_write,_param->_size_word); |
---|
36 | |
---|
37 | DELETE1_SIGNAL( in_READ_WRITE_VAL ,_param->_nb_port_read_write,1); |
---|
38 | DELETE1_SIGNAL(out_READ_WRITE_ACK ,_param->_nb_port_read_write,1); |
---|
39 | DELETE1_SIGNAL( in_READ_WRITE_RW ,_param->_nb_port_read_write,1); |
---|
40 | DELETE1_SIGNAL( in_READ_WRITE_ADDRESS,_param->_nb_port_read_write,_param->_size_address); |
---|
41 | DELETE1_SIGNAL( in_READ_WRITE_WDATA ,_param->_nb_port_read_write,_param->_size_word); |
---|
42 | DELETE1_SIGNAL(out_READ_WRITE_RDATA ,_param->_nb_port_read_write,_param->_size_word); |
---|
43 | |
---|
44 | DELETE1(reg_DATA,_param->_nb_word); |
---|
45 | } |
---|
46 | }; |
---|
47 | |
---|
48 | }; // end namespace registerfile_monolithic |
---|
49 | }; // end namespace registerfile |
---|
50 | }; // end namespace generic |
---|
51 | }; // end namespace behavioural |
---|
52 | }; // end namespace morpheo |
---|