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

Sticky version of debug request #341

Closed
Silabs-ArjanB opened this issue Dec 6, 2021 · 2 comments
Closed

Sticky version of debug request #341

Silabs-ArjanB opened this issue Dec 6, 2021 · 2 comments
Assignees
Labels
Component:RTL For issues in the RTL (e.g. for files in the rtl directory) Type:Bug For bugs in any content (RTL, Documentation, etc.)

Comments

@Silabs-ArjanB
Copy link
Contributor

The debug request of the core is made sticky in two places it seems (i.e. in the debug module itself and in the core). That seems incorrect although the debug specification is quite unclear about haltreq as well (specifically where it states "this may cancel outstanding halt requests for those harts").

The following needs to be addressed:

  • The 'this may' part of the debug specification needs to get clarified. For the 40X the core itself will also remember the debug request, which offers less controller to the debugger.
  • Any debug entry (i.e. not only debug entry due to a debug request) will cause debug_req_q to get cleared, which seems like an issue as well (see
    end else if (debug_mode_q) begin
    )
@Silabs-ArjanB Silabs-ArjanB added Component:RTL For issues in the RTL (e.g. for files in the rtl directory) Type:Bug For bugs in any content (RTL, Documentation, etc.) labels Dec 6, 2021
@Silabs-ArjanB
Copy link
Contributor Author

See clarifications at riscv/riscv-debug-spec#753

silabs-oysteink added a commit to silabs-oysteink/cv32e40x that referenced this issue Dec 13, 2022
Removed sticky debug request (debug_req_q)

Updated assertion a_fencei_hndshk_req_when_fencei_wb to accomodate changes.

Signed-off-by: Oystein Knauserud <[email protected]>
@Silabs-ArjanB
Copy link
Contributor Author

Can be closed once user manual has been updated as well.

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:Bug For bugs in any content (RTL, Documentation, etc.)
Projects
None yet
Development

No branches or pull requests

2 participants