source: trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Front_end/Front_end/Prediction_unit/Direction/Meta_Predictor/Two_Level_Branch_Predictor/src/Two_Level_Branch_Predictor_constant.cpp @ 131

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

1) add constant method
2) test with systemc 2.2.0

  • Property svn:keywords set to Id
File size: 1.4 KB
Line 
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
11namespace morpheo                    {
12namespace behavioural {
13namespace core {
14namespace multi_front_end {
15namespace front_end {
16namespace prediction_unit {
17namespace direction {
18namespace meta_predictor {
19namespace 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
Note: See TracBrowser for help on using the repository browser.