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 reworks the processor's internal reset generator system and also the behavior of the watchdog's "lock" feature.
Reset System
The reset generator system has been split into an external and an internal system. The external reset is triggered by the processor's
rstn_i
signal while the internal reset is triggered by the processor'srstn_i
signal, the watchdog or the on-chip debugger.Whenever a valid reset request occurs (internal or external) the reset generator ensures that the reset applied to the system is active for at least 4 cycles. Furthermore, the reset applied to system will be release on falling edge of the system clock to avoid metastable situation (= reset is de-asserted during a rising edge). More information can be found in this nice article: https://www.eetimes.com/how-do-i-reset-my-fpga/
Watchdog
The watchdog is now reset by the internal processor reset, which can be triggered via the external hardware reset signal
rstn_i
, the on-chip debugger or the watchdog itself (system reset on watchdog timeout).0xCA36
and is used by the WDT library functions.