Combinational Logic. By : Ali Mustafa

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

Systems I: Computer Organization and Architecture

ELCT201: DIGITAL LOGIC DESIGN

COMBINATIONAL LOGIC FUNCTIONS

Carry Look Ahead Adders

Sample Test Paper - I

Chapter 03: Computer Arithmetic. Lesson 03: Arithmetic Operations Adder and Subtractor circuits Design

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

Chapter 5 Arithmetic Circuits

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

Chapter 3 Combinational Logic Design

CMSC 313 Lecture 17. Focus Groups. Announcement: in-class lab Thu 10/30 Homework 3 Questions Circuits for Addition Midterm Exam returned

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

211: Computer Architecture Summer 2016

Fundamentals of Digital Design

ECE 545 Digital System Design with VHDL Lecture 1. Digital Logic Refresher Part A Combinational Logic Building Blocks

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

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

Combinational Logic Design Arithmetic Functions and Circuits

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

Boolean Algebra & Logic Gates. By : Ali Mustafa

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

Combinational Logic. Course Instructor Mohammed Abdul kader

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

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

CHAPTER1: Digital Logic Circuits Combination Circuits

UNSIGNED BINARY NUMBERS DIGITAL ELECTRONICS SYSTEM DESIGN WHAT ABOUT NEGATIVE NUMBERS? BINARY ADDITION 11/9/2018

COSC 243. Introduction to Logic And Combinatorial Logic. Lecture 4 - Introduction to Logic and Combinatorial Logic. COSC 243 (Computer Architecture)

CMSC 313 Lecture 18 Midterm Exam returned Assign Homework 3 Circuits for Addition Digital Logic Components Programmable Logic Arrays

Digital Logic Design ENEE x. Lecture 14

UNIVERSITI TENAGA NASIONAL. College of Information Technology

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

Combinational Logic. Jee-Hwan Ryu. School of Mechanical Engineering Korea University of Technology and Education

Adders, subtractors comparators, multipliers and other ALU elements

ELECTRONICS & COMMUNICATION ENGINEERING PROFESSIONAL ETHICS AND HUMAN VALUES

Additional Gates COE 202. Digital Logic Design. Dr. Muhamed Mudawar King Fahd University of Petroleum and Minerals

IT T35 Digital system desigm y - ii /s - iii

Review for Test 1 : Ch1 5

CSEE 3827: Fundamentals of Computer Systems. Combinational Circuits

XI STANDARD [ COMPUTER SCIENCE ] 5 MARKS STUDY MATERIAL.

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

Numbers and Arithmetic

COE 202: Digital Logic Design Combinational Circuits Part 2. Dr. Ahmad Almulhem ahmadsm AT kfupm Phone: Office:

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

Digital System Design Combinational Logic. Assoc. Prof. Pradondet Nilagupta

Digital Logic (2) Boolean Algebra

CSE140: Components and Design Techniques for Digital Systems. Decoders, adders, comparators, multipliers and other ALU elements. Tajana Simunic Rosing

ELEN Electronique numérique

We are here. Assembly Language. Processors Arithmetic Logic Units. Finite State Machines. Circuits Gates. Transistors

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

Logic and Computer Design Fundamentals. Chapter 5 Arithmetic Functions and Circuits

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.

Adders, subtractors comparators, multipliers and other ALU elements

Design of Sequential Circuits

Hakim Weatherspoon CS 3410 Computer Science Cornell University

KUMARAGURU COLLEGE OF TECHNOLOGY COIMBATORE

UNIT II COMBINATIONAL CIRCUITS:

Exam for Physics 4051, October 31, 2008

Digital Techniques. Figure 1: Block diagram of digital computer. Processor or Arithmetic logic unit ALU. Control Unit. Storage or memory unit

Unit 3 Session - 9 Data-Processing Circuits

ECE 545 Digital System Design with VHDL Lecture 1A. Digital Logic Refresher Part A Combinational Logic Building Blocks

CSC9R6 Computer Design. Practical Digital Logic

ว ตถ ประสงค ของบทเร ยน

Lecture 7: Logic design. Combinational logic circuits

Combinational Logic Design Combinational Functions and Circuits

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

Module 2. Basic Digital Building Blocks. Binary Arithmetic & Arithmetic Circuits Comparators, Decoders, Encoders, Multiplexors Flip-Flops

Combinational Logic. Review of Combinational Logic 1

BOOLEAN ALGEBRA. Introduction. 1854: Logical algebra was published by George Boole known today as Boolean Algebra

ELCT201: DIGITAL LOGIC DESIGN

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

THE LOGIC OF COMPOUND STATEMENTS

COMBINATIONAL LOGIC CIRCUITS. Dr. Mudathir A. Fagiri

KP/Worksheets: Propositional Logic, Boolean Algebra and Computer Hardware Page 1 of 8

Cs302 Quiz for MID TERM Exam Solved

Chapter 7 Logic Circuits

EEE130 Digital Electronics I Lecture #4

CSE 20 DISCRETE MATH. Fall

CMP 334: Seventh Class

A B OUT_0 OUT_1 OUT_2 OUT_

UNIT 4 MINTERM AND MAXTERM EXPANSIONS

14:332:231 DIGITAL LOGIC DESIGN. Why Binary Number System?

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

MODULAR CIRCUITS CHAPTER 7

