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

[sba] Add support for response timeout #128

Open
sriyerg opened this issue Mar 17, 2022 · 0 comments
Open

[sba] Add support for response timeout #128

sriyerg opened this issue Mar 17, 2022 · 0 comments

Comments

@sriyerg
Copy link

sriyerg commented Mar 17, 2022

A timeout waiting for an SBA access to complete can be signaled with SBCS[SBERROR] == 1, according to the RISCV debug spec. The timeout value can be set either as an input signal, or as a design constant (parameter), in terms of clock cycles. The dm_sba.sv would then need to implement a counter that flags the timeout error if the response from the bus is not seen within that window.

Without support for this, the debugger will hang indefinitely, if an attempt is made to a peripheral that is inadvertently held in reset or clock-gated without the user's knowledge.

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

1 participant