lyxCOA大题总复习简化.ppt

  1. 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
  2. 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  3. 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
lyxCOA大题总复习简化

* old new Error Correcting Code Function Hamming code (7) — (8)Conclution: If syndrome contains all 0s , no error , the data is REAL ① If syndrome contains one only one 1 , the old correct bit is error , but the data is REAL ② If syndrome contains more than one 1s, the syndrome value(≤M+K) indicates the position of error bit , correct the bit (NOT this bit)③ But syndrome value larger than M+K, more than one error occurs ,report④ Error Correcting Code Function ①② ③ ④ For example1: E.g. data is 0011 1001 Calculates check bit: C1(1,2,4,5,7)=1⊕0⊕1⊕1⊕0=1 C2(1,3,4,6,7)=1⊕0⊕1⊕1⊕0=1 C4(2,3,4,8) =0⊕0⊕1⊕0 =1 C8(5,6,7,8) =1⊕1⊕0⊕0 = 0 Stores (m+k) data and check bit: Hamming Code:0011 0 100 1 1 1 1 C8 C4 C2 C1 D8D7D6D5 D4D3D2D1 Suppose data bit D3 is changed from 0 to 1 in storage. 0011 0 110 1 1 1 1 ….. When fetches the data , Re-calculates new check bit : C1’(1,2,4,5,7)=1⊕0⊕1⊕1⊕0=1 C2’(1,3,4,6,7)=1⊕1⊕1⊕1⊕0=0 C4’(2,3,4,8) =0⊕1⊕1⊕0 =0 C8’(5,6,7,8) =1⊕1⊕0⊕0 = 0 Makes syndrome: c8 c4 c2 c1 0 1 1 1 old ⊕ 0 0 0 1 new 0 1 1 0 syndrome It means position 6 is error, 0011 0 110 1 1 1 1 , corrects the bit 0011 0 100 1 1 1 1 , gets the data bit 0011 1001 出错位取反后就是正确的 For example2: For example: --Hamming code 0011 0110 1111 is just read from main memory, what is real data bits? Answer(1) (1) 2k-1≥m+k —8-bit Data —4-bit check (2) Set up a table 0011 0110 1111 — Data: 0011 1101 — Old check: 0111 Bit Position Position number Check bit Data bit 12 1100 D8 11 1011 D7 10 1010 D6 9 1001 D5 8 1000 C8 7 0111 D4 6 0110 D3 5 0101 D2 4 0100 C4 3 0011 D1 2 0010 C2 1 0001 C1 Note: 标号从1开始 C8 C4 C2C1 Answer(2) (3) When fetches the data 0011 1101 , Re-calculates new check bit : C1’(1,2,4,5,7)=1⊕0⊕1⊕1⊕0=1 C2’(1,3,4,6,7)=1⊕1⊕1⊕1⊕0=0 C4’(2,3,4,8)

文档评论(0)

little28 + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

1亿VIP精品文档

相关文档