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

Last change on this file since 48 was 48, checked in by rosiere, 17 years ago

Modification des Makefile : pas de creation inutile de shell

File size: 1.5 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/Direction/Meta_Predictor/Two_Level_Branch_Predictor/Two_Level_Branch_Predictor_Glue/include/Two_Level_Branch_Predictor_Glue.h"
10#include "Common/include/BitManipulation.h"
11
12namespace morpheo {
13namespace behavioural {
14namespace core {
15namespace multi_front_end {
16namespace front_end {
17namespace prediction_unit {
18namespace direction {
19
20namespace meta_predictor {
21namespace two_level_branch_predictor {
22namespace two_level_branch_predictor_glue {
23
24  void Two_Level_Branch_Predictor_Glue::genMealy_predict_bht_address (void)
25  {
26    log_printf(FUNC,Two_Level_Branch_Predictor_Glue,"genMealy_predict_address","Begin");
27
28    if (_param._have_bht)
29      for (uint32_t i=0; i<_param._nb_prediction; i++)
30        {
31          // Address
32          Taddress_t     address = PORT_READ(in_PREDICT_ADDRESS [i]);
33          Taddress_t bht_address = range<Taddress_t>(_param._size_address, address, _param._bht_size_address);
34         
35          PORT_WRITE (out_PREDICT_BHT_ADDRESS [i], bht_address);
36        }
37   
38    log_printf(FUNC,Two_Level_Branch_Predictor_Glue,"genMealy_predict_address","End");
39  };
40
41}; // end namespace two_level_branch_predictor_glue
42}; // end namespace two_level_branch_predictor
43}; // end namespace meta_predictor
44
45}; // end namespace core
46}; // end namespace multi_front_end
47}; // end namespace front_end
48}; // end namespace prediction_unit
49}; // end namespace direction
50
51}; // end namespace behavioural
52}; // end namespace morpheo             
53#endif
Note: See TracBrowser for help on using the repository browser.