Last change
on this file since 68 was
53,
checked in by rosiere, 17 years ago
|
- Banc de registre multi banc
- Banc de registre générique.
|
File size:
1.1 KB
|
Rev | Line | |
---|
[53] | 1 | /* |
---|
| 2 | * $Id$ |
---|
| 3 | * |
---|
| 4 | * [ Description ] |
---|
| 5 | * |
---|
| 6 | */ |
---|
| 7 | |
---|
| 8 | #include "Behavioural/Generic/RegisterFile/include/Parameters.h" |
---|
| 9 | #include "Behavioural/include/XML.h" |
---|
| 10 | using namespace std; |
---|
| 11 | |
---|
| 12 | namespace morpheo { |
---|
| 13 | namespace behavioural { |
---|
| 14 | namespace generic { |
---|
| 15 | namespace registerfile { |
---|
| 16 | |
---|
| 17 | |
---|
| 18 | string Parameters::print (uint32_t depth) |
---|
| 19 | { |
---|
| 20 | log_printf(FUNC,RegisterFile,"print","Begin"); |
---|
| 21 | |
---|
| 22 | string _return; |
---|
| 23 | |
---|
| 24 | if (_instance == instance_RegisterFile_Monolithic) |
---|
| 25 | _return = _param_registerfile_monolithic ->print(depth); |
---|
| 26 | else |
---|
| 27 | _return = _param_registerfile_multi_banked->print(depth); |
---|
| 28 | |
---|
| 29 | log_printf(FUNC,RegisterFile,"print","End"); |
---|
| 30 | |
---|
| 31 | return _return; |
---|
| 32 | }; |
---|
| 33 | |
---|
| 34 | ostream& operator<< (ostream& output_stream , |
---|
| 35 | morpheo::behavioural::generic::registerfile::Parameters & x) |
---|
| 36 | { |
---|
| 37 | if (x._instance == instance_RegisterFile_Monolithic) |
---|
| 38 | output_stream << x._param_registerfile_monolithic ->print(0); |
---|
| 39 | else |
---|
| 40 | output_stream << x._param_registerfile_multi_banked->print(0); |
---|
| 41 | |
---|
| 42 | return output_stream; |
---|
| 43 | }; |
---|
| 44 | |
---|
| 45 | }; // end namespace registerfile |
---|
| 46 | }; // end namespace generic |
---|
| 47 | |
---|
| 48 | }; // end namespace behavioural |
---|
| 49 | }; // end namespace morpheo |
---|
Note: See
TracBrowser
for help on using the repository browser.