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.

Slides:



Advertisements
Similar presentations
Types of Logic Circuits
Advertisements

CS2100 Computer Organisation
Chapter 2 Logic Circuits.
Logic Gate Level Part 2. Constructing Boolean expression from truth table First method: write nonparenthesized OR of ANDs Each AND is a 1 in the result.
Boolean Algebra and Logic Gate
Relationship Between Basic Operation of Boolean and Basic Logic Gate The basic construction of a logical circuit is gates Gate is an electronic circuit.
1 Section 10.1 Boolean Functions. 2 Computers & Boolean Algebra Circuits in computers have inputs whose values are either 0 or 1 Mathematician George.
Boolean Algebra and Logic Gates
MOHD. YAMANI IDRIS/ NOORZAILY MOHAMED NOOR
Logic Gate Level Combinational Circuits, Part 1. Circuits Circuit: collection of devices physically connected by wires to form a network Net can be: –
ENGIN112 L5: Boolean Algebra September 12, 2003 ENGIN 112 Intro to Electrical and Computer Engineering Lecture 5 Boolean Algebra.
CS1104: Computer Organisation Lecture 3: Boolean Algebra
Lattice and Boolean Algebra
Chapter Two Boolean Algebra and Logic Gate
Chapter 2: Boolean Algebra and Logic Functions
Boolean Algebra أ. زينب آل كاظم 1. Boolean Functions In Boolean algebra we work with the set {0,1}, where: 0 ≡ F (False) & 1 ≡ T (True). The 3 Operations.
CHAPTER 2 Boolean Algebra
CS1104: Computer Organisation School of Computing National University of Singapore.
Boolean Algebra – I. Outline  Introduction  Digital circuits  Boolean Algebra  Two-Valued Boolean Algebra  Boolean Algebra Postulates  Precedence.
BOOLEAN ALGEBRA Saras M. Srivastava PGT (Computer Science)
Boolean Algebra and Digital Circuits
Digital Systems: Boolean Algebra and Logic Gates
Module 4.  Boolean Algebra is used to simplify the design of digital logic circuits.  The design simplification are based on: Postulates of Boolean.
Logic Gates Shashidhara H S Dept. of ISE MSRIT. Basic Logic Design and Boolean Algebra GATES = basic digital building blocks which correspond to and perform.
LOGIC GATES AND CIRCUITS Digital systems are said to be constructed by using logic gates. These gates are the AND, OR, NOT, NAND, NOR, EXOR and EXNOR gates.
Laws (Theorems) of Boolean algebra Laws of Complementation oThe term complement means, to invert or to change 1's to 0's and 0's to 1's, for which purpose.
LOGIC GATES & BOOLEAN ALGEBRA
1 Boolean Algebra  Digital circuits Digital circuits  Boolean Algebra Boolean Algebra  Two-Valued Boolean Algebra Two-Valued Boolean Algebra  Boolean.
Dale Roberts Department of Computer and Information Science, School of Science, IUPUI Dale Roberts, Lecturer Computer Science, IUPUI
1 CSE370, Lecture 3 Lecture 3: Boolean Algebra u Logistics u Last lecture --- Numbers n Binary numbers n Base conversion n Number systems for negative.
Boolean Algebra – II. Outline  Basic Theorems of Boolean Algebra  Boolean Functions  Complement of Functions  Standard Forms.
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 
Boolean Algebra M. AL- Towaileb1. Boolean Functions In Boolean algebra we work with the set {0,1}, where: 0 ≡ F (False) & 1 ≡ T (True). The 3 Operations.
Boolean Algebra and Logic Gates
ECE2030 Introduction to Computer Engineering Lecture 5: Boolean Algebra Prof. Hsien-Hsin Sean Lee School of Electrical and Computer Engineering Georgia.
C.S. Choy21 BOOLEAN ALGEGRA The Mathematics of logic Boolean variables have only two possible values (binary) Operators:. Product+ SumComplement A.B A+B.
CEC 220 Digital Circuit Design SOP and POS forms Friday, January 23 CEC 220 Digital Circuit Design Slide 1 of 17.
CEC 220 Digital Circuit Design Boolean Algebra II Fri, Sept 4 CEC 220 Digital Circuit Design Slide 1 of 13.
BOOLEAN ALGEBRA LOGIC GATES. Introduction British mathematician George Boole( ) was successful in finding the link between logic and mathematics.
Basic Laws, theorems, and postulates of Boolean Algebra
CHAPTER 2 Boolean algebra and Logic gates
Digital Logic Circuits, Digital Component and Data Representation Course: BCA-2 nd Sem Subject: Computer Organization And Architecture Unit-1 1.
Hoda Roodaki Boolean Algebra Hoda Roodaki
CS2100 Computer Organisation
Chapter 11 (Part 1): Boolean Algebra
De Morgan’s Theorem,.
Chapter 2: Boolean Algebra and Logic Functions
Logic Gates and Boolean Algebra
CS 105 Digital Logic Design
CHAPTER 2 Boolean Algebra
CHAPTER 2 Boolean Algebra This chapter in the book includes:
Princess Sumaya University
Lecture 2-1 Boolean Algebra
Lecture 3: Boolean Algebra
Boolean Algebra.
CSE 311 Foundations of Computing I
Boolean Algebra.
Boolean Algebra & Logic Circuits
Chapter 2 Boolean Algebra and Logic Gate
CSE 370 – Winter Combinational Logic - 1
2. Boolean Algebra and Logic Gates
Boolean Algebra Introduction CSCI 240
COMS 361 Computer Organization
Lecture 3: Boolean Algebra
Boolean Algebra Rayat Shikshan Sanstha’s
Design of Digital Circuits Lab 1 Supplement: Drawing Basic Circuits
Boolean Algebra Rayat Shikshan Sanstha’s
Lecture 3: Boolean Algebra
BOOLEAN ALGEBRA.
Presentation transcript:

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. with only 2 possible values: 1 and 0. Logic operations: and, or, not etc.

