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

Similar documents
Chapter 2 Combinational Logic Circuits

Unit 2 Boolean Algebra

Lab 1 starts this week: go to your session

CHAPTER 2 BOOLEAN ALGEBRA

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

CHAPTER1: Digital Logic Circuits Combination Circuits

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

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

INTRODUCTION TO INFORMATION & COMMUNICATION TECHNOLOGY LECTURE 8 : WEEK 8 CSC-110-T

Chapter 2 Combinational Logic Circuits

Chapter 2: Switching Algebra and Logic Circuits

Boolean Algebra, Gates and Circuits

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

Boolean Algebra. Philipp Koehn. 9 September 2016

Logic Design. Chapter 2: Introduction to Logic Circuits

Digital Circuit And Logic Design I. Lecture 3

Boolean Algebra & Logic Gates. By : Ali Mustafa

Combinational Logic Design Principles

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

Binary Logic and Gates

Switches: basic element of physical implementations

Combinational Logic Fundamentals

BOOLEAN ALGEBRA INTRODUCTION SUBSETS

DIGITAL CIRCUIT LOGIC BOOLEAN ALGEBRA

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

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

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

Chapter 2 Boolean Algebra and Logic Gates

Unit 2 Boolean Algebra

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

CHAPTER 12 Boolean Algebra

Introduction to Digital Logic Missouri S&T University CPE 2210 Combinatorial Circuit Analysis and Synthesis

Combinational Logic. Review of Combinational Logic 1

Chapter 2: Princess Sumaya Univ. Computer Engineering Dept.

Propositional Calculus: Formula Simplification, Essential Laws, Normal Forms

UNIVERSITI TENAGA NASIONAL. College of Information Technology

Boolean Algebra CHAPTER 15

Chapter 2 : Boolean Algebra and Logic Gates

Lecture 2 Review on Digital Logic (Part 1)

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

WEEK 2.1 BOOLEAN ALGEBRA

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

CS 226: Digital Logic Design

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

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

Chapter 2 Boolean Algebra and Logic Gates

BOOLEAN ALGEBRA THEOREMS

Combinational Logic. By : Ali Mustafa

CHAPTER III BOOLEAN ALGEBRA

CprE 281: Digital Logic

Chapter 2. Boolean Algebra and Logic Gates

Chapter-2 BOOLEAN ALGEBRA

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

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

Boolean Algebra and Logic Gates

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

Circuits & Boolean algebra.

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

MC9211 Computer Organization

CHAPTER III BOOLEAN ALGEBRA

Logic Synthesis and Verification

Number System conversions

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

Lecture 3: Boolean Algebra

BOOLEAN ALGEBRA TRUTH TABLE

Chapter 2 Boolean Algebra and Logic Gates

2 Application of Boolean Algebra Theorems (15 Points - graded for completion only)

ELCT201: DIGITAL LOGIC DESIGN

Sample Problems for all sections of CMSC250, Midterm 1 Fall 2014

EECS Variable Logic Functions

Chapter 2: Boolean Algebra and Logic Gates

ENG2410 Digital Design Combinational Logic Circuits

Combinational logic. Possible logic functions of two variables. Minimal set of functions. Cost of different logic functions.

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

Chapter 2. Digital Logic Basics

Digital Systems and Information Part II

Logic Gate Level. Part 2

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

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

Digital Logic. Lecture 5 - Chapter 2. Outline. Other Logic Gates and their uses. Other Logic Operations. CS 2420 Husain Gholoom - lecturer Page 1

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

Chapter 2 Combinational Logic Circuits

Slides for Lecture 10

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

Adequate set of connectives, logic gates and circuits

Logic Gates and Boolean Algebra

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

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

Logic and Boolean algebra

Introduction to Digital Logic Missouri S&T University CPE 2210 Boolean Representations

DIGITAL CIRCUIT LOGIC BOOLEAN ALGEBRA (CONT.)

2009 Spring CS211 Digital Systems & Lab CHAPTER 2: INTRODUCTION TO LOGIC CIRCUITS

Chapter 2 Boolean Algebra and Logic Gates

CHAPTER 3 BOOLEAN ALGEBRA

EEE130 Digital Electronics I Lecture #4

PROBABILISTIC AND POSSIBILISTIC FAULT TREE ANALYSIS

Unit I (Logic and Proofs)

NAND, NOR and XOR functions properties

Introduction to Digital Logic Missouri S&T University CPE 2210 Boolean Algebra

Digital Logic (2) Boolean Algebra

Transcription:

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

Today s Topics Combinatorial Circuits Properties of Combinatorial Circuits Boolean Algebras Boolean Functions and Synthesis of Circuits Applications BOOLEAN ALGEBRAS AND COMBINATORIAL CIRCUITS Discrete Mathematics, 2008 Computer Science Division, KAIST 2

Combinatorial Circuits Definition An AND gate receives inputs x 1 and x 2, where x 1 and x 2 are bits, and produces output denoted x 1 x 2, where x 1 x 2 = 1 if x 1 = 1 and x 2 = 1, 0 otherwise. An OR gate receives inputs x 1 and x 2, where x 1 and x 2 are bits, and produces output denoted x 1 x 2, where x 1 x 2 = 1 if x 1 = 1 or x 2 = 1, 0 otherwise. A NOT gate (or inverter) receive input x, where x is a bit, and produces output denoted ~x, where ~x = 1 if x = 1, 0 if x = 1. 3

Combinatorial Circuits Note The logic table of a combinatorial circuit lists all possible inputs together with the resulting outputs. Examples logic tables for the basic AND, OR, and NOT circuits the combinatorial circuit in Figure 11.1.4 the non-combinatorial circuit in Figure 11.1.6 the interconnected combinatorial circuit in Figure 11.1.7 4

Combinatorial Circuits Definition Boolean expressions in the symbols x 1,..., x n are defined recursively as follows. 0, 1, x 1,..., x n are Boolean expressions. If X 1 and X 2 are Boolean expressions, then (a) (X 1 ), (b) ~X 1, (c) X 1 X 2, (d) X 1 X 2 are Boolean expressions. If X is a Boolean expression in the symbols x 1,..., x n, we sometimes write X = X(x 1,..., x n ). Either symbol x or ~x is called a literal. 5

Combinatorial Circuits Examples Computing the value of a Boolean expression Finding the combinatorial circuit corresponding to the Boolean expression (x 1 (~x 2 x 3 )) x 2 6

Properties of Combinatorial Circuits Theorem If,, and ~ are as in the previous definitions, then the following properties hold, where Z 2 = {0, 1}. (a) Associative laws (a b ) c = a (b c) (a b) c = a (b c) for all a, b, c Z 2. (b) Commutative laws a b = b a a b = b a, for all a, b Z 2. (c) Distributive laws a (b c) = (a b) (a c) a (b c) = (a b) (a c) for all a, b, c Z 2. 7

Properties of Combinatorial Circuits (d) Identity laws a 0 = a a 1 = a for all a Z 2. (e) Complement laws a ~a = 1 a ~a = 0 for all a Z 2. 8

Properties of Combinatorial Definition Circuits Let X 1 = X 1 (x 1,..., x n ) and X 2 = X 2 (x 1,..., x n ) be Boolean expressions. We define X 1 to be equal to X 2 and write X 1 = X 2 if X 1 (a 1,...,a n ) = X 2 (a 1,...,a n ) for all a i Z 2. Example Show that ~(x y) = ~x ~y. 9

Properties of Combinatorial Definition Circuits We say that two combinatorial circuits, each having inputs x 1,..., x n and a single output, are equivalent if, whenever the circuits receive the same inputs, they produce the same outputs. Example Equivalence of the combinatorial circuits of Figures 11.2.4 and 11.2.5 10

Properties of Combinatorial Theorem Circuits Let C 1 and C 2 be combinatorial circuits represented, respectively, by the Boolean expressions X 1 = X 1 (x 1,...,x n ) and X 2 = X 2 (x 1,...,x n ). Then C 1 and C 2 are equivalent if and only if X 1 = X 2. 11

Boolean Algebras Definition A Boolean algebra B consists of a set S containing distinct elements 0 and 1, binary operators + and on S, and a unary operator on S satisfying the following laws. (a) Associative laws (x + y) + z = x + (y + z) (x y) z = x (y z) for all x, y, z S. (b) Commutative laws x + y = y + x, x y = y x for all x, y S. (c) Distributive laws x (y + z) = (x y) + (x z) x + (y z) = (x + y) (x + z) for all x, y, z S. 12

Boolean Algebras (d) Identity laws x + 0 = x, x 1 = x for all x S. (e) Complement laws x + x = 1, x x = 0 for all x S. If B is a Boolean algebra, we write B = (S, +,,, 0, 1). Examples (Z 2,,, ~, 0, 1) (S,,, ~,, U), where U is a universal set and S = P(U), the power set of U, with the operations X + Y = X Y, X Y = X Y, X = ~X on S. 13

Boolean Algebras Theorem In a Boolean algebra, the element x of the complement laws is unique. Specifically, if x + y = 1 and xy = 0, then y = x. Proof. y = y1 = y(x + x ) = yx + yx = xy + yx = 0 + yx = xx + yx = x x + x y = x (x + y) = x 1 = x 14

Boolean Algebras Definition In a Boolean algebra, we call the element x the complement of x. 15

Boolean Algebras Theorem Let B = (S, +,,, 0, 1) be a Boolean algebra. The following properties hold. (a) Idempotent laws x + x = x, xx = x for all x S. (b) Bound laws x + 1 = 1, x0 = 0 for all x S. (c) Absorption laws x + xy = x, x(x + y) = x for all x, y S. (d) Involution law (x ) = x for all x S. 16

Boolean Algebras (e) 0 and 1 laws 0 = 1 1 = 0 (f) De Morgan s laws for Boolean algebras (x + y) = x y for all x, y S (xy) = x + y for all x, y S. 17

Boolean Algebras Definition The dual of a statement involving Boolean expressions is obtained by replacing 0 by 1, 1 by 0, + by, and by +. Example Determine the dual of (x + y) = x y. 18

Boolean Algebras Theorem The dual of a theorem about Boolean algebras is also a theorem. Proof. Suppose that T is a theorem about Boolean algebras. Then there is a proof P of T involving only the definitions of a Boolean algebra. Let P be the sequence of statements obtained by replacing every statement in P by its dual. Then P is a proof of the dual of T. 19

Boolean Algebras Example The dual of (x + x) = x is xx = x. Recall the proof: x = x + 0 = x + (xx ) = (x + x)(x + x ) = (x + x)1 = x + x Now the proof: x = x1 = x(x + x ) = xx + xx = xx + 0 = xx. 20

Summary Combinatorial Circuits Properties of Combinatorial Circuits Boolean Algebras Boolean Functions and Synthesis of Circuits Applications Discrete Mathematics, 2008 Computer Science Division, KAIST 21