Z = F(X) Combinational circuit. A combinational circuit can be specified either by a truth table. Truth Table

Similar documents
Signals and Systems Digital Logic System

Chapter 3 Combinational Logic Design

Systems I: Computer Organization and Architecture

Chapter 4. Combinational: Circuits with logic gates whose outputs depend on the present combination of the inputs. elements. Dr.

Lecture 6: Gate Level Minimization Syed M. Mahmud, Ph.D ECE Department Wayne State University

COMBINATIONAL LOGIC FUNCTIONS

Lecture 6: Manipulation of Algebraic Functions, Boolean Algebra, Karnaugh Maps

Logic. Combinational. inputs. outputs. the result. system can

Sample Test Paper - I

Combinational Logic. By : Ali Mustafa

Karnaugh Map & Boolean Expression Simplification

Combinational Logic. Course Instructor Mohammed Abdul kader

MC9211 Computer Organization

Carry Look Ahead Adders

Computer Organization I. Lecture 13: Design of Combinational Logic Circuits

Number System. Decimal to binary Binary to Decimal Binary to octal Binary to hexadecimal Hexadecimal to binary Octal to binary

XOR - XNOR Gates. The graphic symbol and truth table of XOR gate is shown in the figure.

Slides for Lecture 16

Cs302 Quiz for MID TERM Exam Solved

Digital Logic (2) Boolean Algebra

Lecture 5: NAND, NOR and XOR Gates, Simplification of Algebraic Expressions

Unit 2 Session - 6 Combinational Logic Circuits

Chapter 2 Combinational Logic Circuits

EE40 Lec 15. Logic Synthesis and Sequential Logic Circuits

Fundamentals of Digital Design

ELECTRONICS & COMMUNICATION ENGINEERING PROFESSIONAL ETHICS AND HUMAN VALUES

Why digital? Overview. Number Systems. Binary to Decimal conversion

Part 1: Digital Logic and Gates. Analog vs. Digital waveforms. The digital advantage. In real life...

Contents. Chapter 3 Combinational Circuits Page 1 of 36

UNIT 4 MINTERM AND MAXTERM EXPANSIONS

MODULAR CIRCUITS CHAPTER 7


( c) Give logic symbol, Truth table and circuit diagram for a clocked SR flip-flop. A combinational circuit is defined by the function

Logic Simplification. Boolean Simplification Example. Applying Boolean Identities F = A B C + A B C + A BC + ABC. Karnaugh Maps 2/10/2009 COMP370 1

ECEN 248: INTRODUCTION TO DIGITAL SYSTEMS DESIGN. Week 2 Dr. Srinivas Shakkottai Dept. of Electrical and Computer Engineering

Chapter 4: Combinational Logic Solutions to Problems: [1, 5, 9, 12, 19, 23, 30, 33]

211: Computer Architecture Summer 2016

Boolean Algebra and Digital Logic 2009, University of Colombo School of Computing

Unit 3 Session - 9 Data-Processing Circuits

Combinational Logic Design Combinational Functions and Circuits

Simplifying Logic Circuits with Karnaugh Maps

UNIVERSITI TENAGA NASIONAL. College of Information Technology

Introduction to Karnaugh Maps

Review: Additional Boolean operations

ENGG 1203 Tutorial - 2 Recall Lab 2 - e.g. 4 input XOR. Parity checking (for interest) Recall : Simplification methods. Recall : Time Delay

CSCI 220: Computer Architecture-I Instructor: Pranava K. Jha. BCD Codes

Chapter 4 BOOLEAN ALGEBRA AND THEOREMS, MINI TERMS AND MAX TERMS

Reg. No. Question Paper Code : B.E./B.Tech. DEGREE EXAMINATION, NOVEMBER/DECEMBER Second Semester. Computer Science and Engineering

UNIT II COMBINATIONAL CIRCUITS:

Combinational Logic. Mantıksal Tasarım BBM231. section instructor: Ufuk Çelikcan

Minimization techniques

EECS150 - Digital Design Lecture 19 - Combinational Logic Circuits : A Deep Dive

CHAPTER 7. Exercises 17/ / /2 2 0

