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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? xutil_memtest.c

?? 本程序用xilinx EDK9.1運行
?? 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

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲香肠在线观看| 久久综合久久鬼色中文字| 日韩美女视频一区| 不卡欧美aaaaa| 中文字幕在线不卡一区 | 亚洲国产精品一区二区www| 色噜噜狠狠一区二区三区果冻| 亚洲精品国产无天堂网2021| 欧美日韩一区二区三区在线| 蜜臀va亚洲va欧美va天堂| 日韩精品一区二区三区在线观看| 国产乱色国产精品免费视频| 国产精品欧美经典| 在线观看日韩国产| 日本午夜精品视频在线观看| 国产欧美精品一区二区色综合朱莉| 97久久超碰国产精品| 亚洲成av人片一区二区梦乃| 欧美成人女星排行榜| 9久草视频在线视频精品| 亚洲www啪成人一区二区麻豆| 精品欧美一区二区久久| 不卡的av中国片| 日本不卡一区二区| 国产亚洲视频系列| 欧美艳星brazzers| 国产专区综合网| 樱桃国产成人精品视频| 欧美一区二区三区在线看| 波多野洁衣一区| 免费看日韩精品| 亚洲三级在线播放| 精品久久久久久久人人人人传媒 | 一区二区三区不卡视频在线观看| 欧美一级片在线| av毛片久久久久**hd| 奇米色一区二区三区四区| 国产日产欧美一区| 欧美一区二区三区四区久久| 成人综合婷婷国产精品久久| 日本在线不卡一区| 一区二区三区四区五区视频在线观看| 日韩三级视频中文字幕| 色婷婷av一区二区三区大白胸| 国产曰批免费观看久久久| 亚洲国产裸拍裸体视频在线观看乱了| 日本一区二区三区四区在线视频 | www国产亚洲精品久久麻豆| 在线精品国精品国产尤物884a| 国产一区二区三区四| 日韩电影免费一区| 亚洲一区二区三区小说| 丝袜诱惑亚洲看片| 中文字幕一区二区三区在线播放| 欧美一级欧美三级在线观看 | 欧美肥妇bbw| 欧美日韩一区二区三区不卡| 91在线小视频| 国产一区久久久| 免费看黄色91| 美日韩一区二区| 婷婷六月综合亚洲| 亚洲国产日产av| 亚洲国产va精品久久久不卡综合| 最新日韩av在线| 中文字幕一区不卡| 国产精品毛片大码女人| 欧美激情一区二区三区全黄 | 国产精品电影一区二区| 中文字幕av一区二区三区| 久久影视一区二区| 久久综合国产精品| 国产日韩精品一区二区浪潮av| 日韩一二三四区| 日韩一级免费观看| 日韩欧美另类在线| 2024国产精品| 久久综合国产精品| 中文子幕无线码一区tr| 国产精品久久久久婷婷二区次| 国产精品久久久一区麻豆最新章节| 国产精品嫩草影院com| 国产精品毛片久久久久久久| 亚洲欧美怡红院| 亚洲一区二区三区美女| 亚洲一区二区五区| 亚洲国产精品人人做人人爽| 偷拍自拍另类欧美| 麻豆91在线观看| 精品一区二区三区视频| 国产精品资源在线观看| 成人永久aaa| 91小宝寻花一区二区三区| 在线精品国精品国产尤物884a | 欧美高清视频不卡网| 7777女厕盗摄久久久| 精品国产乱码久久久久久久久| www一区二区| 亚洲欧洲一区二区在线播放| 亚洲自拍偷拍综合| 日本不卡视频在线| 粉嫩欧美一区二区三区高清影视| eeuss鲁片一区二区三区在线观看 eeuss鲁片一区二区三区在线看 | 波多野结衣91| 欧美日韩一级二级| 国产亚洲美州欧州综合国| 亚洲欧洲另类国产综合| 日日夜夜精品视频免费| 国产美女娇喘av呻吟久久 | 欧美日韩精品欧美日韩精品| 精品欧美黑人一区二区三区| 国产精品麻豆视频| 日日夜夜精品免费视频| 欧美日韩国产精品自在自线| 欧美成人艳星乳罩| 亚洲丝袜制服诱惑| 日韩国产欧美视频| 丁香婷婷深情五月亚洲| 欧美日韩成人综合天天影院| 久久综合狠狠综合久久综合88| 亚洲黄色免费电影| 国产福利视频一区二区三区| 欧美午夜精品久久久| 精品国产免费久久| 亚洲一区中文日韩| 国产福利不卡视频| 欧美高清dvd| 亚洲欧美日韩人成在线播放| 久久99久久久欧美国产| 91久久国产最好的精华液| 久久麻豆一区二区| 丝袜亚洲另类欧美| 色琪琪一区二区三区亚洲区| 精品国产3级a| 日韩电影在线一区| 日本二三区不卡| 中文字幕在线免费不卡| 国产精品一级片| 日韩精品最新网址| 婷婷开心激情综合| 欧美亚一区二区| 日韩毛片一二三区| 成人免费毛片高清视频| 久久久久久久综合狠狠综合| 丝袜亚洲精品中文字幕一区| 日本韩国精品在线| 亚洲免费大片在线观看| thepron国产精品| 国产日韩欧美不卡| 国模大尺度一区二区三区| 日韩欧美三级在线| 奇米影视一区二区三区小说| 欧美日韩视频在线观看一区二区三区| 国产精品蜜臀在线观看| 国产精品99久久久久久久女警 | 亚洲一区二区在线观看视频| 99视频在线观看一区三区| 中文字幕av免费专区久久| 黄网站免费久久| 日韩一区二区中文字幕| 日韩在线一区二区三区| 欧美另类久久久品| 亚瑟在线精品视频| 欧美日韩精品系列| 日本视频一区二区| 欧美一区二区三区啪啪| 日韩电影在线一区二区三区| 7777女厕盗摄久久久| 蓝色福利精品导航| 精品美女被调教视频大全网站| 国产综合色视频| 久久夜色精品一区| 国产成人鲁色资源国产91色综| 国产日韩av一区| 99re视频精品| 亚洲一区二区av在线| 色综合久久中文字幕综合网| 亚洲图片欧美视频| 欧美精品黑人性xxxx| 蜜芽一区二区三区| 欧美精品一区二区三区蜜桃| 国产.精品.日韩.另类.中文.在线.播放| 久久九九久久九九| 成人激情午夜影院| 亚洲精品亚洲人成人网| 欧美日韩国产系列| 老鸭窝一区二区久久精品| 久久久亚洲国产美女国产盗摄| 粉嫩嫩av羞羞动漫久久久| 亚洲欧美激情在线| 91精品在线麻豆| 国产乱码精品1区2区3区| 国产精品视频在线看| 在线精品视频一区二区| 日韩av午夜在线观看| 久久久久久久久97黄色工厂| 91视频免费看| 免费成人在线网站| 亚洲欧洲一区二区在线播放| 欧美另类z0zxhd电影|