AM64x MCU+ SDK  09.02.01
sdl_ip_lbist.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 
40 #ifndef SDL_IP_LBIST_H_
41 #define SDL_IP_LBIST_H_
42 
43 #ifdef __cplusplus
44 extern "C" {
45 #endif
46 
47 #include <stdint.h>
48 #include <stdbool.h>
50 
65 typedef struct SDL_LBIST_config
66 {
68  uint32_t dc_def;
70  uint32_t divide_ratio;
72  uint32_t static_pc_def;
74  uint32_t set_pc_def;
76  uint32_t reset_pc_def;
78  uint32_t scan_pc_def;
80  uint64_t prpg_def;
82 
105 
121 
135 int32_t SDL_LBIST_reset(SDL_lbistRegs *pLBISTRegs);
136 
151 
167 
180 int32_t SDL_LBIST_start(SDL_lbistRegs *pLBISTRegs);
181 
197 int32_t SDL_LBIST_stop(SDL_lbistRegs *pLBISTRegs);
198 
216 int32_t SDL_LBIST_isRunning (const SDL_lbistRegs *pLBISTRegs, bool *pIsRunning);
217 
234 int32_t SDL_LBIST_isDone (const SDL_lbistRegs *pLBISTRegs, bool *pIsDone);
235 
250  const SDL_LBIST_config_t *pConfig);
251 
267 int32_t SDL_LBIST_getMISR(SDL_lbistRegs *pLBISTRegs, uint32_t *pMISRValue);
268 
283 int32_t SDL_LBIST_getExpectedMISR(const uint32_t *pLBISTSig,
284  uint32_t *pExpectedMISRValue);
285 
288 #ifdef __cplusplus
289 }
290 #endif
291 
292 #endif /* SDL_IP_LBIST_H_ */
293 
SDL_LBIST_stop
int32_t SDL_LBIST_stop(SDL_lbistRegs *pLBISTRegs)
LBIST stop.
SDL_lbistRegs
Definition: sdlr_lbist.h:52
SDL_LBIST_programConfig
int32_t SDL_LBIST_programConfig(SDL_lbistRegs *pLBISTRegs, const SDL_LBIST_config_t *pConfig)
LBIST Program config.
SDL_LBIST_start
int32_t SDL_LBIST_start(SDL_lbistRegs *pLBISTRegs)
LBIST start.
SDL_LBIST_isRunning
int32_t SDL_LBIST_isRunning(const SDL_lbistRegs *pLBISTRegs, bool *pIsRunning)
LBIST check running.
SDL_LBIST_config_t::divide_ratio
uint32_t divide_ratio
Definition: sdl_ip_lbist.h:70
SDL_LBIST_isDone
int32_t SDL_LBIST_isDone(const SDL_lbistRegs *pLBISTRegs, bool *pIsDone)
LBIST check done.
sdlr_lbist.h
SDL_LBIST_enableRunBISTMode
int32_t SDL_LBIST_enableRunBISTMode(SDL_lbistRegs *pLBISTRegs)
Enable run BIST mode.
SDL_LBIST_config_t::prpg_def
uint64_t prpg_def
Definition: sdl_ip_lbist.h:80
SDL_LBIST_getExpectedMISR
int32_t SDL_LBIST_getExpectedMISR(const uint32_t *pLBISTSig, uint32_t *pExpectedMISRValue)
LBIST get expected MISR.
SDL_LBIST_enableIsolation
int32_t SDL_LBIST_enableIsolation(SDL_lbistRegs *pLBISTRegs)
Enable LBIST Isolation.
SDL_LBIST_getMISR
int32_t SDL_LBIST_getMISR(SDL_lbistRegs *pLBISTRegs, uint32_t *pMISRValue)
LBIST get MISR.
SDL_LBIST_disableIsolation
int32_t SDL_LBIST_disableIsolation(SDL_lbistRegs *pLBISTRegs)
Disable LBIST Isolation.
SDL_LBIST_config_t::scan_pc_def
uint32_t scan_pc_def
Definition: sdl_ip_lbist.h:78
SDL_LBIST_clearRunBISTMode
int32_t SDL_LBIST_clearRunBISTMode(SDL_lbistRegs *pLBISTRegs)
Clear run BIST mode.
SDL_LBIST_reset
int32_t SDL_LBIST_reset(SDL_lbistRegs *pLBISTRegs)
Reset LBIST.
SDL_LBIST_config_t::set_pc_def
uint32_t set_pc_def
Definition: sdl_ip_lbist.h:74
SDL_LBIST_config_t::dc_def
uint32_t dc_def
Definition: sdl_ip_lbist.h:68
SDL_LBIST_config_t::static_pc_def
uint32_t static_pc_def
Definition: sdl_ip_lbist.h:72
SDL_LBIST_config_t::reset_pc_def
uint32_t reset_pc_def
Definition: sdl_ip_lbist.h:76
SDL_LBIST_config_t
This structure contains the different configuration used for LBIST Note that the LBIST configuration ...
Definition: sdl_ip_lbist.h:66