Combinational Logic. Lan-Da Van ( 范倫達 ), Ph. D. Department of Computer Science National Chiao Tung University Taiwan, R.O.C.

ENG2410 Digital Design Combinational Logic Circuits

CSE 140L Spring 2010 Lab 1 Assignment Due beginning of the class on 14 th April

Digital Systems and Information Part II

1 Boolean Algebra Simplification

EEE130 Digital Electronics I Lecture #4

Digital Logic Appendix A

This form sometimes used in logic circuit, example:

Chapter 2 Combinational Logic Circuits

DESIGN AND IMPLEMENTATION OF ENCODERS AND DECODERS. To design and implement encoders and decoders using logic gates.

Class Website:

Chapter 2 Boolean Algebra and Logic Gates

Ex: Boolean expression for majority function F = A'BC + AB'C + ABC ' + ABC.

Boolean Algebra & Logic Gates. By : Ali Mustafa

Propositional Logic. Logical Expressions. Logic Minimization. CNF and DNF. Algebraic Laws for Logical Expressions CSC 173

Chap 2. Combinational Logic Circuits

Chapter 2: Switching Algebra and Logic Circuits

KUMARAGURU COLLEGE OF TECHNOLOGY COIMBATORE

2009 Spring CS211 Digital Systems & Lab CHAPTER 2: INTRODUCTION TO LOGIC CIRCUITS

Midterm Examination # 1 Wednesday, February 25, Duration of examination: 75 minutes

Exclusive OR/ Exclusive NOR

Boolean algebra. Examples of these individual laws of Boolean, rules and theorems for Boolean algebra are given in the following table.

Schedule. ECEN 301 Discussion #25 Final Review 1. Date Day Class No. 1 Dec Mon 25 Final Review. Title Chapters HW Due date. Lab Due date.

II. COMBINATIONAL LOGIC DESIGN. - algebra defined on a set of 2 elements, {0, 1}, with binary operators multiply (AND), add (OR), and invert (NOT):

The Karnaugh Map COE 202. Digital Logic Design. Dr. Muhamed Mudawar King Fahd University of Petroleum and Minerals

Boolean Algebra. Digital Logic Appendix A. Postulates, Identities in Boolean Algebra How can I manipulate expressions?

Karnaugh Maps Objectives

Save from: cs. Logic design 1 st Class أستاذ المادة: د. عماد

Digital Logic Design. Combinational Logic

Principles of Computer Architecture. Appendix B: Reduction of Digital Logic. Chapter Contents

EECS150 - Digital Design Lecture 4 - Boolean Algebra I (Representations of Combinational Logic Circuits)

ECE 341. Lecture # 3

CHAPTER1: Digital Logic Circuits Combination Circuits

Combinational Digital Design. Laboratory Manual. Experiment #6. Simplification using Karnaugh Map

Gate-Level Minimization

Lecture 2 Review on Digital Logic (Part 1)

LOGIC GATES. Basic Experiment and Design of Electronics. Ho Kyung Kim, Ph.D.

Outline. EECS150 - Digital Design Lecture 4 - Boolean Algebra I (Representations of Combinational Logic Circuits) Combinational Logic (CL) Defined

PG - TRB UNIT-X- DIGITAL ELECTRONICS. POLYTECHNIC-TRB MATERIALS

Combinational Logic. Lan-Da Van ( 范倫達 ), Ph. D. Department of Computer Science National Chiao Tung University Taiwan, R.O.C.

Combinational Logic. Review of Combinational Logic 1

Combina-onal Logic Chapter 4. Topics. Combina-on Circuit 10/13/10. EECE 256 Dr. Sidney Fels Steven Oldridge

Chapter 2 Boolean Algebra and Logic Gates

Boolean Algebra. Digital Logic Appendix A. Boolean Algebra Other operations. Boolean Algebra. Postulates, Identities in Boolean Algebra

Chapter 2 Combinational Logic Circuits

Karnaugh Maps for Combinatorial Logic CS 64: Computer Organization and Design Logic Lecture #12

ENEL Digital Circuit Design. Final Examination

Transcription:

