source: trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/RegisterFile/RegisterFile_Multi_Banked/src/Parameters_print.cpp @ 15

Last change on this file since 15 was 15, checked in by rosiere, 17 years ago

Interface normalisé
Début du banc de registres multi niveaux

File size: 1.6 KB
Line 
1/*
2 * $Id$
3 *
4 * [ Description ]
5 *
6 */
7
8#include "Behavioural/Generic/RegisterFile/RegisterFile_Multi_Banked/include/Parameters.h"
9#include "Behavioural/include/XML.h"
10using namespace std;
11
12namespace morpheo                    {
13namespace behavioural {
14namespace generic {
15namespace registerfile{
16namespace registerfile_multi_banked {
17
18
19  string Parameters::print (uint32_t depth)
20  {
21    log_printf(FUNC,RegisterFile_Multi_Banked,"print","Begin");
22
23    XML xml ("registerfile_multi_banked");
24
25    xml.balise_open("registerfile_multi_banked");
26    xml.singleton_begin("nb_port_read "); xml.attribut("value",toString(_nb_port_read )); xml.singleton_end();
27    xml.singleton_begin("nb_port_write"); xml.attribut("value",toString(_nb_port_write)); xml.singleton_end();
28    xml.singleton_begin("nb_word      "); xml.attribut("value",toString(_nb_word      )); xml.singleton_end();
29    xml.singleton_begin("size_word    "); xml.attribut("value",toString(_size_word    )); xml.singleton_end();
30    xml.singleton_begin("nb_bank      "); xml.attribut("value",toString(_nb_bank      )); xml.singleton_end();
31    xml.balise_close();
32
33    log_printf(FUNC,RegisterFile_Multi_Banked,"print","End");
34   
35    return xml.get_body(depth);
36  };
37
38  ostream& operator<< (ostream& output_stream ,
39                       morpheo::behavioural::generic::registerfile::registerfile_multi_banked::Parameters & x)
40  {
41    output_stream << x.print(0);
42   
43    return output_stream;
44  };
45
46}; // end namespace registerfile_multi_banked
47}; // end namespace registerfile
48}; // end namespace generic
49
50}; // end namespace behavioural
51}; // end namespace morpheo             
Note: See TracBrowser for help on using the repository browser.