Digital Logic ENEL 111. Digital systems A digital system is a system whose inputs and outputs fall within a discrete, finite set of values Two main types.

Slides:



Advertisements
Similar presentations
ENGIN112 L7: More Logic Functions September 17, 2003 ENGIN 112 Intro to Electrical and Computer Engineering Lecture 7 More Logic Functions: NAND, NOR,
Advertisements

Logic Gates.
Lecture 6 More Logic Functions: NAND, NOR, XOR and XNOR
Chapter 2 Logic Circuits.
Boolean Algebra and Reduction Techniques
Lecture 20, Slide 1EECS40, Fall 2004Prof. White Lecture #20 ANNOUNCEMENT Midterm 2 Thursday Nov. 18, 12:40 – 2:00 pm A-L initials in F295 Haas Business.
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.
CS 151 Digital Systems Design Lecture 7 More Logic Functions: NAND, NOR, XOR.
Relationship Between Basic Operation of Boolean and Basic Logic Gate The basic construction of a logical circuit is gates Gate is an electronic circuit.
CS 151 Digital Systems Design Lecture 6 More Boolean Algebra A B.
1 COMP541 Combinational Logic Montek Singh Jan 16, 2007.
Lecture 14 Today we will Learn how to implement mathematical logical functions using logic gate circuitry, using Sum-of-products formulation NAND-NAND.
Contemporary Logic Design Two-Level Logic © R.H. Katz Transparency No. 3-1 Chapter #2: Two-Level Combinational Logic Section 2.1, Logic Functions.
Boolean Algebra and Logic Simplification. Boolean Addition & Multiplication Boolean Addition performed by OR gate Sum Term describes Boolean Addition.
Boolean Algebra and Logic Simplification
Chapter 2: Boolean Algebra and Logic Functions
1 Why study Boolean Algebra? 4 It is highly desirable to find the simplest circuit implementation (logic) with the smallest number of gates or wires. We.
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.
BOOLEAN ALGEBRA Saras M. Srivastava PGT (Computer Science)
Logic Design A Review. Binary numbers Binary numbers to decimal  Binary 2 decimal  Decimal 2 binary.
ECE 331 – Digital System Design
Lecture 7 Topics –Boolean Algebra 1. Logic and Bits Operation Computers represent information by bit A bit has two possible values, namely zero and one.
1 The Chinese University of Hong Kong Faculty of Education Diploma in Education (Part-Time) Winter 1997 Educational Communications and Technology Assignment.
Discrete Mathematics and Its Applications.  The English mathematician George Boole ( ) sought to give symbolic form to Aristotle's system of.
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.
Sneha.  Gates Gates  Characteristics of gates Characteristics of gates  Basic Gates Basic Gates  AND Gate AND Gate  OR gate OR gate  NOT gate NOT.
Chapter 2 Two- Level Combinational Logic. Chapter Overview Logic Functions and Switches Not, AND, OR, NAND, NOR, XOR, XNOR Gate Logic Laws and Theorems.
Lecture 4 Nand, Nor Gates, CS147 Circuit Minimization and
CH51 Chapter 5 Combinational Logic By Taweesak Reungpeerakul.
LOGIC GATES & BOOLEAN ALGEBRA
Boolean Algebra AND gate A B | AB 0 0 | | | | 1 OR gate A B | A + B 0 0 | | | | 1 NOT gate _ A | A or A’ 0 | 1 1 |
ENGIN112 L6: More Boolean Algebra September 15, 2003 ENGIN 112 Intro to Electrical and Computer Engineering Lecture 6 More Boolean Algebra A B.
LOGIC CIRCUITLOGIC CIRCUIT. Goal To understand how digital a computer can work, at the lowest level. To understand what is possible and the limitations.
Boolean Algebra and Reduction Techniques
1 EENG 2710 Chapter 2 Algebraic Methods For The Analysis and Synthesis of Logic circuits.
Announcements Assignment 6 due tomorrow No Assignment 7 yet.
DKT 122/3 - DIGITAL SYSTEM I Chapter 4A:Boolean Algebra and Logic Simplification) Mohd ridzuan mohd nor
Karnaugh Maps (K-Maps)
BOOLEAN ALGEBRA AND LOGIC SIMPLIFICATION
Module 7.  In Module 3 we have learned about NAND gate – it is a combination of AND operation followed by NOT operation  Symbol A. B = Y  Logic Gate.
CEC 220 Digital Circuit Design SOP and POS forms Friday, January 23 CEC 220 Digital Circuit Design Slide 1 of 17.
ECE DIGITAL LOGIC LECTURE 6: BOOLEAN ALGEBRA Assistant Prof. Fareena Saqib Florida Institute of Technology Fall 2016, 02/01/2016.
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
DE MORGAN’S THEOREM. De Morgan’s Theorem De Morgan’s Theorem.
K-maps and Decoders Prof. Sin-Min Lee Department of Computer Science.
Dr. ClincyLecture Slide 1 CS6020- Chapter 3 (3A and ) Dr. Clincy Professor of CS First Exam - Tuesday, September 6th Coverage: All subjects up to.
Digital Logic.
Morgan Kaufmann Publishers
Department of Preparatory Year, Umm Al Qura University
Logic Gates and Boolean Algebra
De Morgan’s Theorem,.
Lecture 4 Nand, Nor Gates, CS147 Circuit Minimization and
Chapter 2: Boolean Algebra and Logic Functions
Logic Gates and Boolean Algebra
Logic Gates.
Digital Logic.
IB Computer Science Computer Organization
Digital Signals Digital Signals have two basic states:
Boolean Algebra Why study Boolean Algebra?
Boolean Algebra.
Basic Logic Gates 1.
BASIC & COMBINATIONAL LOGIC CIRCUIT
CSE 370 – Winter Combinational Logic - 1
Logic Gates.
Boolean Algebra.
BOOLEAN ALGEBRA AND LOGIC SIMPLIFICATION Part (a)
Digital Logic Design Basics Combinational Circuits Sequential Circuits.
Principles & Applications
Presentation transcript:

