source: trunk/IPs/systemC/processor/Morpheo/Behavioural/Stage_1_Ifetch/Predictor/Meta_Predictor/Meta_Predictor_Glue/src/Meta_Predictor_Glue_genMealy_branch_complete_ack.cpp @ 4

Last change on this file since 4 was 4, checked in by rosiere, 17 years ago
File size: 1.3 KB
Line 
1#ifdef SYSTEMC
2/*
3 * $Id$
4 *
5 * [ Description ]
6 *
7 */
8
9#include "Behavioural/Stage_1_Ifetch/Predictor/Meta_Predictor/Meta_Predictor_Glue/include/Meta_Predictor_Glue.h"
10
11namespace morpheo                    {
12namespace behavioural {
13namespace stage_1_ifetch {
14namespace predictor {
15namespace meta_predictor {
16namespace meta_predictor_glue {
17
18  void Meta_Predictor_Glue::genMealy_branch_complete_ack (void)
19  {
20    log_printf(FUNC,Meta_Predictor_Glue,"genMealy_branch_complete_ack","Begin");
21   
22    for (uint32_t i=0; i<_param._nb_branch_complete; i++)
23      {
24        Tcontrol_t predictor_0_ack =  not _param._have_meta_predictor or PORT_READ(in_BRANCH_COMPLETE_PREDICTOR_0_ACK [i]);
25        Tcontrol_t predictor_1_ack =  not _param._have_meta_predictor or PORT_READ(in_BRANCH_COMPLETE_PREDICTOR_1_ACK [i]);
26        Tcontrol_t predictor_2_ack =                                     PORT_READ(in_BRANCH_COMPLETE_PREDICTOR_2_ACK [i]);
27
28        PORT_WRITE(out_BRANCH_COMPLETE_ACK [i], predictor_0_ack and predictor_1_ack and predictor_2_ack);
29      }
30
31    log_printf(FUNC,Meta_Predictor_Glue,"genMealy_branch_complete_ack","End");
32  };
33
34}; // end namespace meta_predictor_glue
35}; // end namespace meta_predictor
36}; // end namespace predictor
37}; // end namespace stage_1_ifetch
38}; // end namespace behavioural
39}; // end namespace morpheo             
40#endif
Note: See TracBrowser for help on using the repository browser.