1 | #ifdef SYSTEMC |
---|
2 | /* |
---|
3 | * $Id: Direction_Glue_genMealy_update.cpp 81 2008-04-15 18:40:01Z rosiere $ |
---|
4 | * |
---|
5 | * [ Description ] |
---|
6 | * |
---|
7 | */ |
---|
8 | |
---|
9 | #include "Behavioural/Core/Multi_Front_end/Front_end/Prediction_unit/Direction/Direction_Glue/include/Direction_Glue.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 direction_glue { |
---|
19 | |
---|
20 | |
---|
21 | #undef FUNCTION |
---|
22 | #define FUNCTION "Direction_Glue::genMealy_update" |
---|
23 | void Direction_Glue::genMealy_update (void) |
---|
24 | { |
---|
25 | log_printf(FUNC,Direction_Glue,FUNCTION,"Begin"); |
---|
26 | |
---|
27 | for (uint32_t i=0; i<_param->_nb_inst_update; i++) |
---|
28 | { |
---|
29 | PORT_WRITE(out_UPDATE_PREDICTOR_VAL [i], PORT_READ(in_UPDATE_VAL [i])); |
---|
30 | PORT_WRITE(out_UPDATE_ACK [i], PORT_READ(in_UPDATE_PREDICTOR_ACK [i])); |
---|
31 | PORT_WRITE(out_UPDATE_PREDICTOR_ADDRESS [i], PORT_READ(in_UPDATE_ADDRESS [i])); |
---|
32 | PORT_WRITE(out_UPDATE_PREDICTOR_HISTORY [i], PORT_READ(in_UPDATE_HISTORY [i])); |
---|
33 | PORT_WRITE(out_UPDATE_PREDICTOR_DIRECTION [i], PORT_READ(in_UPDATE_DIRECTION [i])); |
---|
34 | } |
---|
35 | |
---|
36 | log_printf(FUNC,Direction_Glue,FUNCTION,"End"); |
---|
37 | }; |
---|
38 | |
---|
39 | }; // end namespace direction_glue |
---|
40 | }; // end namespace direction |
---|
41 | }; // end namespace prediction_unit |
---|
42 | }; // end namespace front_end |
---|
43 | }; // end namespace multi_front_end |
---|
44 | }; // end namespace core |
---|
45 | }; // end namespace behavioural |
---|
46 | }; // end namespace morpheo |
---|
47 | #endif |
---|