Main Page | Class Hierarchy | Alphabetical List | Compound List | File List | Compound Members | File Members

Branch_Predictor Class Reference

#include <branch.h>

List of all members.

Public Member Functions

 Branch_Predictor ()
 Branch_Predictor (int b, int m, int s, int l)
void show (FILE *f)
void predict (int bhr, int ip, int &direction)
void update (int bhr, int ip, int actual_slot_taken)
 ~Branch_Predictor ()
 Branch_Predictor (int b, int m, int s, int l)
 ~Branch_Predictor ()
void predict (int bhr, int ip, int &direction)
void update (int bhr, int ip, int actual_slot_taken)
void show (FILE *f)
 Branch_Predictor ()
 Branch_Predictor (int b, int m, int s, int l)
void show (FILE *f)
void predict (int bhr, int ip, int &direction)
void update (int bhr, int ip, int actual_slot_taken)
 ~Branch_Predictor ()
 Branch_Predictor (int b, int m, int s, int l)
 ~Branch_Predictor ()
void predict (int bhr, int ip, int &direction)
void update (int bhr, int ip, int actual_slot_taken)
void show (FILE *f)

Private Attributes

int _b
int _m
int _l
int _num_of_entry
int * _tag
int * _counter
int _num_of_slot
int _index_mask
int _low_bhr_mask
int _num_of_slot_bits
int _strong_mask
int _slot_mask
GShare_Pred ** Preds
int _s
int _bhr_mask
int * _tag
int * _counter
GShare_Pred ** Preds


Constructor & Destructor Documentation

Branch_Predictor::Branch_Predictor  )  [inline]
 

Definition at line 46 of file include/branch.h.

References _counter, and _tag.

Branch_Predictor::Branch_Predictor int  b,
int  m,
int  s,
int  l
[inline]
 

Definition at line 52 of file include/branch.h.

References _b, _counter, _index_mask, _l, _low_bhr_mask, _m, _num_of_entry, _num_of_slot, _num_of_slot_bits, _slot_mask, _strong_mask, _tag, and i.

Branch_Predictor::~Branch_Predictor  )  [inline]
 

Definition at line 99 of file include/branch.h.

References _counter, and _tag.

Branch_Predictor::Branch_Predictor int  b,
int  m,
int  s,
int  l
[inline]
 

Definition at line 102 of file include/multi_br.h.

References _b, _bhr_mask, _index_mask, _l, _m, _s, exit(), fprintf(), i, and Preds.

Branch_Predictor::~Branch_Predictor  )  [inline]
 

Definition at line 139 of file include/multi_br.h.

References _s, i, and Preds.

Branch_Predictor::Branch_Predictor  )  [inline]
 

Definition at line 46 of file src/branch.h.

References _counter, and _tag.

Branch_Predictor::Branch_Predictor int  b,
int  m,
int  s,
int  l
[inline]
 

Definition at line 52 of file src/branch.h.

References _b, _counter, _index_mask, _l, _low_bhr_mask, _m, _num_of_entry, _num_of_slot, _num_of_slot_bits, _slot_mask, _strong_mask, _tag, and i.

Branch_Predictor::~Branch_Predictor  )  [inline]
 

Definition at line 99 of file src/branch.h.

References _counter, and _tag.

Branch_Predictor::Branch_Predictor int  b,
int  m,
int  s,
int  l
[inline]
 

Definition at line 102 of file src/multi_br.h.

References _b, _bhr_mask, _index_mask, _l, _m, _s, exit(), fprintf(), i, and Preds.

Branch_Predictor::~Branch_Predictor  )  [inline]
 

Definition at line 139 of file src/multi_br.h.

References _s, i, and Preds.


Member Function Documentation

void Branch_Predictor::predict int  bhr,
int  ip,
int &  direction
 

void Branch_Predictor::predict int  bhr,
int  ip,
int &  direction
 

void Branch_Predictor::predict int  bhr,
int  ip,
int &  direction
 

void Branch_Predictor::predict int  bhr,
int  ip,
int &  direction
 

Definition at line 31 of file branch.cpp.

References _b, _counter, _index_mask, _l, _low_bhr_mask, _m, _num_of_entry, _num_of_slot, _slot_mask, and index().

Referenced by Hybrid_Predictor::predict(), and VLIW::process_pipeline().

void Branch_Predictor::show FILE *  f  )  [inline]
 

Definition at line 147 of file src/multi_br.h.

References _b, _l, _m, and fprintf().

