Repository navigation
feat(debug): add direct DMI and drain halt/reset transactions - #15
Merged
RossComputerGuy merged 4 commits intoOct 9, 2026
Merged
Conversation
RossComputerGuy
approved these changes
Oct 9, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changes
Add an optional synchronous direct-DMI frontend, selected at elaboration instead of JTAG. Each asserted request edge accesses one DM register; reads are combinational before the edge. JTAG remains the default. There is no queued transport response, ready/valid interface or runtime handover.
Fix related halt and DM ownership problems:
Scope
Core boundary changes apply to non-H, non-speculative in-order execution. H/OoO/speculative core paths retain their existing behavior. No board AXI/UIO/OpenOCD integration or trigger/step redesign is included.
This is not a full Debug v1.0 compliance upgrade; debugger-written dcsr.prv restoration remains an existing limitation. Deactivation waits for backends to complete rather than timing out and dropping ownership. Platform reset must also reset the backends.
Validation
Shared fixtures now activate/poll the DM and use bounded halt acknowledgement waits rather than assuming an in-flight microcoded instruction can stop within four/40 cycles.