The following steps illustrates how to inject an error in NPI registers for test purposes.
- Stop scan
- Inject error
- Start scan to detect injected error
Wait for the XilSEM library to detect and report the error.
Note:
- All the macros used in the code snippets are defined in xsem_client_api.h file.
- The above code snippets are demonstrated through examples in the XilSEM library using xsem_cram_example.c and xsem_npi_example.c. You can import these examples into the Vitis IDE to get more implementation details.
- When an error is injected in NPI golden SHA value, this condition is treated as uncorrectable error. NPI scan on PLM stops the scan.
- When you perform CRAM/NPI error injection, ensure to follow the error injection sequence from a single master.
- XilSEM examples demonstrate the usage of CRAM and NPI Error injection sequences. This
feature is protected with
XILSEM_ERRINJ_ENABLEmacro. If you want to test the feature, build the example by enabling this macro in your build environment