⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 test_init.h

📁 dsp tms320c6486的csl例程
💻 H
字号:
/*****************************************************************************\
*           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 2004, (C) Copyright 2003 Texas Instruments.  All rights reserved.
*------------------------------------------------------------------------------
*  Filename       : test_init.h
*  Date Created   : Nov 30, 2004
*  Last Modified  : Dec 14, 2004
*  Description    : HPI Test Initialization Parameters.
*  History        :
*  Project        : Himalaya
*  Author         : Raja
\*****************************************************************************/

/*------------------------------------------------------------------*/
/* Constant Definitions                                             */
/*------------------------------------------------------------------*/

/* No. of Iterations to run each payload back to back */
#define NO_OF_ITERATIONS (1)

/* No. of various payloads that will be tested */
#define NO_OF_PAYLOADS   (1)

/* This should match the number of entries in data_incr.h */
//#define MAX_BUFF_SIZE    (4 * 1024)
#define MAX_BUFF_SIZE    (1024)

/* The difference between visual inspection and the TB latency is compensated */
#define TB_READ_LATENCY_CPU_CYCLES  (886)
#define TB_WRITE_LATENCY_CPU_CYCLES (1166)


/*------------------------------------------------------------------*/
/* Data Declarations                                                */
/*------------------------------------------------------------------*/

#pragma DATA_SECTION(dsp_src_buff, "l2_src_buff")
#pragma DATA_ALIGN(dsp_src_buff, 8)
Uint32  dsp_src_buff[MAX_BUFF_SIZE]; // =  
//#include <data_incr.h>
//#include <data_incr_large.h>

#pragma DATA_SECTION(dsp_dst_buff, "l2_dst_buff")
#pragma DATA_ALIGN(dsp_dst_buff, 8)
Uint32  dsp_dst_buff[MAX_BUFF_SIZE];// = 
//#include <data_incr.h>
//#include <data_incr_large.h>

Uint32 profile_results[NO_OF_PAYLOADS + 1][NO_OF_ITERATIONS * 5];

Uint32 profileReadStartLow[NO_OF_PAYLOADS][NO_OF_ITERATIONS];
Uint32 profileReadStartHigh[NO_OF_PAYLOADS][NO_OF_ITERATIONS];
Uint32 profileReadStopLow[NO_OF_PAYLOADS][NO_OF_ITERATIONS];
Uint32 profileReadStopHigh[NO_OF_PAYLOADS][NO_OF_ITERATIONS];
Uint32 profileWriteStartLow[NO_OF_PAYLOADS][NO_OF_ITERATIONS];
Uint32 profileWriteStartHigh[NO_OF_PAYLOADS][NO_OF_ITERATIONS];
Uint32 profileWriteStopLow[NO_OF_PAYLOADS][NO_OF_ITERATIONS];
Uint32 profileWriteStopHigh[NO_OF_PAYLOADS][NO_OF_ITERATIONS];


/* Size of various payloads (in terms of 32-bit words) that will be tested */
//Uint32 payLoad[NO_OF_PAYLOADS] = {4, 16, 64, 1024, 4096};
Uint32 payLoad[NO_OF_PAYLOADS] = {256};

/*------------------------------------------------------------------*/
/* Function Prototypes                                              */
/*------------------------------------------------------------------*/


/*****************************************************************************\
* End of test_init.h
\*****************************************************************************/

⌨️ 快捷键说明

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