1 | #ifdef SYSTEMC |
---|
2 | /* |
---|
3 | * $Id: Two_Level_Branch_Predictor_constant.cpp 131 2009-07-08 18:40:08Z rosiere $ |
---|
4 | * |
---|
5 | * [ Description ] |
---|
6 | * |
---|
7 | */ |
---|
8 | |
---|
9 | #include "Behavioural/Core/Multi_Front_end/Front_end/Prediction_unit/Direction/Meta_Predictor/Two_Level_Branch_Predictor/include/Two_Level_Branch_Predictor.h" |
---|
10 | |
---|
11 | namespace morpheo { |
---|
12 | namespace behavioural { |
---|
13 | namespace core { |
---|
14 | namespace multi_front_end { |
---|
15 | namespace front_end { |
---|
16 | namespace prediction_unit { |
---|
17 | namespace direction { |
---|
18 | namespace meta_predictor { |
---|
19 | namespace two_level_branch_predictor { |
---|
20 | |
---|
21 | |
---|
22 | #undef FUNCTION |
---|
23 | #define FUNCTION "Two_Level_Branch_Predictor::constant" |
---|
24 | void Two_Level_Branch_Predictor::constant (void) |
---|
25 | { |
---|
26 | log_begin(Two_Level_Branch_Predictor,FUNCTION); |
---|
27 | log_function(Two_Level_Branch_Predictor,FUNCTION,_name.c_str()); |
---|
28 | |
---|
29 | for (uint32_t i=0; i<_param->_nb_inst_predict; ++i) |
---|
30 | { |
---|
31 | internal_PREDICT_ACK [i] = 1; |
---|
32 | PORT_WRITE(out_PREDICT_ACK [i], internal_PREDICT_ACK [i]); |
---|
33 | } |
---|
34 | for (uint32_t i=0; i<_param->_nb_inst_update; ++i) |
---|
35 | { |
---|
36 | internal_UPDATE_ACK [i] = 1; |
---|
37 | PORT_WRITE(out_UPDATE_ACK [i], internal_UPDATE_ACK [i]); |
---|
38 | } |
---|
39 | |
---|
40 | log_end(Two_Level_Branch_Predictor,FUNCTION); |
---|
41 | }; |
---|
42 | |
---|
43 | }; // end namespace two_level_branch_predictor |
---|
44 | }; // end namespace meta_predictor |
---|
45 | }; // end namespace direction |
---|
46 | }; // end namespace prediction_unit |
---|
47 | }; // end namespace front_end |
---|
48 | }; // end namespace multi_front_end |
---|
49 | }; // end namespace core |
---|
50 | |
---|
51 | }; // end namespace behavioural |
---|
52 | }; // end namespace morpheo |
---|
53 | #endif |
---|