testbench.h

来自「OMAP1030 处理器的ARM 侧硬件测试代码 OMAP1030 是TI」· C头文件 代码 · 共 116 行

H
116
字号
//=====================================================================  
//      TEXAS INSTRUMENTS INCORPORATED PROPRIETARY INFORMATION             
// Property of Texas Instruments -- For Unrestricted Internal Use Only   
// Unauthorized reproduction and/or distribution is strictly prohibited  
// This product is protected under copyright law and trade secret law as 
// an unpublished work.Created 2001,(C) Copyright 2001 Texas Instruments.
// All rights reserved.                                                  
//=====================================================================  

#ifndef __TESTBENCH_H__
#define __TESTBENCH_H__


#define GMC_SYNC 12
#define GMC_ERR   4
#define GMC_RDY   6

#define TBH_CCP_LINE_LENGTH        128
#define TBH_CCP_LINE_COUNT           3

#define BFM_ADDR_ELCD            0x10C00000
#define BFM_ADDR_CCP	 (void *)0x11000000
#define BFM_ADDR_CAM	 (void *)0x11000000
#define BFM_ADDR_SSI	 (void *)0x11400000
#define BFM_ADDR_TLCM	 (void *)0x11800000
#define BFM_ADDR_STI	 (void *)0x11820000
#define BFM_ADDR_UART	 (void *)0x11840000
#define BFM_ADDR_I2C	 (void *)0x11860000
#define BFM_ADDR_MCBSP   (void *)0x11880000
#define BFM_ADDR_SPI	 (void *)0x118A0000
#define BFM_ADDR_MMCSDIO (void *)0x118C0000
#define BFM_ADDR_GPIO	 (void *)0x118C0000
#define BFM_ADDR_JTAG	 (void *)0x11900000
#define BFM_ADDR_TEST	 (void *)0x11920000


#define SDR_SDRAM   0x01
#define DDR_SDRAM   0x10
#define DDR_MOBILE  0x11

//-------------------------------------------------------------------------------
// NAME         : TSTB_SetTbSync       
//
// DESCRIPTION  : - Init the GPIO direction for synchro signals
//                 GMC_RDY = input / GMC_ERROR = input / GMC_SYNC = OUTPUT
//                - drive GMC_SYNC pin to '0'      
// PARAMETERS   : none
//
// RETURN VALUE : None
//
//--------------------------------------------------------------------------------
extern void TSTB_SetTbSync(void);

//-------------------------------------------------------------------------------
// NAME         : TSTB_DoSync       
//
// DESCRIPTION  : - Generate a GMC_SYNC pulse to the testbench when GMC_RDY is '1'
// 
// PARAMETERS   : none
//
// RETURN VALUE : None
//
//------------------------------------------------------------------------------
extern void TSTB_DoSync(void);

//-------------------------------------------------------------------------------
// NAME         : TSTB_ConfigureNmpMuxes       
//
// DESCRIPTION  : This function configures Helen2 conf to get NMP basic config
// 		  For speed reasons, the values are hardwired in this function
// PARAMETERS   : none
//
// RETURN VALUE : None
//
//------------------------------------------------------------------------------
extern void TSTB_ConfigureNmpMuxes(void);

/*******************************************************************************
 * NAME         : TBH_CCP_CheckMemory
 *
 * DESCRIPTION  : Compares memory content with the values transmitted by
 *                the CCP stub in the testbench
 *
 * PARAMETERS   : inBuffer; Pointer to memory to be verified
 *                inStep; Number of words to step between comparisons
 *
 * RETURN VALUE :  TRUE: Memory contains expected values
 *                FALSE: Memory content does not match
 *
 ******************************************************************************/
extern BOOL TSTB_TbhCcpLineCheck (UWORD32 *const inBuffer,
                               int            inLineCount,
                               int            inStep);

#define TBH_CCP_CheckMemory(inBuffer)\
    TBH_CCP_StepCheck (inBuffer,1)

#define TBH_CCP_StepCheck(inBuffer,inStep)\
    TSTB_TbhCcpLineCheck(inBuffer,TBH_CCP_LINE_COUNT,inStep)


//-------------------------------------------------------------------------------
// NAME         : TSTB_ConfigureEmiff       
//
// DESCRIPTION  : This function allows to configure EMIFF in SDR, DDR, or
//                Mobile DDR
// PARAMETERS   : SDRAM type
//
// RETURN VALUE : None
//
//------------------------------------------------------------------------------

extern void TSTB_ConfigureEmiff(UWORD32 sdram_type);
#endif /* __TESTBENCH_H__ */

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?