Functions of Combinational Logic By Taweesak Reungpeerakul

Slides:



Advertisements
Similar presentations
Functions of Combinational Logic
Advertisements

ECE 2110: Introduction to Digital Systems Chapter 6 Combinational Logic Design Practices Encoders.
Modular Combinational Logic
Digital Logic Design Week 7 Encoders, Decoders, Multiplexers, Demuxes.
Functions and Functional Blocks
Henry Hexmoor1 C hapter 4 Henry Hexmoor-- SIUC Rudimentary Logic functions: Value fixing Transferring Inverting.
System Digital Encoder, Decoder, and Contoh Penerapanya.
Floyd Digital Fundamentals, 9/e Copyright ©2006 by Pearson Education, Inc. Upper Saddle River, New Jersey All rights reserved. Slide 1 Digital Fundamentals.
CHAPTER 2 Digital Combinational Logic/Arithmetic Circuits.
Code Converters, Multiplexers and Demultiplexers
CHAPTER 6 Functions of Combinational Logic
EET 1131 Unit 8 Code Converters, Multiplexers, and Demultiplexers
MSI Logic Circuits Wen-Hung Liao, Ph.D.. Objectives Analyze and use decoders and encoders in various types of circuit applications. Compare the advantages.
Homework Reading Machine Projects Labs
Digital Fundamentals Floyd Chapter 6 Tenth Edition
COMBINATIONAL CIRCUITS USING TTL 74XX ICS
OTHER COMBINATIONAL LOGIC CIRCUITS
OTHER COMBINATIONAL LOGIC CIRCUITS WEEK 7 AND WEEK 8 (LECTURE 2 OF 3)
1 Chapter 6 Functions of Combinational Logic. 2 Figure 6--1 Logic symbol for a half-adder Adder.
Figure 6–1 Logic symbol for a half-adder. Open file F06-01 to verify operation. Thomas L. Floyd Digital Fundamentals, 9e Copyright ©2006 by Pearson Education,
Digital Fundamentals with PLD Programming Floyd Chapter 8
Logic Gates Combinational Circuits
CS 151: Digital Design Chapter 3 3-8: Encoding. CS 151 Encoding Encoding - the opposite of decoding - the conversion of a maximum of 2 n input code to.
Combinational Logic Design
Functions of Combinational Logic
9 MSI Logic Circuits Some of digital system operations: Decoding and encoding; multiplexing; demultiplexing; comparison; code converting; data busing.
Logic Design with MSI Circuits
1 Digital Logic Design Week 7 Decoders, encoders and multiplexers.
Functions of Combinational Logic
Documentation Standards Circuit specification. –Description of what the system is supposed to do, including a description of all inputs and outputs and.
Combinational Logic By Taweesak Reungpeerakul
WEEK #9 FUNCTIONS OF COMBINATIONAL LOGIC (DECODERS & MUX EXPANSION)
Eng. Mohammed Timraz Electronics & Communication Engineer University of Palestine Faculty of Engineering and Urban planning Software Engineering Department.
CS151 Introduction to Digital 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
© 2009 Pearson Education, Upper Saddle River, NJ All Rights ReservedFloyd, Digital Fundamentals, 10 th ed Digital Logic Design Dr. Oliver Faust.
© 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
WEEK #11 FUNCTIONS OF COMBINATIONAL LOGIC (PART 4)
CHAPTER 2 Digital Combinational Logic/Arithmetic Circuits
1 Combinational Logic EE 208 – Logic Design Chapter 4 Sohaib Majzoub.
A. Yaicharoen 1 1/2551 Logic Design with MSI Circuits วัตถุประสงค์ของบทเรียน  รู้จักวงจรประเภท MSI  เข้าใจการทำงานของวงจร MSI ที่มีใช้ อยู่ทั่วไป  สามารถประยุกต์ใช้วงจร.
Combinational Circuit Design. Digital Circuits Combinational CircuitsSequential Circuits Output is determined by current values of inputs only. Output.
Company LOGO Edit your slogan here DKT 122/3 DIGITAL SYSTEM 1 WEEK #8 FUNCTIONS OF COMBINATIONAL LOGIC (ENCODER & DECODER, MUX & DEMUX)
MSI Combinational logic circuits
A multiplexer (MUX) selects one data line from two or more input lines and routes data from the selected line to the output. The particular data line that.
© 2009 Pearson Education, Upper Saddle River, NJ All Rights ReservedFloyd, Digital Fundamentals, 10 th ed Digital Fundamentals Tenth Edition Floyd.
© 2009 Pearson Education, Upper Saddle River, NJ All Rights ReservedFloyd, Digital Fundamentals, 10 th ed Digital Fundamentals Tenth Edition Floyd.
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.
ACOE161 (Spring2007)MSI Devices1 Revision on MSI Devices M. Mano & C. Kime: Logic and Computer Design Fundamentals (Chapter 5)
© 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.
Lecture No. 18 Combinational Functional Devices. Recap Decoder Decoder –3-to-8 Decoder –Cascading of Decoders 4-to-16 decoder –Implementing SOP & POS.
MSI Circuits.
CHAPTER 2 Digital Combinational Logic/Arithmetic Circuits.
© 2009 Pearson Education, Upper Saddle River, NJ All Rights ReservedFloyd, Digital Fundamentals, 10 th ed Digital Fundamentals Tenth Edition Floyd.
EGR 2131 Unit 6 Combinational Building Blocks
EKT 124 / 3 DIGITAL ELEKTRONIC 1
EKT 124 MUX AND DEMUX.
Combinational Circuits
Combinational Logic Circuits
Digital Fundamentals Floyd Chapter 6 Tenth Edition
FUNCTION OF COMBINATIONAL LOGIC CIRCUIT
Unit5 Combinational circuit and instrumentation system.
Chapter 6 Functions of Combinational Logic
FIGURE 4.1 Block diagram of combinational circuit
EET107/3 DIGITAL ELECTRONICS 1
Digital System Design Combinational Logic
Arithmetic Circuits.
Presentation transcript:

Functions of Combinational Logic By Taweesak Reungpeerakul Chapter 6 Functions of Combinational Logic By Taweesak Reungpeerakul 241-208 CH6

Contents Adders Comparators Decoders Encoders Code Converters Multiplexers Demultiplexers Parity Generators 241-208 CH6

6.1 Basic Adders Full Adder Half Adder A B Cin SUM Cout A B SUM Cout 0 0 0 0 0 0 0 1 1 0 0 1 0 1 0 0 1 1 0 1 1 0 0 1 0 1 0 1 0 1 1 1 0 0 1 1 1 1 1 1 Half Adder A B SUM Cout 0 0 0 0 0 1 1 0 1 0 1 0 1 1 0 1 SUM = AB Cout = AB SUM = ABCin Cout = AB+(AB)Cin 241-208 CH6

Logic Symbol and Diagram Half Adder Full Adder 241-208 CH6

Full Adder by 2 Half Adders SUM = ABCin Cout = AB+(AB)Cin AB AB 241-208 CH6

6.2 Parallel Binary Adder A full adder is required for each A2A1 bit in the numbers. A2A1 + B2B1 S3S2S1 241-208 CH6 Question: 4-bit numbers

Four Adders A B Cn-1 Sn Cn 0 0 0 0 0 0 0 1 1 0 0 1 0 1 0 0 1 1 0 1 1 0 0 1 0 1 0 1 0 1 1 1 0 0 1 1 1 1 1 1 241-208 CH6

IC:4-bit Parallel Adder Example: 74LS83A (or 74LS283) 74LS83A 74LS283 Question: Show circuit diagram of A+B by using 74LS83A. A = 00001111 and B = 01011100 241-208 CH6

6.3 Comparators Inequality Equality Comparing A and B: AB IC: 74LS85 Equality Comparing A and B: AB If A=B, output = 0 If A≠B, output = 1 HIGH indicates equality: AB (XNOR) A1A0 ? B1B0 A1 A0 A2 A3 B1 B0 B2 B3 Cascading inputs COMP A = B A < B A > B 3 A B Outputs Question: Show circuit diagram in order to compare two 8-bit numbers by using 74LS85. 241-208 CH6

Two 74LS85 Cascaded Arrangement Outputs A1 A0 A2 A3 B1 B0 B2 B3 COMP A = B A < B A > B 3 A A5 A4 A6 A7 B5 B4 B6 B7 +5.0 V LSBs MSBs 241-208 CH6

6.4 Decoders A decoder is a logic circuit that detects the presence of a specific combination of bits at its input. A0 A0 A1 OUT A1 OUT A2 A2 A3 A3 Active HIGH decoder for 0011 Active LOW decoder for 0011 241-208 CH6

4-to-16 Decoder A0 A1 A2 A3 CS1 CS2 IC: 74HC154 Question: Use 74HC154 to implement the logic in order to support a 5-bit number. 241-208 CH6

BCD-to-Decimal Decoder BCD-to-decimal decoders accept a binary coded decimal input and activate one of ten possible decimal digit indications. IC: 74HC42 Question: Assume the inputs to the 74HC42 decoder are the sequence 0101, 0110, 0011, and 0010. Describe the output. A0 Answer: All lines are HIGH except for one active output, which is LOW. The active outputs are 5, 6, 3, and 2 in that order. A1 A2 A3 Question: Write truth table of output 0. 241-208 CH6

BCD-to-7-Segment Decoder IC: 74LS47 BCD Inputs (D-A) 7-segment Outputs (a -g) Ripple Blanking Input (RBI) Blanking Input/Ripple Blanking Output (BI/RBO) Lamp Test (LT) Zero Suppression VCC BCD/7-seg BI/RBO BI/RBO BCD inputs Outputs to seven segment device LT LT RBI RBI 74LS47 GND 241-208 CH6

Illustration of Leading Zero Suppression 241-208 CH6

Illustration of Trailing Zero Suppression 241-208 CH6

6.5 Encoders An encoder accepts an active logic level on one of its inputs representing a digit, such as a decimal or octal digits, and converts it to a coded output, such as BCD or binary. IC: 74HC147 16-to-4 encoder (decimal-to-BCD) IC: 74F148 8-to-3 encoder 1 A0 2 3 A1 4 5 A2 6 7 8 A3 9 241-208 CH6

Example Show how the decimal-to-BCD encoder converts the decimal number 3 into a BCD 0011. 1 1 1 A0 2 3 1 A1 4 5 A2 6 7 8 A3 9 241-208 CH6

74HC147 Means highest value input has priority VCC The 74HC147 is an example of an IC encoder. It has ten active-LOW inputs and converts the active input to an active-LOW BCD output. This device offers additional flexibility with a priority encoder. HPRI/BCD Decimal input BCD output GND 74HC147 241-208 CH6

A Simplified Keyboard Encoder VCC BCD complement of key press Not used by this encoder but may be used by other circuits to detect the key press. 241-208 CH6

6.6 Code Converters BCD-to-BIN Conversion IC: 74184 BIN-to-BCD Conversion IC: 74185 241-208 CH6

Code Converters (cont.) BIN-to-Gray Gray-to-BIN LSB LSB G0 B0 B0 G0 B1 G1 G1 B1 B2 G2 B2 G2 B3 G3 G3 B3 MSB MSB Question: Show the conversion of binary 0111 to Gray and vice versa. 241-208 CH6

6.7 Multiplexers (MUX) A multiplexer has several data-input lines and a single output line. It also has data-select inputs, which permit digital data on any one of the inputs to be switched to the output line. Another name is a data selector. IC: 74HC157 Quad 2-input MUX IC: 74HC151 8-input MUX S0 Data select 1 S1 D0 Data output D1 Data inputs D2 D3 Question: Which data line is selected if S1S0 = 10? 241-208 CH6

ICs 74HC157 Quad 2-input MUX 74HC151 8-input MUX 241-208 CH6

6.8 Demultiplexers (DEMUX) 74LS138 A DEMUX basically reverses the multiplexing function. It takes data from one input line and distributes to one of output lines depending on the select lines. Another name is a data distributor. IC: 74LS138 8-output DEMUX Data select lines 1 Data outputs Enable inputs Question: Which data output is selected if A2A1A0 = 010? 241-208 CH6

Example (DEMUX) Determine the outputs, given the inputs shown. A A A G A 1 A 2 G 1 Determine the outputs, given the inputs shown. G LOW 2A G LOW 2B Y Y Data select lines 1 Y 2 Data outputs Y 3 Enable inputs Y 4 Y 5 Y 6 74LS138 Y 7 241-208 CH6

6.9 Parity Generators/Checkers One method of error detections is to use parity. A parity bit is attached to a group of data in order to make the total number of 1s either even or odd. Example The data is 1010011. Show the parity bit for the data with odd and even parity. Solution data with odd parity = 11010011 data with even parity = 01010011 241-208 CH6

6.9 Parity Generators/Checkers (cont.) IC: 74LS280 9-bit parity generator/checker (8 bits+1 parity bit) Checker: # of 1s on inputs ∑ Even ∑ Odd 0,2,4,6,8 H L 1,3,5,7,9 L H 74LS280 Data inputs S Even S Odd Generator: To generate even parity, the parity bit is taken from the odd parity output. To generate odd parity, the output is taken from the even parity output. 241-208 CH6