Logic Gates Circuits to manipulate 0’s and 1’s. 0’s and 1’s used for numbers Also to make decisions within the computer. In that context, 1 corresponds.

Slides:



Advertisements
Similar presentations
Logical Systems Synthesis.
Advertisements

Chapter 2 Logic Circuits.
Boolean rules for simplification Dr. Ahmed Telba.
1 COMP541 Combinational Logic Montek Singh Jan 16, 2007.
Logic Gate Level Combinational Circuits, Part 1. Circuits Circuit: collection of devices physically connected by wires to form a network Net can be: –
1 Boolean Algebra & Logic Design. 2 Developed by George Boole in the 1850s Mathematical theory of logic. Shannon was the first to use Boolean Algebra.
Boolean Algebra. Introduction 1854: Logical algebra was published by George Boole  known today as “Boolean Algebra” 1854: Logical algebra was published.
© 2009 Pearson Education, Upper Saddle River, NJ All Rights ReservedFloyd, Digital Fundamentals, 10 th ed Digital Fundamentals Tenth Edition Floyd.
© 2009 Pearson Education, Upper Saddle River, NJ All Rights ReservedFloyd, Digital Fundamentals, 10 th ed Digital Fundamentals with PLD Programming.
Digital Systems Presented by Prof Tim Johnson
Logical Circuit Design Week 5: Combinational Logic Circuits Mentor Hamiti, MSc Office ,
Lecture 17: Digital Design Today’s topic –Intro to Boolean functions Reminders –HW 4 due Wednesday 10/8/2014 (extended) –HW 5 due Wednesday 10/15/2014.
LOGIC GATES & TRUTH TABLE – Digital Circuit 1 Choopan Rattanapoka.
1 © 2015 B. Wilkinson Modification date: January 1, 2015 Designing combinational circuits Logic circuits whose outputs are dependent upon the values placed.
Combinational Logic 1.
LOGIC GATES.
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.
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.
Sneha.  Gates Gates  Characteristics of gates Characteristics of gates  Basic Gates Basic Gates  AND Gate AND Gate  OR gate OR gate  NOT gate NOT.
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.
Logic Gates. The Inverter The inverter (NOT circuit) performs the operation called inversion or complementation. Standard logic symbols: 1 1 input output.
COMPUTER ARCHITECTURE TRUTH TABLES AND LOGIC GATES.
Laws of Boolean Algebra Commutative Law Associative Law Distributive Law Identity Law De Morgan's Theorem.
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,
© 2009 Pearson Education, Upper Saddle River, NJ All Rights ReservedFloyd, Digital Fundamentals, 10 th ed Digital Logic Design Dr. Oliver Faust.
CEC 220 Digital Circuit Design SOP and POS forms Friday, January 23 CEC 220 Digital Circuit Design Slide 1 of 17.
COMPUTER ARCHITECTURE & OPERATIONS I Instructor: Yaohang Li.
BOOLEAN ALGEBRA LOGIC GATES. Introduction British mathematician George Boole( ) was successful in finding the link between logic and mathematics.
Logic Simplification-Using Boolean Laws Logic Design Laboratory EE 2121 Lectures By Manesh T EE2121-In Charge
Boolean Algebra. BOOLEAN ALGEBRA Formal logic: In formal logic, a statement (proposition) is a declarative sentence that is either true(1) or false (0).
CEC 220 Digital Circuit Design SOP and POS forms Friday, Sept 11 CEC 220 Digital Circuit Design Slide 1 of 17.
MECH 1500 Chapter 4. MECH 1500 The Binary Concept 4.1.
1 Ch.3 Logic Gates and Boolean Algebra – Part 1
LOGIC CIRCUITLOGIC CIRCUIT. Goal To understand how digital a computer can work, at the lowest level. To understand what is possible and the limitations.
LOGIC GATES. INTRODUCTION TO LOGIC GATES Boolean functions may be practically implemented by using electronic gates. The following points are important.
Logic gates.
Computer Architecture & Operations I
Boolean Algebra & Logic Gates
Combinational Circuits Part 1
Morgan Kaufmann Publishers
Chapter 3 Notes – Part II Review Questions
Logic Gates.
Digital Fundamentals Floyd Chapter 5 Tenth Edition
Unit 2 Boolean Algebra.
Boolean Algebra & De Morgan's Theorems
Logic Gates and Boolean Algebra
CS 105 Digital Logic Design
CHAPTER 2 Boolean Algebra
CHAPTER 1 : INTRODUCTION
Boolean Algebra.
Jeremy R. Johnson Wed. Sept. 29, 1999
CHAPTER 2 Boolean Algebra
Digital Fundamentals Floyd Chapter 5 Tenth Edition
Jeremy R. Johnson Anatole D. Ruslanov William M. Mongan
Basic Logic Gates 1.
BASIC & COMBINATIONAL LOGIC CIRCUIT
Boolean Algebra.
BOOLEAN ALGEBRA AND LOGIC SIMPLIFICATION Part (a)
Digital Fundamentals Floyd Chapter 5 Tenth Edition
ECE 352 Digital System Fundamentals
Digital Fundamentals Floyd Chapter 5 Tenth Edition
Digital Fundamentals Floyd Chapter 5 Tenth Edition
Digital Fundamentals Floyd Chapter 5 Tenth Edition
BOOLEAN ALGEBRA.
Digital Fundamentals Floyd Chapter 5 Tenth Edition
Combinational Logic Circuit
Laws & Rules of Boolean Algebra
ECE 352 Digital System Fundamentals
Chapter 3 – Describing Logic Circuits
Presentation transcript:

