Last change
on this file since 59 was
55,
checked in by rosiere, 17 years ago
|
Ajout SystemC read_queue et reservation_station
Ajout port au bloc registerfile_monolithic (à ajouter également au bloc registerfile et registerfile_multi_banked)
Modif param : passage de pointeur (attention, tous les composants n'ont pas été tous modifier)
|
File size:
1.4 KB
|
Rev | Line | |
---|
[2] | 1 | /* |
---|
| 2 | * $Id$ |
---|
| 3 | * |
---|
| 4 | * [ Description ] |
---|
| 5 | * |
---|
| 6 | */ |
---|
| 7 | |
---|
| 8 | #include <stdint.h> |
---|
[15] | 9 | #include "Behavioural/Generic/RegisterFile/RegisterFile_Monolithic/include/Parameters.h" |
---|
[2] | 10 | #include <sstream> |
---|
| 11 | using namespace std; |
---|
| 12 | |
---|
| 13 | namespace morpheo { |
---|
| 14 | namespace behavioural { |
---|
| 15 | namespace generic { |
---|
| 16 | namespace registerfile { |
---|
[15] | 17 | namespace registerfile_monolithic { |
---|
[2] | 18 | |
---|
| 19 | string Parameters::print (uint32_t depth) |
---|
| 20 | { |
---|
| 21 | string tab = string(depth,'\t'); |
---|
| 22 | ostringstream msg; |
---|
[15] | 23 | msg << tab << "<registerfile_monolithic>" << endl |
---|
[55] | 24 | << tab << "\t<nb_port_read value=\"" << _nb_port_read << "\" />" << endl |
---|
| 25 | << tab << "\t<nb_port_write value=\"" << _nb_port_write << "\" />" << endl |
---|
| 26 | << tab << "\t<nb_port_read_write value=\"" << _nb_port_read_write << "\" />" << endl |
---|
| 27 | << tab << "\t<nb_word value=\"" << _nb_word << "\" />" << endl |
---|
| 28 | << tab << "\t<size_word value=\"" << _size_word << "\" />" << endl |
---|
[15] | 29 | << tab << "</registerfile_monolithic>" << endl; |
---|
[2] | 30 | |
---|
| 31 | return msg.str(); |
---|
| 32 | }; |
---|
| 33 | |
---|
| 34 | ostream& operator<< (ostream& output_stream , |
---|
[15] | 35 | morpheo::behavioural::generic::registerfile::registerfile_monolithic::Parameters & x) |
---|
[2] | 36 | { |
---|
| 37 | output_stream << x.print(0); |
---|
| 38 | |
---|
| 39 | return output_stream; |
---|
| 40 | }; |
---|
| 41 | |
---|
[15] | 42 | }; // end namespace registerfile_monolithic |
---|
[2] | 43 | }; // end namespace registerfile |
---|
| 44 | }; // end namespace generic |
---|
| 45 | }; // end namespace behavioural |
---|
| 46 | }; // end namespace morpheo |
---|
Note: See
TracBrowser
for help on using the repository browser.