Computer Architecture Error Correcting Codes Ralph Grishman Oct. 2015 (Text pp. 420-421 and B-65-67) NYU.

Slides:



Advertisements
Similar presentations
Error Detection / Correction Hamming code. Why might we need Error detection/correction? Even & Odd Parity — Error detection Hamming code — Used for error.
Advertisements

Dan Ernst Improving Reliability We used parity to determine when a memory bit failed. We can protect buses from transmission failures using parity/ECC.
Hamming Code.
parity bit is 1: data should have an odd number of 1's
CSCI 4717/5717 Computer Architecture
ERROR CORRECTION.
Parity Generator and Checker
NETWORKING CONCEPTS. ERROR DETECTION Error occures when a bit is altered between transmission& reception ie. Binary 1 is transmitted but received is binary.
Quantum Error Correction SOURCES: Michele Mosca Daniel Gottesman Richard Spillman Andrew Landahl.
Error Detection / Correction
CMPE 150- Introduction to Computer Networks 1 CMPE 150 Fall 2005 Lecture 11 Introduction to Computer Networks.
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.
Error detection and correction
7/2/2015Errors1 Transmission errors are a way of life. In the digital world an error means that a bit value is flipped. An error can be isolated to a single.
Reliability and Channel Coding
Faculty of Computer Science © 2006 CMPUT 229 Special-Purpose Codes Binary, BCD, Hamming, Gray, EDC, ECC.
Number Systems and Codes
Exercise in the previous class p: the probability that symbols are delivered correctly C: 1 00 → → → → What is the threshold.
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.
ENEE244-02xx Digital Logic Design Lecture 3. Announcements Homework 1 due next class (Thursday, September 11) First recitation quiz will be next Monday,
Practical Session 10 Error Detecting and Correcting Codes.
ECE453 – Introduction to Computer Networks Lecture 4 – Data Link Layer (I)
Lecture 3-2: Coding and Error Control (Cont.) ECE
Riyadh Philanthropic Society For Science Prince Sultan College For Woman Dept. of Computer & Information Sciences CS 251 Introduction to Computer Organization.
DIGITAL COMMUNICATIONS Linear Block Codes
Ch 2. Number Systems and Codes 2.2 Octal and Hexadecimal Numbers 10 ~ 15 : Alphabet.
CS 111 – Sept. 13 Error detection Error correction Review/practice chapter 1 questions Commitment: –Please read sections 2.1 and 2.2.
Computer Communication & Networks Lecture 10 Datalink Layer: Error Correction Waleed Ejaz
Review.
10.1 Chapter 10 Error Detection and Correction Data can be corrupted during transmission. Some applications require that errors be detected and.
Error Detection and Correction – Hamming Code
Data Link Layer. Data Link Layer Topics to Cover Error Detection and Correction Data Link Control and Protocols Multiple Access Local Area Networks Wireless.
Error Detection and Correction
1 Lecture 7 System Models Attributes of a man-made system. Concerns in the design of a distributed system Communication channels Entropy and mutual information.
Error-Detecting and Error-Correcting Codes
1 Digital Design Debdeep Mukhopadhyay Associate Professor Dept of Computer Science and Engineering NYU Shanghai and IIT Kharagpur.
Computer Architecture Lecture 11 Arithmetic Ralph Grishman Oct NYU.
1 Product Codes An extension of the concept of parity to a large number of words of data 0110… … … … … … …101.
Error Detecting and Error Correcting Codes
Practical Session 10 Computer Architecture and Assembly Language.
ECE 442 COMMUNICATION SYSTEM DESIGN LECTURE 10. LINEAR BLOCK CODES Husheng Li Dept. of EECS The University of Tennessee.
Hamming Codes The Hamming Code is a Forward Error-correcting Code (FEC) that uses redundant bits to correct a single bit error For 4 bit codes, 3 redundant.
Hamming Code In 1950s: invented by Richard Hamming
Chair Professor Chin-Chen Chang Feng Chia University Jan. 2008
Computer Architecture and Assembly Language
Cyclic Redundancy Check (CRC)
Character coding schemes
… General Decoder for a Linear Block Code … …
ERROR DETECTION AND CORRECTION
Error Correcting Code.
Advanced Computer Networks
Representing characters
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.

Welcome to the presentation. Linear Block Codes Almost all block codes used today belong to a subset called linear block codes. The exclusive OR of two.
II. Linear Block Codes.
Chapter 9 Error Detection and Correction
DATA COMMUNICATION Lecture-35.
Standard Array.
RAID Redundant Array of Inexpensive (Independent) Disks

Chapter 9 Error Detection and Correction
II. Linear Block Codes.
Reliability and Channel Coding
Computer Architecture and Assembly Language
Electrical Communications Systems ECE Spring 2019
Chair Professor Chin-Chen Chang Feng Chia University Jan. 2008
Chapter 10 Error Detection and Correction
Electrical Communications Systems ECE
Presentation transcript:

Computer Architecture Error Correcting Codes Ralph Grishman Oct (Text pp and B-65-67) NYU

Codes A code = a set of valid bit patterns If all bit patterns are valid, no error can be detected If only some are valid, any error which changes a valid pattern into an invalid one will be detectable 10/13/15Computer Architecture lecture 112

Hamming Distance Hamming distance between two bit patterns = number of bit positions where they differ Hamming distance for a code = minimum distance among all pairs A code with distance d can detect d-1 or fewer errors Ex: parity bit  distance 2  can detect all single errors 10/13/15Computer Architecture lecture 113

Correcting multiple errors By inceasing the distance of a code, we can detect multiple errors or correct errors: – Distance 2: single error detection – Distance 3: single error correction – Distance 4: single error correction & double error detection 10/13/15Computer Architecture lecture 114

Single error correction code Each code symbol has n bits m bits are associated with info to be transmitted k=n-m bits are used for error detection & correction 10/13/15Computer Architecture lecture 115

Checking When a code symbol is received, we will apply k parity checks – If parity is odd, write 1, else write 0 – This produces a k-bit checking number – Want Checking number = 0  no errør Checking number = i  error in bit i 10/13/15Computer Architecture lecture 116

Creating a code symbol (number bits 1,…,n) Bit positions 2 0, 2 1, …, 2 k-1 are used as checking positions The i th check is even parity over all bits in bit positions whose 2 i-1 place bit = 1 Ex: n=7 m=4 k=3 Check #1: check position=1 checks positions 1, 3, 5, 7 Check #2: check position=2 checks positions 2, 3, 6, 7 Check #3: check position=4 checks positions 4, 5, 6, 7 Positions 3, 5, 6, 7 are information positions 10/13/15Computer Architecture lecture 117

Example: Encoding Encoding the number 5: 10/13/15Computer Architecture lecture Check #1: check position=1 checks positions 1, 3, 5, 7 Check #2: check position=2 checks positions 2, 3, 6, 7 Check #3: check position=4 checks positions 4, 5, 6, 7 Positions 3, 5, 6, 7 are information positions

Checking Error in bit __1___ Apply checks: Check #1 checks positions 1, 3, 5, 7 Check #2 checks positions 2, 3, 6, 7 Check #3 checks positions 4, 5, 6, 7 – Bit position _001____ in error 10/13/15Computer Architecture lecture