Logic Gates Circuits to manipulate 0’s and 1’s. 0’s and 1’s used for numbers Also to make decisions within the computer. In that context, 1 corresponds to TRUE and 0 corresponds to FALSE. © 2015 B. Wilkinson Modification date: January 1, 2015 This material is for the sole and exclusive use of students at UNC-Charlotte. It is not to be sold, reproduced, or generally distributed.

A voltage level will represent each of the two logic values. For example +5V might represent a logic 1 and 0V might represent a logic 0. The logic signals change over time during operation:

Algebraic manipulation of two-valued variables Expressions with two-valued variables were developed by Boole in the 19th century. Then, the motives were not to produce a digital system; it was to reason about the truth or otherwise of statements. However, there is a direct relationship between the algebra of Boole (Boolean algebra) and “switching” circuits.

Basic logic functions There are three fundamental operations in Boolean algebra from which all logic functions can be developed, namely: NOT AND OR These and some other simple functions are implemented by circuits called gates. A gate accepts one or more logic signals and produces a logic output according to a basic logic function of the inputs.

NOT Operation Often need to be able to change a variable from one value to the value, i.e. from a 1 to a 0 or from a 0 to a 1. The NOT operation is applied to a single variable, A say, and produces the opposite logic value to A. If A is a 1, NOT A is a 0 and if A is a 0 NOT A is a 1. NOT operation on a variable A is written as A¯

NOT gate NOT gate sometimes called an inverter. The bubble on the output of the symbol shows inversion. Bubbles are used freely in logic symbols to show inversion and can be applied to both inputs and outputs. A truth table lists the output for each possible input value.

Question What is the result of the NOT operation on A¯ ? Answer

AND Operation A fundamental operation is detecting when two logic signals are both a 1. The AND operation captures these situations with the following definition: The AND operation, operating on two variables A and B, produces a 1 if A is a 1 “and” B is a 1, otherwise the result is a 0. AND operation indicated by the symbol , i.e. A “and” B written as AB. Usually the  symbol is omitted, i.e. AB is written as AB.

AND gate symbol and truth table

Question What is the result of AA? Answer

OR gate Common requirement to show if at least one event is present as indicated by a variable being a 1. Can be captured in the OR operation, the final basic operation in Boolean algebra: The OR operation applied to two variables, A and B, results in a 1 if A = 1 “or” B = 1, or both A and B are 1, otherwise the result is a 0 (i.e. when A and B are both a 0). Symbol for OR operation is +. A “or” B written as A + B. Same symbol as arithmetic addition, but no ambiguity because arithmetic addition would not normally appear in a Boolean expression.

OR gate and truth table

Question What is the result of A + A? Answer

Boolean Identities One question was posed after slides on NOT, AND, and OR gates. In fact, answers part of a set of basic identities, namely:

Can easily prove basic identities by simply listing all possible values of variables in a truth table.

The basic identities can be extended to more variables, i.e.: Question Prove the identity AB1 = AB using a truth table. Answer