Digital Logic ENEL 111

Digital systems A digital system is a system whose inputs and outputs fall within a discrete, finite set of values Two main types  Combinational Outputs dependent only on current input  Sequential Outputs dependent on both past and present inputs 1 7 3

Combinational Logic Circuits Aims  To express the inputs and outputs of a system in binary form  To develop the relationships between these inputs and outputs as a truth table  To simplify the Boolean expression using algebra or Karnaugh maps  To select suitable electronic devices to implement the required function

Example  Consider a buzzer which sounds when : The lights are on and The door is open and No key is in the ignition VariableValueSituation A1Lights are on 0Lights are off B1Door is open 0Door is closed C1Key is in ignition 0Key is out of ignition P1Buzzer is on 0Buzzer is off Alarm system Active B A C P

Example Truth Table  A Truth Table can be used to show the relationships between : the 3 inputs and the single output Implementation as a circuit using logic gates ABCPABCP lights door keys buzzer

Summary Inputs and Outputs are expressed in Binary Form A truth table showing relationships between inputs and outputs is constructed A circuit is built to implement the circuit

This lecture Truth tables for primitive functions Boolean notation Sum of products Boolean algebra

Truth Tables and Boolean Notation Circuits with one input  BufferP = A  NotP = A AP0011AP AP0110AP0110 A P

Basic AND / OR Circuits with two Inputs  AND P = A.B  ORP=A+B ABP ABP A B P ABP ABP

Basic NAND / NOR Problems with two Inputs  NAND P = A.B  NORP=A+B ABP ABP A B P ABP ABP

Basic XOR / XNOR Circuits with two Inputs:  XORP = A  B  XNORP = A  B ABP ABP ABP ABP

Primitive gates All circuits can actually be made using AND, OR and NOT gates if required. In terms of components used, it is generally easier to build inverting functions. They typically require less transistors and also work faster than their non- inverting cousins.

Exercise Complete the truth table for this circuit and name the equivalent primitive function/gate A.B P A+BBA

Not Symbol You should be aware that not A and not B not (A and B) equivalent to NAND and are different BA A.B

Combinational Logic Circuits Reminder from our overview  To express the inputs and outputs of a system in binary form  To develop the relationships between these inputs and outputs as a truth table  To simplify the Boolean expression using algebra or Karnaugh maps  To select suitable electronic devices to implement the required function

Our Example  Consider a buzzer which sounds when : The lights are on and The door is open and No key is in the ignition VariableValueSituation A1Lights are on 0Lights are off B1Door is open 0Door is closed C1Key is in ignition 0Key is out of ignition P1Buzzer is on 0Buzzer is off Alarm system Active B A C P

Very simple! The truth table The buzzer sounds only under this condition A.B.C PCBA Alarm system Active B A C P

Slightly more complex  Consider my car which complains by sounding a buzzer when I have left the lights on or left the car in gear (not in Park) and taken the keys out of the ignition: P (buzzer) 111 both left lights on left in gear what I’ve done C (keys out = 0) B (in gear = 1) A (lights on = 1) A.B.C + A.B.C + A.B.C

Minimization The expression can be simplified in one of two ways: via algebra via Karnaugh maps to A.C + B.C as the following truth table shows:

Truth table shows the same result A.C B.C P A.C + B.C CBA A.B.C + A.B.C + A.B.C = A.C + B.C = (A + B).C

Means fewer logic gates are required

Minterms and Maxterms Notice the truth table has all possible combinations of A,B and C included: The minterm is obtained from the “product” of A,B and C by AND-ing them A.B.C The maxterm is obtained from the “sum” of A,B and C by OR-ing them and inverting inputs A + B + C PCBA

Sum of Products/Product of Sums For all combinations of inputs for which the output is a logical true: Combining the minterms with OR gives the sum-of- products For all combinations of inputs for which the output is a logical false: Combining the maxterms with AND gives the product-of sums.

From our example: P CBA sum-of-products: A.B.C + A.B.C + A.B.C product-of-sums: A+B+C. A+B+C. A+B+C. A+B+C. A+B+C Normally the expression is derived using sum- of-products although product-of-sums yields fewer terms when there are more 1 outputs than 0 outputs.

Exercise P CBA Write out the sum-of-products expression for the truth table : A.B.C + A.B.C + A.B.C + A.B.C

Summary A circuits desired outputs can be specified in terms An boolean (logical) expression can be derived from the truth table. The boolean expression can then be simplified now we see how…

Algebraic Laws DeMorgan’s Laws  The AND and OR functions can be shown to be related to each other through the following equations:

DeMorgan DeMorgan’s Laws  Example: Implement the expression A.B + C.D using only NAND gates NOT the individual terms Change the sign NOT the lot.

Boolean Algebraic Laws (A.B).C = A.B.C = A.(B.C)Associative A.(B + C) = A.B + A.C A + (B.C) = (A + B).(A + C) Distributive A. B = B. A A + B = B + A Commutative A. 0 = 0 A. 1 = A A + 0 = A A + 1 = 1 Operating with logic 0 and logic 1 A. A = 0 A + A = 1 Complementary A. A = A A + A = A Tautology (Idempotent)

Basic rules of Boolean Algebra Example: Simplify the following Expression A.B + A.C+ A.C + A.Bdistributive A.(B + B) + A.(C + C)re-distribute A.1 + A.1complementary A + Aop with logic 1 Aidempotent

Exercises You should be able to:  Construct truth tables given boolean expressions  Compare expressions using truth tables  Produce a sum-of-products form from a truth table by combining minterms  Simplify the resulting expression algebraically  Represent the expression as a circuit using logic gates