Boolean Algebra and Logic Gates 1 Computer Engineering (Logic Circuits) Lec. # 3 Dr. Tamer Samy Gaafar Dept. of Computer & Systems Engineering Faculty.

Slides:



Advertisements
Similar presentations
Digital Systems: Logic Gates and Boolean Algebra Wen-Hung Liao, Ph.D.
Advertisements

Logic Gates.
Logic Gates.
Sahar Mosleh PageCalifornia State University San Marcos 1 Introductory Concepts This section of the course introduces the concept of digital circuits and.
Lecture 5 EGRE 254 1/28/09. 2 Boolean algebra a.k.a. “switching algebra” –deals with Boolean values -- 0, 1 Positive-logic convention –analog voltages.
Chapter 2 Logic Circuits.
Computer Engineering (Logic Circuits) Dr. Tamer Samy Gaafar Lec. # 2
Boolean Algebra and Logic Gates 1 Computer Engineering (Logic Circuits) Lec. # 4 Dr. Tamer Samy Gaafar Dept. of Computer & Systems Engineering Faculty.
Chapter 2 – Combinational Logic Circuits Part 1 – Gate Circuits and Boolean Equations Logic and Computer Design Fundamentals.
Overview Part 1 – Gate Circuits and Boolean Equations
SYEN 3330 Digital SystemsJung H. Kim Chapter SYEN 3330 Digital Systems Chapter 2 – Part 1.
ENGIN112 L5: Boolean Algebra September 12, 2003 ENGIN 112 Intro to Electrical and Computer Engineering Lecture 5 Boolean Algebra.
Charles Kime & Thomas Kaminski © 2008 Pearson Education, Inc. (Edited by Dr. Muhamed Mudawar for COE 202 & EE 200 at KFUPM) Boolean Algebra and Logic Gates.
Lecture 3. Boolean Algebra, Logic Gates
Charles Kime & Thomas Kaminski © 2008 Pearson Education, Inc. (Hyperlinks are active in View Show mode) Chapter 2 – Combinational Logic Circuits Part 1.
Boolean Algebra. Binary Logic and Gates Binary variables take on one of two values. Logical operators operate on binary values and binary variables. Basic.
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.
Logic Gate A logic gate is an electronic circuit which makes logic decisions. It has one output and one or more inputs. The output signal appears only.
Chapter 4 Gates and Circuits. Integrated Circuits aka CHIPS What’s in this thing???? 4–2.
Introduction to Computer Science David Goldschmidt, Ph.D. Computer Science The College of Saint Rose CIS September 6, 2007.
Binary Logic and Gates Binary variables take on one of two values.
Boolean Algebra and Digital Circuits
Switching functions The postulates and sets of Boolean logic are presented in generic terms without the elements of K being specified In EE we need to.
1 Representation of Logic Circuits EE 208 – Logic Design Chapter 2 Sohaib Majzoub.
Digital Systems: Boolean Algebra and Logic Gates
Boolean Algebra and Logic Gates 1 Computer Engineering (Logic Circuits) Lec. # 8 (Combinational Logic Circuit) Dr. Tamer Samy Gaafar Dept. of Computer.
(Combinational Logic Circuit)
Overview Part 1 – Gate Circuits and Boolean Equations
Lecture 22: 11/19/2002CS170 Fall CS170 Computer Organization and Architecture I Ayman Abdel-Hamid Department of Computer Science Old Dominion University.
Week 6: Gates and Circuits: PART I READING: Chapter 4.
ACOE1611 Combinational Logic Circuits Reference: M. Mano, C. Kime, “Logic and Computer Design Fundamentals”, Chapter 2.
Linear Algebra. Circuits The circuits in computers and other input devices have inputs, each of which is either a 0 or 1, the output is also 0s and 1s.
Computer Engineering (Logic Circuits) (Karnaugh Map)
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.
Figure 2.6. A truth table for the AND and OR operations. 2.3 Truth Tables 1.
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.
Boolean Algebra and Logic Gates CSE-1108 Ahsanullah University of Science and Technology (AUST)
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.
CS151 Introduction to Digital Design Chapter 2: Combinational Logic Circuits Lecture 5: Binary Logic and Gates.
Chapter-3: BOOLEAN ALGEBRA & LOGIC GATES Analysis and logical design.
Logic Gates. A logic gate is an elementary building block of a digital circuit. Most logic gates have two inputs and one output. At any given moment,
R. Johnsonbaugh Discrete Mathematics 5 th edition, 2001 Chapter 9 Boolean Algebras and Combinatorial Circuits.
Charles Kime & Thomas Kaminski © 2008 Pearson Education, Inc. (Hyperlinks are active in View Show mode) Chapter 2 – Combinational Logic Circuits Part 1.
ECE DIGITAL LOGIC LECTURE 5: BINARY LOGIC AND DIGITAL LOGIC GATES Assistant Prof. Fareena Saqib Florida Institute of Technology Fall 2016, 01/28/2016.
The inverter performs the Boolean NOT operation. When the input is LOW, the output is HIGH; when the input is HIGH, the output is LOW. The Inverter AX.
Boolean Algebra. BOOLEAN ALGEBRA Formal logic: In formal logic, a statement (proposition) is a declarative sentence that is either true(1) or false (0).
Boolean Constants and Variables Boolean 0 and 1 do not represent actual numbers but instead represent the state, or logic level. Closed switchOpen switch.
ECE 301 – Digital Electronics
Chapter 3 Notes – Part II Review Questions
Combinational Logic Circuits
Boolean Algebra.
Overview Part 1 – Gate Circuits and Boolean Equations
ECE 20B, Winter 2003 Introduction to Electrical Engineering, II LECTURE NOTES #2 Instructor: Andrew B. Kahng (lecture)
Gate Circuits and Boolean Equations
Logic Gates.
Overview Part 1 – Gate Circuits and Boolean Equations
Boolean Expressions Lecture No. 10.
ECE/CS 352 Digital Systems Fundamentals
Logic Gates.
Gates Type AND denoted by X.Y OR denoted by X + Y NOR denoted by X + Y
Lecture 5 Binary Operation Boolean Logic. Binary Operations Addition Subtraction Multiplication Division.
Introductory Concepts
Boolean Algebra and Gate Networks
Logic Gates By: Asst Lec. Besma Nazar Nadhem
Lecture 4 – Binary Logic and Logic Gates
DIGITAL ELECTRONICS AND LOGIC GATES. ANALOG SIGNAL:- Analog signal is continuous time varying current or voltage signal.
SYEN 3330 Digital Systems Chapter 2 – Part 1 SYEN 3330 Digital Systems.
Presentation transcript:

