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

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

?? xutil_memtest.c

?? edk9.1關(guān)于xilinx大學(xué)計(jì)劃培訓(xùn)的實(shí)例程序
?? C
?? 第 1 頁 / 共 2 頁
字號(hào):
                 * 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 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 = (Xuint16) (~((Xuint32)(&Addr[i])));                Addr[i] = Val;            }            /*             * Check every word within the Words             * of tested memory             */            for (i = 0L; i < Words; i++)            {                 /* read memory location */                Word = Addr[i];                Val = (Xuint16) (~((Xuint32)(&Addr[i])));                if ((Word ^ Val) != 0x0000)                {                    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 = 0xDEAD;            }            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 8-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_MemoryTest8(Xuint8 *Addr,Xuint32 Words, Xuint8 Pattern,                          Xuint8 Subtest){    Xuint32 i;    Xuint32 j;    Xuint8 Val= XUT_MEMTEST_INIT_VALUE;    Xuint8 FirstVal= XUT_MEMTEST_INIT_VALUE;    Xuint8 Word;    XASSERT_NONVOID(Words != 0);    XASSERT_NONVOID(Subtest <= XUT_MAXTEST);    /*     * select the 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 < 8; 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 < 8; i++)                {                    /* write memory location */                    Addr[i] = Val;                    Val = (Xuint8) RotateLeft(Val, 8);                }                /*                 * Restore the reference 'Val' to the                 * initial value                 */                Val = 1 << j;                /* Read the values from each location that was written */                for (i = 0L; i < 8; i++)                {                    /* read memory location */                    Word = Addr[i];                    if (Word != Val)                    {                        return XST_MEMTEST_FAILED;                    }                    Val = (Xuint8) RotateLeft(Val, 8);                }            }            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 < 8; 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 < 8; i++)                {                    /* write memory location */                    Addr[i] = Val;                    Val = ~((Xuint8) RotateLeft(~Val, 8));                }                /*                 * Restore the reference 'Val' to the                 * initial value                 */                Val = ~(1 << j);                /* Read the values from each location that was written */                for (i = 0L; i < 8; i++)                {                    /* read memory location */                    Word = Addr[i];                    if (Word != Val)                    {                        return XST_MEMTEST_FAILED;                    }                    Val = ~((Xuint8) RotateLeft(~Val, 8));                }            }            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 = (Xuint8) (~((Xuint32)(&Addr[i])));                Addr[i] = Val;            }            /*             * Check every word within the Words             * of tested memory             */            for (i = 0L; i < Words; i++)            {                /* read memory location */                Word = Addr[i];                Val = (Xuint8) (~((Xuint32)(&Addr[i])));                if ((Word ^ Val) != 0x00)                {                    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 = 0xA5;            }            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;}/*****************************************************************************//**** Rotates the provided value to the left one bit position** @param    Input is value to be rotated to the left* @param    Width is the number of bits in the input data** @return** The resulting unsigned long value of the rotate left** @note** None.******************************************************************************/static Xuint32 RotateLeft(Xuint32 Input, Xuint8 Width){    Xuint32 Msb;    Xuint32 ReturnVal;    Xuint32 WidthMask;    Xuint32 MsbMask;    /*     * set up the WidthMask and the MsbMask     */    MsbMask = 1 << (Width-1);    WidthMask = (MsbMask << 1) - 1;    /*     * set the width of the Input to the correct width     */    Input = Input & WidthMask;    Msb = Input & MsbMask;    ReturnVal = Input << 1;    if (Msb != 0x00000000)    {        ReturnVal = ReturnVal | 0x00000001;    }    ReturnVal = ReturnVal & WidthMask;    return (ReturnVal);}#ifdef ROTATE_RIGHT/*****************************************************************************//**** Rotates the provided value to the right one bit position** @param    Input is value to be rotated to the right* @param    Width is the number of bits in the input data** @return** The resulting Xuint32 value of the rotate right** @note** None.******************************************************************************/static Xuint32 RotateRight(Xuint32 Input, Xuint8 Width){    Xuint32 Lsb;    Xuint32 ReturnVal;    Xuint32 WidthMask;    Xuint32 MsbMask;    /*     * set up the WidthMask and the MsbMask     */    MsbMask = 1 << (Width-1);    WidthMask = (MsbMask << 1) - 1;    /*     * set the width of the Input to the correct width     */    Input = Input & WidthMask;    ReturnVal = Input >> 1;    Lsb = Input & 0x00000001;    if (Lsb != 0x00000000)    {        ReturnVal = ReturnVal | MsbMask;    }    ReturnVal = ReturnVal & WidthMask;    return (ReturnVal);}#endif /* ROTATE_RIGHT */

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲第一二三四区| 成人免费视频视频| 3d动漫精品啪啪1区2区免费| 亚洲高清免费观看 | 国产精品乡下勾搭老头1| 久久奇米777| 91婷婷韩国欧美一区二区| 亚洲欧美日韩久久精品| 欧美日韩国产精品自在自线| 美女网站色91| 国产精品美女一区二区在线观看| 一本大道久久a久久综合| 亚洲6080在线| 国产无一区二区| 色av综合在线| 精品一区二区影视| 国产精品色婷婷久久58| 欧美日韩中文一区| 精品伊人久久久久7777人| 国产精品国产三级国产专播品爱网 | 中文字幕在线观看不卡视频| 在线亚洲欧美专区二区| 蜜臀91精品一区二区三区| 日本一区二区三区久久久久久久久不| 99久久久久免费精品国产 | 亚洲一区二区三区视频在线播放 | av男人天堂一区| 色欧美乱欧美15图片| 欧美日韩中文字幕一区| 麻豆freexxxx性91精品| 国产精品久久久久久久久图文区| 欧美亚洲一区二区三区四区| 精品在线免费观看| 亚洲三级久久久| 欧美不卡在线视频| 色久优优欧美色久优优| 国产一区二区三区久久久| 日本亚洲免费观看| 欧美国产一区在线| 日韩三级视频中文字幕| 91麻豆免费在线观看| 乱中年女人伦av一区二区| 亚洲三级电影全部在线观看高清| 日韩精品一区二区在线| 色哟哟国产精品| 成人性视频免费网站| 久久66热re国产| 亚洲国产精品欧美一二99| 国产女同性恋一区二区| 一本到不卡精品视频在线观看| 日韩毛片精品高清免费| 国产传媒欧美日韩成人| 国产欧美一区二区精品性色| 99久久久久免费精品国产 | 欧美在线不卡一区| 一区二区三区欧美| 欧美日韩国产免费| 麻豆成人久久精品二区三区小说| ww久久中文字幕| 成人小视频免费在线观看| 日本一区二区综合亚洲| 91免费观看视频在线| 国产欧美一区二区三区鸳鸯浴| 成人综合婷婷国产精品久久蜜臀 | 国产精品影视在线观看| 国产精品一二三四| 亚洲另类在线一区| 精品国产制服丝袜高跟| 日韩女优av电影| 国产成人av影院| 精品女同一区二区| 色综合一个色综合亚洲| 久久se精品一区精品二区| 极品瑜伽女神91| 欧美视频一区二区在线观看| 国产成人av一区二区三区在线观看| 亚洲欧美日本韩国| 一区二区在线观看视频| 亚洲欧美日韩中文播放| 亚洲美女在线一区| 日产精品久久久久久久性色| 日本欧美大码aⅴ在线播放| 麻豆久久一区二区| 韩国精品久久久| 国产二区国产一区在线观看| 不卡电影一区二区三区| 99久久er热在这里只有精品66| 91免费视频网| 欧美午夜精品久久久久久孕妇| 欧美丰满少妇xxxbbb| 欧美一区二区日韩| 久久久久久久久久久久久夜| 欧美国产欧美综合| 夜夜嗨av一区二区三区网页| 亚欧色一区w666天堂| 久久www免费人成看片高清| 国产乱对白刺激视频不卡| caoporen国产精品视频| 91福利国产成人精品照片| 884aa四虎影成人精品一区| 精品成人一区二区三区四区| 国产精品天美传媒| 亚洲最大的成人av| 精品一区二区在线观看| 91视视频在线直接观看在线看网页在线看| 91久久精品一区二区| 日韩欧美亚洲国产另类| 国产精品福利电影一区二区三区四区| 一个色妞综合视频在线观看| 久久99久久99小草精品免视看| 丁香桃色午夜亚洲一区二区三区| 91老司机福利 在线| 日韩欧美一级精品久久| 日韩美女精品在线| 久久99深爱久久99精品| 92国产精品观看| 亚洲精品一区二区三区在线观看 | 国产精品乱子久久久久| 午夜精品成人在线视频| 成人免费的视频| 欧美另类高清zo欧美| 国产精品毛片无遮挡高清| 蜜乳av一区二区| 一本久久a久久精品亚洲| 精品国产百合女同互慰| 一区二区三区欧美激情| 国产成人一级电影| 欧美一级欧美三级在线观看| 亚洲视频在线一区观看| 国产精品羞羞答答xxdd| 欧美一区二区女人| 一区二区三区在线视频观看| 国产一区二区h| 69堂精品视频| 一区二区三区在线高清| 国产成人在线视频免费播放| 欧美一级欧美三级| 五月婷婷激情综合| 99国内精品久久| 日本一区二区三区电影| 精品一区二区三区免费播放| 欧美疯狂性受xxxxx喷水图片| 亚洲欧美另类图片小说| 丁香啪啪综合成人亚洲小说 | 欧美一区二区三区爱爱| 国产精品国产三级国产有无不卡| 美女尤物国产一区| 久久久久久亚洲综合| 精品亚洲成a人| 久久综合国产精品| 经典三级一区二区| 精品福利av导航| 国产精品自拍毛片| 久久一夜天堂av一区二区三区 | 香蕉加勒比综合久久| 欧美日韩一区二区不卡| 亚洲高清在线精品| 91精品国产欧美日韩| 日韩高清在线观看| 精品日韩欧美在线| 精品久久国产字幕高潮| 岛国一区二区三区| 日本伦理一区二区| 日韩国产精品大片| 久久色在线观看| 国产欧美日韩在线视频| 91精品国产综合久久久蜜臀图片| 97se狠狠狠综合亚洲狠狠| 3atv一区二区三区| 国产精品成人在线观看| 国产呦精品一区二区三区网站| 欧美videossexotv100| 国产一区二区三区黄视频 | 久久不见久久见免费视频7 | 精品制服美女久久| 2023国产精华国产精品| 国产成人免费视频精品含羞草妖精| 久久亚洲影视婷婷| 成人久久久精品乱码一区二区三区| 欧美国产精品一区| 日日欢夜夜爽一区| 欧洲一区二区三区在线| 一区二区三区四区在线| 在线一区二区视频| 午夜欧美电影在线观看| 7777精品伊人久久久大香线蕉最新版 | 国产91精品久久久久久久网曝门| 欧美国产欧美综合| 色婷婷久久久亚洲一区二区三区| 一区二区三区国产精华| 欧美年轻男男videosbes| 免费在线一区观看| 久久久久久久久久电影| 91在线视频免费观看| 午夜精品在线看| 久久一二三国产| 色爱区综合激月婷婷| 免费成人美女在线观看.| 国产欧美日韩精品一区| 欧美视频在线一区|