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

some question in rtl,may be it is a bug #612

Closed
yangguoming opened this issue Jan 29, 2021 · 3 comments
Closed

some question in rtl,may be it is a bug #612

yangguoming opened this issue Jan 29, 2021 · 3 comments
Assignees
Labels
Component:RTL For issues in the RTL (e.g. for files in the rtl directory) Type:Question For general questions

Comments

@yangguoming
Copy link

In source rtl code <cv32e40p_prefetch_controller.sv>

  assign fifo_valid  = !fifo_empty_i;
  assign fifo_push_o = resp_valid_i && (fifo_valid || !fetch_ready_i) && !(branch_i || (flush_cnt_q > 0));

what is the mean of " if fifo is not empty,then we can push fifo",it is not obey the logic, I think it is should be "if fifo is not full,then we can push the fifo",so the code should be the following code?

 assign fifo_has_space   = !fifo_full_i;
 assign fifo_push_o = resp_valid_i && fifo_has_space && !fetch_ready_i && !(branch_i || (flush_cnt_q > 0));

Others,i can not find the fifo full signal which should connect the controller.Thanks!

@Silabs-ArjanB Silabs-ArjanB added Component:RTL For issues in the RTL (e.g. for files in the rtl directory) Type:Question For general questions labels Jan 29, 2021
@MikeOpenHWGroup
Copy link
Member

Hi @davideschiavone and @pascalgouedo. I know it has been years, but I think that at least one of you should be able to answer @yangguoming's question and close this issue.

@pascalgouedo
Copy link
Contributor

cv32e40p_prefetch_controller doesn't show any incorrect behavior after a lot of non-regressions (and even a lot of test chips).
It is fully covered in simulation without any waiver, this is either a performance problem not visible in simulation or not a valid assumption at all.
I will let @davide analyze it in details and answer as he is maybe the one who written this assign 😁.

@davideschiavone
Copy link
Contributor

agree with @pascalgouedo , we can close this issue - @yangguoming let us know if you find any bug and feel free to reopen the issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component:RTL For issues in the RTL (e.g. for files in the rtl directory) Type:Question For general questions
Projects
None yet
Development

No branches or pull requests

5 participants