Last change
on this file since 15 was
15,
checked in by rosiere, 17 years ago
|
Interface normalisé
Début du banc de registres multi niveaux
|
File size:
1.4 KB
|
Rev | Line | |
---|
[2] | 1 | #ifdef SYSTEMC |
---|
| 2 | /* |
---|
| 3 | * $Id$ |
---|
| 4 | * |
---|
| 5 | * [ Description ] |
---|
| 6 | * |
---|
| 7 | */ |
---|
| 8 | |
---|
[15] | 9 | #include "Behavioural/Generic/RegisterFile/RegisterFile_Monolithic/include/RegisterFile_Monolithic.h" |
---|
[2] | 10 | |
---|
| 11 | namespace morpheo { |
---|
| 12 | namespace behavioural { |
---|
| 13 | namespace generic { |
---|
| 14 | namespace registerfile { |
---|
[15] | 15 | namespace registerfile_monolithic { |
---|
[2] | 16 | |
---|
[15] | 17 | void RegisterFile_Monolithic::deallocation (void) |
---|
[2] | 18 | { |
---|
| 19 | delete in_CLOCK; |
---|
[6] | 20 | delete in_NRESET; |
---|
[2] | 21 | // ----- Interface Read |
---|
| 22 | for (uint32_t i=0; i<_param._nb_port_read; i++) |
---|
| 23 | { |
---|
[6] | 24 | delete in_READ_VAL [i]; |
---|
| 25 | delete out_READ_ACK [i]; |
---|
| 26 | delete in_READ_ADDRESS [i]; |
---|
| 27 | delete out_READ_DATA [i]; |
---|
[2] | 28 | } |
---|
| 29 | |
---|
[6] | 30 | delete in_READ_VAL ; |
---|
| 31 | delete out_READ_ACK ; |
---|
[2] | 32 | delete in_READ_ADDRESS; |
---|
| 33 | delete out_READ_DATA ; |
---|
| 34 | |
---|
| 35 | // ----- Interface Write |
---|
| 36 | for (uint32_t i=0; i<_param._nb_port_write; i++) |
---|
| 37 | { |
---|
[6] | 38 | delete in_WRITE_VAL [i]; |
---|
| 39 | delete out_WRITE_ACK [i]; |
---|
| 40 | delete in_WRITE_ADDRESS [i]; |
---|
| 41 | delete in_WRITE_DATA [i]; |
---|
[2] | 42 | } |
---|
| 43 | |
---|
[6] | 44 | delete in_WRITE_VAL ; |
---|
| 45 | delete out_WRITE_ACK ; |
---|
| 46 | delete in_WRITE_ADDRESS; |
---|
| 47 | delete in_WRITE_DATA ; |
---|
[2] | 48 | |
---|
| 49 | // ----- Register |
---|
| 50 | for (uint32_t i=0; i<_param._nb_word; i++) |
---|
| 51 | { |
---|
| 52 | delete reg_DATA [i]; |
---|
| 53 | } |
---|
| 54 | |
---|
| 55 | delete reg_DATA; |
---|
| 56 | }; |
---|
| 57 | |
---|
[15] | 58 | }; // end namespace registerfile_monolithic |
---|
[2] | 59 | }; // end namespace registerfile |
---|
| 60 | }; // end namespace generic |
---|
| 61 | }; // end namespace behavioural |
---|
| 62 | }; // end namespace morpheo |
---|
| 63 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.