Lesson Objectives In this lesson, you will learn about What are combinational circuits Design procedure of combinational circuits Examples of combinational circuit design Combinational Circuits Logic circuit can be classified into two types. Combinational circuit, which consists of logic gates whose outputs at any time are determined by combining the values of the applied inputs using logic operations, and sequential circuits, which will be studied later. In combinational circuits, the output at any time is a direct function of the applied external inputs. In other words, Z = F(X) That is, the outputs depend only on present inputs Inputs X Combinational circuit Outputs Z A combinational circuit can be specified either by a truth table Design procedure The design of a combinational circuit starts from the specification of the problem, which leads to the truth table. Using the output values in the truth table, the logic equation for output function is found and simplified using K maps, or Algebraic manipulation or computer base tools. The equation of the output functions, the corresponding circuit is found Circuit Specification Truth Table K-maps, Algebraic Manipulation. Computer based tools Logic Diagram

Let us state these steps formally. 1) The first step is to find the truth table from circuit specification. This involves two substeps. The first is to determine the required number of inputs and outputs from the specification or verbal description of the problem. Then, assign a letter symbol to each input. Then, derive the truth table that defines the required relationship between inputs and outputs 2) Using the truth table, obtain the simplified Boolean expression for each output as a function of the input variables. The simplified equations can then be obtained using algebraic manipulation, K-maps, or computer-based tools ain the simplified Boolean expression for each output as of the input variables using 3) Once the simplified equations are found, the corresponding logic diagram can be derived A practical design must consider constraints such as: Number of gates used. Number of gate inputs (Fan-in). Maximum number of gates an output signal can drive (Fan-out). Speed (propagation delay) requirements. Example Design a combinational circuit which has 3-bit input number and a single output (F). The output signal F is specified as follows: F = 1 when the input number is less than (3) 10 F = 0 otherwise. Implement F using only NAND gates Let the three inputs be called X, Y, and Z. X is the most significant variable and Z is the least significant variable. The output F goes high, that is, the output produces logic 1 value if the input is less than 011, equivalent to a decimal value of three. This means that the output will be logic one for input combinations 0, 1, and 010. For other input combinations, which are 011 upto 111, the output is logic zero.

Dec. # X Y Z F 0 0 0 0 1 1 0 0 1 1 2 0 1 0 1 3 0 1 1 0 4 1 0 0 0 5 1 0 1 0 6 1 1 0 0 7 1 1 1 0 Since SOP expressions are directly implementable as 2-Level implementation of NAND gates, we consider the 1 s of the function as shown in the K-map. YZ X 0 1 1 1 0 1 0 0 0 0 F = X Y + X Z X Y X Z F Figure: NAND-NAND- implementation for F = X Y + X Z Code Converters Code converters are circuits which translate information from one binary code to another The inputs to the circuit provide the bit combination belonging to the first code, while the outputs constitute the corresponding combination belonging to the second code

The combinational circuit performs the transformation from one code to another inputs Code Converter Outputs Figure shows the general structure of a code converter, containing the inputs, the code converter circuit, and the outputs. Consider, for example, a binary BCD to Excess-3 code converter Example: BCD to excess-3 Code Converter In this problem, the input is a BCD codeword. Since this is a 4-bit code that represents a decimal digit (0-to-9), there will be 4 input bits which will be represented by four input variables A,B,C, and D. Output is a 4-bit excess-3 code (W, X, Y,Z) Having defined the inputs and outputs, we proceed to build the truth table for this code converter. The truth table, lists the values of the output (that is the excess-3 code) for all possible combinations of the binary code. Note that, these codes are codes for decimal digits 0-9. In other words, even though the 4 bits of the input can represent up to 16 different combinations, ONLY 10 combinations are used to represent the 10 decimal digits. Thus, a total of 6 input combinations are not likely to occur. Since these inputs will never occur, we use Don t cares for the corresponding output codes. BCD input Ex-3 output Decimal # A B C D W X Y Z 0 0 0 0 0 0 0 1 1 1 0 0 0 1 0 1 0 0 2 0 0 1 0 0 1 0 1 3 0 0 1 1 0 1 1 0 4 0 1 0 0 0 1 1 1 5 0 1 1 0 1 0 0 1 6 0 1 1 1 1 0 1 0 7 1 0 0 0 1 0 1 1 8 1 0 0 1 1 1 0 0 9 0 1 1 0 1 0 0 1 10-15 All other inputs X X X X Follow implementation procedure As the procedure for simplification of a Boolean function suggests, we will minimize the four output functions using K-maps. Thus we will be having four K-maps, one for each output function. Each of these K-maps are given below

