-
Notifications
You must be signed in to change notification settings - Fork 69
Branch Prediction Unit #243
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a great start. Thanks!
core/fetch/BPU.hpp
Outdated
uint32_t ghr_size_; | ||
uint32_t ghr_hash_bits_; | ||
uint32_t pht_size_; | ||
uint32_t ctr_bits_; | ||
uint32_t btb_size_; | ||
uint32_t ras_size_; | ||
bool ras_enable_overwrite_; | ||
uint32_t tage_bim_table_size_; | ||
uint32_t tage_bim_ctr_bits_; | ||
uint32_t tage_tagged_table_num_; | ||
uint32_t logical_table_num_; | ||
uint32_t loop_pred_table_size_; | ||
uint32_t loop_pred_table_way_; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please provide default initializations OR make these const
core/fetch/TAGE_SC_L.hpp
Outdated
uint32_t tage_bim_table_size_; | ||
uint8_t tage_bim_ctr_bits_; | ||
uint16_t tage_max_index_bits_; | ||
uint8_t tage_tagged_ctr_bits_; | ||
uint8_t tage_tagged_useful_bits_; | ||
uint32_t tage_global_hist_buff_len_; | ||
uint32_t tage_min_hist_len_; | ||
uint8_t tage_hist_alpha_; | ||
uint32_t tage_reset_useful_interval_; | ||
uint8_t tage_num_component_; | ||
TageBIM tage_bim_; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Default initialize or make them const
core/fetch/TAGE_SC_L.hpp
Outdated
uint32_t tage_bim_table_size_; | ||
uint8_t tage_base_ctr_bits_; | ||
uint8_t tage_base_max_ctr_; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Default initialize or make them const
class StatisticalCorrector | ||
{ | ||
public: | ||
private: | ||
}; | ||
|
||
class LoopPredictor | ||
{ | ||
public: | ||
private: | ||
}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are these "todo"s?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, I intend to work on these once the rest of the bpu pipeline is working. I have commented them out for now.
…meters by const reference
This is the draft PR for the implementation of branch prediction unit.