-
Notifications
You must be signed in to change notification settings - Fork 76
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
Add JTAG type as a configurable parameter #152
Add JTAG type as a configurable parameter #152
Conversation
a627ff3
to
80e49aa
Compare
Links to coverage and verification reports for this PR (#152) are available at https://chipsalliance.github.io/Cores-VeeR-EL2/ |
1 similar comment
Links to coverage and verification reports for this PR (#152) are available at https://chipsalliance.github.io/Cores-VeeR-EL2/ |
Are you sure this change is compatible with JTAG standard and RISCV debug spec? |
Internal-tag: [#52131] Signed-off-by: Robert Szczepanski <[email protected]>
Internal-tag: [#52131] Signed-off-by: Robert Szczepanski <[email protected]>
As far as we understand, according to the JTAG standard (1149.1 section 8.2.1):
which basically seems to imply that IDCODE is optional. Now, the riscv-debug spec in chapter 6 (Debug Transport Module) says:
This means that removing the IDCODE from DTM of VeeR is compliant with both specifications, however we might need to issue a warning upon the generation of the VeeR configuration without the IDCODE that it is compliant with the "RISC-V Debug Specification, with custom DTM instead of with JTAG DTM. |
80e49aa
to
9bac601
Compare
Links to coverage and verification reports for this PR (#152) are available at https://chipsalliance.github.io/Cores-VeeR-EL2/ |
There is a new VeeR config parameter
jtag_type
that accepts valuescltapc
(centralized TAP controller) andemtapc
(Embedded TAP controller). The first one supports IDCODE TAP command, the latter does not (responds with 0). By defaultcltapc
is selected which keeps IDCODE command enabled. Whenemtapc
is selected,RV_JTAG_NO_IDCODE
define is generated which disabled IDCODE command.JTAG ID is also set to 0 by default in the testbench.
Solves #146.