source: trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_OOO_Engine/OOO_Engine/Rename_unit/Load_Store_pointer_unit/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: 2.9 KB
Line 
1/*
2 * $Id$
3 *
4 * [ Description ]
5 *
6 */
7
8#include "Behavioural/Core/Multi_OOO_Engine/OOO_Engine/Rename_unit/Load_Store_pointer_unit/include/Parameters.h"
9#include "Behavioural/include/XML.h"
10
11namespace morpheo                    {
12namespace behavioural {
13namespace core {
14namespace multi_ooo_engine {
15namespace ooo_engine {
16namespace rename_unit {
17namespace load_store_pointer_unit {
18
19
20#undef  FUNCTION
21#define FUNCTION "Load_Store_pointer_unit::print"
22  std::string Parameters::print (uint32_t depth)
23  {
24    log_printf(FUNC,Load_Store_pointer_unit,FUNCTION,"Begin");
25
26    XML xml ("load_store_pointer_unit");
27
28    xml.balise_open("load_store_pointer_unit");
29    xml.singleton_begin("nb_front_end                    "); xml.attribut("value",toString(_nb_front_end                    )); xml.singleton_end();
30    xml.singleton_begin("nb_inst_insert                  "); xml.attribut("value",toString(_nb_inst_insert                  )); xml.singleton_end();
31    xml.singleton_begin("nb_inst_retire                  "); xml.attribut("value",toString(_nb_inst_retire                  )); xml.singleton_end();
32    xml.singleton_begin("nb_load_store_queue             "); xml.attribut("value",toString(_nb_load_store_queue             )); xml.singleton_end();
33    for (uint32_t i=0;i<_nb_front_end; i++)
34      {
35        xml. balise_open_begin("component");
36        xml.  attribut("type","front_end");
37        xml.  attribut("id"  ,toString(i));
38        xml. balise_open_end();
39        xml.  singleton_begin("nb_context                      "); xml.attribut("value",toString(_nb_context [i]     )); xml.singleton_end();
40        xml. balise_close();
41      }
42    for (uint32_t i=0;i<_nb_load_store_queue; i++)
43      {
44        xml. balise_open_begin("component");
45        xml.  attribut("type","load_store_queue");
46        xml.  attribut("id"  ,toString(i));
47        xml. balise_open_end();
48        xml.  singleton_begin("size_store_queue                "); xml.attribut("value",toString(_size_store_queue [i])); xml.singleton_end();
49        xml.  singleton_begin("size_load_queue                 "); xml.attribut("value",toString(_size_load_queue  [i])); xml.singleton_end();
50        xml. balise_close();
51      }
52    xml.balise_close();
53
54    log_printf(FUNC,Load_Store_pointer_unit,FUNCTION,"End");
55   
56    return xml.get_body(depth);
57  };
58
59#undef  FUNCTION
60#define FUNCTION "Load_Store_pointer_unit::operator<<"
61  std::ostream& operator<< (std::ostream& output_stream ,
62                            morpheo::behavioural::core::multi_ooo_engine::ooo_engine::rename_unit::load_store_pointer_unit::Parameters & x)
63  {
64    log_printf(FUNC,Load_Store_pointer_unit,FUNCTION,"Begin");
65
66    output_stream << x.print(0);
67   
68    log_printf(FUNC,Load_Store_pointer_unit,FUNCTION,"End");
69
70    return output_stream;
71  };
72
73}; // end namespace load_store_pointer_unit
74}; // end namespace rename_unit
75}; // end namespace ooo_engine
76}; // end namespace multi_ooo_engine
77}; // end namespace core
78
79}; // end namespace behavioural
80}; // end namespace morpheo             
Note: See TracBrowser for help on using the repository browser.