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

[rom_ctrl, dv] Exclusions of non-occuring write cases in tlul_adapter… #25961

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

KinzaQamar
Copy link
Contributor

…_sram fifos

@KinzaQamar KinzaQamar requested a review from a team as a code owner January 21, 2025 17:46
@KinzaQamar KinzaQamar requested review from rswarbrick and removed request for a team January 21, 2025 17:46
…_sram fifos

Signed-off-by: Kinza Qamar <kqzaman@lowrisc.org>
Comment on lines +145 to +147
// wvalid_i gets driven in u_tl_adapter_rom as reqfifo_wvalid by a_ack. a_ack requires
// tl_o_int.a_ready as true to set itself true. But that signal requires wready_o, which is
// reqfifo_wready in u_tl_adapter_rom. So, we can't get evalid_i without wready_o.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think I agree that this can't happen, but I'm not sure about your reasoning. You're right that a_ack requires tl_o_int.a_ready to be true. However, that doesn't imply anything about the wready_o signal from u_reqfifo. That signal is saying that the request FIFO is not full.

However, we only push something into the FIFO when we send a request to SRAM. We will pop it from the FIFO again on the following cycle (because the ROM always responds in a single cycle), so the request FIFO can never actually become full.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've just noticed that this is essentially the same argument as you need for the u_rspfifo item at the bottom. It probably makes sense to note in the comments that these are related.

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

Successfully merging this pull request may close these issues.

2 participants