Chapter 4. Combinational Logic. Dr. Abu-Arqoub

Similar documents
LOGIC CIRCUITS. Kirti P_Didital Design 1

Chapter 3. Gate-Level Minimization. Outlines

Code No: R Set No. 1

Gate Level Minimization Map Method

Code No: R Set No. 1

QUESTION BANK FOR TEST

NH 67, Karur Trichy Highways, Puliyur C.F, Karur District UNIT-II COMBINATIONAL CIRCUITS

Computer Organization

COMBINATIONAL LOGIC CIRCUITS

Code No: R Set No. 1

Chapter 4. Combinational Logic


Chap.3 3. Chap reduces the complexity required to represent the schematic diagram of a circuit Library

Dr. S. Shirani COE2DI4 Midterm Test #1 Oct. 14, 2010


LSN 4 Boolean Algebra & Logic Simplification. ECT 224 Digital Computer Fundamentals. Department of Engineering Technology

2008 The McGraw-Hill Companies, Inc. All rights reserved.

A B AB CD Objectives:

CENG 241 Digital Design 1

Combinational Logic Circuits


Gate-Level Minimization

ENGINEERS ACADEMY. 7. Given Boolean theorem. (a) A B A C B C A B A C. (b) AB AC BC AB BC. (c) AB AC BC A B A C B C.

EEE130 Digital Electronics I Lecture #4_1

6.1 Combinational Circuits. George Boole ( ) Claude Shannon ( )

EE 8351 Digital Logic Circuits Ms.J.Jayaudhaya, ASP/EEE

UNIT- V COMBINATIONAL LOGIC DESIGN

END-TERM EXAMINATION

BUILDING BLOCKS OF A BASIC MICROPROCESSOR. Part 1 PowerPoint Format of Lecture 3 of Book

UNIT - V MEMORY P.VIDYA SAGAR ( ASSOCIATE PROFESSOR) Department of Electronics and Communication Engineering, VBIT

Chapter 2 Combinational Logic Circuits

Hybrid Electronics Laboratory

60-265: Winter ANSWERS Exercise 4 Combinational Circuit Design

Combinational Circuits

Unit-IV Boolean Algebra

Gate-Level Minimization

B.Tech II Year I Semester (R13) Regular Examinations December 2014 DIGITAL LOGIC DESIGN

Circuit analysis summary

SIDDHARTH GROUP OF INSTITUTIONS :: PUTTUR Siddharth Nagar, Narayanavanam Road QUESTION BANK (DESCRIPTIVE)

Experiment 7 Arithmetic Circuits Design and Implementation

IT 201 Digital System Design Module II Notes

Code No: 07A3EC03 Set No. 1

CSCI 220: Computer Architecture I Instructor: Pranava K. Jha. Simplification of Boolean Functions using a Karnaugh Map

TWO-LEVEL COMBINATIONAL LOGIC

Simplification of Boolean Functions

Computer Architecture and Organization: L04: Micro-operations

Chapter Three. Digital Components

Combinational Logic. Prof. Wangrok Oh. Dept. of Information Communications Eng. Chungnam National University. Prof. Wangrok Oh(CNU) 1 / 93

Content beyond Syllabus. Parity checker and generator

EXPERIMENT #8: BINARY ARITHMETIC OPERATIONS

Gate-Level Minimization

Mid-Term Exam Solutions

R07. Code No: V0423. II B. Tech II Semester, Supplementary Examinations, April

Programmable Logic Devices

Microcomputers. Outline. Number Systems and Digital Logic Review

DLD VIDYA SAGAR P. potharajuvidyasagar.wordpress.com. Vignana Bharathi Institute of Technology UNIT 3 DLD P VIDYA SAGAR

BINARY SYSTEM. Binary system is used in digital systems because it is:

2.1 Binary Logic and Gates

UNIT-III REGISTER TRANSFER LANGUAGE AND DESIGN OF CONTROL UNIT

Chapter 3. Boolean Algebra and Digital Logic

R a) Simplify the logic functions from binary to seven segment display code converter (8M) b) Simplify the following using Tabular method

R10. II B. Tech I Semester, Supplementary Examinations, May

SWITCHING THEORY AND LOGIC CIRCUITS

Register Transfer Language and Microoperations (Part 2)

Combinational Logic Circuits

Standard Forms of Expression. Minterms and Maxterms

NH 67, Karur Trichy Highways, Puliyur C.F, Karur District DEPARTMENT OF INFORMATION TECHNOLOGY CS 2202 DIGITAL PRINCIPLES AND SYSTEM DESIGN

Combinational Logic with MSI and LSI

Assignment (3-6) Boolean Algebra and Logic Simplification - General Questions

