In science, technology, business, and, in fact, most other fields of endeavor, we are constantly dealing with quantities. Quantities are measured, monitored,

Slides:



Advertisements
Similar presentations
Digital Systems: Logic Gates and Boolean Algebra Wen-Hung Liao, Ph.D.
Advertisements

Prof. Sin-Min Lee Department of Computer Science
Logical Systems Synthesis.
Chapter 2 Logic Circuits.
Boolean Algebra and Reduction Techniques
CHAPTER 1 : INTRODUCTION
Combinational Logic Circuits Is the logic circuit where the output always depends on the inputs irrespective of the previous state with out the feed back.
Boolean Algebra and Combinational Logic
Chapter 2 – Combinational Logic Circuits Part 1 – Gate Circuits and Boolean Equations Logic and Computer Design Fundamentals.
CS 151 Digital Systems Design Lecture 6 More Boolean Algebra A B.
1 COMP541 Combinational Logic Montek Singh Jan 16, 2007.
EET 1131 Unit 5 Boolean Algebra and Reduction Techniques
DIGITAL ELECTRONICS CIRCUIT P.K.NAYAK P.K.NAYAK ASST. PROFESSOR SYNERGY INSTITUTE OF ENGINEERING & TECHNOLOGY.
CS 300 – Lecture 3 Intro to Computer Architecture / Assembly Language Digital Design.
CSCE 211: Digital Logic Design
Combinational Digital Circuits. Measurement Our world is an analog world. Measurements that we make of the physical objects around us are never in discrete.
Digital Fundamentals with PLD Programming Floyd Chapter 4
Chapter 2: Boolean Algebra and Logic Functions
Chapter 2 Combinational Systems And / Or / Not. TRIAD PRINCIPLE: Combinational is about And / Or / Not combinations As well as equivalent functions. It.
1 Fundamentals of Computer Science Propositional Logic (Boolean Algebra)
1 Logic Gates Digital Computer Logic Kashif Bashir WWW:
Lecture 2 – Boolean Algebra Lecturer: Amy Ching Date: 21 st Oct 2002.
BOOLEAN ALGEBRA Saras M. Srivastava PGT (Computer Science)
Digital Electronics. Introduction to Number Systems & Codes Digital & Analog systems, Numerical representation, Digital number systems, Binary to Decimal.
Boolean Algebra and Digital Circuits
F = ∑m(1,4,5,6,7) F = A’B’C+ (AB’C’+AB’C) + (ABC’+ABC) Use X’ + X = 1.
1 Digital Logic Design Week 5 Simplifying logic expressions.
Combinational Logic 1.
Gate-Level Minimization
Chapter 2 Two- Level Combinational Logic. Chapter Overview Logic Functions and Switches Not, AND, OR, NAND, NOR, XOR, XNOR Gate Logic Laws and Theorems.
CHAPTER 3: PRINCIPLES OF COMBINATIONAL LOGIC
Logic Gates and Boolean Algebra Wen-Hung Liao, Ph.D. 11/2/2001.
LOGIC GATES & BOOLEAN ALGEBRA
1 EG 32 Digital Electronics Thought for the day You learn from your mistakes..... So make as many as you can and you will eventually know everything.
EKT 121 / 4 ELEKTRONIK DIGIT 1 CHAPTER 1 : INTRODUCTION.
ENG241 Digital Design Week #2 Combinational Logic Circuits.
05 BA2 Page 1 ECEn/CS 224 Boolean Algebra – Part 2.
ENGIN112 L6: More Boolean Algebra September 15, 2003 ENGIN 112 Intro to Electrical and Computer Engineering Lecture 6 More Boolean Algebra A B.
ece Parity Used to check for errors Can be either ODD or EVEN Left most bit used as the indicator For EVEN, insert a 0 or a 1 so as to make the.
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.
1 Lect # 2 Boolean Algebra and Logic Gates Boolean algebra defines rules for manipulating symbolic binary logic expressions. –a symbolic binary logic expression.
Fundamentals of digital electronics Prepared by - Anuradha Tandon Assistant Professor, Instrumentation & Control Engineering Branch, IT, NU.
Floyd, Digital Fundamentals, 10 th ed Digital Fundamentals Tenth Edition Floyd Chapter 4 © 2008 Pearson Education.
Chapter 2 Boolean Algebra and Minimization Techniques.
DKT 122/3 - DIGITAL SYSTEM I Chapter 4A:Boolean Algebra and Logic Simplification) Mohd ridzuan mohd nor
BOOLEAN ALGEBRA AND LOGIC SIMPLIFICATION
CHAPTER 1 INTRODUCTION TO DIGITAL LOGIC
© 2009 Pearson Education, Upper Saddle River, NJ All Rights ReservedFloyd, Digital Fundamentals, 10 th ed Binary Numbers For digital systems, the.
ECEN 248: INTRODUCTION TO DIGITAL SYSTEMS DESIGN Lecture 4 Dr. Shi Dept. of Electrical and Computer Engineering.
ECE DIGITAL LOGIC LECTURE 8: BOOLEAN FUNCTIONS Assistant Prof. Fareena Saqib Florida Institute of Technology Spring 2016, 02/11/2016.
Standard & Canonical Forms COE 202 Digital Logic Design Dr. Aiman El-Maleh College of Computer Sciences and Engineering King Fahd University of Petroleum.
BOOLEAN ALGEBRA LOGIC GATES. Introduction British mathematician George Boole( ) was successful in finding the link between logic and mathematics.
Lecture 5 More Boolean Algebra A B. Overview °Expressing Boolean functions °Relationships between algebraic equations, symbols, and truth tables °Simplification.
CHAPTER 1 INTRODUCTION TO DIGITAL LOGIC. De Morgan’s Theorem De Morgan’s Theorem.
DE MORGAN’S THEOREM. De Morgan’s Theorem De Morgan’s Theorem.
1 Ch.3 Logic Gates and Boolean Algebra – Part 1
1 CS 352 Introduction to Logic Design Lecture 1 Ahmed Ezzat Number Systems and Boolean Algebra, Ch-1 + Ch-2.
Mu.com.lec 9. Overview Gates, latches, memories and other logic components are used to design computer systems and their subsystems Good understanding.
Boolean Algebra & Logic Gates
CHAPTER 3 Simplification of Boolean Functions
De Morgan’s Theorem,.
Chapter 2: Boolean Algebra and Logic Functions
CHAPTER 1 : INTRODUCTION
Boolean Algebra and Combinational Logic
ECE 331 – Digital System Design
Lecture 4 Sums of Product Circuits Simplification
BASIC & COMBINATIONAL LOGIC CIRCUIT
BOOLEAN ALGEBRA AND LOGIC SIMPLIFICATION Part (a)
Presentation transcript:

In science, technology, business, and, in fact, most other fields of endeavor, we are constantly dealing with quantities. Quantities are measured, monitored, recorded, manipulated arithmetically, observed, or in some other way utilized in most physical systems. It is important when dealing with various quantities that we be able to represent their values efficiently and accurately. There are basically two ways of representing the numerical value of quantities: analog and digital. Numerical Representation

In analog representation a quantity is represented by a voltage, current, or meter movement that is proportional to the value of that quantity. Analog quantities such as those cited above have an important characteristic: they can vary over a continuous range of values. Analog Representation

In digital representation the quantities are represented not by proportional quantities but by symbols called digits. As we know, the time of day changes continuously, but the digital watch reading does not change continuously; rather, it changes in steps of one per minute (or per second). In other words, this digital representation of the time of day changes in discrete steps, as compared with the representation of time provided by an analog watch, where the dial reading changes continuously. Digital Representation

Analog continuous Digital discrete (step by step) The major difference between analog and digital quantities,

 Easier to design. Exact values of voltage or current are not important, only the range (HIGH or LOW) in which they fall.  Information storage is easy.  Accuracy and precision are greater.  Operation can be programmed. Analog systems can also be programmed, but the variety and complexity of the available operations is severely limited.  Digital circuits are less affected by noise. As long as the noise is not large enough to prevent us from distinguishing a HIGH from a LOW.  More digital circuitry can be fabricated on IC chips. Advantages

