source: trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Sort/src/Parameters_print.cpp @ 78

Last change on this file since 78 was 78, checked in by rosiere, 16 years ago

Add :

  • Execute_loop (must be test systemC)
  • Prediction
    • Direction : predifined scheme
    • Branch Target Buffer
  • iFetch_unit
    • ifetch_queue
    • pc management
  • Decod_unit
    • coming soon : support for custom operation
  • Rename_unit
    • RAT
    • Free_list
    • Dependence RAW check
    • Load store unit pointer
  • New Environnement (hierarchy_memory will remove in a next version)


Modif :

  • Manage Custom Operation
  • All component in execute_loop to use the new statistics management

Not Finish :

  • Return Address Stack
  • Environnement
File size: 1.7 KB
Line 
1/*
2 * $Id$
3 *
4 * [ Description ]
5 *
6 */
7
8#include "Behavioural/Generic/Sort/include/Parameters.h"
9#include "Behavioural/include/XML.h"
10
11namespace morpheo                    {
12namespace behavioural {
13namespace generic {
14namespace sort {
15
16
17#undef  FUNCTION
18#define FUNCTION "Sort::print"
19  std::string Parameters::print (uint32_t depth)
20  {
21    log_printf(FUNC,Sort,FUNCTION,"Begin");
22
23    XML xml ("sort");
24
25    xml.balise_open("sort");
26    xml.singleton_begin("nb_input           "); xml.attribut("value",toString(_nb_input           )); xml.singleton_end();
27    xml.singleton_begin("nb_output          "); xml.attribut("value",toString(_nb_output          )); xml.singleton_end();
28    xml.singleton_begin("ascending          "); xml.attribut("value",toString(_ascending          )); xml.singleton_end();
29    xml.singleton_begin("size_data          "); xml.attribut("value",toString(_size_data          )); xml.singleton_end();
30    xml.singleton_begin("have_port_index_out"); xml.attribut("value",toString(_have_port_index_out)); xml.singleton_end();
31    xml.singleton_begin("have_port_data_out "); xml.attribut("value",toString(_have_port_data_out )); xml.singleton_end();
32    xml.balise_close();
33
34    log_printf(FUNC,Sort,FUNCTION,"End");
35   
36    return xml.get_body(depth);
37  };
38
39#undef  FUNCTION
40#define FUNCTION "Sort::operator<<"
41  std::ostream& operator<< (std::ostream& output_stream ,
42                            morpheo::behavioural::generic::sort::Parameters & x)
43  {
44    log_printf(FUNC,Sort,FUNCTION,"Begin");
45
46    output_stream << x.print(0);
47   
48    log_printf(FUNC,Sort,FUNCTION,"End");
49
50    return output_stream;
51  };
52
53}; // end namespace sort
54}; // end namespace generic
55
56}; // end namespace behavioural
57}; // end namespace morpheo             
Note: See TracBrowser for help on using the repository browser.