AM62Ax MCU+ SDK  09.01.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>
61 #include <sdl/pbist/v0/soc/sdl_soc_pbist.h>
62 
71 typedef struct
72 {
75  uint32_t override;
76 
82  uint32_t algorithmsBitMap;
83 
87 
90  uint64_t scrambleValue;
92 
102 typedef struct
103 {
106  uint32_t CA0;
107 
110  uint32_t CA1;
111 
114  uint32_t CA2;
115 
118  uint32_t CA3;
119 
122  uint32_t CL0;
123 
126  uint32_t CL1;
127 
130  uint32_t CL2;
131 
134  uint32_t CL3;
135 
138  uint32_t CMS;
139 
142  uint32_t CSR;
143 
146  uint32_t I0;
147 
150  uint32_t I1;
151 
154  uint32_t I2;
155 
158  uint32_t I3;
159 
162  uint32_t RAMT;
164 
178 int32_t SDL_PBIST_softReset(SDL_pbistRegs *pPBISTRegs);
179 
193 int32_t SDL_PBIST_start(SDL_pbistRegs *pPBISTRegs,
194  const SDL_PBIST_config * pConfig);
195 
209 int32_t SDL_PBIST_startNeg(SDL_pbistRegs *pPBISTRegs,
210  const SDL_PBIST_configNeg *pConfig);
211 
225 int32_t SDL_PBIST_checkResult (const SDL_pbistRegs *pPBISTRegs, bool *pResult);
226 
241 
244 #ifdef __cplusplus
245 }
246 #endif
247 
248 #endif /* SDL_IP_PBIST_H_ */
SDL_PBIST_configNeg::RAMT
uint32_t RAMT
Definition: sdl_ip_pbist.h:162
SDL_pbistRegs
Definition: sdlr_pbist.h:53
SDL_PBIST_configNeg::I0
uint32_t I0
Definition: sdl_ip_pbist.h:146
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:150
SDL_PBIST_config::scrambleValue
uint64_t scrambleValue
Definition: sdl_ip_pbist.h:90
SDL_PBIST_configNeg::I2
uint32_t I2
Definition: sdl_ip_pbist.h:154
SDL_PBIST_configNeg::CMS
uint32_t CMS
Definition: sdl_ip_pbist.h:138
SDL_PBIST_config::memoryGroupsBitMap
uint64_t memoryGroupsBitMap
Definition: sdl_ip_pbist.h:86
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:142
SDL_PBIST_config
This structure contains the different configuration used for PBIST.
Definition: sdl_ip_pbist.h:72
SDL_PBIST_configNeg::CL3
uint32_t CL3
Definition: sdl_ip_pbist.h:134
SDL_PBIST_configNeg::CA2
uint32_t CA2
Definition: sdl_ip_pbist.h:114
SDL_PBIST_configNeg::CA1
uint32_t CA1
Definition: sdl_ip_pbist.h:110
SDL_PBIST_configNeg::CL0
uint32_t CL0
Definition: sdl_ip_pbist.h:122
SDL_PBIST_configNeg::CA0
uint32_t CA0
Definition: sdl_ip_pbist.h:106
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:130
SDL_PBIST_config::algorithmsBitMap
uint32_t algorithmsBitMap
Definition: sdl_ip_pbist.h:82
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:118
SDL_PBIST_configNeg::CL1
uint32_t CL1
Definition: sdl_ip_pbist.h:126
SDL_PBIST_configNeg
This structure contains the different configuration used for PBIST for the failure insertion test to ...
Definition: sdl_ip_pbist.h:103
SDL_PBIST_configNeg::I3
uint32_t I3
Definition: sdl_ip_pbist.h:158
SDL_PBIST_startNeg
int32_t SDL_PBIST_startNeg(SDL_pbistRegs *pPBISTRegs, const SDL_PBIST_configNeg *pConfig)
PBIST Failure Insertion Test Start.