Built-in Self-test (BIST) is a feature that allows self testing of the memory areas and logic circuitry in an Integrated Circuit (IC) without any external test equipment. In an embedded system, these tests are typically used during boot time or shutdown of the system to check the health of an SoC.
PBIST is used to test the memory regions in the SoC and provides detection for permanent faults. The primary use case for PBIST is when it is invoked at start-up providing valuable information on any stuck-at bits in the memory.
There can be multiple instances of PBIST in the SoC, and each has a number of memory regions associated with it. SDL provides support for PBIST features such as execution of PBIST test-for-diagnostic to test the PBIST logic and execution of PBIST. The same API is used with different configuration parameters to execute each instance. Checking of the status of HW POST PBIST execution is also supported.
Some things to note:
The PBIST Module of the SDL supports execution of the software-initiated PBIST for the various supported instances. It provides the following services:
Supported memory groups
| PBIST Instance | Negative Test Time | Positive Test Time | Total Test Time |
|---|---|---|---|
| Pulsar Instance 1 | 1793 us | 5646 us | 7439 us |
| MPU PBIST | 1967 us | 32086 us | 34053 us |
| Infra PBIST | 5201 us | 52092 us | 57293 us |
| All instances | 8961 us | 89824 us | 98785 us |
The following shows an example of SDL PBIST API usage by the application to execute the PBIST test and test-for-diagnostic.
Include the below file to access the APIs
Note: Do not initialize the ESM to detect PBIST completion events
Before executing the following PBIST tests, the IP under test must be brought to a certain power and reset state. The included PBIST example shows the sequence needed for each of the PBIST instances.
Once the core(s) are brought to the required state, the following APIs can be run.
Run the PBIST test-for-diagnostic:
Perform the PBIST test