source: trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Front_end/Front_end/Prediction_unit/Direction/Meta_Predictor/Meta_Predictor_Glue/src/Meta_Predictor_Glue_genMealy_update_valack.cpp @ 111

Last change on this file since 111 was 111, checked in by rosiere, 15 years ago

1) Decod_queue : multi implementation (one_fifo, multi_fifo)
2) Issue_queue : multi implementation (in_order, out_of_order)
3) Direction : Add Meta predictor
4) Context_State : re add Branch_complete, More priority to Load miss (is not speculative)
5) Return_Address_Stack : update reg_PREDICT pointer on decod miss prediction
6) UPT : Fix bug in multi event
7) Prediction_glue : in read_stack case, insert in UPT pc_next
8) Rename select : when rob have an event (need flush), read_r{a,b,c} and write_r{d,e} is set at 0

  • Property svn:keywords set to Id
File size: 1.4 KB
Line 
1#ifdef SYSTEMC
2/*
3 * $Id: Meta_Predictor_Glue_genMealy_update_valack.cpp 111 2009-02-27 18:37:40Z rosiere $
4 *
5 * [ Description ]
6 *
7 */
8
9#include "Behavioural/Core/Multi_Front_end/Front_end/Prediction_unit/Direction/Meta_Predictor/Meta_Predictor_Glue/include/Meta_Predictor_Glue.h"
10
11namespace morpheo                    {
12namespace behavioural {
13namespace core {
14namespace multi_front_end {
15namespace front_end {
16namespace prediction_unit {
17namespace direction {
18namespace meta_predictor {
19namespace meta_predictor_glue {
20
21
22#undef  FUNCTION
23#define FUNCTION "Meta_Predictor_Glue::genMealy_update_valack"
24  void Meta_Predictor_Glue::genMealy_update_valack (void)
25  {
26    log_begin(Meta_Predictor_Glue,FUNCTION);
27    log_function(Meta_Predictor_Glue,FUNCTION,_name.c_str());
28
29    for (uint32_t i=0; i<_param->_nb_inst_update; ++i)
30      {
31        Tcontrol_t val = PORT_READ(in_UPDATE_VAL [i]);
32        Tcontrol_t ack = true;
33
34        for (uint32_t j=0; j<_param->_nb_predictor; ++j)
35          {
36            PORT_WRITE(out_UPDATE_PREDICTOR_VAL [j][i],val);
37
38            ack &= PORT_READ(in_UPDATE_PREDICTOR_ACK [j][i]);
39          }
40
41        PORT_WRITE(out_UPDATE_ACK [i],ack);
42      }
43
44    log_end(Meta_Predictor_Glue,FUNCTION);
45  };
46
47}; // end namespace meta_predictor_glue
48}; // end namespace meta_predictor
49}; // end namespace direction
50}; // end namespace prediction_unit
51}; // end namespace front_end
52}; // end namespace multi_front_end
53}; // end namespace core
54
55}; // end namespace behavioural
56}; // end namespace morpheo             
57#endif
Note: See TracBrowser for help on using the repository browser.