DIGITAL CIRCUIT LOGIC BOOLEAN ALGEBRA

Similar documents
DIGITAL CIRCUIT LOGIC BOOLEAN ALGEBRA

Unit 2 Boolean Algebra

CHAPTER 2 BOOLEAN ALGEBRA

Unit 2 Boolean Algebra

DIGITAL CIRCUIT LOGIC BOOLEAN ALGEBRA (CONT.)

Logic Design. Chapter 2: Introduction to Logic Circuits

Binary Logic and Gates. Our objective is to learn how to design digital circuits.

MC9211 Computer Organization

Boolean Algebra & Logic Gates. By : Ali Mustafa

ECE 238L Boolean Algebra - Part I

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

Boolean Algebra and Logic Gates

Chapter 2 : Boolean Algebra and Logic Gates

EC-121 Digital Logic Design

Chap 2. Combinational Logic Circuits

CS 226: Digital Logic Design

Functions. Computers take inputs and produce outputs, just like functions in math! Mathematical functions can be expressed in two ways:

Combinatorial Logic Design Principles

CHAPTER III BOOLEAN ALGEBRA

Binary Logic and Gates

Chapter 2. Boolean Algebra and Logic Gates

This form sometimes used in logic circuit, example:

CS 121 Digital Logic Design. Chapter 2. Teacher Assistant. Hanin Abdulrahman

CHAPTER1: Digital Logic Circuits Combination Circuits

EEE130 Digital Electronics I Lecture #4

WEEK 2.1 BOOLEAN ALGEBRA

Chapter 2 Combinational Logic Circuits

CHAPTER III BOOLEAN ALGEBRA

Chapter 2 Combinational Logic Circuits

Chapter 2 Boolean Algebra and Logic Gates

Number System conversions

Chapter 2 (Lect 2) Canonical and Standard Forms. Standard Form. Other Logic Operators Logic Gates. Sum of Minterms Product of Maxterms

Boolean Algebra. The Building Blocks of Digital Logic Design. Section. Section Overview. Binary Operations and Their Representation.

Chapter-2 BOOLEAN ALGEBRA

Chapter 2: Boolean Algebra and Logic Gates

Circuits & Boolean algebra.

Chapter 2 Boolean Algebra and Logic Gates

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

Chapter 2: Switching Algebra and Logic Circuits

Digital Logic Design. Malik Najmus Siraj

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

ENG2410 Digital Design Combinational Logic Circuits

Combinational Logic Design Principles

ECE380 Digital Logic. Axioms of Boolean algebra

Chapter 2 Boolean Algebra and Logic Gates

2. Associative Law: A binary operator * on a set S is said to be associated whenever (A*B)*C = A*(B*C) for all A,B,C S.

Digital Circuit And Logic Design I. Lecture 3

BOOLEAN ALGEBRA TRUTH TABLE

. T SHREE MAHAPRABHU PUBLIC SCHOOL & COLLEGE NOTES FOR BOARD EXAMINATION SUBJECT COMPUTER SCIENCE (Code: 083) Boolean Algebra

Lecture 4: More Boolean Algebra

Digital electronics form a class of circuitry where the ability of the electronics to process data is the primary focus.

Chapter 2: Princess Sumaya Univ. Computer Engineering Dept.

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

Boolean Algebra. Boolean Variables, Functions. NOT operation. AND operation. AND operation (cont). OR operation

1 Boolean Algebra Simplification

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

Digital Logic Design. Combinational Logic

Week-I. Combinational Logic & Circuits

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

UNIVERSITI TENAGA NASIONAL. College of Information Technology

ECE 20B, Winter 2003 Introduction to Electrical Engineering, II LECTURE NOTES #2

BOOLEAN LOGIC. By- Neha Tyagi PGT CS KV 5 Jaipur II Shift, Jaipur Region. Based on CBSE curriculum Class 11. Neha Tyagi, KV 5 Jaipur II Shift

Boolean Algebra CHAPTER 15

CHAPTER 3 BOOLEAN ALGEBRA

Chapter 2 Combinational Logic Circuits

Chapter 2 Boolean Algebra and Logic Gates

EEA051 - Digital Logic 數位邏輯 吳俊興高雄大學資訊工程學系. September 2004

Logic Gates and Boolean Algebra

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

Every time has a value associated with it, not just some times. A variable can take on any value within a range

Signals and Systems Digital Logic System

Discrete Mathematics. CS204: Spring, Jong C. Park Computer Science Department KAIST

ELCT201: DIGITAL LOGIC DESIGN

UNIT 3 BOOLEAN ALGEBRA (CONT D)

University of Technology

CprE 281: Digital Logic

4 Switching Algebra 4.1 Axioms; Signals and Switching Algebra

Unit 8A Computer Organization. Boolean Logic and Gates

E&CE 223 Digital Circuits & Systems. Lecture Transparencies (Boolean Algebra & Logic Gates) M. Sachdev

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

