WEEK #11 FUNCTIONS OF COMBINATIONAL LOGIC (PART 4)

Slides:



Advertisements
Similar presentations
Other Gate Types COE 202 Digital Logic Design Dr. Aiman El-Maleh
Advertisements

Exclusive-OR and Exclusive-NOR Gates
Functions of Combinational Logic
ECE 3110: Introduction to Digital Systems Chapter 6 Combinational Logic Design Practices XOR, Parity Circuits, Comparators.
Company LOGO Edit your slogan here DKT 122/3 DIGITAL SYSTEM 1 WEEK #3 NUMBER SYSTEMS, OPERATION & CODES (PART 2)
Overview Part 3 – Additional Gates and Circuits 2-8 Other Gate Types
Exclusive-OR and Exclusive-NOR Gates
CHAPTER 2 Digital Combinational Logic/Arithmetic Circuits.
Code Converters, Multiplexers and Demultiplexers
Number Systems Benchmark Companies Inc PO Box Aurora CO
CHAPTER 6 Functions of Combinational Logic
Digital Fundamentals Floyd Chapter 2 Tenth Edition
DIGITAL SYSTEMS TCE OTHER COMBINATIONAL LOGIC CIRCUITS WEEK 7 AND WEEK 8 (LECTURE 1 OF 3) COMPARATORS CODE CONVERTERS.
Digital Fundamentals Floyd Chapter 6 Tenth Edition
1 Chapter 6 Functions of Combinational Logic. 2 Figure 6--1 Logic symbol for a half-adder Adder.
Digital Fundamentals with PLD Programming Floyd Chapter 8
Number Systems and Codes In PLC
1.6 Signed Binary Numbers.
Digital Logic Chapter 2 Number Conversions Digital Systems by Tocci.
© 2009 Pearson Education, Upper Saddle River, NJ All Rights ReservedFloyd, Digital Fundamentals, 10 th ed Digital Fundamentals Tenth Edition Floyd.
Programmable Logic Controllers
Digital Systems and Logic Design
Functions of Combinational Logic
Morgan Kaufmann Publishers
Functions of Combinational Logic
WEEK #9 FUNCTIONS OF COMBINATIONAL LOGIC (DECODERS & MUX EXPANSION)
CS151 Introduction to Digital Design
Logic Design Dr. Yosry A. Azzam. Binary systems Chapter 1.
Computer System Architecture © Korea Univ. of Tech. & Edu. Dept. of Info. & Comm. Chap. 2 Number Systems and Codes Binary to Decimal Conversions.
Eng. Mohammed Timraz Electronics & Communication Engineer University of Palestine Faculty of Engineering and Urban planning Software Engineering Department.
Digital Logic Design Week 3
1 Lect # 1 Binary Systems Digital vs. Analog Analog – a continuous range of values Digital – a discrete set of values –Like money –Can’t get smaller than.
Functions of Combinational Logic By Taweesak Reungpeerakul
Eng. Mohammed Timraz Electronics & Communication Engineer University of Palestine Faculty of Engineering and Urban planning Software Engineering Department.
CS 1110 Digital Logic Design
Summary Half-Adder pp302Basic rules of binary addition are performed by a half adder, which has two binary inputs (A and B) and two binary outputs (Carry.
EKT 124 / 3 DIGITAL ELEKTRONIC 1
MECH1500 Chapter 3.
© 2009 Pearson Education, Upper Saddle River, NJ All Rights ReservedFloyd, Digital Fundamentals, 10 th ed Digital Logic Design Dr. Oliver Faust.
EKT 121 / 4 DIGITAL ELECTRONICS 1
Chapter 1: Binary Systems
CHAPTER 2 Digital Combinational Logic/Arithmetic Circuits
Branch : IT Semester : 3 PREPARED BY:- Rajpurohit Shravansingh ( ) Patel Dipesh ( ) Shah Maulin( )
Module –I Codes: Weighted and non-weighted codes
AGBell – EECT by Andrew G. Bell (260) Lecture 2.
Company LOGO Edit your slogan here DKT 122/3 DIGITAL SYSTEM 1 WEEK #8 FUNCTIONS OF COMBINATIONAL LOGIC (ENCODER & DECODER, MUX & DEMUX)
ECE DIGITAL LOGIC LECTURE 4: BINARY CODES Assistant Prof. Fareena Saqib Florida Institute of Technology Fall 2016, 01/26/2016.
© 2009 Pearson Education, Upper Saddle River, NJ All Rights ReservedFloyd, Digital Fundamentals, 10 th ed Digital Fundamentals Tenth Edition Floyd.
Digital Systems: Number Systems and Codes Wen-Hung Liao, Ph.D.
Dr. Nermin Hamza. Agenda Signed Numbers Properties of Switching Algebra.
Ch2 Number systems and codes
Number Systems. The position of each digit in a weighted number system is assigned a weight based on the base or radix of the system. The radix of decimal.
Decoders A decoder is a logic circuit that detects the presence of a specific combination of bits at its input. Two simple decoders that detect the presence.
© 2009 Pearson Education, Upper Saddle River, NJ All Rights ReservedFloyd, Digital Fundamentals, 10 th ed Digital Fundamentals Tenth Edition Floyd.
Decoder Chapter 12 Subject: Digital System Year: 2009.
Combinational Logic Design
© 2009 Pearson Education, Upper Saddle River, NJ All Rights ReservedFloyd, Digital Fundamentals, 10 th ed Digital Fundamentals Tenth Edition Floyd.
EKT 124 / 3 DIGITAL ELEKTRONIC 1
Combinational Circuits
Overview Part 1 – Gate Circuits and Boolean Equations
Combinational Logic Circuits
Digital Fundamentals Floyd Chapter 6 Tenth Edition
2 Number Systems and Codes Edited by Jerry Bernardini.
Digital Systems: Number Systems and Codes
EET107/3 DIGITAL ELECTRONICS 1
King Fahd University of Petroleum and Minerals
Overview Part 3 – Additional Gates and Circuits 2-8 Other Gate Types
Number Systems.
Arithmetic Circuits.
Presentation transcript:

WEEK #11 FUNCTIONS OF COMBINATIONAL LOGIC (PART 4) DKT 122/3 DIGITAL SYSTEM 1 WEEK #11 FUNCTIONS OF COMBINATIONAL LOGIC (PART 4)

Topic Outlines Code Converters Comparators Parity Generators/Checkers

Code Converters Code converters is a device that is used to convert a coded number into another form that is more usable by a computer or digital system Example: BCD to binary, BCD to 7-segment display, Gray-to-binary code and binary-to-Gray code

Code Converters BCD-to-Binary Conversion The basic conversion process is as follows: (a) The value, or weight of each bit in the BCD number is represented by a binary number (b) All of the binary representations of the weights of bits that are 1’s in the BCD number are added (c) The result of this addition is the binary equivalent of the BCD number

Code Converters BCD-to-Binary Conversion Example: 1000 0111 : BCD 8 7 : decimal weight 10 1 Within each group, the binary weight of each bit is as follows: Tens Digit Units Digit Weight: 80 40 20 10 8 4 2 1 Bit designation: B3 B2 B1 B0 A3 A2 A1 A0

BINARY REPRESENTATION Code Converters BCD-to-Binary Conversion BCD BIT BCD WEIGHT BINARY REPRESENTATION (MSB) (LSB) 64 32 16 8 4 2 1 A0 A1 A2 A3 B0 10 B1 20 B2 40 B3 80 If the binary representations for the weights of all the 1’s in the BCD number are added, the results is the binary number that corresponds to the BCD number.

Code Converters Binary-to-Gray Conversion (and vice-versa) 4-bit binary-to-Gray conversion logic 4-bit Gray-to-binary conversion logic

Comparators To compare two digital quantities to determine the relationship of those quantities Comparison is made in terms of Equal to (“=”) Less than (“<”) Greater than (“>”)

Equality comparison of two 2-bit numbers Comparators Equality Truth-Table A B A=B 1 The output of the AND gate indicates equality (1) or inequality (0) Logic diagram Equality comparison of two 2-bit numbers

Logic symbol for a 4-bit comparator with inequality function Comparators Inequality (“<” or “>”) To determine the inequality of binary numbers A and B, first examine the highest order bit for each number: If A3=1 and B3=0, means number A > B If A3=0 and B3=1, means number A < B If A3=B3, need to examine the next lower bit position for an inequality Logic symbol for a 4-bit comparator with inequality function

Comparators 7485 comparator chip

Comparators 8-bit magnitude comparator

Parity Generators/Checkers Error detection A parity bit is a scheme for detecting errors during transmission of binary info. The message, including the parity bit, is transmitted and then checked at the receiving end for errors. An error is detected if the checked parity does not correspond to the one transmitted. The circuit that generates the parity bit in the transmitter is a parity generator. The circuit that checks the parity bit in the receiver is a parity checker.

Parity Generators/Checkers Error detection Parity systems are defined as either odd parity or even parity. The parity system adds an extra bit to the digital information being transmitted. E.g.: 4-bit system requires a 5-th bit, 8-bit system will require a 9-th bit, … The parity bit will be a 1 or 0, depending on what the other bits are. E.g. (4-bit system) Odd-parity system - the parity bit that is added must make the sum of all 5 bits odd Even-parity system - the parity bit makes the sum of all 5 bits even

Odd Parity In ODD parity when we add the bits together disregarding weight we get or want to get an odd number. 0000 is a four bit message add a parity bit to make it odd 10000 Odd parity is satisfied 00011001 is an eight bit message 000011001 Odd parity is satisfied Parity bit

Even Parity In EVEN parity when we add the bits together disregarding weight we get or want to get an even number. 0000 is a four bit message add a parity bit to make it even 00000 Even parity is satisfied 00011001 is an eight bit message 100011001 Even parity is satisfied Parity bit

Parity Generator Parity Generator Use exclusive ORs and Exclusive NORs Even Parity Odd Parity

Parity Generator Parity generator truth table For odd parity, the bit P is generated so as to make the number of 1’s odd (including P) X Y Z P 1 3-bit odd parity generator Question: How about EVEN parity generator?

Parity Checker Parity Checker 0 – ok 1 – error Odd Parity Even Parity

Parity Checker X Y Z P C 0 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 0 1 1 1 0 1 0 0 0 0 1 0 1 1 0 1 1 0 1 0 1 1 1 0 1 0 0 0 0 1 0 0 1 1 1 0 1 0 1 1 0 1 1 0 1 1 0 0 1 1 1 0 1 0 1 1 1 0 0 1 1 1 1 1 The three-bit message (X, Y, Z) and parity bit (P) are transmitted to their destination, where they are applied to a ODD parity checker circuit. An error occurs during transmission if the parity of the four bits is even, since the binary info transmitted was originally odd. The output C of the parity checker should be a 1 when an error occurs, i.e. when the number of 1’s in the four inputs is even.

Parity Generators/Checkers The 9-bit parity generator/checker Input is 8-bits of data and 1 parity bit When there is an even no. of 1’s at the inputs, the Σ Even is high while the Σ Odd is low.

Parity Generators/Checkers The 9-bit parity generator/checker Parity Checker Function When used as an EVEN Parity Checker, If a parity error occurs, the Σ Even is low while the Σ Odd is high. When used as an ODD Parity Checker, If a parity error occurs, the Σ Odd is low while the Σ Even is high.

Parity Generators/Checkers The 9-bit parity generator/checker Parity Generator Function When used as an EVEN Parity Generator, The parity bit is taken at the Σ Odd output. It is 0 if there is an even no. of 1’s, and is 1 if there is an odd no. When used as an ODD Parity Generator, The parity bit is taken at the Σ Even output. It is 0 if there is an odd no. of 1’s, and is 1 if there is an even no. END