Debug Module ongoing integration into Mocha#436
Open
alexandrecapltd wants to merge 1 commit intolowRISC:wip-riscv-dbg-integratefrom
Open
Debug Module ongoing integration into Mocha#436alexandrecapltd wants to merge 1 commit intolowRISC:wip-riscv-dbg-integratefrom
alexandrecapltd wants to merge 1 commit intolowRISC:wip-riscv-dbg-integratefrom
Conversation
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.
This PR captures ongoing work to integrate the riscv-dbg module into mocha, following up on #303.
Currently,
jtagdpiandtcp_serveripsjtagdpiinstance has been added tohw/top_chip/dv/verilator/top_chip_verilator.svand connected thetop_chip_systemmodule jtag pins.hw/top_chip/rtl/top_chip_system.svnow has a debug module instance connected through converter modules (dmi_jtagfor the debug module interface,axi_adapterfor the master interface andaxi_to_memfor the slave interface). The jtag pins are exported. Thedebug_req_irqis connected to the CVA6 core, and the reset coming out of the debug module is in use (ndmreset_n = (~ndmreset) & rst_ni).hw/top_chip/rtl/top_pkg.sv, the SoC configuration accounts for the added debug module.This now builds for me, so I open this PR for others to be able to take a look.
I lifted the earlgrey openocd configuration from the opentitan repository. When simulating and trying to attach, the generated traces show traffic on the jtag interface, as well as a debug irq eventually being triggered. The CVA6 core which was emitting traffic on its noc_req signals goes silent, and openocd reports that the core failed to halt.
Things to investigate: