source: trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Front_end/Front_end/Prediction_unit/Branch_Target_Buffer/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.8 KB
Line 
1/*
2 * $Id$
3 *
4 * [ Description ]
5 *
6 */
7
8#include "Behavioural/Core/Multi_Front_end/Front_end/Prediction_unit/Branch_Target_Buffer/include/Parameters.h"
9#include "Behavioural/include/XML.h"
10
11namespace morpheo                    {
12namespace behavioural {
13namespace core {
14namespace multi_front_end {
15namespace front_end {
16namespace prediction_unit {
17namespace branch_target_buffer {
18
19
20#undef  FUNCTION
21#define FUNCTION "Branch_Target_Buffer::print"
22  std::string Parameters::print (uint32_t depth)
23  {
24    log_printf(FUNC,Branch_Target_Buffer,FUNCTION,"Begin");
25
26    XML xml ("branch_target_buffer");
27
28    xml.balise_open("branch_target_buffer");
29    xml.singleton_begin("nb_context     "); xml.attribut("value",toString(_nb_context     )); xml.singleton_end();
30    xml.singleton_begin("size_buffer    "); xml.attribut("value",toString(_size_buffer    )); xml.singleton_end();
31    xml.singleton_begin("associativity  "); xml.attribut("value",toString(_associativity  )); xml.singleton_end();
32    xml.singleton_begin("size_address   "); xml.attribut("value",toString(_size_address   )); xml.singleton_end();
33    xml.singleton_begin("size_counter   "); xml.attribut("value",toString(_size_counter   )); xml.singleton_end();
34    xml.singleton_begin("nb_inst_predict"); xml.attribut("value",toString(_nb_inst_predict)); xml.singleton_end();
35    xml.singleton_begin("nb_inst_decod  "); xml.attribut("value",toString(_nb_inst_decod  )); xml.singleton_end();
36    xml.singleton_begin("nb_inst_update "); xml.attribut("value",toString(_nb_inst_update )); xml.singleton_end();
37    xml.singleton_begin("victim_scheme  "); xml.attribut("value",toString(_victim_scheme  )); xml.singleton_end();
38    for (uint32_t i=0;i<_nb_context; i++)
39      {
40        xml. balise_open_begin("component");
41        xml.  attribut("type","context");
42        xml.  attribut("id"  ,toString(i));
43        xml. balise_open_end();
44        xml.  singleton_begin("nb_instruction "); xml.attribut("value",toString(_nb_instruction [i])); xml.singleton_end();
45        xml. balise_close();
46      }
47    xml.balise_close();
48
49    log_printf(FUNC,Branch_Target_Buffer,FUNCTION,"End");
50   
51    return xml.get_body(depth);
52  };
53
54#undef  FUNCTION
55#define FUNCTION "Branch_Target_Buffer::operator<<"
56  std::ostream& operator<< (std::ostream& output_stream ,
57                            morpheo::behavioural::core::multi_front_end::front_end::prediction_unit::branch_target_buffer::Parameters & x)
58  {
59    log_printf(FUNC,Branch_Target_Buffer,FUNCTION,"Begin");
60
61    output_stream << x.print(0);
62   
63    log_printf(FUNC,Branch_Target_Buffer,FUNCTION,"End");
64
65    return output_stream;
66  };
67
68}; // end namespace branch_target_buffer
69}; // end namespace prediction_unit
70}; // end namespace front_end
71}; // end namespace multi_front_end
72}; // end namespace core
73
74}; // end namespace behavioural
75}; // end namespace morpheo             
Note: See TracBrowser for help on using the repository browser.