/*
 * $Id$
 *
 * [ Description ]
 * 
 */

#include <stdint.h>
#include "Behavioural/Generic/RegisterFile/include/Parameters.h"
#include <sstream>
using namespace std;

namespace morpheo                    {
namespace behavioural                {
namespace generic                    {
namespace registerfile               {

  string Parameters::print (uint32_t depth)
  {
    string tab = string(depth,'\t');
    ostringstream msg;
    msg << tab << "<registerfile>" << endl
	<< tab << "\t<nb_port_read  value=\"" << _nb_port_read  << "\" />" << endl
	<< tab << "\t<nb_port_write value=\"" << _nb_port_write << "\" />" << endl
	<< tab << "\t<nb_word       value=\"" << _nb_word       << "\" />" << endl
	<< tab << "\t<size_word     value=\"" << _size_word     << "\" />" << endl
	<< tab << "</registerfile>" << endl;
    
    return msg.str();
  };

  ostream& operator<< (ostream& output_stream ,
		       morpheo::behavioural::generic::registerfile::Parameters & x)
  {
    output_stream << x.print(0);
    
    return output_stream;
  };

}; // end namespace registerfile 
}; // end namespace generic
}; // end namespace behavioural          
}; // end namespace morpheo              