Logic Gates The most basic digital devices are called gates. A gate has one or more inputs and produces an output that is a function of the current input values.

Most Important logic gates AND OR NOT

2-input AND gate ABAB A.B & ABAB

2- input OR gate ABAB A+B ABAB

NOT gate (Inverter) AA'A

Some Other Gates NAND NOR XOR XNOR (equivalence)

2-input NAND gate & ABAB (A.B)' ABAB ABAB  NANDNegative-OR 

2-input NOR gate NORNegative-AND  ABAB (A+B)'  ABAB ABAB

2-input XOR gate =1 ABAB A  B ABAB

Boolean Algebra Like any other deductive mathematical system, defined with a set of elements, a set of operators and a number of axioms or postulates. In Boolean algebra, set consists at least 2 variables say x & y, with 2 binary operations {+} and {.} and 1 unary operation {‘}

Boolean algebra Postulates  Closure: For every x, y in B [let, B is the set],  x + y is in B  x. y is in B  Commutative laws: For every x, y in B,  x + y = y + x  x. y = y. x  Complement: For every x in B, there exists an element x' in B such that  x + x' = 1  x. x' = 0

Boolean algebra Postulates  Associative laws: For every x, y, z in B,  (x + y) + z = x + (y + z) = x + y + z  (x. y). z = x.( y. z ) = x. y. z  Identities (0 and 1):  0 + x = x + 0 = x for every x in B  1. x = x. 1 = x for every x in B  Distributive laws: For every x, y, z in B,  x. (y + z) = (x. y) + (x. z)  x + (y. z) = (x + y). (x + z)

Truth Table  Provides a listing of every possible combination of inputs and its corresponding outputs.  Example (2 inputs, 2 outputs):

Proof using Truth Table  Prove that: x. (y + z) = (x. y) + (x. z) (i) Construct truth table for LHS & RHS of above equality. (ii) Check that LHS = RHS Postulate is SATISFIED because output column 2 & 5 (for LHS & RHS expressions) are equal for all cases.

Duality  Duality Principle – every valid Boolean expression (equality) remains valid if the operators and identity elements are interchanged, as follows: + . 1  0  Example: Given the expression a + (b.c) = (a+b).(a+c) then its dual expression is a. (b+c) = (a.b) + (a.c)

Duality  Duality gives free theorems – “two for the price of one”. You prove one theorem and the other comes for free!  If (x+y+z)' = x'.y.'z' is valid, then its dual is also valid: (x.y.z)' = x'+y'+z’  If x + 1 = 1 is valid, then its dual is also valid: x. 0 = 0

Basic Theorems of Boolean Algebra Postulate 5 (a) x+0=x (b) x.1=x Postulate 3 (a) x+x’=1 (b) x.x’=0 Th 1 (a) x+x=x (b) x.x=x Th 2 (a) x+1=1 (b) x.0=0 Th 3, involution (x’)’=x Pos 2 (a) x+y=y+x (b) xy=yx Th 4 (a) x(yz)=(xy)z (b)x+(y+z)=(x+y)+z Pos 6 (a) x(y+z)=xy+xz (b) x+yz=(x+y)(x+z) Th 5, DeMorgan (a) (x+y)’=x’y’ (b) (xy)’=x’+y’ Th 6, Absorption (a) x+xy=x (b) x(x+y)=x

Basic Theorems of Boolean Algebra  Theorems can be proved using the truth table method. (Exercise: Prove De- Morgan’s theorem using the truth table.)  They can also be proved by algebraic manipulation using axioms/postulates or other basic theorems.

Basic Theorems of Boolean Algebra  Theorem 6a (absorption) can be proved by: x + x.y = x.1 + x.y (identity) = x.(1 + y) (distributivity) = x.(y + 1) (commutativity) = x.1 (Theorem 2a) = x (identity)  By duality, theorem 6b: x.(x+y) = x  Try prove this by algebraic manipulation.