ot-sca
ot-sca copied to clipboard
[fi/otp] Add OTP data read test to FI framework
This PR adds code for FI pen-testing the OTP module.
The test sequence can be summarized in the following way:
- Read content from a selected OTP partition for comparison values
- Perform fault injection on nop instructions
- Read content from the same OTP partition again
- Compare output with previous output and check if values differ
The OTP partition to read can be selected through the "which_test" parameter in the config file. The corresponding PR in lowRISC/opentitan is https://github.com/lowRISC/opentitan/pull/23156