Basic algebraic rules Commutative law In ordinary algebra, certain “rules” of algebra are assumed without thought. For example, A + B = B + A and A.B = B.A where + is arithmetic addition and . is arithmetic multiplication. It so happens that this rule also applies to both OR and AND operators in Boolean algebra, but only because the truth table of the Boolean operators are symmetrical, i.e. we can swap A and B in the table and still get a correct table for the function. So in Boolean algebra: A + B = B + A AB = BA

Associative law The order that we compute an expression composed of variables connected by the same operator is not important in ordinary algebra. For example, in ordinary arithmetic, ABC = (AB)C = A(BC) where the parentheses indicate which pair of variables are processed first. Similarly the order is not important in Boolean algebra: ABC = (AB)C = A(BC) A + B + C = (A + B) + C = A + (B + C)

Distributive law In ordinary algebra, we can use parentheses to enforce a particular order of computation, which may be necessary when the operators are different. Order can be enforced with parentheses in Boolean algebra. Parentheses also used in ordinary algebra to show that multiplication applies to a group. For example A(B + C) means A is multiplied by the summation of B and C. Can expand out the expression to AB + AC, i.e. multiplication distributed across both B and C. Also true in Boolean to both AND and OR operators: A(B + C) = AB + AC A + (BC) = (A + B)(A + C) Notice OR operation “distributes” through both B and C terms. Distributive law does not apply to arithmetic addition, i.e. A + (BC)  (A + B)(A + C) in ordinary algebra.

Using the associative law for implementing the function f = ABCD

Using the distributive law for implementing the function f = AB + AC

DeMorgan’s Theorem A + B can only be a 0 in one instance, when both A and B are a 0. In all other instances, A + B is a 1. AB can only be a 1 in one instance, when both A and B are a 1. In all other instances, AB is a 0. Must be a relationship between AND and OR, given by: A¯ + B¯ = AB and the dual: A ¯ B¯ = A + B Known as DeMorgan’s Theorem. Can be extended to more variables, i.e. A¯ + B¯ + C¯ = ABC .

DeMorgan’s theorem (for 2 variables) can be proved by listing each function in a truth table and confirming that both are the same for each combination of A and B (More variables done by induction.)

NAND gate DeMorgan’s theorem provides a relationship between AND and OR. Hence, of the three “basic” operations, AND, OR and NOT, only two are strictly necessary (AND and NOT or OR and NOT) because the third can be replaced by a function of the other two. Can combine AND and NOT to form a “universal” operation, NOT– AND or NAND, which can be used to implement any Boolean expression. The NAND operation with two variables, A and B, is: A “NAND” B = AB

NAND gate symbol and truth table

NOR gate Instead of combining AND and NOT, can combine OR and NOT to form a “universal” operation, NOT–OR or NOR, which can be used to implement any Boolean expression. The NOR operation with two variables, A and B, is: A “NOR” B = A + B

NOR gate symbol and truth table

Question Answer Draw a logic circuit to implement the function: f = A + AB first using AND and OR gates, and then using NAND gates. Answer

Other gates - Exclusive-OR gate OR operation, A + B, when producing a 1 includes when both A and B are a 1. More accurately should be called the inclusive-OR operator. “OR” operation which does not produce a 1 when A and B are both a 1, i.e. produces a 1 if A = 1 or B = 1 but not both A and B a 1, is called the exclusive-OR operator:

Exclusive-NOR gate The inverse operation of the exclusive-OR is called the exclusive-NOR operation. Operation useful because it compares two binary digits and returns a 1 only when both digits are the same (i.e. either both a 1 or both a 0). Implements a comparator or equivalence function. Exclusive-OR operation results in a 1 when the digits are different (a not-equivalence function). Exclusive-OR/NOR operation also obeys the commutative and associative laws. It is left as an exercise to determine whether they obeys the distributive law.

Functions of two variables Sixteen different functions of two Boolean variables, including permanent 1 and permanent 0: Identify six functions : AND, OR, NAND, NOR, exclusive-OR and exclusive-NOR.

Question What feature of the entries in demonstrates that the functions F2, F3, F4, F5, F10, F11, F12, and F13 are not commutative?

Questions

Question Determine the value of X in each of the logic circuits show

Question Reduce the following expressions using DeMorgan’s theorem