There is really only one major drawback when using digital techniques: The real world is mainly analog. Most physical quantities are analog in nature, and it is these quantities that are often the inputs and outputs that are being monitored, operated on, and controlled by a system. To take advantage of digital techniques when dealing with analog inputs and outputs, three steps must be followed: 1. Convert the real-world analog inputs to digital form. (ADC) 2. Process (operate on) the digital information. 3. Convert the digital outputs back to real-world analog form. (DAC) Limitations

The following diagram shows a temperature control system that requires analog/digital conversions in order to allow the use of digital processing techniques.

Many number systems are in use in digital technology. The most common are the decimal, binary, octal, and hexadecimal systems. Digital Number System Decimal System The decimal system is composed of 10 numerals or symbols. These 10 symbols are 0, 1, 2, 3, 4, 5, 6, 7, 8, 9; using these symbols as digits of a number, we can express any quantity. The decimal system, also called the base-10 system because it has 10 digits. Decimal System

=1000=100=10=1. =0.1=0.01=0.001 Most Significant Digit Decimal point Least Significant Digit In the binary system, there are only two symbols or possible digit values, 0 and 1. This base-2 system can be used to represent any quantity that can be represented in decimal or other number system. Binary System =8=4=2=1. =1/2=1/4=1/8 Most Significant Bit Binary point Least Significant Bit

Binary Counting The Binary counting sequence is shown in the table:

Any binary number can be converted to its decimal equivalent simply by summing together the weights of the various positions in the binary number which contain a 1. Binary-To-Decimal Conversion (binary) = = (decimal) Decimal-To-Binary Conversion 25/ 2= 12+ remainder of 11 (Least Significant Bit) 12/ 2= 6 + remainder of 00 6 / 2= 3 + remainder of 00 3 / 2= 1 + remainder of 11 1 / 2= 0 + remainder of 11 (Most Significant Bit) Result25 10 = to binary

Boolean Variables & Truth Tables Boolean algebra differs in a major way from ordinary algebra in that Boolean constants and variables are allowed to have only two possible values, 0 or 1. Boolean 0 and 1 do not represent actual numbers but instead represent the state of a voltage variable, or what is called its logic level. Some common representation of 0 and 1 is shown in the following table. Logic 0Logic 1 FalseTrue OffOn LowHigh NoYes Open SwitchClose Switch

In Boolean algebra, there are three basic logic operations: OR, AND and NOT. A truth table is describing how a logic circuit's output depends on the logic levels present at the circuit's inputs. Truth Table These logic gates are digital circuits constructed from diodes, transistors, and resistors connected in such a way that the circuit output is the result of a basic logic operation (OR, AND, NOT) performed on the inputs.

OR Operation The expression X = A + B reads as "X equals A OR B". The + sign stands for the OR operation, not for ordinary addition. The OR operation produces a result of 1 when any of the input variable is 1. The OR operation produces a result of 0 only when all the input variables are 0 AND Operation The expression X = A * B reads as "X equals A AND B". The multiplication sign stands for the AND operation, same for ordinary multiplication of 1s and 0s. The AND operation produces a result of 1 occurs only for the single case when all of the input variables are 1. The output is 0 for any case where one or more inputs are 0

