source: trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Front_end/Front_end/Prediction_unit/Direction/Meta_Predictor/Meta_Predictor_Glue/src/Meta_Predictor_Glue.cpp @ 110

Last change on this file since 110 was 110, checked in by rosiere, 15 years ago

1) OOO_egine : add stat to depiste low perf source
2) Commit : add stat
3) LSU_Pointer : retire - always ack (else combinatory loop). insert - max nb_inst_memory
4) TopLevel? : add debug_idle_time to stop combinatory loop.
5) Issue_queue : add reexecute_queue, new implementation (routage after issue_queue)
6) Decod / Predictor : add "can_continue"

  • Property svn:keywords set to Id
File size: 3.0 KB
Line 
1/*
2 * $Id: Meta_Predictor_Glue.cpp 110 2009-02-19 16:31:47Z rosiere $
3 *
4 * [ Description ]
5 *
6 */
7
8#include "Behavioural/Core/Multi_Front_end/Front_end/Prediction_unit/Direction/Meta_Predictor/Meta_Predictor_Glue/include/Meta_Predictor_Glue.h"
9
10namespace morpheo                    {
11namespace behavioural {
12namespace core {
13namespace multi_front_end {
14namespace front_end {
15namespace prediction_unit {
16namespace direction {
17namespace meta_predictor {
18namespace meta_predictor_glue {
19
20
21#undef  FUNCTION
22#define FUNCTION "Meta_Predictor_Glue::Meta_Predictor_Glue"
23  Meta_Predictor_Glue::Meta_Predictor_Glue
24  (
25#ifdef SYSTEMC
26   sc_module_name name,
27#else
28   string name,
29#endif
30#ifdef STATISTICS
31   morpheo::behavioural::Parameters_Statistics * param_statistics,
32#endif
33   morpheo::behavioural::core::multi_front_end::front_end::prediction_unit::direction::meta_predictor::meta_predictor_glue::Parameters * param,
34   morpheo::behavioural::Tusage_t usage
35   ):
36    _name              (name)
37    ,_param            (param)
38    ,_usage            (usage)
39  {
40    log_begin(Meta_Predictor_Glue,FUNCTION);
41
42    usage_environment(_usage);
43
44    log_printf(INFO,Meta_Predictor_Glue,FUNCTION,_("<%s> : Allocation"),_name.c_str());
45
46    allocation (
47#ifdef STATISTICS
48                param_statistics
49#endif
50                );
51
52#ifdef STATISTICS
53    if (usage_is_set(_usage,USE_STATISTICS))
54      { 
55        log_printf(INFO,Meta_Predictor_Glue,FUNCTION,_("<%s> : Allocation of statistics"),_name.c_str());
56
57        statistics_allocation(param_statistics);
58      }
59#endif
60
61#ifdef VHDL
62    if (usage_is_set(_usage,USE_VHDL))
63      {
64        // generate the vhdl
65        log_printf(INFO,Meta_Predictor_Glue,FUNCTION,_("<%s> : Generate the vhdl"),_name.c_str());
66       
67        vhdl();
68      }
69#endif
70
71#ifdef SYSTEMC
72    if (usage_is_set(_usage,USE_SYSTEMC))
73      {
74        log_printf(INFO,Meta_Predictor_Glue,FUNCTION,_("<%s> : Method - transition"),_name.c_str());
75
76        SC_METHOD (transition);
77        dont_initialize ();
78        sensitive << (*(in_CLOCK)).pos();
79       
80# ifdef SYSTEMCASS_SPECIFIC
81        // List dependency information
82# endif   
83
84//      log_printf(INFO,Meta_Predictor_Glue,FUNCTION,_("<%s> : Method - genMoore"),_name.c_str());
85
86//      SC_METHOD (genMoore);
87//      dont_initialize ();
88//      sensitive << (*(in_CLOCK)).neg(); // need internal register
89       
90// # ifdef SYSTEMCASS_SPECIFIC
91//      // List dependency information
92// # endif   
93       
94#endif
95      }
96    log_end(Meta_Predictor_Glue,FUNCTION);
97  };
98   
99#undef  FUNCTION
100#define FUNCTION "Meta_Predictor_Glue::~Meta_Predictor_Glue"
101  Meta_Predictor_Glue::~Meta_Predictor_Glue (void)
102  {
103    log_begin(Meta_Predictor_Glue,FUNCTION);
104
105#ifdef STATISTICS
106    if (usage_is_set(_usage,USE_STATISTICS))
107      {
108        statistics_deallocation();
109      }
110#endif
111
112    log_printf(INFO,Meta_Predictor_Glue,FUNCTION,_("<%s> : Deallocation"),_name.c_str());
113    deallocation ();
114
115    log_end(Meta_Predictor_Glue,FUNCTION);
116  };
117
118}; // end namespace meta_predictor_glue
119}; // end namespace meta_predictor
120}; // end namespace direction
121}; // end namespace prediction_unit
122}; // end namespace front_end
123}; // end namespace multi_front_end
124}; // end namespace core
125
126}; // end namespace behavioural
127}; // end namespace morpheo             
Note: See TracBrowser for help on using the repository browser.