Skip to content
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

Branch prediction and flushing #24

Closed
FrischAd opened this issue Dec 1, 2017 · 2 comments
Closed

Branch prediction and flushing #24

FrischAd opened this issue Dec 1, 2017 · 2 comments

Comments

@FrischAd
Copy link

FrischAd commented Dec 1, 2017

Hey,
I was searching for a branch prediction unit but there seems to be none or let's say a static prediction which assumes every branch is not taken. Am I right?
When a conditional branch is taken then there is no explicit 'flush' signal set instead signals indicating a valid/not valid instruction is set?

@davideschiavone
Copy link
Contributor

Hello, sorry I have seen this message only now.

Yes the prediction is "not taken" and when the branch is taken, the controller sets pc_set_o that flushes the IF stage and the instruction in the ID is not executed.

@FrischAd
Copy link
Author

FrischAd commented Jun 1, 2018

Thanks.

@FrischAd FrischAd closed this as completed Jun 1, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants