KFUPM COE 202: Digital Logic Design Combinational Logic Part 1 Courtesy of Dr. Ahmad Almulhem.

Slides:



Advertisements
Similar presentations
Boolean Algebra and Logic Gates
Advertisements

Chapter 2 Logic Circuits.
ECE 331 – Digital System Design Boolean Algebra (Lecture #3) The slides included herein were taken from the materials accompanying Fundamentals of Logic.
ECE 331 – Digital System Design
Chapter 2 – Combinational Logic Circuits Part 1 – Gate Circuits and Boolean Equations Logic and Computer Design Fundamentals.
CS 151 Digital Systems Design Lecture 6 More Boolean Algebra A B.
Boolean Algebra and Logic Gates
ECE 301 – Digital Electronics Boolean Algebra and Standard Forms of Boolean Expressions (Lecture #4) The slides included herein were taken from the materials.
Chapter 2: Boolean Algebra and Logic Functions
Binary Logic and Gates COE 202 Digital Logic Design Dr. Aiman El-Maleh
Gate Circuits and Boolean Equations BIL- 223 Logic Circuit Design Ege University Department of Computer Engineering.
9/15/09 - L5 Boolean AlgebraCopyright Joanne DeGroat, ECE, OSU1 Boolean Algebra.
1 Logic Gates Digital Computer Logic Kashif Bashir WWW:
Binary Logic and Gates Binary variables take on one of two values.
BOOLEAN ALGEBRA Saras M. Srivastava PGT (Computer Science)
Boolean Algebra and Digital Circuits
ECE 331 – Digital System Design
Combinational Logic 1.
Module 4.  Boolean Algebra is used to simplify the design of digital logic circuits.  The design simplification are based on: Postulates of Boolean.
Chapter 4 Combinational Logic Design Principles. Overview Objectives -Define combinational logic circuit -Analysis of logic circuits (to describe what.
LOGIC GATES & BOOLEAN ALGEBRA
ECE 301 – Digital Electronics Basic Logic Operations, Boolean Expressions, and Boolean Algebra (Lecture #3)
1 EG 32 Digital Electronics Thought for the day You learn from your mistakes..... So make as many as you can and you will eventually know everything.
05 BA2 Page 1 ECEn/CS 224 Boolean Algebra – Part 2.
1 BOOLEAN ALGEBRA Basic mathematics for the study of logic design is Boolean Algebra Basic laws of Boolean Algebra will be implemented as switching devices.
Chap 2. Combinational Logic Circuits
A. Abhari CPS2131 Chapter 2: Boolean Algebra and Logic Gates Topics in this Chapter: Boolean Algebra Boolean Functions Boolean Function Simplification.
Lecture 4 Boolean Algebra. Logical Statements °A proposition that may or may not be true: Today is Monday Today is Sunday It is raining °Compound Statements.
1 Lect # 2 Boolean Algebra and Logic Gates Boolean algebra defines rules for manipulating symbolic binary logic expressions. –a symbolic binary logic expression.
Logic Circuits Lecture 3 By Amr Al-Awamry. Basic Definitions Binary Operators  AND z = x y = x yz=1 if x=1 AND y=1  OR z = x + y z=1 if x=1 OR y=1 
© BYU 03 BA1 Page 1 ECEn 224 Boolean Algebra – Part 1.
Binary Logic and Gates Boolean Algebra Canonical and Standard Forms Chapter 2: Boolean Algebra and Logic Gates.
Boolean Algebra & Logic Circuits Dr. Ahmed El-Bialy Dr. Sahar Fawzy.
CEC 220 Digital Circuit Design Boolean Algebra Friday, January 17 CEC 220 Digital Circuit Design Slide 1 of 22.
Boolean Algebra and Logic Gates
Module –I Boolean Algebra Digital Design Amit Kumar Assistant Professor SCSE, Galgotias University, Greater Noida.
Ahmad Almulhem, KFUPM 2009 COE 202: Digital Logic Design Combinational Logic Part 1 Dr. Ahmad Almulhem ahmadsm AT kfupm Phone: Office:
Dale Roberts Department of Computer and Information Science, School of Science, IUPUI Dale Roberts, Lecturer Computer Science, IUPUI
ECEN 248: INTRODUCTION TO DIGITAL SYSTEMS DESIGN Lecture 4 Dr. Shi Dept. of Electrical and Computer Engineering.
ECE DIGITAL LOGIC LECTURE 8: BOOLEAN FUNCTIONS Assistant Prof. Fareena Saqib Florida Institute of Technology Spring 2016, 02/11/2016.
BOOLEAN ALGEBRA LOGIC GATES. Introduction British mathematician George Boole( ) was successful in finding the link between logic and mathematics.
Boolean Algebra. BOOLEAN ALGEBRA Formal logic: In formal logic, a statement (proposition) is a declarative sentence that is either true(1) or false (0).
Lecture 5 More Boolean Algebra A B. Overview °Expressing Boolean functions °Relationships between algebraic equations, symbols, and truth tables °Simplification.
CSE 461. Binary Logic Binary logic consists of binary variables and logical operations. Variables are designated by letters such as A, B, C, x, y, z etc.
©2010 Cengage Learning SLIDES FOR CHAPTER 3 BOOLEAN ALGEBRA (continued) Click the mouse to move to the next page. Use the ESC key to exit this chapter.
CHAPTER 2 Boolean algebra and Logic gates
ECE 301 – Digital Electronics
Chapter 2: Boolean Algebra and Logic Functions
CS 105 Digital Logic Design
Gate Circuits and Boolean Equations
CHAPTER 2 Boolean Algebra
CHAPTER 2 Boolean Algebra This chapter in the book includes:
Overview Part 1 – Gate Circuits and Boolean Equations
Lecture 3 Algebraic Simplification
Princess Sumaya University
Boolean Algebra – Part 1 ECEn 224.
CHAPTER 2 Boolean Algebra
17-Nov-18 Logic Algebra 1 Combinational logic.
Boolean Algebra.
Boolean Algebra & Logic Circuits
Chapter 2 Boolean Algebra and Logic Gate
COE 202: Digital Logic Design Combinational Logic Part 1
Functions Computers take inputs and produce outputs, just like functions in math! Mathematical functions can be expressed in two ways: We can represent.
COE 202: Digital Logic Design Combinational Logic Part 3
CHAPTER 3 BOOLEAN ALGEBRA (continued)
ECE 352 Digital System Fundamentals
Chapter 4 Combinational Logic Design Principles. Overview Objectives -Define combinational logic circuit -Analysis of logic circuits (to describe what.
Binary Logic and Gates COE 202 Digital Logic Design Dr. Aiman El-Maleh
Digital Systems Section 3 Boolean Algebra. Digital Systems Section 3 Boolean Algebra.
Presentation transcript:

KFUPM COE 202: Digital Logic Design Combinational Logic Part 1 Courtesy of Dr. Ahmad Almulhem

KFUPM Objectives Logic Operations and Gates Boolean Algebra Boolean Expressions Boolean Identities Algebraic manipulation (simplification) Complement of a Function

KFUPM Logical Operations Three basic logical operations can be applied to binary variables: AND: Z = X.Y or Z = XY The AND operation works as follows: If both X and Y have a value of 1, the output Z will be 1 else Z will be 0 OR: Z = X + Y The OR operation implies: If either X or Y have a value of 1, the output Z will be 1 NOT: Z = X If the value of X is a 0, Z is a 1, and if X = 1, Z= 0 Don’t confuse binary logic and binary arithmetic !

KFUPM AND Operation AND XYZ = X.Y A truth table of a logical operation is a table of all possible combinations of input variable values, and the corresponding value of the output The truth table for the AND logical operation: Similar to multiplication

KFUPM AND Gate The electronic device that performs the AND operation is called the AND gate XYXY Z An AND gate with two input variables X, Y and one output Z Note: The output of the AND gate Z is a 1 if and only if all the inputs are 1 else it is 0

KFUPM 3-input AND gate WXYWXY Z WXYZ Truth Table for a 3 input AND gate Note: For an n-input logic gate, the size of the truth table is 2 n

KFUPM OR Operation OR XYZ = X +Y Similar to addition The truth table for the OR logical operation

KFUPM OR Gate The electronic device that performs the AND operation is called the AND gate XYXY Z An OR gate with two input variables X, Y and one output Z Note: The output of the OR gate Z is a 1 if either of the two inputs X, Y are 1

KFUPM OR Gate – 3 Input WXYWXY Z WXYZ = W + X + Y Truth Table for a 3 input OR gate Note: For an n-input logic gate, the size of the truth table is 2 n

KFUPM NOT Operation NOT is a unary operator, meaning there can only be 1 input The NOT operation can be represented as follows: Z= X’ or Z = X X is also referred to as the complement of Z. The NOT gate is also known as the Inverter ZX NOT XZ = X 01 10

KFUPM Timing Diagram time A graphical representation Of the truth table!

Logical Operations and Gates (Summary) KFUPM src: Mano’s Textbook

KFUPM Boolean Algebra Digital circuits are hardware components for processing (manipulation) of binary input They are built of transistors and interconnections in semiconductor devices called integrated circuits A basic circuit is called a logic gate; its function can be represented mathematically. What is inside the gate is not of concern to the system/computer designer (Only its function) Binary logic (Boolean Algebra ) is a mathematical system to analyze and design digital circuits – George Boole (introduced mathematical theory of logic in1854)

KFUPM Boolean Algebra Regular Algebra Numbers Integers Real numbers Complex Numbers +, -, x, /, … etc Boolean Algebra 1 (True, High) 0 (False, Low) AND (. ) OR (+) NOT ( ‘, ) Values Operators Variables may be given any name such as A, B, X etc..

KFUPM Boolean Expression A Boolean expression is made of Boolean variables and constants combined with logical operators: AND, OR and NOT A literal is each instance of a variable or constant. Boolean expressions are fully defined by their truth tables A Boolean expression can be represented using interconnected logic gates – Literals correspond to the input signals to the gates – Constants (1 or 0) can also be input signals – Operators of the expression are converted to logic gates Example: a’bd + bcd + ac’ + a’d’ (4 variables, 10 literals, ?? gates) F (X, Y) = XY + Y’ variable operator literals

KFUPM Operator Precedence Given a Boolean expression, the order of operations depends on the precedence rules given by: 1.ParenthesisHighest Priority 2.NOT 3.AND 4.OR Lowest Priority Example: XY + WZ will be evaluated as: 1. XY 2. WZ 3. XY + WZ

KFUPM Example F = X. ( Y’ + Z) This function has three inputs X, Y, Z and the output is given by F As can be seen, the gates needed to construct this circuit are: 2 input AND, 2 input OR and NOT Y’Y Z X F

KFUPM Example (Cont.) F = X. ( Y’ + Z) XYZY’Y’ + ZF=X.(Y’+Z) A Boolean function can be represented with a truth table

KFUPM Identities of Boolean Algebra src: Mano’s Textbook

KFUPM Duality Principle The principle of duality states that: given a Boolean Algebra identity, its dual is obtained by replacing all 1’s with 0’s and 0’s with 1’s, all AND operators with OR, and all OR operators with AND The dual of an identity is also an identity AND Identities: X.1 = X X.0 = 0 X.X = X X.X = 0 OR Identities (Dual): X + 0 = X X + 1 = 1 X + X = X X + X = 1 Replacing 1 with 0 0 with 1 + with.. with + Another Important Identity: X = X

KFUPM DeMorgan’s Theorem use truth tables to prove that two Boolean expressions are equal ! Extended DeMorgan’s Theorem: X 1 + X 2 + …. +X n = X 1.X 2 …..X n X 1 X 2 …. X n = X 1 + X 2 +….+X n

KFUPM Why Boolean Algebra? Boolean algebra identities and properties help reduce the size of expressions In effect, smaller sized expressions will require fewer logic gates for building the circuit As a result, less cost will be incurred for building simpler circuits The speed of simpler circuits is also high

KFUPM Algebraic Manipulation Ability to use the Boolean identities and properties to reduce complex equations Example 1: Prove that X + XY = X X + XY = X.(1+Y) = X.1 = X distributive property Example 2: Reduce X+X’Y = (X+X’).(X+Y) = 1.(X+Y) = X+Y This is called absorption Y has been absorbed

KFUPM Algebraic Manipulation (Example) F = X’YZ + X’YZ’ + XZ = X’Y(Z+Z’) + XZ (id 14) = X’Y.1 + XZ (id 7) = X’Y + XZ (id 2)

KFUPM Algebraic Manipulation (Example) F = X’YZ + X’YZ’ + XZ = X’Y(Z+Z’) + XZ (id 14) = X’Y.1 + XZ (id 7) = X’Y + XZ (id 2)

KFUPM Algebraic Manipulation (Example) F = X’YZ + X’YZ’ + XZ = X’Y(Z+Z’) + XZ (id 14) = X’Y.1 + XZ (id 7) = X’Y + XZ (id 2) Verify !

KFUPM Example (Consensus Theorem) XY + X’Z + YZ = XY + X’Z Prove: XY+X’Z+YZ = XY+X’Z+YZ.1 = XY+X’Z+YZ(X+X’) = XY+X’Z+XYZ+X’YZ = XY+XYZ+X’Z+X’YZ = XY(1+Z)+X’Z(1+Y) = XY.1 + X’Z.1 = XY + X’Z Adding an extra step to acquire the desired output Y and Z are associated with X and X’ in the first two terms and appear together in the third. YZ is redundant and can be eliminated.

KFUPM Example Reduce F1=(A + B + AB) (AB + AC + BC) Using DeMorgan’s Theorem, F1 = (A’.B.(A’+B’)).(A’+B’).(A+C’).(B’+C’) = (A’.B.A’ + A’.B.B’).(A’+B’)(A+C’).(B’+C’) = (A’B + 0).(A’+B’)(A+C’).(B’+C’) = (A’BA’ + A’BB’) (A+C’).(B’+C’) = (A’B) (A+C’).(B’+C’) = (A’BA+A’BC’)(B’+C’) = (0+A’BC’)(B’+C’) = (A’BC’B’ + A’BC’C’) = (0 + A’BC’) = A’BC’

KFUPM Example Simplify G = ((A+B+C).(AB+CD)+(ACD)) = ((A+B+C)+(AB.(C+D))).ACD = (A+B+C).ACD + (AB.(C+D)).ACD = (ACD+ABCD) + (ABCD+ABCD) = (ACD +ACD(B+B) + ABCD) = (ACD + ACD + ABCD) = (ACD + ABCD) = (ACD(1+B)) = ACD

KFUPM Complement of a Function The complement of a function F, F is obtained in two ways: 1. Truth Table: Change 1s to 0s and 0s to 1s 2. Boolean Expression: Apply DeMorgan’s Theorem (Be Careful, before begin, surround all AND terms with parentheses (easy to make a mistake!)). ABFF’ Truth table F = A’B + AB’ F’ = (A+B’).(A’+B) = AB + A’B’ Short cut: Take the dual and complement the literals.

Conclusion Boolean Algebra is a mathematical system to study logic circuits Boolean identities and algebraic manipulation can be used to simplify Boolean expressions. Simplified Boolean expressions result in simpler circuits. KFUPM