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