Changeset 75 for trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/RegisterFile/RegisterFile_Monolithic/src/Parameters_print.cpp
- Timestamp:
- Jan 31, 2008, 6:46:41 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/RegisterFile/RegisterFile_Monolithic/src/Parameters_print.cpp
r55 r75 8 8 #include <stdint.h> 9 9 #include "Behavioural/Generic/RegisterFile/RegisterFile_Monolithic/include/Parameters.h" 10 #include <sstream> 11 using namespace std; 10 #include "Behavioural/include/XML.h" 12 11 13 12 namespace morpheo { … … 17 16 namespace registerfile_monolithic { 18 17 19 st ring Parameters::print (uint32_t depth)18 std::string Parameters::print (uint32_t depth) 20 19 { 21 string tab = string(depth,'\t');22 ostringstream msg; 23 msg << tab << "<registerfile_monolithic>" << endl24 << 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 29 << tab << "</registerfile_monolithic>" << endl;30 31 return msg.str();20 XML xml ("registerfile_monolithic"); 21 22 xml.balise_open("registerfile_monolithic"); 23 xml.singleton_begin("nb_port_read "); xml.attribut("value",toString(_nb_port_read )); xml.singleton_end(); 24 xml.singleton_begin("nb_port_write "); xml.attribut("value",toString(_nb_port_write )); xml.singleton_end(); 25 xml.singleton_begin("nb_port_read_write"); xml.attribut("value",toString(_nb_port_read_write)); xml.singleton_end(); 26 xml.singleton_begin("nb_word "); xml.attribut("value",toString(_nb_word )); xml.singleton_end(); 27 xml.singleton_begin("size_word "); xml.attribut("value",toString(_size_word )); xml.singleton_end(); 28 xml.balise_close(); 29 30 return xml.get_body(depth); 32 31 }; 33 32 34 ostream& operator<< (ostream& output_stream ,35 33 std::ostream& operator<< (std::ostream& output_stream , 34 morpheo::behavioural::generic::registerfile::registerfile_monolithic::Parameters & x) 36 35 { 37 36 output_stream << x.print(0);
Note: See TracChangeset
for help on using the changeset viewer.