£¨2£©¶Ô¡£ÈôM1ºÍM2Êǹæ¸ñ»¯Êý£¬½áÂÛÕýÈ·¡£
2.2.4½â´ðÌâ
1.ÊԱȽ϶¨µã´ø·ûºÅÊýÔÚ¼ÆËã»úÄÚµÄËÄÖÖ±íʾ·½·¨¡£
´ð£º´ø·ûºÅÊýÔÚ¼ÆËã»úÄڵıíʾ·½·¨ÓÐÔÂë¡¢·´Âë¡¢²¹Âë¡¢ÒÆÂë¡£ÔÂë±íʾ·½·¨¼òµ¥Ò×¶®£¬³Ë³ýÔËËã¹æÔò¼òµ¥£¬µ«¼Ó¡¢¼õÔËËãµÄʵÏֱȽϸ´ÔÓ¡£²¹ÂëµÄÌØµãÊǽøÐмӼõ·¨ÔËËã¹æÔò¼òµ¥£¬Õý¸ºÊýµÄ´¦Àí·½·¨Ò»Ö¡£·´Âëͨ³£ÓÃÀ´¼ÆËã²¹Â룬ÓÉÓÚÆäÔËËã²»·½±ã£¬ÔÚ¼ÆËã»úÖÐûÓеõ½Êµ¼ÊÓ¦Óá£ÒÆÂëÓÉÓÚ±£³ÖÁËÊý¾ÝÔÓеĴóС˳Ðò£¬±ãÓÚ½øÐвÙ×÷£¬³£ÓÃÓÚ±íʾ¸¡µãÊýÖеĽ×Â룬·½±ã¸¡µãÔËËãµÄ²Ù×÷¡£ 2.Éè¼Æ²¹Âë±íʾµÄÄ¿µÄÊÇʲô£¿
´ð£ºÉè¼Æ²¹Âë±íʾ·¨µÄÄ¿µÄÊÇʹ·ûºÅλ²ÎÓëÔËË㣬´Ó¶ø¼ò»¯¼Ó¼õ·¨µÄ¹æÔò£¬Ê¹¼õ·¨ÔËËãת»¯Îª¼Ó·¨ÔËË㣬´Ó¶ø¼ò»¯»úÆ÷µÄÔËËãÆ÷µç·¡£ 3.ÊÔÎʲÉÓÃʲôÑùµÄ»úÆ÷ÊýÐÎʽ¿ÉÓÃÈ«0±íʾ¸¡µãÊýµÄ»úÆ÷0. ´ð£º½×ÂëÓÃÒÆÂë±íʾ£¬Î²ÊýÓÃÔÂë»ò²¹Âë±íʾʱ£¬¸¡µãÊýµÄ»úÆ÷Áã¿ÉÒÔÓÃÈ«0À´±íʾ£¬Õâ¾ÍÊÇΪʲô¸¡µãÊýµÄ½×Âë³£ÓÃÒÆÂëÀ´±íʾµÄÔÒò¡£
4.ÊÔÊö¸¡µãÊý¹æ¸ñ»¯µÄÄ¿µÄ¡¢·½·¨¡£
´ð°¸£º¸¡µãÊýµÄ¹æ¸ñ»¯ÊÇʹ¸¡µãÊýµÄβÊýµÄ×î¸ßÊýֵλΪÓÐЧÊýλ¡£µ±Î²ÊýÓò¹Âë±íʾʱ£¬·ûºÅλÓëСÊýµãºóµÄµÚһλ²»ÏàµÈÔòΪÒѹæ¸ñ»¯Êý¾Ý£¬·ñÔòÊǷǹæ¸ñ»¯Êý¾Ý¡£Í¨¹ý¹æ¸ñ»¯£¬¿ÉÒÔ±£Ö¤ÔËËãÊý¾ÝµÄ¾«¶È¡£Í¨³£²ÉÓÃÏò×󹿏ñ»¯£¬¼´Î²Êýÿ×óÒÆ1룬½×Âë¼õ1£¬Ö±ÖÁ¹æ¸ñ»¯Íê³É¡£
5.ÔÚ¼ì´íÂëÖУ¬ÆæÅ¼Ð£Ñé·¨ÄÜ·ñ¶¨Î»·¢Éú´íÎóµÄÐÅϢλ£¿ÊÇ·ñ¾ßÓоÀ´íÄÜÁ¦£¿
´ð£º£¨1£©ÆæÅ¼Ð£Ñé·¨²»Äܶ¨Î»·¢Éú´íÎóµÄÐÅϢλ¡£ £¨2£©ÆæÅ¼Ð£Ñ鷨ûÓоÀ´íÄÜÁ¦¡£ 6.¼òÊöCRCµÄ¾À´íÔÀí¡£
´ð:CRCÂë¾ÍÊÇÒ»ÖÖ¾À´íÄÜÁ¦½ÏÇ¿µÄ±àÂë¡£ÔÚ½øÐÐУÑéʱ£¬½«CRCÂë¶àÏîʽÓëÉú³É¶àÏîʽG(X)Ïà³ý£¬ÈôÓàÊýΪ0£¬Ôò±íÃ÷Êý¾ÝÕýÈ·£»µ³ÓàÊý²»Îª0ʱ£¬ËµÃ÷Êý¾ÝÓÐ´í¡£Ö»ÒªÑ¡ÔñÊʵ±µÄÉú³É¶àÏîʽG(X)£¬ÓàÊýÓëCRCÂë³ö´íλλÖõĶÔÓ¦¹ØÏµÊÇÒ»¶¨µÄ£¬ÓÉ´Ë¿ÉÒÔÓÃÓàÊý×÷ΪÅжϳö´íλÖõÄÒÀ¾Ý¶ø¾ÀÕý´íÎó¡£ 2.3.1¶¨µãÊýµÄ±íʾ
1.½«±í2.1£¨a£©ÖеıàÂëת»¯³ÉÊ®½øÖÆÊýÖµ¡£
±í2.1£¨a£©ÌâÄ¿
ÔÂë 0.1010 1.1111 1.1010 ÔÂë 0£®1010 1.1111 1.1010 Ê®½øÖÆ Ê®½øÖÆ 0.625 -0.9375 -0.625 ·´Âë 0,1010 1.1111 1.1010 ·´Âë 0.1010 1.1111 1.1010 Ê®½øÖÆ Ê®½øÖÆ 0.625 0 -0.3125 ²¹Âë 0.1010 1.1111 1.1010 ²¹Âë 0.1010 1.1111 1.1010 Ê®½øÖÆ Ê®½øÖÆ 0.625 -0.0625 -0.375 ±í2.1£¨b£©µÄ´ð°¸
2.ÏÂÁдúÂëÈô¿´×öASCIIÂë¡¢ÕûÊý²¹Âë¡¢8421Âëʱ·Ö±ð´ú±íʲô£¿ 77H 37H
½â£º77H¿´×÷ASCIIÂë¡¢ÕûÊýÂë¡¢8421Âëʱ·Ö±ð´ú±í×Ö·û¡®w¡¯¡¢Êý
119¡¢Êý77£»
37H¿´×÷ASCIIÂë¡¢ÕûÊýÂë¡¢8421Âëʱ·Ö±ð´ú±í×Ö·û¡®7¡¯¡¢Êý
55¡¢Êý37.
3.×Ö³¤Îª8룬·Ö±ðÇóx=+1000(2)ºÍx=-1000(2)µÄÒÆÂë¡£
½â£º£¨1£©x=+1000(2),Ôò¡¾x¡¿²¹=00001000£¬¡¾x¡¿ÒÆ=27+¡¾x¡¿²¹
=10000000+00001000=10001000
£¨2£©x=-1000(2),Ôò¡¾x¡¿²¹=11111000£¬¡¾x¡¿ÒÆ=27+¡¾x¡¿²¹
=10000000+11111000=01111000
4.ÒÔϸ÷Êý¾ùÎÞ·ûºÅÊý£¬Çë±È½ÏËüÃǵĴóС£º
321FHºÍA521H 80HºÍ32H 8000HºÍAF3BH 72HºÍ31H ½â£º321FH
6.д³öÏÂÁи÷ÊýµÄÔÂë¡¢·´Âë¡¢²¹Âë¡¢ÒÆÂë±íʾ£¨ÓÃ8λ¶þ½øÖÆÊý£©£¬
ÆäÖÐMSBÊÇ×î¸ß루ÓÖÊÇ·ûºÅ룩£¬LSBÊÇ×îµÍ룬Èç¹ûÊÇСÊý£¬Ð¡ÊýµãÔÚMSBÖ®ºó£»Èç¹ûÊÇÕûÊý£¬Ð¡ÊýµãÔÚLSBÖ®ºó;Èç¹ûÊÇÕýÊý£¬Ð¡ÊýµãÔÚLSBÖ®ºó¡£
¢Ù -35/64 ¢Ú23/128 ¢Û-127 ¢ÜÓÃСÊý±íʾ-1
¢Ý ÓÃÕýÊý±íʾ-1 ¢ÞÓÃÕûÊý±íʾ-128
½â£º-35/64ºÍ23/128¾ùÓö¨µãСÊý±íʾ£¬×ª»¯³É¶þ½øÖÆÊý¿Éʹ¼ÆËã
·½·¨¼ò±ã£¬Èç23/128=10111¡Á2-7=0.0010111;-1ÔÚ¶¨µãСÊý±íʾÖÐÔÂëºÍ·´Âë±íʾ²»³ö£¬µ«²¹Âë¿ÉÒÔ±íʾ£»-1ÔÚ¶¨µãÕûÊý±íʾÖÐÊÇ×î´ó¸ºÊý£»-128ÔÚ¶¨µãÕûÊý±íʾÖÐÔÂëºÍ·´Âë±íʾ²»³ö£¬µ«²¹Âë¿ÉÒÔ±íʾ£¬ÏÂÁи÷ÊýµÄÔÂë¡¢·´Âë¡¢²¹Âë¡¢ÒÆÂë±íʾ¼û±í2.2.
±í2.2 ¸÷ÊýµÄÔÂë¡¢·´Âë¡¢²¹Âë¡¢ÒÆÂë±íʾ
Ê®½øÖÆÊý ¶þ½øÖÆÊýÕæÖµ ÔÂë±íʾ ·´Âë±íʾ ²¹Âë±íʾ ÒÆÂë±íʾ -35£¯64 -0.100011 1.1000110 1.0111001 1.0111010 0.0111010 23£¯128 0.0010111 0.0010111 0.0010111 0.0010111 1.0010111 -127 -1111111 11111111 10000000 10000001 00000001
ÓÃСÊý±íʾ -1.0 £¯ £¯ 1.0000000 0.0000000 ÓÃÕûÊý±íʾ -1 10000001 11111110 11111111 01111111
ÓÃÕûÊý±íʾ-128 -10000000 £¯ £¯ 10000000 00000000
7£®»úÆ÷Êý×Ö³¤Îª8루º¬Ò»Î»·ûºÅ룩£¬ÈôÈô»úÆ÷ÊýΪ81£¨Ê®Áù½ø
ÖÆ£©£¬µ±ËüÃÇ·Ö±ð±íʾÔÂë¡¢²¹Âë¡¢·´ÂëºÍÒÆÂëÊÇ£¬µÈ¼ÛµÄÊ®½øÖÆÊý·Ö±ðÊǶàÉÙ/
½â£º»úÆ÷ÊýΪ81H=10000001(¶þ½øÖÆ) µ±¿´³ÉÔÂëʱÆäµÈ¼Û´óµÄÊ®½øÖÆÕûÊý=-1 µ±¿´³É²¹ÂëʱÆäµÈ¼Û´óµÄÊ®½øÖÆÕûÊý=-127 µ±¿´³É·´ÂëʱÆäµÈ¼Û´óµÄÊ®½øÖÆÕûÊý=-126 µ±¿´³ÉÒÆÂëʱÆäµÈ¼Û´óµÄÊ®½øÖÆÕûÊý=+1
8.ÈôСÊýµãÔ¼¶¨ÔÚ8Ϊ¶þ½øÖÆÊýµÄ×îÓÒ¶Ë£¨ÕûÊý£©£¬ÊÔ·Ö±ðд³öÏÂÁÐ
¸÷ÖÖÇé¿öÏÂW¡¢X¡¢Y¡¢ZµÄÕæÖµ¡£ £¨1£©¡¾W¡¿²¹=¡¾X¡¿Ô=¡¾Y¡¿·´=¡¾Z¡¿ÒÆ=00H
Ïà¹ØÍÆ¼ö£º