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

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

?? xutil_memtest.c

?? 本程序用xilinx EDK9.1運行
?? C
?? 第 1 頁 / 共 2 頁
字號:
                 * 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 */

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日韩高清在线一区| 成人av网址在线| 成人一区二区三区在线观看| 欧美日韩激情一区二区三区| 国产日产欧产精品推荐色| 性做久久久久久| 91在线精品一区二区三区| 欧美v日韩v国产v| 亚洲国产毛片aaaaa无费看 | 在线观看区一区二| 亚洲理论在线观看| 韩国精品主播一区二区在线观看 | 亚洲色图.com| 国产成人综合视频| 日韩精品一区二区三区在线| 一区二区三区精品在线| 国产成人h网站| 精品国产乱码久久久久久久久| 亚洲国产成人porn| 91亚洲精品乱码久久久久久蜜桃 | 亚洲国产日韩一级| 91视频xxxx| 亚洲人成人一区二区在线观看| 国产成都精品91一区二区三| 久久综合色婷婷| 精品一区二区综合| 精品国产伦一区二区三区观看方式| 视频一区免费在线观看| 欧美顶级少妇做爰| 日韩电影一二三区| 日韩欧美aaaaaa| 国内成+人亚洲+欧美+综合在线| 91精品国产一区二区| 午夜精品久久久久久久久| 欧美视频一区二区三区| 亚洲va欧美va国产va天堂影院| 在线观看免费视频综合| 亚洲大片免费看| 99这里只有久久精品视频| 一本色道久久综合精品竹菊| 亚洲欧美在线观看| 91黄色免费版| 日韩精品国产欧美| 日韩欧美国产午夜精品| 国产一区二区调教| 国产精品卡一卡二| 欧美性xxxxxx少妇| 天堂蜜桃91精品| 久久综合色鬼综合色| 成人午夜大片免费观看| 亚洲欧美日韩国产成人精品影院| 欧美亚日韩国产aⅴ精品中极品| 亚洲mv在线观看| 久久久三级国产网站| 91偷拍与自偷拍精品| 亚洲va韩国va欧美va| 中文字幕中文字幕一区二区| 色视频一区二区| 免费亚洲电影在线| 日本一区二区三级电影在线观看 | 久久嫩草精品久久久精品一| 成人午夜伦理影院| 五月天一区二区三区| www亚洲一区| 色婷婷综合久久| 免费成人美女在线观看.| 欧美激情在线看| 欧美午夜精品电影| 国产黄色91视频| 亚洲第一激情av| 国产精品青草久久| 91精品麻豆日日躁夜夜躁| 国产suv精品一区二区三区| 亚洲国产日韩一级| 日本一区二区动态图| 欧美精品色综合| av亚洲精华国产精华精华 | 亚洲午夜羞羞片| 久久夜色精品国产噜噜av| 91国产成人在线| 国产成人精品影视| 秋霞av亚洲一区二区三| 亚洲色图都市小说| 国产亚洲女人久久久久毛片| 欧美日韩亚洲综合一区| 北条麻妃一区二区三区| 久久99精品国产91久久来源| 亚洲国产一区二区a毛片| 国产精品女同一区二区三区| 日韩欧美视频在线| 精品视频色一区| 色哟哟一区二区在线观看| 国产精品一区二区在线看| 日韩高清欧美激情| 亚洲高清不卡在线| 一区二区三区免费观看| 国产精品日韩成人| 国产亚洲短视频| 亚洲精品一区二区三区香蕉| 欧美人与z0zoxxxx视频| 91视视频在线观看入口直接观看www | 最新日韩在线视频| 国产女人18毛片水真多成人如厕 | 欧美在线看片a免费观看| 成人激情av网| 成人综合婷婷国产精品久久 | 欧美日韩在线不卡| 色噜噜狠狠色综合中国| 99re6这里只有精品视频在线观看 99re8在线精品视频免费播放 | 夜夜精品视频一区二区| 亚洲少妇中出一区| 成人欧美一区二区三区| 国产精品三级电影| 最新热久久免费视频| 中文字幕在线播放不卡一区| 国产精品免费视频一区| 国产精品福利在线播放| 中文字幕日韩一区| 亚洲精选在线视频| 亚洲国产精品久久人人爱| 亚洲成人动漫在线免费观看| 亚洲成人av在线电影| 天堂久久一区二区三区| 美女久久久精品| 国产乱码精品一区二区三| 国产盗摄精品一区二区三区在线| 丁香一区二区三区| 97成人超碰视| 欧美三级在线视频| 精品国产免费视频| 精品国产一区二区国模嫣然| 久久久噜噜噜久久中文字幕色伊伊| 久久久久久免费网| 国产精品色哟哟网站| 亚洲综合在线视频| 午夜电影一区二区三区| 婷婷开心久久网| 国产一区在线精品| 国产成a人亚洲| 99久久久久久| 欧美精品免费视频| 日韩精品一区二区三区老鸭窝| 国产日韩影视精品| 亚洲午夜羞羞片| 国产精品1024久久| 欧美色图激情小说| 国产日韩亚洲欧美综合| 亚洲18影院在线观看| 国产高清不卡一区| 欧美日韩国产中文| 国产三级精品视频| 性欧美疯狂xxxxbbbb| 国产成人综合自拍| 制服视频三区第一页精品| 国产日韩欧美不卡在线| 亚洲成人福利片| 成人精品视频.| 欧美一区午夜视频在线观看| 国产精品入口麻豆原神| 理论片日本一区| 欧美无人高清视频在线观看| 久久久精品黄色| 日韩高清不卡在线| 色香蕉久久蜜桃| 国产欧美一区二区精品性色超碰| 香蕉av福利精品导航| 高潮精品一区videoshd| 国产麻豆成人传媒免费观看| 97成人超碰视| 久久久国际精品| 天堂蜜桃91精品| 91婷婷韩国欧美一区二区| 欧美久久久久久久久中文字幕| 国产夜色精品一区二区av| 亚洲18色成人| 国产精品亚洲专一区二区三区 | 美国毛片一区二区三区| av激情综合网| 精品日韩在线一区| 日韩不卡手机在线v区| 99精品视频中文字幕| 精品国内二区三区| 国产亚洲一区二区在线观看| 激情五月婷婷综合| 欧美日韩国产另类不卡| 亚洲天堂中文字幕| 成人激情文学综合网| 精品国产91亚洲一区二区三区婷婷| 亚洲欧美日韩系列| 久久精品国产成人一区二区三区| 欧美制服丝袜第一页| 亚洲女同女同女同女同女同69| 国产成人在线免费观看| 亚洲精品一区二区三区福利| 亚洲一区二区在线免费看| 91老司机福利 在线| 国产精品久久久久精k8| 奇米影视7777精品一区二区| 欧美一区二区三区系列电影| 中文欧美字幕免费|