Faculty of Computer Science © 2006 CMPUT 229 Special-Purpose Codes Binary, BCD, Hamming, Gray, EDC, ECC.

Slides:



Advertisements
Similar presentations
Hamming Code.
Advertisements

KFUPM COE 202: Digital Logic Design Number Systems Part 3 Courtesy of Dr. Ahmad Almulhem.
Ch 2.7 Error Detection & Correction CS-147 Tu Hoang.
Modern Digital and Analog Communication Systems Lathi Copyright © 2009 by Oxford University Press, Inc. C H A P T E R 15 ERROR CORRECTING CODES.
Sequential Circuits Problems(II) Prof. Sin-Min Lee Department of Mathematics and Computer Science Algorithm = Logic + Control.
2.3 Binary Codes for Decimal Numbers ReturnNext Code: A set of n-bit strings in which different bit strings represent different numbers or other things.
The Structure of the CPU
Chapter 3 Coding Theory.
Faculty of Computer Science © 2006 CMPUT 229 Buses and Memories And Adders.
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.
Faculty of Computer Science © 2006 CMPUT 229 Digital Logic From Switches to Memories.
VIT UNIVERSITY1 ECE 103 DIGITAL LOGIC DESIGN CHAPTER I NUMBER SYSTEMS AND CODES Reference: M. Morris Mano & Michael D. Ciletti, "Digital Design", Fourth.
Forward Error CORRECTION A little magic. Hamming in perspective Typically errors are corrected with retransmission. Hamming lets the receiver determine.
Number System and Codes
Number Systems and Codes
Stuart Hansen University of Wisconsin - Parkside.
Hamming Code Rachel Ah Chuen. Basic concepts Networks must be able to transfer data from one device to another with complete accuracy. Data can be corrupted.
1.6 Signed Binary Numbers.
Arithmetic operations in binary Addition / subtraction ? “Method” exatly the same as decimal.
Mathematics in Management Science
Ahmad Almulhem, KFUPM 2010 COE 202: Digital Logic Design Number Systems Part 4 Dr. Ahmad Almulhem ahmadsm AT kfupm Phone: Office:
Morgan Kaufmann Publishers
CODING/DECODING CONCEPTS AND BLOCK CODING. ERROR DETECTION CORRECTION Increase signal power Decrease signal power Reduce Diversity Retransmission Forward.
Error Control Code. Widely used in many areas, like communications, DVD, data storage… In communications, because of noise, you can never be sure that.
Data Link Layer: Error Detection and Correction
COEN 180 Erasure Correcting, Error Detecting, and Error Correcting Codes.
Riyadh Philanthropic Society For Science Prince Sultan College For Woman Dept. of Computer & Information Sciences CS 251 Introduction to Computer Organization.
Error Detection and Correction
§6 Linear Codes § 6.1 Classification of error control system § 6.2 Channel coding conception § 6.3 The generator and parity-check matrices § 6.5 Hamming.
DIGITAL COMMUNICATIONS Linear Block Codes
Information Theory Linear Block Codes Jalal Al Roumy.
Authentication protocol providing user anonymity and untraceability in wireless mobile communication systems Computer Networks Volume: 44, Issue: 2, February.
Error Detection and Correction
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.
10.1 Chapter 10 Error Detection and Correction Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
The parity bits of linear block codes are linear combination of the message. Therefore, we can represent the encoder by a linear system described by matrices.
10.1 Chapter 10 Error Detection and Correction Data can be corrupted during transmission. Some applications require that errors be detected and.
Error Detection. Data can be corrupted during transmission. Some applications require that errors be detected and corrected. An error-detecting code can.
Error Detection and Correction – Hamming Code
Error Detection and Correction
Elementary Coding Theory Including Hamming and Reed-Solomom Codes with Maple and MATLAB Richard Klima Appalachian State University Boone, North Carolina.
Error-Detecting and Error-Correcting Codes
Cryptography and Coding Theory
1 Digital Design Debdeep Mukhopadhyay Associate Professor Dept of Computer Science and Engineering NYU Shanghai and IIT Kharagpur.
Combinational Circuit Design. Digital Circuits Combinational CircuitsSequential Circuits Output is determined by current values of inputs only. Output.
 Do the following conversions:  Solve the following:    /100  10010*110 DecimalOctalHexadecimalBinary 78--
Logic and Computer Design Fundamentals, Fifth Edition Mano | Kime | Martin Copyright ©2016, 2008, 2004 by Pearson Education, Inc. All rights reserved.
10.1 Chapter 10 Error Detection and Correction Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Computer Architecture Error Correcting Codes Ralph Grishman Oct (Text pp and B-65-67) NYU.
ECE DIGITAL LOGIC LECTURE 4: BINARY CODES Assistant Prof. Fareena Saqib Florida Institute of Technology Fall 2016, 01/26/2016.
10.1 Chapter 10 Error Detection and Correction Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
1 Product Codes An extension of the concept of parity to a large number of words of data 0110… … … … … … …101.
Chi-Cheng Lin, Winona State University CS412 Introduction to Computer Networking & Telecommunication Error Correction/Detection.
ECE 442 COMMUNICATION SYSTEM DESIGN LECTURE 10. LINEAR BLOCK CODES Husheng Li Dept. of EECS The University of Tennessee.
Hamming Code In 1950s: invented by Richard Hamming
Chair Professor Chin-Chen Chang Feng Chia University Jan. 2008
Part 2 Linear block codes
Character coding schemes
Representing characters

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.
BCD = Binary Coded Decimal
Information Redundancy Fault Tolerant Computing

CS 325: CS Hardware and Software Organization and Architecture
Adder, Subtructer, Encoder, Decoder, Multiplexer, Demultiplexer
Electrical Communications Systems ECE Spring 2019
Chair Professor Chin-Chen Chang Feng Chia University Jan. 2008
Electrical Communications Systems ECE
Presentation transcript:

Faculty of Computer Science © 2006 CMPUT 229 Special-Purpose Codes Binary, BCD, Hamming, Gray, EDC, ECC

© 2006 Department of Computing Science CMPUT 229 Binary-Coded Decimal (BCD) Code How do we represent in BCD code? 3 10 = 0011 BCD 7 10 = 0111 BCD 9 10 = 1001 BCD = BCD Inefficient storage. Complex arithmetic (for hardware). Clements, pp. 154

© 2006 Department of Computing Science CMPUT 229 Binary Code Clements, pp. 154

© 2006 Department of Computing Science CMPUT 229 Binary Code Clements, pp. 154

© 2006 Department of Computing Science CMPUT 229 Binary Code Clements, pp. 154

© 2006 Department of Computing Science CMPUT 229 Binary Code Clements, pp. 154

© 2006 Department of Computing Science CMPUT 229 Binary Code Clements, pp. 154

© 2006 Department of Computing Science CMPUT 229 Binary Code Clements, pp. 154

© 2006 Department of Computing Science CMPUT 229 Binary Code Clements, pp. 154

© 2006 Department of Computing Science CMPUT 229 Gray Code 0101 Clements, pp. 154

© 2006 Department of Computing Science CMPUT 229 Gray Code Clements, pp. 154

© 2006 Department of Computing Science CMPUT 229 Gray Code Clements, pp. 154

© 2006 Department of Computing Science CMPUT 229 Gray Code Clements, pp. 154

© 2006 Department of Computing Science CMPUT 229 Gray Code Clements, pp. 154

© 2006 Department of Computing Science CMPUT 229 Gray Code Clements, pp. 154

© 2006 Department of Computing Science CMPUT 229 Gray Code Clements, pp. 154

© 2006 Department of Computing Science CMPUT 229 Gray Code Hamming distance between two consecutive words is 1. Clements, pp. 154

© 2006 Department of Computing Science CMPUT 229 Binary X Gray Code Clements, pp. 155 COPYRIGHT 2006 OXFORD UNIVERSITY PRESS ALL RIGHTS RESERVED

© 2006 Department of Computing Science CMPUT 229 Error Detecting Codes  Can detect that a word has been corrupted –An error always leave a noticeable trace in the encoded word Parity codes Source Word Encoder Source Code Word Received Code Word Decoder Received Word Clements, pp. 157

© 2006 Department of Computing Science CMPUT 229 Parity Error Detecting Codes Clements, pp. 158 COPYRIGHT 2006 OXFORD UNIVERSITY PRESS ALL RIGHTS RESERVED

© 2006 Department of Computing Science CMPUT 229 Principle of Error-Detecting Code Clements, pp. 159 COPYRIGHT 2006 OXFORD UNIVERSITY PRESS ALL RIGHTS RESERVED

© 2006 Department of Computing Science CMPUT Bit Error Correcting Code Clements, pp. 159 COPYRIGHT 2006 OXFORD UNIVERSITY PRESS ALL RIGHTS RESERVED

© 2006 Department of Computing Science CMPUT 229 Minimum Hamming Distance in ECC Clements, pp. 159 COPYRIGHT 2006 OXFORD UNIVERSITY PRESS ALL RIGHTS RESERVED

© 2006 Department of Computing Science CMPUT 229 Block Parity Error-Correcting Code Clements, pp. 160 COPYRIGHT 2006 OXFORD UNIVERSITY PRESS ALL RIGHTS RESERVED

© 2006 Department of Computing Science CMPUT 229 Hamming Codes I4I4 I3I3 I2I2 C3C3 I1I1 C2C2 C1C C j : Check bit j I j : Source bit j 000Unused 001C 1 010C 2 011I 1 100C 3 101I 2 110I 3 111I 4 0 Clements, pp. 160

© 2006 Department of Computing Science CMPUT 229 Hamming Codes I4I4 I3I3 I2I2 C3C3 I1I1 C2C2 C1C C j : Check bit j I j : Source bit j 000Unused 001C 1 010C 2 011I 1 100C 3 101I 2 110I 3 111I 4 0 C 1 = I 1  I 2  I 4 C 2 = I 1  I 3  I 4 C 3 = I 2  I 3  I 4 Clements, pp. 160

© 2006 Department of Computing Science CMPUT 229 Hadamard Matrices [H] 2 = Clements, pp [H] n +[H] n -[H] n [H]2 n = [H] 4 = In a Hadamard matrix of order n each row has a Hamming distance of n/2 to every other row.

© 2006 Department of Computing Science CMPUT 229 Hadamard Matrices Clements, pp [H] 8 =

© 2006 Department of Computing Science CMPUT 229 ECC with Hadamard Matrices Source Code RowCode Word Clements, pp. 162

© 2006 Department of Computing Science CMPUT 229 Code Words in a 4-unit Code COPYRIGHT 2006 OXFORD UNIVERSITY PRESS ALL RIGHTS RESERVED Clements, pp. 162