亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? xutil_memtest.c

?? Xilinx XC4VSX35為核心的 XtremeDSP Development Kit-IV 開發(fā)板的例程
?? C
?? 第 1 頁 / 共 2 頁
字號:
/* $Id: xutil_memtest.c,v 1.9 2005/01/04 18:12:29 moleres Exp $ *//********************************************************************************       XILINX IS PROVIDING THIS DESIGN, CODE, OR INFORMATION "AS IS"*       AS A COURTESY TO YOU, SOLELY FOR USE IN DEVELOPING PROGRAMS AND*       SOLUTIONS FOR XILINX DEVICES.  BY PROVIDING THIS DESIGN, CODE,*       OR INFORMATION AS ONE POSSIBLE IMPLEMENTATION OF THIS FEATURE,*       APPLICATION OR STANDARD, XILINX IS MAKING NO REPRESENTATION*       THAT THIS IMPLEMENTATION IS FREE FROM ANY CLAIMS OF INFRINGEMENT,*       AND YOU ARE RESPONSIBLE FOR OBTAINING ANY RIGHTS YOU MAY REQUIRE*       FOR YOUR IMPLEMENTATION.  XILINX EXPRESSLY DISCLAIMS ANY*       WARRANTY WHATSOEVER WITH RESPECT TO THE ADEQUACY OF THE*       IMPLEMENTATION, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OR*       REPRESENTATIONS THAT THIS IMPLEMENTATION IS FREE FROM CLAIMS OF*       INFRINGEMENT, IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS*       FOR A PARTICULAR PURPOSE.**       (c) Copyright 2002 Xilinx Inc.*       All rights reserved.*******************************************************************************//*****************************************************************************//**** @file xutil_memtest.c** Contains the memory test utility functions.** <pre>* MODIFICATION HISTORY:** Ver    Who    Date    Changes* ----- ---- -------- -----------------------------------------------* 1.00a ecm  11/01/01 First release* 1.00a xd   11/03/04 Improved support for doxygen.* </pre>******************************************************************************//***************************** Include Files ********************************/#include "xbasic_types.h"#include "xstatus.h"#include "xutil.h"/************************** Constant Definitions ****************************//************************** Function Prototypes *****************************/static Xuint32 RotateLeft(Xuint32 Input, Xuint8 Width);/* define ROTATE_RIGHT to give access to this functionality *//* #define ROTATE_RIGHT */#ifdef ROTATE_RIGHTstatic Xuint32 RotateRight(Xuint32 Input, Xuint8 Width);#endif /* ROTATE_RIGHT*//*****************************************************************************//**** Performs a destructive 32-bit wide memory test.** @param    Addr is a pointer to the region of memory to be tested.* @param    Words is the length of the block.* @param    Pattern is the constant used for the constant pattern test, if 0,*           0xDEADBEEF is used.* @param    Subtest is the test selected. See xutil.h for possible values.** @return** - XST_MEMTEST_FAILED is returned for a failure* - XST_SUCCESS is returned for a pass** @note** Used for spaces where the address range of the region is smaller than* the data width. If the memory range is greater than 2 ** width,* the patterns used in XUT_WALKONES and XUT_WALKZEROS will repeat on a* boundry of a power of two making it more difficult to detect addressing* errors. The XUT_INCREMENT and XUT_INVERSEADDR tests suffer the same* problem. Ideally, if large blocks of memory are to be tested, break* them up into smaller regions of memory to allow the test patterns used* not to repeat over the region tested.******************************************************************************/XStatus XUtil_MemoryTest32(Xuint32 *Addr,Xuint32 Words,Xuint32 Pattern,                           Xuint8 Subtest){    Xuint32 i;    Xuint32 j;    Xuint32 Val = XUT_MEMTEST_INIT_VALUE;    Xuint32 FirstVal = XUT_MEMTEST_INIT_VALUE;    Xuint32 Word;    XASSERT_NONVOID(Words != 0);    XASSERT_NONVOID(Subtest <= XUT_MAXTEST);    /*     * Select the proper Subtest     */    switch (Subtest)    {        case XUT_ALLMEMTESTS:        /* this case executes all of the Subtests */        /* fall through case statement */        case XUT_INCREMENT:        {            /*             * Fill the memory with incrementing             * values starting from 'FirstVal'             */            for (i = 0L; i < Words; i++)            {                Addr[i] = Val;                /* write memory location */                Val++;            }            /*             * Restore the reference 'Val' to the             * initial value             */            Val = FirstVal;            /*             * Check every word within the Words             * of tested memory and compare it             * with the incrementing reference             * Val             */            for (i = 0L; i < Words; i++)            {                Word = Addr[i];                if (Word != Val)                {                    return XST_MEMTEST_FAILED;                }                Val++;            }            if (Subtest != XUT_ALLMEMTESTS)            {                return XST_SUCCESS;            }        } /* end of case 1 */        /* fall through case statement */        case XUT_WALKONES:        {            /*             * set up to cycle through all possible initial             * test Patterns for walking ones test             */            for (j = 0L; j < 32; j++)            {                /*                 * Generate an initial value for walking ones test to test for bad                 * data bits                 */                Val = 1 << j;                /*                 * START walking ones test                 * Write a one to each data bit indifferent locations                 */                for (i = 0L; i < 32; i++)                {                    /* write memory location */                    Addr[i] = Val;                    Val = (Xuint32) RotateLeft(Val, 32);                }                /*                 * Restore the reference 'Val' to the                 * initial value                 */                Val = 1 << j;                /* Read the values from each location that was written */                for (i = 0L; i < 32; i++)                {                    /* read memory location */                    Word = Addr[i];                    if (Word != Val)                    {                        return XST_MEMTEST_FAILED;                    }                    Val = (Xuint32) RotateLeft(Val, 32);                }            }            if (Subtest != XUT_ALLMEMTESTS)            {                return XST_SUCCESS;            }        } /* end of case 2 */        /* fall through case statement */        case XUT_WALKZEROS:        {            /*             * set up to cycle through all possible             * initial test Patterns for walking zeros test             */            for (j = 0L; j < 32; j++)            {                /*                 * Generate an initial value for walking ones test to test for                 * bad data bits                 */                Val = ~(1 << j);                /*                 * START walking zeros test                 * Write a one to each data bit indifferent locations                 */                for (i = 0L; i < 32; i++)                {                    /* write memory location */                    Addr[i] = Val;                    Val = ~((Xuint32) RotateLeft(~Val, 32));                }                /*                 * Restore the reference 'Val' to the                 * initial value                 */                Val = ~(1 << j);                /* Read the values from each location that was written */                for (i = 0L; i < 32; i++)                {                    /* read memory location */                    Word = Addr[i];                    if (Word != Val)                    {                        return XST_MEMTEST_FAILED;                    }                    Val = ~((Xuint32) RotateLeft(~Val, 32));                }            }            if (Subtest != XUT_ALLMEMTESTS)            {                return XST_SUCCESS;            }        } /* end of case 3 */        /* fall through case statement */        case XUT_INVERSEADDR:        {            /* Fill the memory with inverse of address */            for (i = 0L; i < Words; i++)            {                /* write memory location */                Val = (Xuint32) (~((Xuint32)(&Addr[i])));                Addr[i] = Val;            }            /*             * Check every word within the Words             * of tested memory             */            for (i = 0L; i < Words; i++)            {                /* Read the location */                Word = Addr[i];                Val = (Xuint32) (~((Xuint32)(&Addr[i])));                if ((Word ^ Val) != 0x00000000)                {                    return XST_MEMTEST_FAILED;                }            }            if (Subtest != XUT_ALLMEMTESTS)            {                return XST_SUCCESS;            }        } /* end of case 4 */        /* fall through case statement */        case XUT_FIXEDPATTERN:        {            /*             * Generate an initial value for             * memory testing             */            if (Pattern == 0)            {                Val = 0xDEADBEEF;            }            else            {                Val = Pattern;            }            /*             * Fill the memory with fixed pattern             */            for (i = 0L; i < Words; i++)            {                /* write memory location */                Addr[i] = Val;            }            /*             * Check every word within the Words             * of tested memory and compare it             * with the fixed pattern             */            for (i = 0L; i < Words; i++)            {                /* read memory location */                Word = Addr[i];                if (Word != Val)                {                    return XST_MEMTEST_FAILED;                }            }            if (Subtest != XUT_ALLMEMTESTS)            {                return XST_SUCCESS;            }        } /* end of case 5 */        /* this break is for the prior fall through case statements */        break ;        default:        {            return XST_MEMTEST_FAILED;        }    }  /* end of switch */    /* Successfully passed memory test ! */    return XST_SUCCESS;}/*****************************************************************************//**** Performs a destructive 16-bit wide memory test.** @param    Addr is a pointer to the region of memory to be tested.* @param    Words is the length of the block.* @param    Pattern is the constant used for the constant pattern test, if 0,*           0xDEADBEEF is used.* @param    Subtest is the test selected. See xutil.h for possible values.** @return** - XST_MEMTEST_FAILED is returned for a failure* - XST_SUCCESS is returned for a pass** @note** Used for spaces where the address range of the region is smaller than* the data width. If the memory range is greater than 2 ** width,* the patterns used in XUT_WALKONES and XUT_WALKZEROS will repeat on a* boundry of a power of two making it more difficult to detect addressing* errors. The XUT_INCREMENT and XUT_INVERSEADDR tests suffer the same* problem. Ideally, if large blocks of memory are to be tested, break* them up into smaller regions of memory to allow the test patterns used* not to repeat over the region tested.******************************************************************************/XStatus XUtil_MemoryTest16(Xuint16 *Addr,Xuint32 Words, Xuint16 Pattern,                           Xuint8 Subtest){    Xuint32 i;    Xuint32 j;    Xuint16 Val= XUT_MEMTEST_INIT_VALUE;    Xuint16 FirstVal= XUT_MEMTEST_INIT_VALUE;    Xuint16 Word;    XASSERT_NONVOID(Words != 0);    XASSERT_NONVOID(Subtest <= XUT_MAXTEST);    /*     * selectthe proper Subtest(s)     */    switch (Subtest)    {        case XUT_ALLMEMTESTS:        /* this case executes all of the Subtests */        /* fall through case statement */        case XUT_INCREMENT:        {            /*             * Fill the memory with incrementing             * values starting from 'FirstVal'             */            for (i = 0L; i < Words; i++)            {                /* write memory location */                Addr[i] = Val;                Val++;            }            /*             * Restore the reference 'Val' to the             * initial value             */            Val = FirstVal;            /*             * Check every word within the Words             * of tested memory and compare it             * with the incrementing reference             * Val             */            for (i = 0L; i < Words; i++)            {                /* read memory location */                Word = Addr[i];                if (Word != Val)                {                    return XST_MEMTEST_FAILED;                }                Val++;            }            if (Subtest != XUT_ALLMEMTESTS)            {                return XST_SUCCESS;            }        } /* end of case 1 */        /* fall through case statement */        case XUT_WALKONES:        {            /*             * set up to cycle through all possible initial test             * Patterns for walking ones test             */            for (j = 0L; j < 16; j++)            {                /*                 * Generate an initial value for walking ones test to test for bad                 * data bits                 */                Val = 1 << j;                /*                 * START walking ones test                 * Write a one to each data bit indifferent locations                 */                for (i = 0L; i < 16; i++)                {                    /* write memory location */                    Addr[i] = Val;                    Val = (Xuint16) RotateLeft(Val, 16);                }                /*                 * Restore the reference 'Val' to the                 * initial value                 */                Val = 1 << j;                /* Read the values from each location that was written */                for (i = 0L; i < 16; i++)                {                    /* read memory location */                    Word = Addr[i];                    if (Word != Val)                    {                        return XST_MEMTEST_FAILED;                    }                    Val = (Xuint16) RotateLeft(Val, 16);                }            }            if (Subtest != XUT_ALLMEMTESTS)            {                return XST_SUCCESS;            }        } /* end of case 2 */        /* fall through case statement */        case XUT_WALKZEROS:        {            /*             * set up to cycle through all possible initial             * test Patterns for walking zeros test             */            for (j = 0L; j < 16; j++)            {                /*                 * Generate an initial value for walking ones                 * test to test for bad                 * data bits                 */                Val = ~(1 << j);                /*                 * START walking zeros test                 * Write a one to each data bit indifferent locations                 */                for (i = 0L; i < 16; i++)                {                    /* write memory location */                    Addr[i] = Val;                    Val = ~((Xuint16) RotateLeft(~Val, 16));                }                /*                 * Restore the reference 'Val' to the

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲黄色录像片| 一区二区欧美视频| 欧美日韩一本到| 毛片av中文字幕一区二区| 亚洲三级在线观看| 久久伊99综合婷婷久久伊| 欧美在线观看一二区| 国产福利一区二区| 日本美女一区二区| 一区二区三区在线免费| 国产区在线观看成人精品 | 五月激情六月综合| 国产午夜久久久久| 欧美一区二区三区不卡| 色av成人天堂桃色av| 国产精品一区二区久激情瑜伽 | 日韩欧美国产一区在线观看| 北条麻妃一区二区三区| 久久精品国产亚洲高清剧情介绍 | 色婷婷av一区二区三区大白胸| 黑人巨大精品欧美黑白配亚洲| 亚洲一区二区欧美日韩| 国产精品午夜久久| 久久久久久免费| 欧美一区二区三区在线| 欧美四级电影网| 国产欧美日韩久久| 日韩欧美国产三级电影视频| 欧美在线免费观看亚洲| 91在线观看美女| 国产成人av电影| 国产综合久久久久久鬼色| 日本一区中文字幕| 婷婷国产在线综合| 亚洲线精品一区二区三区八戒| 最新成人av在线| 亚洲国产精品精华液2区45| 欧美sm极限捆绑bd| 精品欧美久久久| 精品对白一区国产伦| 欧美tickling网站挠脚心| 91精品久久久久久久99蜜桃| 欧美精品tushy高清| 欧美日本一道本在线视频| 在线观看日韩精品| 欧美写真视频网站| 欧美日韩一区中文字幕| 69久久夜色精品国产69蝌蚪网| 欧美图区在线视频| 欧美日本国产视频| 在线观看91av| 欧美一区二区三区四区久久| 亚洲一区二区综合| 亚洲国产精品久久久男人的天堂| 亚洲午夜一二三区视频| 性欧美大战久久久久久久久| 午夜激情久久久| 麻豆国产一区二区| 国产九色精品成人porny | 激情亚洲综合在线| 韩国女主播一区| 成人精品鲁一区一区二区| 成人av片在线观看| 91久久一区二区| 91麻豆精品国产无毒不卡在线观看 | 欧美日韩一区二区三区视频| 欧美高清视频一二三区| 日韩精品一区二区三区三区免费| 久久久久久久综合日本| 亚洲视频在线一区观看| 亚洲狠狠爱一区二区三区| 免费久久精品视频| 国产91精品免费| 色视频一区二区| 欧美日韩精品电影| 精品成人私密视频| 综合自拍亚洲综合图不卡区| 午夜a成v人精品| 国内偷窥港台综合视频在线播放| 成人性生交大片免费看在线播放| 91福利国产精品| 欧美成人精品3d动漫h| 日韩一区中文字幕| 青青草原综合久久大伊人精品优势| 国内精品国产成人| 91九色02白丝porn| 26uuu久久天堂性欧美| 亚洲欧洲99久久| 日韩av一级片| 不卡高清视频专区| 欧美一级专区免费大片| 中文字幕在线免费不卡| 免费成人美女在线观看.| 99re这里只有精品视频首页| 91精品国产全国免费观看| 国内精品伊人久久久久影院对白| 91啪在线观看| 久久午夜羞羞影院免费观看| 一二三区精品视频| 高清不卡在线观看av| 91.麻豆视频| 亚洲三级在线看| 国产成人午夜视频| 777a∨成人精品桃花网| 亚洲精品大片www| 国产91精品精华液一区二区三区 | 国产日韩精品视频一区| 视频在线在亚洲| 色狠狠综合天天综合综合| 久久中文字幕电影| 蜜臀av性久久久久蜜臀aⅴ流畅 | 另类成人小视频在线| 欧美在线小视频| 日韩一区在线看| 国产成人av电影在线| 日韩美女天天操| 午夜欧美电影在线观看| av成人动漫在线观看| 久久久久久久久免费| 久久91精品国产91久久小草 | 亚洲国产精品精华液ab| 另类小说综合欧美亚洲| 精品视频全国免费看| 亚洲精品国产高清久久伦理二区| 懂色av一区二区三区免费看| 日韩免费电影网站| 日韩va欧美va亚洲va久久| 在线免费不卡电影| 国产精品久久三| 国产成a人无v码亚洲福利| 久久综合久久鬼色中文字| 免费在线观看精品| 日韩一区二区三区视频| 偷拍与自拍一区| 911精品产国品一二三产区| 亚洲国产综合色| 欧美精品在线一区二区| 五月综合激情日本mⅴ| 欧美日韩另类一区| 亚洲高清在线视频| 欧美在线观看视频一区二区| 亚洲精品国产精华液| 色综合天天综合网天天看片| 1000精品久久久久久久久| 99久久99久久精品免费观看 | 中文欧美字幕免费| 99精品欧美一区二区三区小说 | 91精品国产麻豆国产自产在线| 亚洲成人自拍网| 制服.丝袜.亚洲.中文.综合| 视频一区二区不卡| 精品女同一区二区| 91精品一区二区三区在线观看| 午夜精彩视频在线观看不卡| 欧美一区中文字幕| 国产精品综合一区二区三区| 亚洲国产精品99久久久久久久久| aaa亚洲精品| 亚洲影视在线观看| 91精品国产品国语在线不卡| 韩国精品在线观看| 国产精品天美传媒| 欧美性生活久久| 蜜桃av一区二区三区| 久久精品视频一区二区三区| 99在线精品观看| 午夜电影久久久| 日韩欧美国产综合| 国产成人精品影视| 一区二区三区精品在线| 欧美一区二区日韩一区二区| 国产一区啦啦啦在线观看| 国产精品乱码妇女bbbb| 欧美亚洲国产一区二区三区| 日本视频免费一区| 国产精品久久久久一区二区三区共| 一本到一区二区三区| 日韩av不卡在线观看| 国产女人18水真多18精品一级做| 色婷婷久久久久swag精品| 日本不卡123| 中文字幕亚洲视频| 欧美久久久久免费| 成人午夜在线播放| 日本午夜精品一区二区三区电影| 久久久噜噜噜久久中文字幕色伊伊| 97精品久久久午夜一区二区三区 | 免费在线观看一区二区三区| 中文字幕不卡在线观看| 8x8x8国产精品| www.日本不卡| 日韩成人免费在线| 日韩美女精品在线| 欧美va日韩va| 91国模大尺度私拍在线视频| 黄色精品一二区| 亚洲国产aⅴ天堂久久| 日本一区二区三区在线不卡| 欧美一区二区网站| 色拍拍在线精品视频8848|