Introduction Gray code is a binary numeral system where two successive values differ in only one bit (binary digit). Today, Gray codes are widely used.

Slides:



Advertisements
Similar presentations
Computer Science: A Structured Programming Approach Using C Converting File Type A rather common but somewhat trivial problem is to convert a text.
Advertisements

Current-Mode Multi-Channel Integrating ADC Electrical Engineering and Computer Science Advisor: Dr. Benjamin J. Blalock Neena Nambiar 16 st April 2009.
By: Bryan Bonvallet Nikolla Griffin Advisor: Dr. Jia Li
Computational Physics Lecture 3 - Admin Dr. Guy Tel-Zur Coral. Picture by Anna Cervova, publicdomainpictures.net.
©TheMcGraw-Hill Companies, Inc. Permission required for reproduction or display. COMPSCI 125 Introduction to Computer Science I.
Codes and Code Converters
1 8-Bit Binary-to-Gray Code Converter Mike Wong Scott Echols Advisor: Dave Parent May 11, 2005.
Chapter 2 Processing Data Peter Norton’s Introduction to Computers
©TheMcGraw-Hill Companies, Inc. Permission required for reproduction or display. COMPSCI 125 Introduction to Computer Science I.
Angel: Interactive Computer Graphics 4E © Addison-Wesley 2005 Sampling and Aliasing Ed Angel Professor of Computer Science, Electrical and Computer Engineering,
Number System and Codes

Yasser F. O. Mohammad Teaching Team Instructor: Yasser F. O. Mohammad Computers and Systems section (Intelligent Robotics)
Physics 413 Chapter 1 Computer Architecture What is a Digital Computer ? A computer is essentially a fast electronic calculating machine. What is a program.
Transforming Data into Information.
Chapter 12 Computer Networks. Basic Concepts in Computer Networking – Communication Links – Figure 12.1a –Two Forms of Information Representation (a)
Digital Logic Lecture 4 Binary Codes The Hashemite University Computer Engineering Department.
Binary Code.
CHAPTER 1 INTRODUCTION NUMBER SYSTEMS AND CONVERSION.
CHAPTER 1 INTRODUCTION NUMBER SYSTEMS AND CONVERSION
Data Basics. Binary Number System Numeration systems are methods of representing numbers. All current number systems are positional in nature. In
Performance Evaluation of Several Interpolation Methods for GPS Satellite Orbit Presented by Hamad Yousif Supervised by Dr. Ahmed El-Rabbany.
Implementation of the RSA Algorithm on a Dataflow Architecture
Digital Systems. Digital Design  Digital Design is concerned with the design of digital electronic circuits.  Computers,  data communication equipment,
© Cambridge University Press 2013 Thomson_alphaem.
© Cambridge University Press 2013 Thomson_Fig
Digital Image Processing, 3rd ed. © 1992–2008 R. C. Gonzalez & R. E. Woods Gonzalez & Woods Chapter 1 Introduction Chapter.
The New Computing Curriculum An overview. Computing A high-quality computing education equips pupils to use computational thinking and creativity to understand.
Computer Science Theory & Introduction Week 1 Lecture Material – F'13 Revision Doug Hogan Penn State University CMPSC 201 – C++ Programming for Engineers.
THE BINARY NUMBER SYSTEM “There are only 10 types of people in this world: Those who understand BINARY and those who do not.”
Digital Circuits Text Book –M. M. Mano, "Digital Design," 3rd Ed., Prentice Hall Inc., Reference –class notes Grade –quizzes:15% –mid-term:27.5%
Design of a Reversible Binary Coded Decimal Adder by Using Reversible 4-bit Parallel Adder Babu, H. M. H. Chowdhury, A.R, “Design of a reversible binary.
CSCE 211: Digital Logic Design Chin-Tser Huang University of South Carolina.
EE 1001 Digital Topics Introduction to Electrical Engineering Dr. Chris Carroll MWAH ccarroll.
Programming in C++ Dale/Weems/Headington Chapter 1 Overview of Programming and Problem Solving.
VLSI AND INTELLIGENT SYTEMS LABORATORY 12 Bit Hamming Code Error Detector/Corrector December 2nd, 2003 Department of Electrical and Computer Engineering.
DIGITAL SYSTEMS Number systems & Arithmetic Rudolf Tracht and A.J. Han Vinck.
© 2009 Pearson Education, Upper Saddle River, NJ All Rights ReservedFloyd, Digital Fundamentals, 10 th ed Digital Logic Design Dr. Oliver Faust.
Digital Media Lecture 0: It’s all just bits! Georgia Gwinnett College School of Science and Technology Dr. Jim Rowan.
© 2009 Pearson Education, Upper Saddle River, NJ All Rights ReservedFloyd, Digital Fundamentals, 10 th ed Digital Logic Design Dr. Oliver Faust.
Error correction Genetic algorithms Karnaugh maps Towers of Hanoi 2/7 Uses For more information:
Section 5 Digital Electronic Circuits. Chapter 32 Binary Number System.
ELECTRICAL ENGINEERING: PRINCIPLES AND APPLICATIONS, Third Edition, by Allan R. Hambley, ©2005 Pearson Education, Inc. Chapter 7 Logic Circuits.
CSE 111 Information Representation in the Digital World.
© Cambridge University Press 2013 Thomson_Fig
Computer Studies Today Chapter 19 1 Chapter 19. Computer Studies Today Chapter 19 2 »Information stored in a computer is in two states: –ON –OFF.
Gaussian Elimination and Back Substitution Aleksandra Cerović 0328/2010 1/15Gaussian Elimination And Back Substitution.
Quasi Random Sequences Author: Stefan Ilijevski. Random sequences? 2/10.
Understanding Computers
University of Wisconsin - Madison ECE/Comp Sci 352 Digital Systems Fundamentals Yu Hen Hu and Yong-Chang Kim Fall 2002 Chapter 1 – Digital Computers and.
Chapter I: Introduction to Computer Science. Computer: is a machine that accepts input data, processes the data and creates output data. This is a specific-purpose.
Polynomial Interpolation and Extrapolation
Digital Design Chapter One Digital Systems and Binary Numbers
Gray Codes.
© Cambridge University Press 2011
Binary Positional Notation
BINARY CODE.
Why to use the assembly and why we need this course at all?
CSE291 Convex Optimization (CSE203B Pending)
Random Variables and their Properties
EEL 4713/EEL 5764 Computer Architecture
Pseudo-random numbers
Thomson_eeWWtgc © Cambridge University Press 2013.
Thomson_atlascmsEventsAlt
Thomson_CandP © Cambridge University Press 2013.
CSE203B Convex Optimization
Number Systems Today, I’ll be giving an introduction to:
Thomson_AFBCartoon © Cambridge University Press 2013.
Counter Fundamentals Presented by :
Dr. Clincy Professor of CS
Presentation transcript:

Introduction Gray code is a binary numeral system where two successive values differ in only one bit (binary digit). Today, Gray codes are widely used to facilitate error correction in digital communications such as digital terrestrial television and some cable TV systems. This code was originally designed to prevent spurious output from electromechanical switches. 2-bits4-bits bits /14

Motivation DecimalBinary DecimalBinaryGray Gray As Decimal /14

Grey code for 23: (23) 10 = ( ) 2 Function: Result = Num (Num / 2) // (div 2) 10 == (>> 1) 2 Example = (28) 10 4/14

Function: a n −1 = g n −1 a i = g i ⊕ a i +1, i = n − 2,..., 0 g: a: = (23) 10 Example (inverse) 5/14

Grey Code (Implementation) 6/14

Grey Code Inverse (Implementation) 7/14

8/14 CpuStreamCpuCode.c

9/14 CpuStreamKernel.maxj

10/14 CpuStreamManager.maxj

11/14 Build & Run

Conclusion Unfortunately, DFE algorithm implementation does not cause speedup in most of the cases... 12/14

References The Gray Code by R. W. Doran Press, WH; Teukolsky, SA; Vetterling, WT; Flannery, BP (2007). “Section 22.3.GrayCodes”. Numerical Recipes: The Art of Scientific Computing (3rd ed.). New York: Cambridge University Press. Wilf, Herbert S. (1989). "Chapters 1–3". Combinatorial algorithms: an update. SIAM.ISBN /14

14/14 Professor: dr Veljko M. Milutinović Student: Petar Ristić 32/2012 Software engineering School of Electrical Engineering University of Belgrade Microprocessor Systems (MIPS)