Overview. Multiplexor. cs281: Introduction to Computer Systems Lab02 Basic Combinational Circuits: The Mux and the Adder

Combinational Logic Fundamentals

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

Chapter 2 Combinational Logic Circuits

Simplifying Logic Circuits with Karnaugh Maps

211: Computer Architecture Summer 2016

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

CHAPTER 7 MULTI-LEVEL GATE CIRCUITS NAND AND NOR GATES

Lecture 3: Boolean Algebra

Switches: basic element of physical implementations

Theorem/Law/Axioms Over (.) Over (+)

Chapter 3. Boolean Algebra. (continued)

Boolean Algebra & Digital Logic

Review for Test 1 : Ch1 5

ELCT201: DIGITAL LOGIC DESIGN

Slide Set 3. for ENEL 353 Fall Steve Norman, PhD, PEng. Electrical & Computer Engineering Schulich School of Engineering University of Calgary

Boolean Algebra and Logic Gates Chapter 2. Topics. Boolean Algebra 9/21/10. EECE 256 Dr. Sidney Fels Steven Oldridge

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

Combinational Logic. Fan-in/ Fan-out Timing. Copyright (c) 2012 Sean Key

Chapter 2 Combinational Logic Circuits

Transcription:

DIGITAL CIRCUIT LOGIC BOOLEAN ALGEBRA 1

Learning Objectives Understand the basic operations and laws of Boolean algebra. Relate these operations and laws to circuits composed of AND gates, OR gates, INVERTERS and switches. Prove any of these laws in switching algebra using a truth table. Apply these laws to the manipulation of algebraic expressions including: obtaining a sum of products or product of sums, simplifying an expression and/or finding the complement of an expression 2

Introduction All switching devices we will use are two-state devices, so we will emphasize the case in which all variables assume only one of two values. Boolean variable X or Y will be used to represent input or output of switching circuit. Symbols 0 and 1 represent the two values any variable can take on. These represent states in a logic circuit, and do not have numeric value. Logic gate: 0 usually represents range of low voltages and 1 represents range of high voltages Switch circuit: 0 represents open switch and 1 represents closed 0 and 1 can be used to represent the two states in any binary valued system. 3

Basic Operations The basic operations of Boolean (switching) algebra are called AND, OR, and complement (or inverse). To apply switching algebra to a switch circuit, each switch contact is labeled with a variable. See diagram below: NC (normally closed) and NO (normally open) contacts are always in opposite states. If variable X is assigned to NO contact, then X will be assigned for NC. 4

Basic Operations Complementation/ Inversion: Prime ( ) denotes complementation. 0 =1 and 1 =0 For a switching variable, X: X =1 if X=0 and X =0 if X=1 Complementation is also called inversion. An inverter is represented as shown below, where circle at the output denotes inversion: 5

Basic Operations Series Switching Circuits/ AND Operation: Series: A) Truth table B) Logic gate diagram C) Switch circuit diagram The operation defined by the table is called AND. It is written algebraically as C=A B. We will usually write AB instead of A B. The AND operation is also referred to as logical (or Boolean) multiplication. A) B) C) 6

Basic Operations Parallel Switching Circuits/ OR Operation: Series: A) Truth table B) Logic gate diagram C) Switch circuit diagram A) The operation defined by the table is called OR. It is written algebraically as C=A+B. The OR operation is also referred to as logical (or Boolean) addition. C) B) If switches A and B are connected in parallel, there is a closed circuit if either A or B, or both, are closed and an open circuit only if A and B are both open. 7

Boolean Operations and Truth Tables Examples of Boolean Expressions and Corresponding Diagrams: Expressions Order of operations- Parentheses, Inversion, AND, OR Logic Diagrams 8

Boolean Operations and Truth Tables Examples of Boolean Expressions and Corresponding Diagrams: Expressions Order of operations- Parentheses, Inversion, AND, OR Logic Diagrams 9

iclicker Question 4 Based on the circuit below, the Boolean expression for O is: A) a b + ab B) ab + a b C) a b + ab D) (a +b). ab 10

iclicker Question 4 Based on the circuit below, the Boolean expression for O is: A) a b + ab B) ab + a b C) a b + ab D) (a +b). ab 11

Boolean Operations and Truth Tables Truth Tables: A truth table specifies the values of a Boolean expression for every possible combination of values of the variables in the expression. 12

Boolean Operations and Truth Tables Equal Boolean Expressions: Two boolean expressions are said to be equal if they have the same value for every possible combination of the variables. (Same Truth Table) An n-variable expression will have 2 n rows in its truth table. 13

Basic Theorems Single Variable Basic Theorems: See book for switch circuit diagrams that illustrate these basic theorems (Roth-Kinney 7 th edition, pg 42-43). 14

Commutative, Associative, Distributive and DeMorgan s Laws Commutative and Associative Laws: Commutative: Order in which variables are written does not affect result of applying AND and OR operations. XY= YX and X+Y= Y+X Associative: Result of AND and OR operations is independent of which variables we associate together first. (XY)Z=X(YZ)=XYZ (X+Y)+Z= X+(Y+Z)=X+Y+Z 15

Commutative, Associative, Distributive and DeMorgan s Laws Distributive Law: The distributive law of boolean algebra is as follows: X(Y+Z)= XY+XZ Furthermore, a second distributive law is valid for Boolean algebra but not ordinary algebra: X+YZ= (X+Y)(X+Z) Proof of this second distributive law can be found on page 45. 16

Commutative, Associative, Distributive and DeMorgan s Laws DeMorgan s Laws: DeMorgan s Law is stated as follows: (X+Y) =X Y (XY) =X +Y Truth table proof of DeMorgan s Laws is shown below: 17

iclicker Question 5 Which one is not correct: A) (0+1) +1= 1 B) [(xy) ] = xy C) (1+1).(0+0)= 0 D) x+(x y)= xy 18

iclicker Question 5 Which one is not correct: A) (0+1) +1= 1 B) [(xy) ] = xy C) (1+1).(0+0)= 0 D) x+(x y)= xy 19

Dr. David McLean Dean of Engineering Diversity and inclusion in engineering criteria 20

iclicker Question 6 Which one is True: A) The number of inputs to a logic gate cannot be larger than a certain number. B) An AND gate can be implemented using two OR gates. C) Positive numbers can not be presented using 2 s/1 s complement. D) F1=F2 if F1 and F2 both have the same truth table for some possible combinations of their input variables. 21

iclicker Question 6 Which one is True: A) The number of inputs to a logic gate cannot be larger than a certain number. B) An AND gate can be implemented using two OR gates. C) Positive numbers can not be presented using 2 s/1 s complement. D) F1=F2 if F1 and F2 both have the same truth table for some possible combinations of their input variables. 22

Commutative, Associative, Distributive and DeMorgan s Laws Laws of Boolean Algebra (Table 2-3): 23

Commutative, Associative, Distributive and DeMorgan s Laws Laws of Boolean Algebra- (continued): 24

Simplification Theorems Simplification theorems: Theorems used to replace an expression with a simpler expression are called simplification theorems. 25

Simplification Theorems Proof of Simplification Theorems: Using switching algebra, the theorems on the previous slide can be proven using truth tables. In general Boolean algebra, these theorems must be proven algebraically starting with basic theorems. Using duality property, (2-15D)-(2-18D) can be proven 26

Multiplying Out and Factoring Sum of Products (SOP): An expression is said to be in sum-of-products (SOP) form when all products are the products of single variables. This form is the end result when an expression is fully multiplied out. For example: 27

Multiplying Out and Factoring Product of Sums (POS): An expression is in product-of-sums (POS) form when all sums are the sums of single variables. It is usually easy to recognize a product-of-sums expression since it consists of a product of sum terms. For example: 28

Multiplying Out and Factoring Examples: 29

Complementing Boolean Expressions Using DeMorgan s Laws to find Inverse Expressions: The complement or inverse of any Boolean expression can be found using DeMorgan s Laws. DeMorgan s Laws for n-variable expressions: The complement of the product is the sum of the complements. The complement of the sum is the product of the complements. 30

Complementing Boolean Expressions Examples: 31

DIGITAL CIRCUIT LOGIC ECE 102 LAB 2 Lab 2: Schematic Entry, Timing Diagrams and Functional Simulation using Quartus II Two-way switch Create and simulate in Quartus Demonstrate with DE2 board Prelab is required Report should be submitted after lab demonstration 32

Electromyography (EMG) What is EMG? What applications? Challenges?

Electromyography (EMG) What is EMG? It is an electrodiagnostic medicine technique for evaluating and recording the electrical activity (signals) produced by skeletal muscles (What?!). What applications? Challenges?

Electromyography (EMG) What is EMG? It is an electrodiagnostic medicine technique for evaluating and recording the electrical activity (signals) produced by skeletal muscles. What applications? Clinical/biomedical applications, Evolvable Hardware Chip (EHW) development, and modern human computer interaction https://www.youtube.com/watch?v=rd4tca08skm Challenges?

Electromyography (EMG) What is EMG? It is an electrodiagnostic medicine technique for evaluating and recording the electrical activity (signals) produced by skeletal muscles. What applications? Clinical/biomedical applications, Evolvable Hardware Chip (EHW) development, and modern human computer interaction https://www.youtube.com/watch?v=rd4tca08skm Challenges?

Electromyography (EMG) What is EMG? It is an electrodiagnostic medicine technique for evaluating and recording the electrical activity (signals) produced by skeletal muscles. What applications? Clinical/biomedical applications, Evolvable Hardware Chip (EHW) development, and modern human computer interaction Challenges? Detection, decomposition, processing and classification