Boolean Algebra and Logic Gates 1 Computer Engineering (Logic Circuits) Lec. # 3 Dr. Tamer Samy Gaafar Dept. of Computer & Systems Engineering Faculty of Engineering Zagazig University

Boolean Algebra and Logic Gates Course Web Page

Announcements  30 Minutes Quiz will be held at the beginning of lecture.  No Cheatings.  Zero marks for the cheaters.  Do not forget to write your names on the answer sheet. Boolean Algebra and Logic Gates 3

Lec. # 3 Binary Logic & Gates Boolean Algebra and Logic Gates 4

Boolean Algebra and Logic Gates 5 Binary Logic and Gates  Binary variables take on one of two values.  Logical operators operate on binary values and binary variables.  Basic logical operators are the logic functions AND, OR and NOT.  Logic gates implement logic functions.  Boolean Algebra: a useful mathematical system for specifying and transforming logic functions.  We study Boolean algebra as a foundation for designing and analyzing digital systems!

Boolean Algebra and Logic Gates 6 Binary Variables  Recall that the two binary values have different names: True/False On/Off Yes/No 1/0  We use 1 and 0 to denote the two values.  Variable identifier examples: A, B, y, z, or X 1 for now RESET, START_IT, or ADD1 later

Boolean Algebra and Logic Gates 7 Logical Operations  The three basic logical operations are: AND OR NOT  AND is denoted by a dot (·).  OR is denoted by a plus (+).  NOT is denoted by an over bar ( ¯ ), a single quote mark (') after.

Boolean Algebra and Logic Gates 8  Examples: is read “Y is equal to A AND B.” is read “z is equal to x OR y.” is read “X is equal to NOT A.” Notation Examples  Note: The statement: = 2 (read “one plus one equals two”) is not the same as = 1 (read “1 or 1 equals 1”).  BAY  yxz   AX 

Boolean Algebra and Logic Gates 9 Operator Definitions  Operations are defined on the values "0" and "1" for each operator: AND 0 · 0 = 0 0 · 1 = 0 1 · 0 = 0 1 · 1 = 1 OR = = = = 1 NOT 10  01  Buffer  1  1 00

Boolean Algebra and Logic Gates X NOT XZ  Truth Tables  Tabular listing of the values of a function for all possible combinations of values on its arguments  Example: Truth tables for the basic logic operations: Z = X·Y YX AND OR XYZ = X+Y

Filling A Truth Table ( i/ps) Boolean Algebra and Logic Gates 11

Boolean Algebra and Logic Gates 12 dcba

Boolean Algebra and Logic Gates 13  Using Switches Inputs:  logic 1 is switch closed  logic 0 is switch open Outputs:  logic 1 is light on  logic 0 is light off. NOT input:  logic 1 is switch open  logic 0 is switch closed Logic Function Implementation Switches in series => AND Switches in parallel => OR C Normally-closed switch => NOT

Boolean Algebra and Logic Gates 14  Example: Logic Using Switches  Light is on (L = 1) for L(A, B, C, D) = and off (L = 0), otherwise.  Useful model for relay and CMOS gate circuits, the foundation of current digital logic circuits Logic Function Implementation – cont’d B A D C A (B C + D) = A B C + A D

Boolean Algebra and Logic Gates 15 Logic Gates  In the earliest computers, switches were opened and closed by magnetic fields produced by energizing coils in relays. The switches in turn opened and closed the current paths.  Later, vacuum tubes that open and close current paths electronically replaced relays.  Today, transistors are used as electronic switches that open and close current paths.

Boolean Algebra and Logic Gates 16 Logic Gate Symbols and Behavior  Logic gates have special symbols:  And waveform behavior in time as follows : X 0011 Y0101 X · Y(AND)0001 X+ Y(OR)0111 (NOT)X 1100 OR gate X Y Z= X+ Y X Y Z= X · Y AND gate X Z= X NOT gate or inverter YY BUFFER

Boolean Algebra and Logic Gates 17

Boolean Algebra and Logic Gates 18 `

Boolean Algebra and Logic Gates 19 Truth Tables – Cont’d  Used to evaluate any logic function  Consider F(X, Y, Z) = X Y + Y Z XYZX YYY ZF = X Y + Y Z

Boolean Algebra and Logic Gates 20 Logic Diagrams and Expressions  Boolean equations, truth tables and logic diagrams describe the same function!  Truth tables are unique, but expressions and logic diagrams are not. This gives flexibility in implementing functions. X Y F Z Logic Diagram Logic Equation ZY X F  Truth Table X Y Z Z Y X F   

Logic Circuit Analysis Boolean Algebra and Logic Gates 21 a b c f F = a + b + c b c a f

Logic Circuit Analysis Boolean Algebra and Logic Gates 22 a b c f F = abc b c a f

Logic Circuit Analysis Boolean Algebra and Logic Gates 23 a b c f F = ab + c

Logic Circuit Analysis Boolean Algebra and Logic Gates 24 a c f F = a + c

Logic Circuit Analysis Boolean Algebra and Logic Gates 25 a c F = (a + c). (b+d) f b d

Truth Table (Last Example) Boolean Algebra and Logic Gates 26

Boolean Algebra and Logic Gates 27 F=(a + c). (b+d) b+da + cdcba