AM243x MCU+ SDK  09.02.00
sdl_ip_pbist.h
Go to the documentation of this file.
1 /********************************************************************
2  * Copyright (C) 2023 Texas Instruments Incorporated.
3  *
4  * Redistribution and use in source and binary forms, with or without
5  * modification, are permitted provided that the following conditions
6  * are met:
7  *
8  * Redistributions of source code must retain the above copyright
9  * notice, this list of conditions and the following disclaimer.
10  *
11  * Redistributions in binary form must reproduce the above copyright
12  * notice, this list of conditions and the following disclaimer in the
13  * documentation and/or other materials provided with the
14  * distribution.
15  *
16  * Neither the name of Texas Instruments Incorporated nor the names of
17  * its contributors may be used to endorse or promote products derived
18  * from this software without specific prior written permission.
19  *
20  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
21  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
22  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
23  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
24  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
25  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
26  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
27  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
28  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
29  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
30  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31  *
32  */
33 
41 /*
42  * @file sdl/pbist/v0/sdl_ip_pbist.h
43  *
44  * @brief This file contains the SDL-FL API's for PBIST
45  *
46  * This is the SDL-FL API documentation for the Programmable Built-In Self Test
47  * (PBIST) module.
48  *
49  */
50 
51 #ifndef SDL_IP_PBIST_H_
52 #define SDL_IP_PBIST_H_
53 
54 #ifdef __cplusplus
55 extern "C" {
56 #endif
57 
58 #include <stdint.h>
59 #include <stdbool.h>
62 #include <sdl/sdl_esm.h>
63 
64 #define PBIST_MAX_NUM_RUNS 2
65 
74 typedef struct
75 {
78  uint32_t override;
79 
85  uint32_t algorithmsBitMap;
86 
90 
93  uint64_t scrambleValue;
95 
105 typedef struct
106 {
109  uint32_t CA0;
110 
113  uint32_t CA1;
114 
117  uint32_t CA2;
118 
121  uint32_t CA3;
122 
125  uint32_t CL0;
126 
129  uint32_t CL1;
130 
133  uint32_t CL2;
134 
137  uint32_t CL3;
138 
141  uint32_t CMS;
142 
145  uint32_t CSR;
146 
149  uint32_t I0;
150 
153  uint32_t I1;
154 
157  uint32_t I2;
158 
161  uint32_t I3;
162 
165  uint32_t RAMT;
167 
181 int32_t SDL_PBIST_softReset(SDL_pbistRegs *pPBISTRegs);
182 
196 int32_t SDL_PBIST_start(SDL_pbistRegs *pPBISTRegs,
197  const SDL_PBIST_config * pConfig);
198 
212 int32_t SDL_PBIST_startNeg(SDL_pbistRegs *pPBISTRegs,
213  const SDL_PBIST_configNeg *pConfig);
214 
228 int32_t SDL_PBIST_checkResult (const SDL_pbistRegs *pPBISTRegs, bool *pResult);
229 
244 
247 typedef struct
248 {
251  uint32_t numPBISTRuns;
253  uint32_t interruptNumber;
254  SDL_ESM_Inst esmInst;
255  uint32_t esmEventNumber;
256  volatile uint32_t doneFlag;
259 
260 #ifdef __cplusplus
261 }
262 #endif
263 
264 #endif /* SDL_IP_PBIST_H_ */
SDL_PBIST_configNeg::RAMT
uint32_t RAMT
Definition: sdl_ip_pbist.h:165
SDL_pbistRegs
Definition: sdlr_pbist.h:53
SDL_pbistInstInfo::doneFlag
volatile uint32_t doneFlag
Definition: sdl_ip_pbist.h:256
SDL_PBIST_configNeg::I0
uint32_t I0
Definition: sdl_ip_pbist.h:149
sdlr_pbist.h
SDL_PBIST_checkResult
int32_t SDL_PBIST_checkResult(const SDL_pbistRegs *pPBISTRegs, bool *pResult)
PBIST check result.
SDL_PBIST_configNeg::I1
uint32_t I1
Definition: sdl_ip_pbist.h:153
SDL_PBIST_config::scrambleValue
uint64_t scrambleValue
Definition: sdl_ip_pbist.h:93
SDL_pbistInstInfo::esmInst
SDL_ESM_Inst esmInst
Definition: sdl_ip_pbist.h:254
SDL_PBIST_configNeg::I2
uint32_t I2
Definition: sdl_ip_pbist.h:157
SDL_PBIST_configNeg::CMS
uint32_t CMS
Definition: sdl_ip_pbist.h:141
SDL_pbistInstInfo::PBISTNegConfigRun
SDL_PBIST_configNeg PBISTNegConfigRun
Definition: sdl_ip_pbist.h:257
SDL_PBIST_config::memoryGroupsBitMap
uint64_t memoryGroupsBitMap
Definition: sdl_ip_pbist.h:89
SDL_PBIST_releaseTestMode
int32_t SDL_PBIST_releaseTestMode(SDL_pbistRegs *pPBISTRegs)
PBIST Release Test mode.
SDL_PBIST_configNeg::CSR
uint32_t CSR
Definition: sdl_ip_pbist.h:145
SDL_PBIST_config
This structure contains the different configuration used for PBIST.
Definition: sdl_ip_pbist.h:75
SDL_PBIST_configNeg::CL3
uint32_t CL3
Definition: sdl_ip_pbist.h:137
SDL_PBIST_configNeg::CA2
uint32_t CA2
Definition: sdl_ip_pbist.h:117
SDL_pbistInstInfo::pPBISTRegs
SDL_pbistRegs * pPBISTRegs
Definition: sdl_ip_pbist.h:250
sdl_soc_pbist.h
This file contains the SoC-specific SDL PBIST API's and definitions.
SDL_PBIST_configNeg::CA1
uint32_t CA1
Definition: sdl_ip_pbist.h:113
SDL_PBIST_configNeg::CL0
uint32_t CL0
Definition: sdl_ip_pbist.h:125
SDL_PBIST_configNeg::CA0
uint32_t CA0
Definition: sdl_ip_pbist.h:109
SDL_PBIST_start
int32_t SDL_PBIST_start(SDL_pbistRegs *pPBISTRegs, const SDL_PBIST_config *pConfig)
PBIST Start.
SDL_PBIST_configNeg::CL2
uint32_t CL2
Definition: sdl_ip_pbist.h:133
SDL_pbistInstInfo
Definition: sdl_ip_pbist.h:248
SDL_pbistInstInfo::esmEventNumber
uint32_t esmEventNumber
Definition: sdl_ip_pbist.h:255
SDL_pbistInstInfo::interruptNumber
uint32_t interruptNumber
Definition: sdl_ip_pbist.h:253
SDL_PBIST_config::algorithmsBitMap
uint32_t algorithmsBitMap
Definition: sdl_ip_pbist.h:85
SDL_PBIST_softReset
int32_t SDL_PBIST_softReset(SDL_pbistRegs *pPBISTRegs)
PBIST Soft reset.
SDL_PBIST_configNeg::CA3
uint32_t CA3
Definition: sdl_ip_pbist.h:121
SDL_pbistInstInfo::PBISTRegsHiAddress
uint64_t PBISTRegsHiAddress
Definition: sdl_ip_pbist.h:249
SDL_PBIST_configNeg::CL1
uint32_t CL1
Definition: sdl_ip_pbist.h:129
SDL_PBIST_configNeg
This structure contains the different configuration used for PBIST for the failure insertion test to ...
Definition: sdl_ip_pbist.h:106
SDL_PBIST_configNeg::I3
uint32_t I3
Definition: sdl_ip_pbist.h:161
SDL_PBIST_startNeg
int32_t SDL_PBIST_startNeg(SDL_pbistRegs *pPBISTRegs, const SDL_PBIST_configNeg *pConfig)
PBIST Failure Insertion Test Start.
SDL_pbistInstInfo::numPBISTRuns
uint32_t numPBISTRuns
Definition: sdl_ip_pbist.h:251
PBIST_MAX_NUM_RUNS
#define PBIST_MAX_NUM_RUNS
Definition: sdl_ip_pbist.h:64