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

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

?? xutil_memtest.c

?? ucos2在macroblaze上的移植代碼
?? C
?? 第 1 頁 / 共 2 頁
字號:
/* $Id: xutil_memtest.c,v 1.7 2003/12/18 00:08:26 linnj 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* </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));                }                /*

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
精品视频在线免费观看| 日本欧美大码aⅴ在线播放| 国产精品羞羞答答xxdd| 国产亚洲一本大道中文在线| 国产一区二区三区电影在线观看| 777午夜精品免费视频| 全国精品久久少妇| 精品粉嫩超白一线天av| 国产成人在线看| 国产精品人妖ts系列视频| aaa亚洲精品一二三区| 亚洲色图欧美在线| 欧美精品日日鲁夜夜添| 美女任你摸久久| 欧美高清一级片在线观看| 95精品视频在线| 亚洲成人av资源| 欧美不卡123| 97久久精品人人做人人爽| 亚洲午夜日本在线观看| 日韩女优毛片在线| 国产成人精品一区二区三区四区| 1区2区3区欧美| 欧美亚洲动漫另类| 免费观看久久久4p| 国产精品视频一二三区| 99精品一区二区三区| 91丨porny丨国产入口| 三级在线观看一区二区| 欧美视频一区二区三区四区| 视频一区二区三区中文字幕| 日本一区二区三区在线不卡| 在线区一区二视频| 国产.精品.日韩.另类.中文.在线.播放| 国产精品你懂的在线欣赏| 欧美亚洲一区二区在线观看| 国产综合色产在线精品| 亚洲一区二区三区四区在线免费观看| 日韩欧美国产午夜精品| www.日本不卡| 老鸭窝一区二区久久精品| 日韩美女视频一区二区| 久久欧美一区二区| 欧美另类z0zxhd电影| 波波电影院一区二区三区| 日韩**一区毛片| 亚洲男人天堂一区| 久久影视一区二区| 91精品国产综合久久精品图片| 99久久免费视频.com| 男女视频一区二区| 亚洲一卡二卡三卡四卡五卡| 国产精品日产欧美久久久久| 亚洲精品在线网站| 7777精品伊人久久久大香线蕉| 91在线看国产| 丁香婷婷综合色啪| 精品在线播放午夜| 亚洲最大的成人av| 日韩美女精品在线| 国产精品福利影院| 国产婷婷一区二区| 26uuu欧美| 精品欧美久久久| 日韩一级大片在线观看| 在线电影欧美成精品| 欧美精品一区二区高清在线观看| 制服丝袜中文字幕一区| 欧美日韩综合在线免费观看| 色综合天天综合网天天看片| 福利电影一区二区三区| 国产精品一区二区免费不卡| 国产一区二区三区在线看麻豆| 麻豆免费精品视频| 美女免费视频一区二区| 蜜桃av一区二区| 久久狠狠亚洲综合| 韩国av一区二区三区在线观看| 日韩电影在线免费观看| 日本vs亚洲vs韩国一区三区二区 | 精彩视频一区二区| 亚洲午夜久久久久久久久电影网 | 色婷婷久久综合| 99久久久无码国产精品| 99久久久精品| 91黄色激情网站| 欧美性xxxxxxxx| 欧美精品久久一区| 精品av久久707| 中文字幕乱码日本亚洲一区二区| 欧美国产一区二区在线观看| 中文子幕无线码一区tr| 1区2区3区国产精品| 伊人开心综合网| 五月天一区二区三区| 青青草国产精品亚洲专区无| 国产精品一区二区在线观看不卡 | 99久久综合狠狠综合久久| 99精品视频在线免费观看| 91久久精品网| 日韩三级中文字幕| 欧美高清一级片在线观看| 亚洲精品老司机| 奇米影视在线99精品| 国产91精品一区二区麻豆网站| 97se亚洲国产综合自在线不卡 | 97se亚洲国产综合自在线不卡 | 在线视频一区二区三| 欧美系列在线观看| 精品成人一区二区| 亚洲视频在线一区观看| 日本不卡在线视频| 成人激情开心网| 欧美日本视频在线| 久久久99精品久久| 亚洲国产成人av好男人在线观看| 狠狠v欧美v日韩v亚洲ⅴ| 成人18精品视频| 91精品国产aⅴ一区二区| 国产精品国产三级国产aⅴ无密码| 亚洲一区二区三区精品在线| 久久超级碰视频| 在线视频一区二区三| 久久久久国色av免费看影院| 亚洲国产欧美另类丝袜| 国产ts人妖一区二区| 欧美丰满高潮xxxx喷水动漫| 国产精品蜜臀在线观看| 日韩国产一二三区| 91视频在线观看免费| 日韩一区二区三区av| 亚洲男同1069视频| 国产传媒一区在线| 91精品国产欧美日韩| 亚洲色图丝袜美腿| 国产99久久久久| 欧美大片免费久久精品三p| 一区二区三区日韩在线观看| 国产成人免费视| 久久综合五月天婷婷伊人| 亚洲第一狼人社区| 日本久久精品电影| 中文字幕一区二区三区精华液 | 亚洲免费av观看| 国产精品一区二区视频| 日韩午夜激情视频| 亚洲国产精品尤物yw在线观看| av一区二区久久| 久久久久久久综合色一本| 老司机精品视频在线| 欧美日韩成人综合天天影院 | 男人的天堂久久精品| 欧洲在线/亚洲| 一区二区视频在线| 99在线精品免费| 国产精品青草综合久久久久99| 国产一级精品在线| 2022国产精品视频| 韩国成人在线视频| 欧美成人三级电影在线| 蜜臀av性久久久久蜜臀aⅴ流畅 | 精品日韩一区二区三区免费视频| 亚洲6080在线| 欧美久久一区二区| 同产精品九九九| 91精品国产综合久久久蜜臀图片| 午夜精品福利在线| 在线综合+亚洲+欧美中文字幕| 五月天激情综合网| 91精品在线一区二区| 日韩av高清在线观看| 日韩欧美的一区| 激情深爱一区二区| 久久无码av三级| 成人免费观看男女羞羞视频| 欧美激情一区二区三区不卡| 99久久国产综合色|国产精品| 中文字幕在线一区免费| 99国产欧美另类久久久精品| 一区二区三区四区在线| 欧美日韩国产高清一区| 日本欧美加勒比视频| 2020国产精品| kk眼镜猥琐国模调教系列一区二区 | 综合久久给合久久狠狠狠97色 | 国产精品久久久久影院亚瑟| 99免费精品视频| 亚洲一区在线免费观看| 欧美日韩国产综合视频在线观看| 日本大胆欧美人术艺术动态| 精品福利视频一区二区三区| 成人中文字幕在线| 亚洲激情男女视频| 日韩视频一区二区三区| 国产精品资源网站| 综合色天天鬼久久鬼色| 欧美一区二区成人6969| 成人小视频在线| 日韩高清一级片| 中文成人综合网|