source: trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Front_end/Front_end/Prediction_unit/Prediction_unit_Glue/src/Prediction_unit_Glue_genMealy_update.cpp @ 88

Last change on this file since 88 was 88, checked in by rosiere, 16 years ago

Almost complete design
with Test and test platform

File size: 2.1 KB
Line 
1#ifdef SYSTEMC
2/*
3 * $Id$
4 *
5 * [ Description ]
6 *
7 */
8
9#include "Behavioural/Core/Multi_Front_end/Front_end/Prediction_unit/Prediction_unit_Glue/include/Prediction_unit_Glue.h"
10
11namespace morpheo                    {
12namespace behavioural {
13namespace core {
14namespace multi_front_end {
15namespace front_end {
16namespace prediction_unit {
17namespace prediction_unit_glue {
18
19
20#undef  FUNCTION
21#define FUNCTION "Prediction_unit_Glue::genMealy_update"
22  void Prediction_unit_Glue::genMealy_update (void)
23  {
24    log_begin(Prediction_unit_Glue,FUNCTION);
25
26//     for (uint32_t i=0; i<_param->_nb_inst_branch_update; i++)
27//       {
28//      Tcontrol_t btb_ack     = PORT_READ(in_UPDATE_BTB_ACK [i]);
29//      Tcontrol_t dir_ack     = PORT_READ(in_UPDATE_DIR_ACK [i]);
30//      Tcontrol_t ras_ack     = PORT_READ(in_UPDATE_RAS_ACK [i]);
31//      Tcontrol_t upt_val     = PORT_READ(in_UPDATE_UPT_VAL [i]);
32
33//      Tcontrol_t need_btb = PORT_READ(in_UPDATE_UPT_BTB_VAL [i]);
34//      Tcontrol_t need_dir = PORT_READ(in_UPDATE_UPT_DIR_VAL [i]);
35//      Tcontrol_t need_ras = PORT_READ(in_UPDATE_UPT_RAS_VAL [i]);
36       
37//      PORT_WRITE(out_UPDATE_BTB_VAL [i], (upt_val and need_btb and
38//                                          (not need_dir or (need_dir and dir_ack)) and
39//                                          (not need_ras or (need_ras and ras_ack))));
40
41//      PORT_WRITE(out_UPDATE_DIR_VAL [i], (upt_val and need_dir and
42//                                          (not need_btb or (need_btb and btb_ack)) and
43//                                          (not need_ras or (need_ras and ras_ack))));
44
45//      PORT_WRITE(out_UPDATE_RAS_VAL [i], (upt_val and need_ras and
46//                                          (not need_btb or (need_btb and btb_ack)) and
47//                                          (not need_dir or (need_dir and dir_ack))));
48
49//      PORT_WRITE(out_UPDATE_UPT_ACK [i], ((not need_btb or (need_btb and btb_ack)) and
50//                                          (not need_dir or (need_dir and dir_ack)) and
51//                                          (not need_ras or (need_ras and ras_ack))));
52//       }
53
54    log_end(Prediction_unit_Glue,FUNCTION);
55  };
56
57}; // end namespace prediction_unit_glue
58}; // end namespace prediction_unit
59}; // end namespace front_end
60}; // end namespace multi_front_end
61}; // end namespace core
62
63}; // end namespace behavioural
64}; // end namespace morpheo             
65#endif
Note: See TracBrowser for help on using the repository browser.