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

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

?? xutil_memtest.c

?? <基于fpga的嵌入式設(shè)計(jì)上的光盤(pán)的第四章第二個(gè)實(shí)驗(yàn)
?? C
?? 第 1 頁(yè) / 共 2 頁(yè)
字號(hào):
/* $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

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
午夜精品免费在线| 中文字幕av一区二区三区免费看| 秋霞影院一区二区| 中文字幕欧美日本乱码一线二线| 久久69国产一区二区蜜臀| 精品日韩在线观看| 国产综合色精品一区二区三区| 日韩国产高清影视| 欧美精品一区二区三区一线天视频| 国产传媒日韩欧美成人| 日本成人超碰在线观看| 麻豆久久一区二区| 欧美伊人精品成人久久综合97 | 国产欧美日韩亚州综合| 欧美视频完全免费看| 国内外成人在线| 国产精品国产三级国产aⅴ原创| 欧美日韩成人在线| 91成人免费在线| 日本一区二区免费在线| 欧美日韩免费观看一区三区| 91网站最新网址| 色婷婷综合久久久久中文| 欧美精品久久一区二区三区| 在线观看国产91| 日韩极品在线观看| 国产盗摄视频一区二区三区| www.色精品| 欧美sm美女调教| 91丨porny丨最新| 免费日本视频一区| 亚洲欧美另类综合偷拍| 日产国产欧美视频一区精品| 亚洲国产精品v| 久久综合中文字幕| 99国产精品久久久久久久久久久| 国产精品视频九色porn| 亚洲国产婷婷综合在线精品| 午夜精品一区二区三区三上悠亚| 久久人人爽爽爽人久久久| 91丨porny丨首页| 亚洲欧美在线观看| 日韩精品1区2区3区| 欧美精品久久天天躁| 老司机免费视频一区二区三区| 宅男噜噜噜66一区二区66| 日韩电影在线观看一区| 成人av网站在线观看| 欧美一区二区三区不卡| 免费人成黄页网站在线一区二区| 成人高清免费观看| 亚洲精品国产a久久久久久 | 色综合久久99| 亚洲一区二区视频在线观看| 九九**精品视频免费播放| 久久嫩草精品久久久精品一| 午夜电影网亚洲视频| 成人激情午夜影院| 一区二区三区四区不卡视频| 欧美日韩成人高清| 伊人夜夜躁av伊人久久| 91精品国产综合久久久久久久 | 日韩一区二区麻豆国产| 亚洲精品免费电影| 成人美女在线视频| 久久久午夜精品| 美女看a上一区| 国产农村妇女毛片精品久久麻豆| 久久国产免费看| 91精品午夜视频| 国产一区二区三区| 久久亚洲欧美国产精品乐播 | 国产午夜精品久久久久久久 | 亚洲欧美电影一区二区| 国产91富婆露脸刺激对白| 久久综合五月天婷婷伊人| 一本色道a无线码一区v| 寂寞少妇一区二区三区| 日韩一区二区三区电影在线观看| 粉嫩在线一区二区三区视频| 日韩电影在线观看电影| 国产精品久久影院| 精品久久久久久久一区二区蜜臀| 精品综合久久久久久8888| 亚洲精品国产a久久久久久| 欧美无砖专区一中文字| 天天操天天综合网| 亚洲欧洲精品天堂一级| 久久网站最新地址| 91精品国产一区二区三区香蕉| 成人av在线播放网址| 毛片av一区二区| 五月激情综合网| 久久综合五月天婷婷伊人| 高清视频一区二区| 久久精品二区亚洲w码| 精品福利一区二区三区| 欧美午夜精品久久久久久超碰| 成人免费观看视频| 国产一区在线不卡| 奇米888四色在线精品| 久久综合一区二区| 欧美mv日韩mv| 欧美一区2区视频在线观看| 国产一区欧美日韩| 亚洲欧美日韩系列| 欧美一区二区性放荡片| 欧美片在线播放| 国产精品小仙女| 一区二区三区中文在线| 日韩一区在线播放| 日本一区二区高清| 欧美人伦禁忌dvd放荡欲情| 欧美亚男人的天堂| 国产精品一级片在线观看| 亚洲免费在线视频一区 二区| 日本一区二区视频在线| 中文字幕av一区二区三区高| 欧美图区在线视频| 欧美日韩亚洲另类| 欧美一区二区啪啪| 99视频在线精品| 91蜜桃免费观看视频| 麻豆精品久久精品色综合| 老司机免费视频一区二区三区| 国产精品久久久久久亚洲伦| 亚洲人被黑人高潮完整版| 一区二区三区电影在线播| 久久亚洲捆绑美女| 欧美日韩国产首页| 欧美一区二区三区四区视频| 欧美大片在线观看一区二区| 26uuu色噜噜精品一区二区| 91成人看片片| 4hu四虎永久在线影院成人| 日韩欧美一级二级三级| 亚洲国产精品v| 日韩一区二区三区四区| 久久精品人人做人人综合 | 精品成人私密视频| 国产精品久久久久影院亚瑟| 亚洲欧美一区二区久久| 午夜精品福利久久久| 国产精品自在欧美一区| 婷婷中文字幕一区三区| 国产乱码精品一区二区三| 91小视频免费看| 欧美日韩夫妻久久| 国产精品福利一区二区三区| 精品久久久久久久久久久院品网 | 成人免费视频视频在线观看免费| 在线视频国产一区| 日韩一区二区免费在线观看| 久久综合给合久久狠狠狠97色69| 欧美激情艳妇裸体舞| 亚洲高清免费一级二级三级| 日韩精品国产精品| 欧美成人a在线| 国产超碰在线一区| 亚洲九九爱视频| 国产精品久久网站| 日韩精品一二三| 国产成人精品一区二区三区网站观看 | 不卡视频在线看| 国产精品亚洲第一| 国产乱人伦精品一区二区在线观看| 99热99精品| 久久这里只有精品视频网| 亚洲综合色噜噜狠狠| 亚洲成在线观看| 国产成人鲁色资源国产91色综| 欧美日韩成人高清| 日韩手机在线导航| 欧美xingq一区二区| 一区二区高清视频在线观看| 国产99久久久国产精品潘金网站| 国产精品系列在线播放| 7777精品伊人久久久大香线蕉的 | 91麻豆精品国产91久久久资源速度| 中文字幕av一区二区三区免费看| 秋霞电影一区二区| 欧美高清视频一二三区| 日韩欧美黄色影院| 午夜免费久久看| 国产精品资源网| 精品欧美一区二区在线观看| 欧美精品一区二区三区蜜桃| 日韩精品一区第一页| 欧美图区在线视频| 亚洲成人免费在线观看| 91国产精品成人| 欧美v亚洲v综合ⅴ国产v| 日本系列欧美系列| 欧美精品aⅴ在线视频| 精品国产乱码久久久久久老虎| 日韩av不卡一区二区| a4yy欧美一区二区三区| 国产精品免费视频观看| 亚洲成人动漫在线免费观看| 欧美在线观看视频一区二区三区|