Ignore:
Timestamp:
Mar 6, 2007, 3:34:04 PM (17 years ago)
Author:
kane
Message:

1) Ajout d'un "printer" XML pour la configuration de paramètres

2) Fin du composant "Two_Level_Branch_Predictor"

validation * systemc

  • vhdl
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Counter/src/Parameters_print.cpp

    r2 r3  
    77
    88#include "Behavioural/Generic/Counter/include/Parameters.h"
    9 #include <sstream>
     9#include "Behavioural/include/XML.h"
    1010using namespace std;
    1111
     
    2020    log_printf(FUNC,Counter,"print","Begin");
    2121
    22     string tab = string(depth,'\t');
    23     ostringstream msg;
    24     msg << tab << "<counter>" << endl
    25         << tab << "\t<size_data value=\"" << _size_data << "\" />" << endl
    26         << tab << "\t<nb_port   value=\"" << _nb_port   << "\" />" << endl
    27         << tab << "</counter>" << endl;
     22    XML xml ("counter");
     23
     24    xml.balise_open("counter");
     25    xml.  singleton_begin("size_data");
     26    xml.    attribut("value",toString(_size_data));
     27    xml.  singleton_end();
     28    xml.  singleton_begin("nb_port  ");
     29    xml.    attribut("value",toString(_nb_port));
     30    xml.  singleton_end();
     31    xml.balise_close();
    2832
    2933    log_printf(FUNC,Counter,"print","End");
    3034   
    31     return msg.str();
     35    return xml.get_body(depth);
    3236  };
    3337
Note: See TracChangeset for help on using the changeset viewer.