-
Notifications
You must be signed in to change notification settings - Fork 93
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
Clarify JTAG IDCODE requirement in an SOC #924
Comments
many JTAG based debuggers use ID code for detecting CPU features to tune debugger operation . |
You appear to be using some kind of cJTAG topology. The Debug Spec does not define what happens in cJTAG at all. Having said that, I would expect every TAP to still implement IDCODE, even the ones behind a top-level controller. It makes it easier for debuggers to do discovery, and I don't see a downside. |
The above topology is achievable through 1149.1.
Can this be restated as
?
The RISC-V Debug specification states, regarding
In particular there will be RISC-V processors designed by entities who do not have a JEDEC manufacturer code, for example universities. In such a case their processor would not conform to the specification. But ultimately I think if
is true then that solves the issue at hand. Ie, it's fine to remove |
I'm not sure what your definition of "processor" is. I don't think that you intend processor=SoC since the DTM would presumably be part of the SoC and not "connected to" the SoC. I'm assuming that you intend either processor=core or processor=hart in which case the statement is not true. A JTAG DTM is defined to be connected to a single DMI which is connected to an arbitrary number of DMs, each of which can be connected to up to 1048576 harts. |
Correct. These are independent RISC-V processor cores integrated into a single SOC.
Thanks for the clarification. This also provides a solution for the issue at hand. Ie, if a RISC-V processor core is to be integrated into an SOC then it should expose an interface as a Debug Module. The SOC Integrator uses its single DTM / DMI to allow debugging of, possibly, multiple RISC-V processor cores. |
BTW, multithreaded EH2 implements with one DM manages 2 harts .. By extending address field of JTAG DTM dmi register multiple DMs can be connected to one JTAG DTM if DMs implement nextdm register. (not implemented in EL2) |
Thanks for the clarifications. Closing now. |
From issue : chipsalliance/Cores-VeeR-EL2#146.
When DTM is implemented in an SOC with multiple RISC-V processors and multiple TAP controllers, what are the requirements for IDCODE? For example suppose an SOC has a topology of
My expectation is that either
In my experience IDCODE is only used to identify chips on a PCB. Once the chip is identified then its BSDL or ICL file can be retrieved that specifies the internal layout of the JTAG chain.
The text was updated successfully, but these errors were encountered: