Repository navigation
Add SWD debug transport to the SMP cluster - #483
Merged
Merged
Conversation
Wire DebugTransportModuleSwd into VexRiscvSmpCluster as an alternative to the JTAG DTM (--swd, mutually exclusive with --jtag-tap, requires privilegedDebug) and expose SWCLK/SWDIO as LiteX black-box ports. Add SpinalSim coverage for the SWD wire protocol, DP, and DM, plus a shared host bitbang driver.
2 tasks
This was referenced Sep 23, 2026
Dolu1990
pushed a commit
that referenced
this pull request
Sep 27, 2026
EmbeddedRiscvJtag puts the official RISC-V debug module and its transport inside the CPU. Its transports were JTAG only (TAP, tunneled TAP or instruction port), while the SMP cluster got SWD in #483 / #499. Add withSwd, which uses the existing DebugTransportModuleSwd (SWCLK/SWDIO, a RISC-V debug spec Ch. 6 custom DTM) in place of the JTAG transport and exposes a "swd" port. Only one transport can be used at a time, so withTap and withTunneling are ignored when withSwd is set. The GenFullWithOfficialRiscvDebug and Briey netlists, the two users of the plugin, are identical to dev.
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.
Wire DebugTransportModuleSwd into VexRiscvSmpCluster as an alternative to the JTAG DTM (--swd, mutually exclusive with --jtag-tap, requires privilegedDebug) and expose SWCLK/SWDIO as LiteX black-box ports.
Add SpinalSim coverage for the SWD wire protocol, DP, and DM, plus a shared host bitbang driver.