NOT Operation The NOT operation is unlike the OR and AND operations in that it can be performed on a single input variable. For example, if the variable A is subjected to the NOT operation, the result x can be expressed as x = A‘ or Ā where the prime (') represents the NOT operation.This expression is read as: x equals NOT A x equals the inverse of A x equals the complement of A

NOR Operation NAND Operation Universal Building Blocks A A’

Describing Logic Circuits Algebraically Any logic circuit, no matter how complex, may be completely described using the Boolean operations, because the OR gate, AND gate, and NOT circuit are the basic building blocks of digital systems.OR gateAND gateNOT circuit

Boolean Theorems Investigating the various Boolean theorems (rules) can help us to simplify logic expressions and logic circuits. (9)x + y = y + x (commutative law) (10)x * y = y * x (commutative law) (11)x+ (y+z) = (x+y) +z = x+y+z (associative law) (12)x (yz) = (xy) z = xyz (associative law) (13a)x (y+z) = xy + xz (13b)(w+x)(y+z) = wy + xy + wz + xz (14)x + xy = x [x(1+y)=x*1=x] (15)x + x'y = x + y

DeMorgan's theorems are extremely useful in simplifying expressions in which a product or sum of variables is inverted. The two theorems are: (16) (x+y) = x * y (17) (x*y) = x + y “Break the Line, Change the Sign.” Theorem (16) says that when the OR sum of two variables is inverted, this is the same as inverting each variable individually and then ANDing these inverted variables. Theorem (17) says that when the AND product of two variables is inverted, this is the same as inverting each variable individually and then ORing them. DeMorgan's Theorem

X= [(A'+C) * (B+D')]' = (A'+C)' + (B+D')' [by theorem (17)] = (A''*C') + (B‘*D'') [by theorem (16)] = AC' + B'D Example: For practice, prove that (a) [(AB)’+A’+AB]’ = 0 (b) AB+(AC)’+AB’C(AB+C) = 1 (c) [(AB’+ABC)’+A(B+AB’)]’ = 0 A’’=A

Combinational Logic Circuits Is the logic circuit where the output always depends on the inputs irrespective of the previous state with out the feed back and memory. Min Term: CLC ANDed product of literals in which each variable appears exactly once, in true or complemented form.

Canonical Forms F in canonical form: F(A,B,C) =  m(3,4,5,6,7) = m3 + m4 + m5 + m6 + m7 = A' B C+A B' C’+A B' C+A B C’+A B C One of the most powerful theorems within Boolean algebra states that any Boolean function can be expressed as the Sum Of Products (SOP) of all the variables with in the system. A+B= A(1)+B(1) = A(B+B’)+B(A+A’) = AB+AB’+AB+A’B Min Terms

24 Product of Sums (POS) Maxterms ORed sum of literals in which each variable appears exactly once in either true or complemented form, but not both. F(A,B,C) =  M(0,1,2) = (A + B + C) (A + B + C') (A + B' + C)

Finding the Minterms A.Write down all the terms B. Put X’s where letters must be provided to convert the term to a min term. C.Use all combinations of the X’s in each term to generate minterms, where an X is a 0, write barred letter; where it is 1, write an unbarred letter. D. Drop out redundant terms. Example: Find the minterms for A+BC =A+BC =AXX +XBC (A00,A01,A10,A11+0BC,1BC) AXX= AB’C’, AB’C, ABC’, ABC XBC=A’BC, ABC = AB’C’+ AB’C+ ABC’+ ABC+A’BC+ ABC = AB’C’+ AB’C+ ABC’+ ABC+A’BC

Minterm Designation Example: find the minterm designation of AB’C’D’ Copy the term AB’C’D’ Substitute 1 for non barred And 0 for barred letters Express as decimal subscript of mm 8 Therefore, AB’C’D’= m 8 So the answer of the last Example can be written as, AB’C’+ AB’C+ ABC’+ ABC+A’BC = Σ m(4,5,6,7,3)

Minimization Technique  KARNAUGH MAP (K-Map)  TABULATION METHOD (Quine-McCluskey Method) reduce number of literals (gate inputs) reduce number of gates reduce number of levels of gates Logic Minimization: reduce complexity of the gate level implementation

Karnaugh Map Method K-map is a method of representing the truth table that helps visualize adjacencies in up to 6 dimensions 2-variable K-map 3-variable K-map 4-variable K-map

Example: Reduce the expression F = Σm(0,1,2,3,6,7,13,15) by mapping and implement in NAND logic.  Enter the minterms in corresponding location.  Group the maximum number of 1s in the order of 2 n.  Ensure that all the 1s must come under atleast once in a group.  Simplify the resultant minterms using basic laws.  Implement the hardware