The Circuit A W B X C Y D Z

Example: BCD to 7-segment display controller Let s take another example. We will design a BCD to seven-segment decoder. Before proceeding, let s first understand what a 7-segment display is? You might have noticed a digital watch, where the digits from 0 to 9 are displayed. These digits can be displayed using seven Light emitting diode segments (or LED s) arranged to look like digit 8 as shown in figure. By controlling which segment is ON and which is OFF we can display illuminated patterns that correspond to the 10 decimal digits 0 to 9. For example, digit 8 can be displayed by illuminating all the segments. The objective is to design a circuit that will take a BCD number as input, and produces the control signals C0 to C6 which allow illuminating the corresponding segments in the 7- segment display. c5 c4 c0 c6 c1 c2 c3 c0 c1 c2 c3 c4 c5 c6 c0 c1 c2 c3 c4 c5 c6 BCD to 7 segment decoder A B C D

Thus, the input is a 4-bit BCD digit A,B,C, and D; A being the most significant while D being the least significant. The seven segments, which are actually seven output signals, are numbered C0 to C6 that control the illumination of the 7-segment display. Each of the segment is a Light-Emitting Diode (LED) which is illuminated if current passes through it or dimmed if no current passes through it. For example, digit zero can be displayed by illuminating all the segments except segment C6. Digit 1 can be displayed by ONLY illuminating segments C1 and C2. Having defined the format of inputs and outputs, let us find out the truth table for this circuit. In the truth table, each input BCD code and its corresponding 7-segment output is shown. The truth table assumes that a logic-1 illuminates a segment while a logic-0 turns the segment off. BCD input Outputs for 7-segments Decimal A B C D C0 C1 C2 C3 C4 C5 C6 # 0 0 0 0 0 1 1 1 1 1 1 0 1 0 0 0 1 0 1 1 0 0 0 0 2 0 0 1 0 1 1 0 1 1 0 1 3 0 0 1 1 1 1 1 1 0 0 1 4 0 1 0 0 0 1 1 0 0 1 1 5 0 1 0 1 1 0 1 1 0 1 1 6 0 1 1 0 1 0 1 1 1 1 1 7 0 1 1 1 1 1 1 0 0 0 0 8 1 0 0 0 1 1 1 1 1 1 1 9 1 0 0 1 1 1 1 0 0 1 1 10-15 All other inputs 0 0 0 0 0 0 0 Even though the 4 bits of the input can represent up to 16 different combinations, ONLY 10 input combinations representing the 10 decimal digits are considered Valid. We will design the controller such that the Invalid Input combinations would turn-off all segments. Thus all 7 segments are turned off for input codes beyond 11. Now, we are ready to build the seven K-maps, one for each output segment. 1 0 1 1 1 1 1 1 01 0 1 1 1 01 1 0 1 0 11 0 0 0 0 11 0 0 0 0 10 1 1 0 0 10 1 1 0 0 C0 = A C + A B D +B C D + A B C C1 = A B + B C + A C D + A C D

01 11 10 1 1 1 0 1 1 1 1 0 0 0 0 1 1 0 0 01 11 10 1 0 1 1 0 1 0 1 0 0 0 0 1 1 0 0 C2 = A B + B C + A C + A D C3 = A C D + A B C + B C D + A B C + A B C D 1 0 0 1 01 0 0 0 1 11 0 0 0 0 10 1 0 0 0 C4 = A C D + B C D 1 0 0 0 01 1 1 0 1 11 0 0 0 0 10 1 1 0 0 C5 = A B C + A C D + A B D + A B C 01 11 10 0 0 1 1 1 1 0 1 0 0 0 0 1 1 0 0 C6 = A C D + A B C+ A B C + A B C