1 | #ifndef morpheo_behavioural_core_multi_front_end_front_end_prediction_unit_direction_meta_predictor_meta_predictor_glue_Meta_Predictor_Glue_h |
---|
2 | #define morpheo_behavioural_core_multi_front_end_front_end_prediction_unit_direction_meta_predictor_meta_predictor_glue_Meta_Predictor_Glue_h |
---|
3 | |
---|
4 | /* |
---|
5 | * $Id: Meta_Predictor_Glue.h 110 2009-02-19 16:31:47Z rosiere $ |
---|
6 | * |
---|
7 | * [ Description ] |
---|
8 | * |
---|
9 | */ |
---|
10 | |
---|
11 | #ifdef SYSTEMC |
---|
12 | #include "systemc.h" |
---|
13 | #endif |
---|
14 | |
---|
15 | |
---|
16 | #include "Behavioural/Core/Multi_Front_end/Front_end/Prediction_unit/Direction/Meta_Predictor/Meta_Predictor_Glue/include/Parameters.h" |
---|
17 | #include "Behavioural/Core/Multi_Front_end/Front_end/Prediction_unit/Direction/Meta_Predictor/Meta_Predictor_Glue/include/Types.h" |
---|
18 | #ifdef STATISTICS |
---|
19 | #include "Behavioural/include/Stat.h" |
---|
20 | #endif |
---|
21 | #include "Behavioural/include/Component.h" |
---|
22 | #ifdef VHDL |
---|
23 | #include "Behavioural/include/Vhdl.h" |
---|
24 | #endif |
---|
25 | #include "Behavioural/include/Usage.h" |
---|
26 | |
---|
27 | #include "Common/include/ToString.h" |
---|
28 | #include "Common/include/Debug.h" |
---|
29 | |
---|
30 | #include <iostream> |
---|
31 | |
---|
32 | namespace morpheo { |
---|
33 | namespace behavioural { |
---|
34 | |
---|
35 | namespace core { |
---|
36 | namespace multi_front_end { |
---|
37 | namespace front_end { |
---|
38 | namespace prediction_unit { |
---|
39 | namespace direction { |
---|
40 | namespace meta_predictor { |
---|
41 | namespace meta_predictor_glue { |
---|
42 | |
---|
43 | |
---|
44 | class Meta_Predictor_Glue |
---|
45 | #if SYSTEMC |
---|
46 | : public sc_module |
---|
47 | #endif |
---|
48 | { |
---|
49 | // -----[ fields ]---------------------------------------------------- |
---|
50 | // Parameters |
---|
51 | protected : const std::string _name; |
---|
52 | protected : const Parameters * _param; |
---|
53 | private : const Tusage_t _usage; |
---|
54 | |
---|
55 | #ifdef STATISTICS |
---|
56 | public : Stat * _stat; |
---|
57 | #endif |
---|
58 | |
---|
59 | public : Component * _component; |
---|
60 | private : Interfaces * _interfaces; |
---|
61 | |
---|
62 | #ifdef SYSTEMC |
---|
63 | // ~~~~~[ Interface ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
64 | // ~~~~~[ Interface : "" ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
65 | public : SC_CLOCK * in_CLOCK ; |
---|
66 | public : SC_IN (Tcontrol_t) * in_NRESET ; |
---|
67 | |
---|
68 | // ~~~~~[ Component ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
69 | |
---|
70 | // ~~~~~[ Register ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
71 | |
---|
72 | // ~~~~~[ Internal ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
73 | #endif |
---|
74 | |
---|
75 | // -----[ Methods ]--------------------------------------------------- |
---|
76 | |
---|
77 | #ifdef SYSTEMC |
---|
78 | SC_HAS_PROCESS (Meta_Predictor_Glue); |
---|
79 | #endif |
---|
80 | public : Meta_Predictor_Glue |
---|
81 | ( |
---|
82 | #ifdef SYSTEMC |
---|
83 | sc_module_name name, |
---|
84 | #else |
---|
85 | std::string name, |
---|
86 | #endif |
---|
87 | #ifdef STATISTICS |
---|
88 | morpheo::behavioural::Parameters_Statistics * param_statistics, |
---|
89 | #endif |
---|
90 | Parameters * param, |
---|
91 | morpheo::behavioural::Tusage_t usage |
---|
92 | ); |
---|
93 | public : ~Meta_Predictor_Glue (void); |
---|
94 | |
---|
95 | private : void allocation ( |
---|
96 | #ifdef STATISTICS |
---|
97 | morpheo::behavioural::Parameters_Statistics * param_statistics |
---|
98 | #else |
---|
99 | void |
---|
100 | #endif |
---|
101 | ); |
---|
102 | private : void deallocation (void); |
---|
103 | |
---|
104 | #ifdef SYSTEMC |
---|
105 | public : void transition (void); |
---|
106 | //public : void genMoore (void); |
---|
107 | #endif |
---|
108 | |
---|
109 | #if VHDL |
---|
110 | public : void vhdl (void); |
---|
111 | private : void vhdl_declaration (Vhdl * & vhdl); |
---|
112 | private : void vhdl_body (Vhdl * & vhdl); |
---|
113 | #endif |
---|
114 | |
---|
115 | #ifdef STATISTICS |
---|
116 | public : void statistics_allocation (morpheo::behavioural::Parameters_Statistics * param_statistics); |
---|
117 | public : void statistics_deallocation (void); |
---|
118 | #endif |
---|
119 | #if defined(STATISTICS) or defined(VHDL_TESTBENCH) |
---|
120 | private : void end_cycle (void); |
---|
121 | #endif |
---|
122 | }; |
---|
123 | |
---|
124 | }; // end namespace meta_predictor_glue |
---|
125 | }; // end namespace meta_predictor |
---|
126 | }; // end namespace direction |
---|
127 | }; // end namespace prediction_unit |
---|
128 | }; // end namespace front_end |
---|
129 | }; // end namespace multi_front_end |
---|
130 | }; // end namespace core |
---|
131 | |
---|
132 | }; // end namespace behavioural |
---|
133 | }; // end namespace morpheo |
---|
134 | |
---|
135 | #endif |
---|