void Branch_Predictor::show FILE *  f  )  [inline]
 

Definition at line 82 of file src/branch.h.

References _b, _index_mask, _l, _low_bhr_mask, _m, _num_of_entry, _num_of_slot, _num_of_slot_bits, _slot_mask, _strong_mask, and fprintf().

void Branch_Predictor::show FILE *  f  )  [inline]
 

Definition at line 147 of file include/multi_br.h.

References _b, _l, _m, and fprintf().

void Branch_Predictor::show FILE *  f  )  [inline]
 

Definition at line 82 of file include/branch.h.

References _b, _index_mask, _l, _low_bhr_mask, _m, _num_of_entry, _num_of_slot, _num_of_slot_bits, _slot_mask, _strong_mask, and fprintf().

Referenced by VLIW::output(), and Hybrid_Predictor::show().

void Branch_Predictor::update int  bhr,
int  ip,
int  actual_slot_taken
 

void Branch_Predictor::update int  bhr,
int  ip,
int  actual_slot_taken
 

void Branch_Predictor::update int  bhr,
int  ip,
int  actual_slot_taken
 

void Branch_Predictor::update int  bhr,
int  ip,
int  actual_slot_taken
 

Definition at line 67 of file branch.cpp.

References _b, _counter, _index_mask, _l, _low_bhr_mask, _m, _num_of_entry, _num_of_slot, _num_of_slot_bits, _slot_mask, _strong_mask, and index().

Referenced by VLIW::process_pipeline(), and Hybrid_Predictor::update().


Member Data Documentation

int Branch_Predictor::_b [private]
 

Definition at line 88 of file src/multi_br.h.

Referenced by Branch_Predictor(), predict(), show(), and update().

int Branch_Predictor::_bhr_mask [private]
 

Definition at line 94 of file src/multi_br.h.

Referenced by Branch_Predictor().

int* Branch_Predictor::_counter [private]
 

Definition at line 111 of file src/branch.h.

int* Branch_Predictor::_counter [private]
 

Definition at line 111 of file include/branch.h.

Referenced by Branch_Predictor(), predict(), update(), and ~Branch_Predictor().

int Branch_Predictor::_index_mask [private]
 

Definition at line 93 of file src/multi_br.h.

Referenced by Branch_Predictor(), predict(), show(), and update().

int Branch_Predictor::_l [private]
 

Definition at line 91 of file src/multi_br.h.

Referenced by Branch_Predictor(), predict(), show(), and update().

int Branch_Predictor::_low_bhr_mask [private]
 

Definition at line 115 of file src/branch.h.

Referenced by Branch_Predictor(), predict(), show(), and update().

int Branch_Predictor::_m [private]
 

Definition at line 89 of file src/multi_br.h.

Referenced by Branch_Predictor(), predict(), show(), and update().

int Branch_Predictor::_num_of_entry [private]
 

Definition at line 109 of file src/branch.h.

Referenced by Branch_Predictor(), predict(), show(), and update().

int Branch_Predictor::_num_of_slot [private]
 

Definition at line 112 of file src/branch.h.

Referenced by Branch_Predictor(), predict(), show(), and update().

int Branch_Predictor::_num_of_slot_bits [private]
 

Definition at line 117 of file src/branch.h.

Referenced by Branch_Predictor(), show(), and update().

int Branch_Predictor::_s [private]
 

Definition at line 90 of file src/multi_br.h.

Referenced by Branch_Predictor(), and ~Branch_Predictor().

int Branch_Predictor::_slot_mask [private]
 

Definition at line 119 of file src/branch.h.

Referenced by Branch_Predictor(), predict(), show(), and update().

int Branch_Predictor::_strong_mask [private]
 

Definition at line 118 of file src/branch.h.

Referenced by Branch_Predictor(), show(), and update().

int* Branch_Predictor::_tag [private]
 

Definition at line 110 of file src/branch.h.

int* Branch_Predictor::_tag [private]
 

Definition at line 110 of file include/branch.h.

Referenced by Branch_Predictor(), and ~Branch_Predictor().

GShare_Pred** Branch_Predictor::Preds [private]
 

Definition at line 87 of file src/multi_br.h.

GShare_Pred** Branch_Predictor::Preds [private]
 

Definition at line 87 of file include/multi_br.h.

Referenced by Branch_Predictor(), and ~Branch_Predictor().


The documentation for this class was generated from the following files:
Generated on Mon Jul 21 20:30:53 2003 for TINKER LEGO DOC by doxygen 1.3.2