Repository navigation
[rtl] Extend FI resilience of the register file - #2566
Merged
Merged
Conversation
A fault into the main core could change a xor into a xnor (or similar). In this case, the computed result is the inverse of the non-faulty result. As the ECC of fault and non-faulty result are identical, this fault can get unnoticed in the split register file inside the lockstep. There, we only store the faulty data of the main core in the main core RF and the ECC of the shadow core in the shadow core RF, which matches. To mitigate this, compare the RF write data that is proced in the main and shadow core in the lockstep comparison. This adds 2x38-bits for the main core + 1x38-bits for the shadow core, i.e., 114 FFs. Signed-off-by: Pascal Nasahl <nasahlpa@lowrisc.org>
A fault into the RF read address could deliver the wrong data word from the RF. Before this commit, such a fault could get undetected for the following cases: - 1/128 chance that the faulty and non-faulty ECC collide - 100% chance for faulty_data = inverse(non-faulty_data) To close this gap, add the RF read address into the lockstep comparison. This adds 10-bits x 3 stages, i.e., 30 FFs. Signed-off-by: Pascal Nasahl <nasahlpa@lowrisc.org>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Please see the individual commits for a detailed description.
Some of those issues have been identified by @kulan-pal and others.