Fuw-Yi Yang1 數位系統 Digital Systems Department of Computer Science and Information Engineering, Chaoyang University of Technology 朝陽科技大學資工系 Speaker: Fuw-Yi.

Slides:



Advertisements
Similar presentations
Even/odd parity (1) Computers can sometimes make errors when they transmit data. Even/odd parity: is basic method for detecting if an odd number of bits.
Advertisements

Hamming Code.
CSCI 4717/5717 Computer Architecture
Fuw-Yi Yang1 演算法概論 Introduction to Algorithms Department of Computer Science and Information Engineering, Chaoyang University of Technology 朝陽科技大學資工系 Speaker:
Error-Correcting Codes
Combinational Logic and Verilog. XORs and XNORs XOR.
Parity Generator and Checker
Error Detection / Correction
Chapter 11 Algebraic Coding Theory. Single Error Detection M = (1, 1, …, 1) is the m  1 parity check matrix for single error detection. If c = (0, 1,
Speaker: Fuw-Yi Yang 楊伏夷 伏夷非征番, 道德經 察政章(Chapter 58) 伏者潛藏也
Practical Session 11 Codes. Hamming Distance General case: The distance between two code words is the amount of 1-bit changes required to reach from one.
VIT UNIVERSITY1 ECE 103 DIGITAL LOGIC DESIGN CHAPTER I NUMBER SYSTEMS AND CODES Reference: M. Morris Mano & Michael D. Ciletti, "Digital Design", Fourth.
Fuw-Yi Yang1 Public Key Cryptography 公開金鑰密碼 Department of Computer Science and Information Engineering, Chaoyang University of Technology 朝陽科技大學資工系 Speaker:
Speaker: Fuw-Yi Yang 楊伏夷 伏夷非征番, 道德經 察政章(Chapter 58) 伏者潛藏也
Number Systems and Codes
Digital Logic Lecture 4 Binary Codes The Hashemite University Computer Engineering Department.
Topic 2 – Introduction to Computer Codes. Computer Codes A code is a systematic use of a given set of symbols for representing information. As an example,
Fuw-Yi Yang1 演算法概論 Introduction to Algorithms Department of Computer Science and Information Engineering, Chaoyang University of Technology 朝陽科技大學資工系 Speaker:
Copyright © NDSL, Chang Gung University. Permission required for reproduction or display. Chapter 10 Error Detection and Correction 長庚大學資訊工程學系 陳仁暉 副教授.
Fuw-Yi Yang1 Textbook: Introduction to Cryptography 2nd ed. By J.A. Buchmann Chap 13 Other Systems Department of Computer Science and Information Engineering,
Data Link Layer: Error Detection and Correction
Data and Computer Communications by William Stallings Eighth Edition Digital Data Communications Techniques Digital Data Communications Techniques Click.
Practical Session 10 Error Detecting and Correcting Codes.
Dr. Richard Hamming’s Contributions to Computer Science and Telecommunications Dr. Charles C. Tappert Professor of Computer Science Seidenberg School of.
Riyadh Philanthropic Society For Science Prince Sultan College For Woman Dept. of Computer & Information Sciences CS 251 Introduction to Computer Organization.
COSC 3213: Computer Networks I Instructor: Dr. Amir Asif Department of Computer Science York University Section M Topics: 1. Error Detection Techniques:
Fuw-Yi Yang1 數位系統 Digital Systems Department of Computer Science and Information Engineering, Chaoyang University of Technology 朝陽科技大學資工系 Speaker: Fuw-Yi.
VLSI AND INTELLIGENT SYTEMS LABORATORY 12 Bit Hamming Code Error Detector/Corrector December 2nd, 2003 Department of Electrical and Computer Engineering.
1 © Unitec New Zealand CRC calculation and Hammings code.
CS 111 – Sept. 13 Error detection Error correction Review/practice chapter 1 questions Commitment: –Please read sections 2.1 and 2.2.
Review.
Error Detection and Correction – Hamming Code
Error-Detecting and Error-Correcting Codes
1 Digital Design Debdeep Mukhopadhyay Associate Professor Dept of Computer Science and Engineering NYU Shanghai and IIT Kharagpur.
Digital Circuits Introduction Memory information storage a collection of cells store binary information RAM – Random-Access Memory read operation.
Computer Architecture Error Correcting Codes Ralph Grishman Oct (Text pp and B-65-67) NYU.
Error Detecting and Error Correcting Codes
Gunjeet Kaur Dronacharya Group of Institutions. Outline I Random-Access Memory Memory Decoding Error Detection and Correction Read-Only Memory Programmable.
Fuw-Yi Yang1 數位系統 Digital Systems Department of Computer Science and Information Engineering, Chaoyang University of Technology 朝陽科技大學資工系 Speaker: Fuw-Yi.
Fuw-Yi Yang1 數位系統 Digital Systems Department of Computer Science and Information Engineering, Chaoyang University of Technology 朝陽科技大學資工系 Speaker: Fuw-Yi.
Practical Session 10 Computer Architecture and Assembly Language.
Fuw-Yi Yang1 數位系統 Digital Systems Department of Computer Science and Information Engineering, Chaoyang University of Technology 朝陽科技大學資工系 Speaker: Fuw-Yi.
Fuw-Yi Yang1 數位系統 Digital Systems Department of Computer Science and Information Engineering, Chaoyang University of Technology 朝陽科技大學資工系 Speaker: Fuw-Yi.
Combinational Logic Design
Fuw-Yi Yang1 數位系統 Digital Systems Department of Computer Science and Information Engineering, Chaoyang University of Technology 朝陽科技大學資工系 Speaker: Fuw-Yi.
Fuw-Yi Yang1 數位系統 Digital Systems Department of Computer Science and Information Engineering, Chaoyang University of Technology 朝陽科技大學資工系 Speaker: Fuw-Yi.
Speaker: Fuw-Yi Yang 楊伏夷 伏夷非征番, 道德經 察政章(Chapter 58) 伏者潛藏也
Modulo-2 Digital coding uses modulo-2 arithmetic where addition becomes the following operations: 0+0= =0 0+1= =1 It performs the.
Speaker: Fuw-Yi Yang 楊伏夷 伏夷非征番, 道德經 察政章(Chapter 58) 伏者潛藏也
Hamming Code In 1950s: invented by Richard Hamming
Character coding schemes
Textbook: Introduction to Cryptography 2nd ed. By J.A. Buchmann
Error Correcting Code.
Representing characters
Textbook: Introduction to Cryptography 2nd ed. By J.A. Buchmann
Even/odd parity (1) Computers can sometimes make errors when they transmit data. Even/odd parity: is basic method for detecting if an odd number of bits.

Dhanushiya. R I YEAR BSc COMPUTER TECHNOLOGY.  Error is a condition when the output information does not match with the input information. During transmission,
演算法概論 Introduction to Algorithms
II. Linear Block Codes.
EET107/3 DIGITAL ELECTRONICS 1
Chapter 9 Error Detection and Correction
Information Redundancy Fault Tolerant Computing
LAB 7.
Chapter 9 Error Detection and Correction
CS 325: CS Hardware and Software Organization and Architecture
Reliability and Channel Coding
演算法概論 Introduction to Algorithms
Speaker: Fuw-Yi Yang 楊伏夷 伏夷非征番, 道德經 察政章(Chapter 58) 伏者潛藏也
Error Detection and Correction
Presentation transcript:

Fuw-Yi Yang1 數位系統 Digital Systems Department of Computer Science and Information Engineering, Chaoyang University of Technology 朝陽科技大學資工系 Speaker: Fuw-Yi Yang 楊伏夷 伏夷非征番, 道德經 察政章 (Chapter 58) 伏 者潛藏也 道紀章 (Chapter 14) 道無形象, 視之不可見者曰 夷

Fuw-Yi Yang2 Text Book: Digital Design 4th Ed. Chapter 7 Hamming Code One of the most common error-correcting codes used in RAMs was devised by R. W. Hamming. In the Hamming code, k parity bits are added to an n-bit data word, forming a new word of n + k bits. Richard Wesley Hamming (Chicago, February 11, 1915 – Monterey,ChicagoMonterey California, January 7, 1998) was an American mathematician whose work had many implications for computer science and telecommunications. His contributions include the Hamming code (which makes use of a Hamming matrix), the Hamming window (described in Section 5.8 of his book Digital Filters), Hamming numbers, Sphere-packing (or hamming bound) and the Hamming distance.Americanmathematician computer sciencetelecommunicationsHamming codeHamming matrix Hamming windowHamming numbersSphere-packinghamming boundHamming distance

Fuw-Yi Yang3 Text Book: Digital Design 4th Ed. Chapter 7 Hamming Code Bit Position: Notation : P 1 P 2 B 3 P 4 B 5 B 6 B 7 P 8 B 9 B 10 B 11 B 12 Data : Transmitted data P 1 = Xor of bits (3, 5, 7, 9, 11) P 2 = Xor of bits (3, 6, 7, 10, 11) P 4 = Xor of bits (5, 6, 7, 12) P 8 = Xor of bits (9, 10, 11, 12)

Fuw-Yi Yang4 Text Book: Digital Design 4th Ed. Chapter 7 Hamming Code Bit Position: Notation : P 1 P 2 B 3 P 4 B 5 B 6 B 7 P 8 B 9 B 10 B 11 B 12 Data : Received data C 1 = Xor of bits (1, 3, 5, 7, 9, 11) C 2 = Xor of bits (2, 3, 6, 7, 10, 11) C 4 = Xor of bits (4, 5, 6, 7, 12) C 8 = Xor of bits (8, 9, 10, 11, 12)

Fuw-Yi Yang5 Text Book: Digital Design 4th Ed. Chapter 7 Hamming Code Bit Position: Notation : P 1 P 2 B 3 P 4 B 5 B 6 B 7 P 8 B 9 B 10 B 11 B 12 P Data : Transmitted data P 1 = Xor of bits (3, 5, 7, 9, 11) P 2 = Xor of bits (3, 6, 7, 10, 11) P 4 = Xor of bits (5, 6, 7, 12) P 8 = Xor of bits (9, 10, 11, 12) P = Even or Odd parity on bit 1~12

Fuw-Yi Yang6 Text Book: Digital Design 4th Ed. Chapter 7 Hamming Code Bit Position: Notation : P 1 P 2 B 3 P 4 B 5 B 6 B 7 P 8 B 9 B 10 B 11 B 12 P Data : Received data C 1 = Xor of bits (1, 3, 5, 7, 9, 11) C 2 = Xor of bits (2, 3, 6, 7, 10, 11) C 4 = Xor of bits (4, 5, 6, 7, 12) C 8 = Xor of bits (8, 9, 10, 11, 12) P = Even or Odd parity on bit 1~12 C = 0, P = 0 no error occurred C != 0, P = 1 single error occurred, can be corrected C != 0, P = 0 double error occurred, cannot be corrected C = 0, P = 1 error occurred in the 13th bit

Fuw-Yi Yang7 Text Book: Digital Design 4th Ed. Chapter 7 Hamming Code 7-10 Given the 8-bit data word , generate the 13-bit composite word for the Hamming code that corrects single errors and detect double errors. Bit Position: Notation : P 1 P 2 B 3 P 4 B 5 B 6 B 7 P 8 B 9 B 10 B 11 B 12 P E Data : Parity : Parity data P 1 = Xor of bits (3, 5, 7, 9, 11) 0 P 2 = Xor of bits (3, 6, 7, 10, 11) 0 P 4 = Xor of bits (5, 6, 7, 12) 1 P 8 = Xor of bits (9, 10, 11, 12) 1 P E = Even or Odd parity on bit 1~12 1

Fuw-Yi Yang8 Text Book: Digital Design 4th Ed. Chapter 7 Hamming Code 7-11 Obtain the 15-bit Hamming code word for the 11-bit data word Position: Notation: P 1 P 2 B 3 P 4 B 5 B 6 B 7 P 8 B 9 B 10 B 11 B 12 B 13 B 14 B 15 Data : Parity : Parity data P 1 = Xor of bits (3, 5, 7, 9, 11, 13, 15) 1 P 2 = Xor of bits (3, 6, 7, 10, 11, 14, 15) 0 P 4 = Xor of bits (5, 6, 7, 12, 13, 14, 15) 1 P 8 = Xor of bits (9, 10, 11, 12, 13, 14, 15) 1

Fuw-Yi Yang9 Text Book: Digital Design 4th Ed. Chapter 7 Hamming Code 7-12 A 12-bit Hamming code word containing 8 bits of data and 4 parity bits is read from memory. What was the original 8-bit data word that was written into memory if the 12-bit word read out is as follows: (a) (b) (c)

Fuw-Yi Yang10 Text Book: Digital Design 4th Ed. Chapter 7 Hamming Code 7-13 How many parity check bits must be included with the data word to achieve single-error correction and double-error detection when the data word contains (a) 16 bits (b) 32 bits (c) 48 bits

Fuw-Yi Yang11 Text Book: Digital Design 4th Ed. Chapter 7 Hamming Code 7-14 It is necessary to formulate the Hamming code for four data bits D 3, D 5, D 6, and D 7, together with three parity bits, P 1, P 2, and P 4. (a) Evaluate the 7-bit composite code word for the data word (b) Evaluate the three check bits, C 1, C 2, and C 4, assuming no error. (c) Assume an error in bit D 5 during writing into memory. Show how the error in the bit is detected and corrected. (d) Add parity bit P8 to include double-error detection in the code. Assume that errors occurred in bits P 2 and D 5. Show how the double error is detected.