source: trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Front_end/Front_end/Ifetch_unit/Address_management/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.8 KB
Line 
1/*
2 * $Id$
3 *
4 * [ Description ]
5 *
6 */
7
8#include "Behavioural/Core/Multi_Front_end/Front_end/Ifetch_unit/Address_management/include/Parameters.h"
9#include "Behavioural/include/XML.h"
10
11namespace morpheo                    {
12namespace behavioural {
13namespace core {
14namespace multi_front_end {
15namespace front_end {
16namespace ifetch_unit {
17namespace address_management {
18
19
20#undef  FUNCTION
21#define FUNCTION "Address_management::print"
22  std::string Parameters::print (uint32_t depth)
23  {
24    log_printf(FUNC,Address_management,FUNCTION,"Begin");
25
26    XML xml ("address_management");
27
28    xml.balise_open("address_management");
29    xml.singleton_begin("nb_instruction               "); xml.attribut("value",toString(_nb_instruction               )); xml.singleton_end();
30    xml.singleton_begin("size_address                 "); xml.attribut("value",toString(_size_address                 )); xml.singleton_end();
31    xml.singleton_begin("size_branch_update_prediction"); xml.attribut("value",toString(_size_branch_update_prediction)); xml.singleton_end();
32    xml.balise_close();
33
34    log_printf(FUNC,Address_management,FUNCTION,"End");
35   
36    return xml.get_body(depth);
37  };
38
39#undef  FUNCTION
40#define FUNCTION "Address_management::operator<<"
41  std::ostream& operator<< (std::ostream& output_stream ,
42                            morpheo::behavioural::core::multi_front_end::front_end::ifetch_unit::address_management::Parameters & x)
43  {
44    log_printf(FUNC,Address_management,FUNCTION,"Begin");
45
46    output_stream << x.print(0);
47   
48    log_printf(FUNC,Address_management,FUNCTION,"End");
49
50    return output_stream;
51  };
52
53}; // end namespace address_management
54}; // end namespace ifetch_unit
55}; // end namespace front_end
56}; // end namespace multi_front_end
57}; // end namespace core
58
59}; // end namespace behavioural
60}; // end namespace morpheo             
Note: See TracBrowser for help on using the repository browser.