🌐 US-Proxy
class="logged-out env-production page-responsive" style="word-wrap: break-word;" >
Skip to content

[rtl] Extend FI resilience of the register file - #2566

Merged
nasahlpa merged 2 commits into
lowRISC:masterfrom
nasahlpa:ibex_rf_comparison
Nov 5, 2026
Merged

nasahlpa merged 2 commits into
lowRISC:masterfrom
nasahlpa:ibex_rf_comparison

Conversation

@nasahlpa

@nasahlpa nasahlpa commented Nov 5, 2026

Copy link
Copy Markdown
Contributor

Please see the individual commits for a detailed description.

Some of those issues have been identified by @kulan-pal and others.

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>

@vogelpi vogelpi left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks great and clean, thanks @nasahlpa !

@nasahlpa
nasahlpa added this pull request to the merge queue Nov 5, 2026
Merged via the queue into lowRISC:master with commit 9c27342 Nov 5, 2026
13 checks passed
@github-actions github-actions Bot locked and limited conversation to collaborators Nov 5, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants