Skip to content

[dv] Fix riscv_rf_addr_intg_test spurious failures - #2526

Open
SamuelRiedel wants to merge 1 commit into
lowRISC:masterfrom
SamuelRiedel:fix-rf-add-intg-test
Open

SamuelRiedel wants to merge 1 commit into
lowRISC:masterfrom
SamuelRiedel:fix-rf-add-intg-test

Conversation

@SamuelRiedel

Copy link
Copy Markdown
Contributor

The test glitches a regfile read address and expects an ECC error. But the ECC check only fails if the original and glitched registers hold different data. Previously, the test injected the fault blindly and if the two registers happened to hold the same value, no ECC error would occur and the test reported a fatal failure.

Fix by snooping the register file contents before injecting the fault and retrying until the original and glitched registers hold distinct data.

The test glitches a regfile read address and expects an ECC error. But
the ECC check only fails if the original and glitched registers hold
different data. Previously, the test injected the fault blindly and if
the two registers happened to hold the same value, no ECC error would
occur and the test reported a fatal failure.

Fix by snooping the register file contents before injecting the fault
and retrying until the original and glitched registers hold distinct
data.

Signed-off-by: Samuel Riedel <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant