Functions of Combinational Logic

Slides:



Advertisements
Similar presentations
Modular Combinational Logic
Advertisements

Combinational Circuits
Combinational Circuits. Analysis Diagram Designing Combinational Circuits In general we have to do following steps: 1. Problem description 2. Input/output.
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.
CHAPTER 6 Functions of Combinational Logic
Floyd Digital Fundamentals, 9/e Copyright ©2006 by Pearson Education, Inc. Upper Saddle River, New Jersey All rights reserved. Slide 1 The Digital.
08/07/041 CSE-221 Digital Logic Design (DLD) Lecture-8:
Floyd Digital Fundamentals, 9/e Copyright ©2006 by Pearson Education, Inc. Upper Saddle River, New Jersey All rights reserved. Slide 1 The Digital.
Combinational Logic Chapter 4.
Digital Fundamentals Floyd Chapter 6 Tenth Edition
Combinational Logic1 DIGITAL LOGIC DESIGN by Dr. Fenghui Yao Tennessee State University Department of Computer Science Nashville, TN.
COMBINATIONAL CIRCUITS USING TTL 74XX ICS
Chapter 3 Combinational Logic Design
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,
Part 2: DESIGN CIRCUIT. LOGIC CIRCUIT DESIGN x y z F F = x + y’z x y z F Truth Table Boolean Function.
Digital Fundamentals with PLD Programming Floyd Chapter 8
Logic Gates Combinational Circuits
CS 105 Digital Logic Design
Digital Logic Lecture 08 By Amr Al-Awamry. Combinational Logic 1 A combinational circuit consists of an interconnection of logic gates. Combinational.
Top-down modular design
Combinational Logic Design CS341 Digital Logic and Computer Organization F2003.
Combinational Logic Design
Outline Analysis of Combinational Circuits Signed Number Arithmetic
Logic Design with MSI Circuits
Combinational and Sequential Logic Circuits.
Combinational Logic Chapter 4. Digital Circuits Combinational Circuits Logic circuits for digital system Combinational circuits the outputs are.
Digital Components and Combinational Circuits Sachin Kharady.
Eng. Mohammed Timraz Electronics & Communication Engineer University of Palestine Faculty of Engineering and Urban planning Software Engineering Department.
ADDERS Half Adders Recall that the basic rules of binary addition are as indicated below in Table 2-9. A circuit known as the half-adder carries out these.
Functions of Combinational Logic
Combinational Logic. Digital Circuits Introduction Logic circuits for digital systems may be combinational or sequential. A combinational circuit.
Lecture 9 Topics: –Combinational circuits Basic concepts Examples of typical combinational circuits –Half-adder –Full-adder –Ripple-Carry adder –Decoder.
CHAPTER 4 Combinational Logic
Functions of Combinational Logic By Taweesak Reungpeerakul
Logic Gates Logic gates are electronic digital circuit perform logic functions. Commonly expected logic functions are already having the corresponding.
CS 1110 Digital Logic Design
CS 105 DIGITAL LOGIC DESIGN Chapter 4 Combinational Logic 1.
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.
© 2009 Pearson Education, Upper Saddle River, NJ All Rights ReservedFloyd, Digital Fundamentals, 10 th ed Digital Logic Design Dr. Oliver Faust.
1 Chapter 4 Combinational Logic Logic circuits for digital systems may be combinational or sequential. A combinational circuit consists of input variables,
EKT 121 / 4 DIGITAL ELECTRONICS 1
WEEK #11 FUNCTIONS OF COMBINATIONAL LOGIC (PART 4)
Combinational Circuits
CHAPTER 2 Digital Combinational Logic/Arithmetic Circuits
A. Yaicharoen 1 1/2551 Logic Design with MSI Circuits วัตถุประสงค์ของบทเรียน  รู้จักวงจรประเภท MSI  เข้าใจการทำงานของวงจร MSI ที่มีใช้ อยู่ทั่วไป  สามารถประยุกต์ใช้วงจร.
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.
C OMBINATIONAL L OGIC D ESIGN 1 Eng.Maha AlGubali.
LOGIC CIRCUITLOGIC CIRCUIT. Goal To understand how digital a computer can work, at the lowest level. To understand what is possible and the limitations.
Logic Design (CE1111 ) Lecture 4 (Chapter 4) Combinational Logic Prepared by Dr. Lamiaa Elshenawy 1.
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.
Combinational Logic Design
© 2009 Pearson Education, Upper Saddle River, NJ All Rights ReservedFloyd, Digital Fundamentals, 10 th ed Digital Fundamentals Tenth Edition Floyd.
Combinational Circuits
Combinational Logic Logic circuits for digital systems may be combinational or sequential. A combinational circuit consists of input variables, logic gates,
Combinational Circuit Design
Combinational Logic Circuits
Digital Fundamentals Floyd Chapter 6 Tenth Edition
Computer Architecture CST 250
FUNCTION OF COMBINATIONAL LOGIC CIRCUIT
FIGURE 4.1 Block diagram of combinational circuit
EET107/3 DIGITAL ELECTRONICS 1
King Fahd University of Petroleum and Minerals
Ch 4. Combinational logic
Chapter-4 Combinational Logic
XOR Function Logic Symbol  Description  Truth Table 
Arithmetic Circuits.
Presentation transcript:

Functions of Combinational Logic