Objectives: 1- Bolean Algebra. Eng. Ayman Metwali

CS6201-DIGITAL PRINCIPLE AND SYSTEM DESIGN I YEAR/II SEM PART-B UNIT-I BOOLEAN ALGEBRA AND LOGIC GATES.

Gate-Level Minimization

數位系統 Digital Systems 朝陽科技大學資工系. Speaker: Fuw-Yi Yang 楊伏夷. 伏夷非征番, 道德經察政章 (Chapter 58) 伏者潛藏也道紀章 (Chapter 14) 道無形象, 視之不可見者曰夷

REGISTER TRANSFER LANGUAGE

X Y Z F=X+Y+Z

1. Boolean algebra. [6] 2. Constructing a circuit. [4] 3. Number representation [4] 4. Adders [4] 5. ALU [2] 6. Software [4]

LOGIC DESIGN. Dr. Mahmoud Abo_elfetouh

CS/IT DIGITAL LOGIC DESIGN

VALLIAMMAI ENGINEERING COLLEGE

CSE303 Logic Design II Laboratory 01

Addition and multiplication

Chapter 2 Boolean algebra and Logic Gates

Philadelphia University Faculty of Information Technology Department of Computer Science. Computer Logic Design. By Dareen Hamoudeh.

Arithmetic Logic Unit (ALU)

DHANALAKSHMI SRINIVASAN COLLEGE OF ENGINEERING AND TECHNOLOGY

Presentation 4: Programmable Combinational Devices

VALLIAMMAI ENGINEERING COLLEGE. SRM Nagar, Kattankulathur DEPARTMENT OF ELECTRONICS AND COMMUNICATION ENGINEERING EC6302 DIGITAL ELECTRONICS

VALLIAMMAI ENGINEERING COLLEGE

Binary logic. Dr.Abu-Arqoub

Boolean Analysis of Logic Circuits

Gate Level Minimization

HANSABA COLLEGE OF ENGINEERING & TECHNOLOGY (098) SUBJECT: DIGITAL ELECTRONICS ( ) Assignment

Chapter 2: Combinational Systems

Department of Electrical and Computer Engineering University of Wisconsin - Madison. ECE/CS 352 Digital System Fundamentals.

Spring 2010 CPE231 Digital Logic Section 1 Quiz 1-A. Convert the following numbers from the given base to the other three bases listed in the table:

Basic Arithmetic (adding and subtracting)

1. Mark the correct statement(s)

Basic circuit analysis and design. Circuit analysis. Write algebraic expressions or make a truth table

6.1 Combinational Circuits. George Boole ( ) Claude Shannon ( )

Introduction to Boolean logic and Logical Gates

Transcription:

Chapter 4 Combinational Logic

Introduction N Input Variables Combinational Logic Circuit M Output Variables 2

Design Procedure The problem is stated 2 The number of available input variables & required output variables are determined 3 The input & output variables are assigned letter symbols 4 The truth table that defines the required relationships between the inputs & outputs is derived 5 The simplified Boolean function for each output is obtained 6 The logic diagram is drawn 3

Example Design a system with three switches and two lamps, where The first lamp on only if any two sequence switches are on The second lamp on only if the first and the last switches on The three switches are on doesn't occur On -> Off -> 4

Example Number of inputs 3 Number of outputs 2 Let the three inputs be a, b, & c Let the two outputs be L, & L2 Truth Table: L2 L c b a X X 5

Example Boolean Function for the outputs: L= bc + ab L2= ac 6

Adders Adders are of two types: Half Adder (HF) Full Adder (FA) Half Adder: is the addition of two bits Design a combinational logic circuit to perform the addition of 2 bits? 7

Adders Number of inputs 2 Number of outputs 2 (2 bits to be added) (the sum & carry of two bits) Let two input bits be X, Y & the sum (S) & the carry (C) Truth Table: X Y S C 8

Adders X Y Combinational Logic Circuit For HA S C Boolean Function for the outputs: S = X Y + XY = X Y C = XY 9

Adders S = X Y = (X Y) = (XY + X Y ) = (C + X Y ) HA

Full Adder It s the arithmetic sum of three input bits (the sum of two significant bits & the carry from the previous lower significant position) Design a combinational logic circuit to perform the addition of 3 bits (sum of 2 bits & the carry) Number of Inputs 3 Number of outputs 2 (2 bits & carry) (sum & carry) Let the inputs be X, Y, C in Let the outputs be S, C out C out + X Y S C in

Full Adder Truth Table: C out S C in Y X 2

Full Adder Boolean functions for the outputs: No Simplification S = XY C in + X YC in + XYC in + X Y C in 3

