[53] | 1 | /* |
---|
| 2 | * $Id$ |
---|
| 3 | * |
---|
| 4 | * [ Description ] |
---|
| 5 | * |
---|
| 6 | */ |
---|
| 7 | |
---|
| 8 | #include "Behavioural/Generic/RegisterFile/include/RegisterFile.h" |
---|
| 9 | |
---|
| 10 | namespace morpheo { |
---|
| 11 | namespace behavioural { |
---|
| 12 | namespace generic { |
---|
| 13 | namespace registerfile { |
---|
| 14 | |
---|
| 15 | |
---|
| 16 | #ifdef SYSTEMC |
---|
| 17 | RegisterFile::RegisterFile (sc_module_name name, |
---|
| 18 | #else |
---|
| 19 | RegisterFile::RegisterFile (string name, |
---|
| 20 | #endif |
---|
| 21 | #ifdef STATISTICS |
---|
[62] | 22 | morpheo::behavioural::Parameters_Statistics * param_statistics, |
---|
[53] | 23 | #endif |
---|
[62] | 24 | morpheo::behavioural::generic::registerfile::Parameters * param ): |
---|
[53] | 25 | _name (name) |
---|
| 26 | ,_param (param) |
---|
[62] | 27 | #ifdef STATISTICS |
---|
| 28 | ,_param_statistics (param_statistics) |
---|
| 29 | #endif |
---|
[53] | 30 | { |
---|
| 31 | log_printf(FUNC,RegisterFile,"RegisterFile","Begin"); |
---|
| 32 | |
---|
| 33 | #ifdef SYSTEMC |
---|
| 34 | log_printf(INFO,RegisterFile,"RegisterFile","Allocation"); |
---|
| 35 | |
---|
| 36 | allocation (); |
---|
| 37 | #endif |
---|
| 38 | |
---|
| 39 | log_printf(FUNC,RegisterFile,"RegisterFile","End"); |
---|
| 40 | }; |
---|
| 41 | |
---|
| 42 | RegisterFile::~RegisterFile (void) |
---|
| 43 | { |
---|
| 44 | log_printf(FUNC,RegisterFile,"~RegisterFile","Begin"); |
---|
| 45 | |
---|
| 46 | #ifdef SYSTEMC |
---|
| 47 | log_printf(INFO,RegisterFile,"~RegisterFile","Deallocation"); |
---|
| 48 | |
---|
| 49 | deallocation (); |
---|
| 50 | #endif |
---|
| 51 | |
---|
| 52 | log_printf(FUNC,RegisterFile,"~RegisterFile","End"); |
---|
| 53 | }; |
---|
| 54 | |
---|
| 55 | }; // end namespace registerfile |
---|
| 56 | }; // end namespace generic |
---|
| 57 | |
---|
| 58 | }; // end namespace behavioural |
---|
| 59 | }; // end namespace morpheo |
---|