计算机组织与结构课件全分单元Ch05章节幻灯片.ppt

计算机组织与结构课件全分单元Ch05章节幻灯片.ppt

  1. 1、本文档共41页,可阅读全部内容。
  2. 2、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
Hamming code (6) Makes the syndrome word 故障字 Old correct bit c8 c4 c2 c1 New correct bit ⊕c8’ c4’ c2’ c1’ Syndrome word X X X X The syndrome word is error position code “异或” old new Error Correcting Code Function page 149 Hamming code (7) 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 indicates the position of error bit , correct the bit ③ But syndrome value larger than 12, more than one error occurs ④ Error Correcting Code Function page 149 ①② ③ ④ Hamming code (8) E.g. data is 0011 1001 Calculates old 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 correct bit: Hamming Code:0011 0 100 1 1 1 1 C8 C4 C2 C1 Hamming code (9) 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 Hamming code (10) 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 出错位取反后就是正确的 Error Correcting Code in semiconductor a Single-Error-Correcting (SEC) code 单纠错码 A double-error-detecting (DED) code 双校验 SEC-DED 单纠错-双校验 For example Hamming code 0011 0110 1111 is just read from main memory, what is real data bits? P152 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

文档评论(0)

带头大哥 + 关注
实名认证
内容提供者

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

1亿VIP精品文档

相关文档