SDL API Guide for J7200
lbist/V0/sdl_ip_lbist.h
Go to the documentation of this file.
1 /********************************************************************
2  * Copyright (C) 2019-2021 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 
49 #ifndef SDL_IP_LBIST_H_
50 #define SDL_IP_LBIST_H_
51 
52 #ifdef __cplusplus
53 extern "C" {
54 #endif
55 
56 #include <stdint.h>
57 #include <stdbool.h>
58 #include <tistdtypes.h>
59 #include <src/ip/sdlr_lbist.h>
60 
89 typedef struct SDL_LBIST_config
90 {
92  uint32_t dc_def;
94  uint32_t divide_ratio;
96  uint32_t static_pc_def;
98  uint32_t set_pc_def;
100  uint32_t reset_pc_def;
102  uint32_t scan_pc_def;
104  uint64_t prpg_def;
106 
128 int32_t SDL_LBIST_enableIsolation(SDL_lbistRegs *pLBISTRegs);
129 
144 int32_t SDL_LBIST_disableIsolation(SDL_lbistRegs *pLBISTRegs);
145 
159 int32_t SDL_LBIST_reset(SDL_lbistRegs *pLBISTRegs);
160 
174 int32_t SDL_LBIST_enableRunBISTMode(SDL_lbistRegs *pLBISTRegs);
175 
190 int32_t SDL_LBIST_clearRunBISTMode(SDL_lbistRegs *pLBISTRegs);
191 
204 int32_t SDL_LBIST_start(SDL_lbistRegs *pLBISTRegs);
205 
221 int32_t SDL_LBIST_stop(SDL_lbistRegs *pLBISTRegs);
222 
240 int32_t SDL_LBIST_isRunning (const SDL_lbistRegs *pLBISTRegs, bool *pIsRunning);
241 
258 int32_t SDL_LBIST_isDone (const SDL_lbistRegs *pLBISTRegs, bool *pIsDone);
259 
273 int32_t SDL_LBIST_programConfig(SDL_lbistRegs *pLBISTRegs,
274  const SDL_LBIST_config_t *pConfig);
275 
291 int32_t SDL_LBIST_getMISR(SDL_lbistRegs *pLBISTRegs, uint32_t *pMISRValue);
292 
307 int32_t SDL_LBIST_getExpectedMISR(const uint32_t *pLBISTSig,
308  uint32_t *pExpectedMISRValue);
309 
312 #ifdef __cplusplus
313 }
314 #endif
315 
316 #endif /* SDL_IP_LBIST_H_ */
uint32_t reset_pc_def
Definition: lbist/V0/sdl_ip_lbist.h:100
int32_t SDL_LBIST_enableIsolation(SDL_lbistRegs *pLBISTRegs)
Enable LBIST Isolation.
int32_t SDL_LBIST_enableRunBISTMode(SDL_lbistRegs *pLBISTRegs)
Enable run BIST mode.
uint32_t dc_def
Definition: lbist/V0/sdl_ip_lbist.h:92
int32_t SDL_LBIST_start(SDL_lbistRegs *pLBISTRegs)
LBIST start.
int32_t SDL_LBIST_clearRunBISTMode(SDL_lbistRegs *pLBISTRegs)
Clear run BIST mode.
uint32_t set_pc_def
Definition: lbist/V0/sdl_ip_lbist.h:98
int32_t SDL_LBIST_getMISR(SDL_lbistRegs *pLBISTRegs, uint32_t *pMISRValue)
LBIST get MISR.
int32_t SDL_LBIST_getExpectedMISR(const uint32_t *pLBISTSig, uint32_t *pExpectedMISRValue)
LBIST get expected MISR.
int32_t SDL_LBIST_disableIsolation(SDL_lbistRegs *pLBISTRegs)
Disable LBIST Isolation.
int32_t SDL_LBIST_reset(SDL_lbistRegs *pLBISTRegs)
Reset LBIST.
uint32_t static_pc_def
Definition: lbist/V0/sdl_ip_lbist.h:96
This structure contains the different configuration used for LBIST Note that the LBIST configuration ...
Definition: lbist/V0/sdl_ip_lbist.h:89
int32_t SDL_LBIST_isDone(const SDL_lbistRegs *pLBISTRegs, bool *pIsDone)
LBIST check done.
uint32_t scan_pc_def
Definition: lbist/V0/sdl_ip_lbist.h:102
int32_t SDL_LBIST_stop(SDL_lbistRegs *pLBISTRegs)
LBIST stop.
int32_t SDL_LBIST_programConfig(SDL_lbistRegs *pLBISTRegs, const SDL_LBIST_config_t *pConfig)
LBIST Program config.
uint64_t prpg_def
Definition: lbist/V0/sdl_ip_lbist.h:104
uint32_t divide_ratio
Definition: lbist/V0/sdl_ip_lbist.h:94
int32_t SDL_LBIST_isRunning(const SDL_lbistRegs *pLBISTRegs, bool *pIsRunning)
LBIST check running.