Full Adder C out = YC in + XC in + XY S = XY C in + X YC in + XYC in + X Y C in = C in (XY + X Y) + C in (XY + X Y ) = C in (X Y) + C in (X Y) = C in Z + C in Z = C in Z = C in (X Y) 4

Full Adder C out = XY C in + X YC in + XYC in + XYC in = C in (XY + X Y) + XY (C in + C in ) = C in (X Y) + XY FA 5

Subtractors Problem: Using a combinational logic circuit, Design a Half Subtractor (HS) 2 a Full Subtractor (FS) Half Subtractor: Inputs X, Y Outputs D, B (Borrow) b X - Y ----- d 6

Subtractors Truth Table: X Y B D B = X Y D = X Y + XY = X Y 7

Subtractors 2 Full Subtractor: Inputs X, Y, Bp (Bp is the previous borrow) Outputs Bn, D (Bn is the next borrow) Truth Table: X Y Bp Bn D Bn x - y Bp Bn D 8

Full Subtractor: 9

Subtractors D = X Y Bp + X YBp + XY Bp + XYBp Bn = X Y + X Bp + YBp 2

Code Conversion Ex: Design a combinational logic circuit to perform a conversion from the BCD to the Excess-3 code Inputs 4 (A, B, C, D) Outputs 4 (W, X, Y, Z) 2

Code Conversion Truth Table: Output Excess-3 Input BCD Z Y X W D C B A x x x x x x x x 22

Code Conversion W = m 5 + m 6 + m 7 + m 8 + m 9 X = m + m 2 + m 3 + m 4 + m 9 Y = m + m 3 + m 4 + m 7 + m 8 Z = m + m 2 + m 4 + m 6 + m 8 W = A + BC + BD 23

Code Conversion X = B C + B D + BC D 24

Code Conversion Y = CD + C D 25

Code Conversion Z = D 26

Code Conversion W = A + BC + BD = A + B (C + D) X = B C + B D + BC D = B (C + D) + BC D = B (C + D) + B ( C + D) Y = CD + C D = CD + (C + D) Z = D 27

Analysis Procedure The analysis of a combinational circuit is the reverse process of the design of a combinational logic circuit It starts with a given logic diagram & ends with a set of Boolean functions, a truth table, or a verbal explanation of the circuit operation 28

Analysis Procedure Ex: Given the following logic circuit, analyze it: 29

Analysis Procedure R=XY R2=XZ R3=YZ F (X, Y, Z) = R + R 2 + R 3 = XY + XZ + YZ F 2 (X, Y, Z) = F(X,Y,Z) = (XY + XZ + YZ) = (X + Y ) (X + Z ) (Y + Z ) Truth Table: 3 F 2 = (F ) F = R + R 2 + R 3 R 3 = YZ R 2 = XZ R = XY Z Y X 3

Analysis Procedure Ex2: Given the following logic circuit, analyze it: R = (XY) R 2 = (R Z) F (X, Y, Z) = (R 2 X) R 2 = (RZ)=((XY) Z) = XY + Z F (X, Y, Z) = ((XY + Z ) X) = (XY + Z ) + X = Z (X + Y ) + X = ZX + ZY + X = X + ZY 3

Analysis Procedure Truth Table: 32 F = X + Y Z Y Z X Z Y X F = (R 2 X) R 2 = (R Z) R = (XY) OR 32

Analysis Procedure Ex3: Analyze the following logic circuit: F = (R 2 + Y), R 2 = (R + Z) R = (X + Y) R 2 = ((X + Y) + Z) F = (((X + Y) + Z) + Y) F = Y (X + Z) 33

Truth Table: Analysis Procedure X Y Z F (X, Y, Z) 34

Homework design a binary multiplier that multiplies two numbers each of them a two bit numer 2 design a circuit (incrementer) that adds one to a 4- bit binary number (use 4 half adders) 3 obtain the simplified Boolean expressions for output F and G in terms of the input variables in the circuit 35

Homework 4 Design a combinational circuit with 3 inputs and output the output is when the binary value of the inputs is less than 3, otherwise the output is 5 A majority circuit is a combinational circuit whose output is equal to if the input variables have more s than s, otherwise the output is design a 3-input majority circuit 36

Homework Q4 A parity generator circuit is a circuit that generates parity bit that is used for the purpose of detecting errors during transmission of binary information A parity bit is an extra bit included with a binary message to make the number of 's either odd or even Design a 3-bit combinational even parity generator circuit The circuit has three inputs: x, y, and z, which are constituted the message, and one output: p, which is constituted the parity bit The circuit functions as the following: The output (p) has the value only and only if the number of 's on the input lines (x, y, z) is odd, otherwise the output (p) has the value Note: in designing of the above circuit, please use only XOR gates 37