Injecting an Error in NPI Registers - Injecting an Error in NPI Registers - 2026.1 English - UG643

Standalone Library Documentation: BSP and Libraries Document Collection (UG643)

Document ID
UG643
Release Date
2026-06-23
Version
2026.1 English

The following steps illustrates how to inject an error in NPI registers for test purposes.

  1. Stop scan
  2. Inject error
  3. 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 Stop > Inject > Start from a single master.
  • XilSEM examples demonstrate the usage of CRAM and NPI Error injection sequences. This feature is protected with XILSEM_ERRINJ_ENABLE macro. If you want to test the feature, build the example by enabling this macro in your build environment