Parallel Binary Adders Comparator Decoders Encoders Code Converters Outline Basic Adders Parallel Binary Adders Comparator Decoders Encoders Code Converters Multiplexers Parity Generators/Checkers

Design Procedure of Combinational Circuits The design of a combinational circuit starts from the specification of the problem and end up in a logic circuit diagram or a set of Boolean expression (functions) from which the logic diagram can be obtained. The procedure involves the following step: From the specification of the circuit, determine the required number of inputs and outputs and assign a symbol for each. Derive the truth table that defines the required relationship between inputs and outputs. Obtain the simplified Boolean functions for each output as a function of the input variables. Draw the logic diagram and verify the correctness of the design.

Design Procedure of Combinational Circuits Some times the truth table has so many entries and it becomes so difficult to design a circuit based on the previous approach. Combinational circuits (digital functions) that posses an inherent well-defined regularity can usually be designed by means of an algorithmic procedure. An algorithm is a procedure that specifies a finite set of step that, if followed, give the solution to a problem. The algorithm is a direct application of the procedure a person uses to perform a certain task. example: comparator

Simple Binary Addition Half-Adder 0 + 0 = 0 0 + 1 = 1 1 + 0 = 1 1 + 1 = 10 Zero plus zero equals zero Zero plus one equals one One plus zero equals one One plus one equals zero with a carry of one Simple Binary Addition The half adder accepts two binary digits on its inputs and produces two binary digits on its outputs, a sum bit and a carry bit.

Half-Adder Logic symbol Logic diagram

Full-Adder The full adder accepts two input bits and an input carry and produces a sum and an output carry.

Full-Adder Full-adder logic.

Full adder from two half-adder circuits

Parallel Binary Adders Two or more full adders are connected to form parallel binary adders Two-bit parallel binary adder

Parallel Binary Adders Four-bit parallel binary adder

Application: a voting system using full adders and binary adders Self study. See pages 281 and 282 in the textbook.

Binary Subtractor The Subtraction A – B can be done by taking the 2’s complement (1’s complement + 1) of B and adding it to A. 1’s complement is implemented with inverters. The subtractor A – B is implemented by using adders and inverters. The input carry of Cin of the 1st adder must be equal to 1. The operation becomes: A + 1’s complement of B + 1. Example: Design 2 bit subtractor.

4 bit adder subtractor The addition and subtraction operations can be combined into one circuit with one binary adder. Inverter s are implemented by using XOR gates. When M = 0 the circuit is an adder. When M = 1 the circuit is subtractor

Comparators The basic function of a comparator is to compare the magnitudes of two binary quantities to determine the relationship of those quantities. 1-Bit Comparator 2-Bit Comparator 4-Bit Comparator

Comparators 1-Bit Comparator The output is 1 when the inputs are equal

Comparators 2-Bit Comparator The output is 1 when A0 = B0 AND A1 = B1

4-Bit Comparator One of three outputs will be HIGH: Comparators A greater than B (A > B) A equal to B (A = B) A less than B (A < B)

Designing the 4-bit comparator

BCD-to-decimal decoder BCD-to-7-segement decoder Decoders Binary decoder 4-bit decoder BCD-to-decimal decoder BCD-to-7-segement decoder

Binary decoder The output is 1 only when: A0 = 1 A2 = 0 A3 = 0 A4 = 1 Decoders Binary decoder The output is 1 only when: A0 = 1 A2 = 0 A3 = 0 A4 = 1 This is only one of an infinite number of examples

Decoders 4-bit decoder Logic Diagram

Decoders 4-bit decoder Binary inputs Active-low outputs Truth Table

BCD-to-decimal decoder Decoders BCD-to-decimal decoder

BCD-to-7-segement decoder Decoders BCD-to-7-segement decoder Logic Diagram

BCD-to-7-segement decoder Decoders BCD-to-7-segement decoder Truth Table

Decimal-to-BCD encoder 8-line-to-3-line encoder Encoders Decimal-to-BCD encoder 8-line-to-3-line encoder

Decimal-to-BCD encoder Encoders Decimal-to-BCD encoder

8-line-to-3-line encoder Encoders 8-line-to-3-line encoder

Code Converters

BCD-to-binary conversion Binary-Gray conversions Code Converters BCD-to-binary conversion Binary-Gray conversions

BCD-to-binary conversion Code Converters BCD-to-binary conversion

Binary-Gray conversions Code Converters Binary-Gray conversions

Multiplexers (Data Selectors)

Multiplexers (Data Selectors) 4-input multiplexer Expanded multiplexers

Multiplexers (Data Selectors) 4-input multiplexer

Multiplexers (Data Selectors) Expanded multiplexers

Demultiplexers

Demultiplexers 2-line-to4-line demux

Parity Generator/Checker

Parity Generator/Checker a parity bit is used for the purpose of detecting errors during the transmission of binary information, A parity bit is an extra bit included with a binary massage to make the number of I 's either odd or even. 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 with the one transmitted. The circuit that generates the parity bit in the transmitter is called a parity generator. The circuit that checks the parity in the receiver is called a parity checker.

3-bit parity Generator Exclusive-OR functions are used in the parity bit generator.

3-bit parity Generator/checker

Parity Generators/Checkers Parity generator/checker

These slides are based on Digital Fundamentals 9th ed. By Thomas Floyd