Come up with reset strategy
We need to think about the various reset signals, how they should interact and what they should reset:
- Power on Reset (PoR)
- ndmreset (from the debug module)
- A (potentially available) reset button on the board
- JTAG SRST (system reset)
- JTAG TRST (test reset)
ndmreset
All the debug spec has to say about it is this:
This bit controls the reset signal from the DM to the rest of the system. The signal should reset every part of the system, including every hart, except for the DM and any logic required to access the DM. To perform a system reset the debugger writes 1, and then writes 0 to deassert the reset.
Thanks for bringing this up. I'll assign myself and start with a section on it for the Jasmine spec. We'll want to have alert-handler-based resets as well (including watchdog)
@imphil would you be okay with Chris and I huddling and coming up with some proposal we can then review together?
Absolutely, please go ahead.
hi all, is there any reason we have to support SRST? From what I understand, SRST is not necessarily a part of the normal JTAG standard. I know TRST is also optional, but I'd like to support that since it has a lot of tester control benefits. My general feeling also, is that SRST falls very close in functionality to ndmreset.
SRST is just the most reliable way to get a system to reset.
As OpenOCD puts it:
In the best case, OpenOCD can hold SRST, then reset the TAPs via TRST and send commands through JTAG to halt the CPU at the reset vector before the 1st instruction is executed. Then when it finally releases the SRST signal, the system is halted under debugger control before any code has executed.
(http://openocd.org/doc/html/Reset-Configuration.html)
However, we should be fine without SRST.
sounds good. well let me at least define what it should do, and we can later discuss whether something should always be included.
there's been work on getting this topic sorted out, but nothing merged so far, so keeping this issue open until it is.
Thanks for the feedback on the doc Philipp, I will respond later today
On Thu, Aug 22, 2019, 05:46 Philipp Wagner [email protected] wrote:
there's been work on getting this topic sorted out, but nothing merged so far, so keeping this issue open until it is.
— You are receiving this because you were assigned. Reply to this email directly, view it on GitHub https://github.com/lowRISC/opentitan/issues/70?email_source=notifications&email_token=AAH2RSQ6JLRXNISS2QZ7V3TQF2DDZA5CNFSM4HD2VNHKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD4465SI#issuecomment-523890377, or mute the thread https://github.com/notifications/unsubscribe-auth/AAH2RSSC6S72I3ROJ2TDYO3QF2DDZANCNFSM4HD2VNHA .
I think the major points that are not resolved are #93 and the tap controller daisy chaining.
The latter I've pinged Chris for his thinking, and added some of my own notes today. The former I hope to put my thoughts down later this week.
The doc is written up and will be transferred over to md https://docs.google.com/document/d/1sQv0z2rqDUIWilPP7_U62KUfvO-_0tFWwRIGy3EF6Jw/edit?usp=sharing
I will close this issue now.