SIR C.R.REDDY COLLEGE OF ENGINEERING ELURU DIGITAL INTEGRATED CIRCUITS (DIC) LABORATORY MANUAL III / IV B.E. (ECE) : I - SEMESTER

MC9211 Computer Organization

Ex code

DIGITAL TECHNICS. Dr. Bálint Pődör. Óbuda University, Microelectronics and Technology Institute

Adders - Subtractors

DE58/DC58 LOGIC DESIGN DEC 2014

10/14/2009. Reading: Hambley Chapters

CprE 281: Digital Logic

Class Website:

CHAPTER 7 MULTI-LEVEL GATE CIRCUITS NAND AND NOR GATES

9/29/2016. Task: Checking for a Lower-Case Letter. ECE 120: Introduction to Computing. Change C 5 to C 5 to Obtain L(C) from U(C)

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

Total Time = 90 Minutes, Total Marks = 50. Total /50 /10 /18

Binary addition example worked out

CMSC 313 Lecture 18 Midterm Exam returned Assign Homework 3 Circuits for Addition Digital Logic Components Programmable Logic Arrays

Transcription:

Combinational Logic By : Ali Mustafa

Contents Adder Subtractor Multiplier Comparator Decoder Encoder Multiplexer

How to Analyze any combinational circuit like this?

Analysis Procedure To obtain the output Boolean functions from a logic diagram: 1.Label all gate outputs that are a function of input variables. 2.Label the gates that are a function of input variables and previous labeled gates with different arbitrary symbols. 3.Repeat step 2 until the outputs of the circuit are obtained in terms of the input variables.

Analysis Procedure

Analysis Procedure

Analysis Procedure

Analysis Procedure Derivation of Truth Table

Analysis Procedure

Analysis Procedure

Summary : How to design a combinational circuit? 1. Determine the required number of inputs and outputs. 2.Derive the Truth Table. 3.Obtain the simplified Boolean functions. 4.Draw the logic diagram.

Example Design a combinational circuit with three inputs and one output. The output must equal 1 when the inputs are less than three and 0 otherwise. [use only NAND gates]

Example (cont.) 1-The system have three inputs and one output

Example (cont.) 2- Derive the truth table

Example (cont.)

Circuits to be Implemented Arithmetic circuits Half Adder Full Adder Binary Adder/Subtractor Binary Multiplier Magnitude Comparator

What's the example of Arithmetic Circuit? One of the famous Digital Logic Circuits is the calculator.

Arithmetic circuits An arithmetic circuit is a combinational circuit that performs arithmetic operations such as addition, subtraction, multiplication and division with binary numbers or with decimal numbers in a binary code. A combinational circuit that performs the addition of two bits is called a Half Adder.

Half adder It is required to design a combinational circuit that adds two binary numbers and produce the output in the form of two bits sum and carry Solution 1- We need to determine the inputs and output of the system and give letters for all of them our system has two inputs (X, Y) and two outputs (S, C)

Half adder 2-Derive the truth table according to the given relation between outputs and inputs In the half adder block the output equals the sum of two binary inputs

Half adder (cont.) 3- Obtain the simplified Boolean functions for each output as a function of the input variables using K-map 4- Draw the logic diagram

Full Adder It is required to add three binary numbers Solution 1. From the specifications of the circuit, determine the required number of inputs and outputs and assign a letter (symbol) to each.

Full Adder (cont.) 2. Derive the truth table according to the given relation between outputs and inputs

Full Adder (cont.) 3- Obtain the simplified Boolean functions for each output as a function of the input variables using K-map

Full Adder (cont.) 4- Draw the logic diagram

4-Bit Binary Adder (Ripple Carry Adder)

Ripple Carry Adder

Binary Subtractor The subtraction of binary number can be done most conveniently by means of complements The subtraction A-B is done by taking the 2 s complement of B and adding it to A. The 2 s complement can be obtained by taking the 1 s complement and adding 1 to the least significant bit. The 1 s complement can be implemented easily with inverter circuit and we can add 1 to the sum by making the initial input carry of the parallel adder equal to 1.

Adder/Subtractor

Subtractor A B D B 0 0 0 0 0 1 1 1 1 0 1 0 1 1 0 0 A B C D B 0 0 0 0 0 0 0 1 1 1 0 1 0 1 1 0 1 1 0 1 1 0 0 1 0 1 0 1 0 0 1 1 0 0 0 1 1 1 1 1 HALF SUBTRACTOR FULL SUBTRACTOR

Subtractor HALF SUBTRACTOR D = A B + AB B = A B FULL SUBTRACTOR D = A B C + A BC + AB C + ABC B = A C + A B + BC

4- Bit Subtractor

Assignment # 3 Design 4-Bit Adder - Subtractor

4-Bit Adder - Subtractor

Binary multiplier

Self Study 3 x 4 Bit Multiplier

Magnitude Comparator It is required to design a circuit to compare between two inputs A={A1,A0} and B={B1,B0} both inputs consists of two binary bits the circuit has three outputs Greater, Less, Equal

Magnitude Comparator (cont.) 1. Determine the required number of inputs and output.

Magnitude Comparator (cont.) 2. Derive the Truth Table that defines the required relationship between inputs and outputs.

Magnitude Comparator (cont.) 3- Get the simplified logic function of the outputs using k-map

Magnitude Comparator (cont.) 4- Draw the circuit

4 Bit Comparator

4 Bit Comparator