-
Notifications
You must be signed in to change notification settings - Fork 335
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
target/riscv: select DMI IR on batch access #1089
Conversation
@JanMatCodasip, can you please prioritize looking at this one. It's an uncaught bug in #1073. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@en-sc I have checked this fix visually and it looks good. Thank you.
Few additional notes (perhaps for future pull requests):
- The calls to
select_dmi()
inassert_reset()
,deassert_reset()
andread_memory_progbuf()
appear to be redundant. The underlying batch API or dm_read/dm_write() API should always take care of that. - I would be in favor of having assertions that the DMI has been selected, however the BSCAN tunnel support complicates that - the assertions would not be simple.
- Furthermore, I am afraid we don't have any way how to test the BSCAN tunnel support. (Or do we?)
- I would eventually like to move all the JTAG DTM related items to their own module (riscv013-jtag-dtm.c/h). Then the select_dmi() could be called directly from batch.c, which would put the select_dmi() call closer to the actual execution of the JTAG scans.
Without the selection the TAP can be left in bypass. Change-Id: I79c6bf74802dc9c9475947d1787a3d0b797f3952 Signed-off-by: Evgeniy Naydanov <[email protected]>
1b51e34
to
07940e6
Compare
@JanMatCodasip, please, take a look again. |
I think you are right. Filed #1092.
I'm not sure it's worthwhile. We do have assertions already JTAG common interface that cover this.
AFAIK, we don't.
I'd like that to. This is essentially the goal of all these commits -- to tidy up the work with DM and move it to a separate file after this. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Sure, no problem!
Ok, let's leave it as is, without additional asserts.
Great :) |
Without the selection the TAP can be left in bypass.
Change-Id: I79c6bf74802dc9c9475947d1787a3d0b797f3952