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

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

?? xutil_memtest.c

?? 關(guān)于xilinx大學(xué)計(jì)劃配需教程實(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一区二区三区免费野_久草精品视频
99精品视频在线免费观看| 久久精品亚洲精品国产欧美| 99精品视频在线播放观看| 国产精品99久久久久久有的能看| 青青草97国产精品免费观看无弹窗版 | 丁香桃色午夜亚洲一区二区三区| 极品少妇xxxx偷拍精品少妇| 国产永久精品大片wwwapp| 国产在线日韩欧美| 懂色一区二区三区免费观看| 成人午夜又粗又硬又大| heyzo一本久久综合| 91在线码无精品| 在线观看亚洲a| 欧美猛男男办公室激情| 日韩一区二区影院| 日韩欧美你懂的| 久久久久综合网| 国产精品麻豆久久久| 亚洲欧美另类久久久精品2019| 亚洲男人的天堂在线aⅴ视频| 亚洲激情图片小说视频| 亚洲一区在线电影| 久久精品999| 成人美女视频在线看| 色欧美88888久久久久久影院| 欧美精品乱码久久久久久按摩| 日韩午夜在线观看| 国产精品水嫩水嫩| 亚瑟在线精品视频| 国产精品综合二区| 91福利视频在线| 日韩精品一区二区在线| 国产精品天干天干在观线| 亚洲一区二区三区四区的| 精品在线一区二区三区| 99久久夜色精品国产网站| 欧美日韩久久久久久| 久久色中文字幕| 亚洲婷婷在线视频| 毛片av一区二区三区| 成人av中文字幕| 欧美精品1区2区3区| 日本一区二区三级电影在线观看 | 国产成人免费在线观看| 在线日韩av片| 久久综合999| 亚洲综合色噜噜狠狠| 国精产品一区一区三区mba视频 | 精品欧美一区二区久久 | 大胆亚洲人体视频| 欧美亚洲综合网| 国产视频视频一区| 日韩一区精品视频| 成人av网在线| 日韩久久久精品| 亚洲精品免费在线观看| 国产一区二三区| 欧美日韩卡一卡二| 一区免费观看视频| 国产一区免费电影| 8x8x8国产精品| 亚洲免费三区一区二区| 激情文学综合丁香| 欧美日韩国产bt| 亚洲少妇最新在线视频| 久久69国产一区二区蜜臀| 色婷婷亚洲婷婷| 国产欧美日韩不卡| 日本美女一区二区三区| 91麻豆国产香蕉久久精品| 久久蜜桃av一区二区天堂| 性做久久久久久久久| 99re热视频精品| 欧美激情一区二区在线| 狠狠狠色丁香婷婷综合激情| 欧美精品一卡二卡| 亚洲午夜激情网站| 91在线精品一区二区三区| 久久久99久久| 狠狠色狠狠色综合系列| 日韩一区二区三区在线视频| 亚洲成a人片综合在线| 97精品久久久午夜一区二区三区| 2019国产精品| 精品一区二区影视| 欧美精品1区2区3区| 性做久久久久久久免费看| 91成人免费在线视频| 毛片av一区二区三区| 欧美丰满少妇xxxbbb| 夜夜操天天操亚洲| 日本韩国欧美三级| 亚洲另类一区二区| 日本韩国精品一区二区在线观看| 国产精品欧美综合在线| 成人黄色av电影| 18成人在线视频| 成人动漫在线一区| 亚洲欧洲精品一区二区三区不卡| 顶级嫩模精品视频在线看| 久久久综合视频| 国产成人精品亚洲午夜麻豆| 国产调教视频一区| 成人av午夜影院| 亚洲欧美一区二区在线观看| 成人avav在线| 亚洲乱码国产乱码精品精小说 | 国产福利91精品一区| 久久久久久麻豆| 国产精品一卡二卡在线观看| 久久久久99精品一区| 国产99久久久久| 欧美极品少妇xxxxⅹ高跟鞋 | 成人av网站在线观看免费| 久久精品免视看| 成人动漫中文字幕| 一区二区三区在线视频免费 | 日韩亚洲欧美成人一区| 六月丁香婷婷色狠狠久久| www久久精品| 成人性生交大片免费| 亚洲精品网站在线观看| 欧美色爱综合网| 久久超碰97中文字幕| 国产伦精一区二区三区| 国产精品色在线| 欧美怡红院视频| 久久精品国产久精国产| 国产日韩亚洲欧美综合| 91老师片黄在线观看| 视频一区二区三区入口| 精品国产一区a| 成人99免费视频| 午夜久久久影院| 久久久五月婷婷| 色菇凉天天综合网| 日韩成人伦理电影在线观看| 国产日韩精品视频一区| 欧美亚洲一区三区| 国产一区二区不卡在线 | 国产成人av一区| 亚洲精品成人精品456| 91麻豆精品国产91久久久久久| 国模一区二区三区白浆| 亚洲精品一卡二卡| 精品va天堂亚洲国产| 99久久精品国产一区| 视频一区视频二区在线观看| 国产欧美在线观看一区| 欧美日韩一区视频| 国产传媒日韩欧美成人| 亚洲精品视频在线观看网站| 337p日本欧洲亚洲大胆精品| 91色婷婷久久久久合中文| 美女一区二区三区| 亚洲三级电影网站| 亚洲精品一区二区三区精华液| 色综合久久综合网欧美综合网| 精品一区二区三区在线视频| 亚洲精品国产第一综合99久久| 日韩欧美一级在线播放| 91麻豆国产在线观看| 九色porny丨国产精品| 夜夜揉揉日日人人青青一国产精品| 欧美不卡一区二区三区| 在线观看亚洲一区| 成人av高清在线| 国产在线精品免费av| 婷婷亚洲久悠悠色悠在线播放| 欧美激情艳妇裸体舞| 精品三级在线观看| 欧美日本一道本| 91久久精品网| 91在线视频官网| 国产一区二区三区国产| 奇米亚洲午夜久久精品| 尤物在线观看一区| 中文字幕一区二区5566日韩| 26uuu久久天堂性欧美| 欧美一区二区三区影视| 色狠狠av一区二区三区| 不卡一二三区首页| 国产成人免费视频精品含羞草妖精| 琪琪久久久久日韩精品| 亚洲一区二区视频在线观看| 中文字幕中文字幕在线一区| 久久色在线视频| 精品久久久三级丝袜| 日韩三级av在线播放| 欧美精品在线观看一区二区| 欧洲生活片亚洲生活在线观看| 成人av在线影院| 不卡大黄网站免费看| 丰满亚洲少妇av| 成+人+亚洲+综合天堂| 丁香婷婷深情五月亚洲| 成人av资源下载| 99这里只有久久精品视频| 成人高清在线视频|