Digital Logic & Design Dr. Waseem Ikram Lecture 13.

Slides:



Advertisements
Similar presentations
EET 1131 Unit 5 Boolean Algebra and Reduction Techniques
Advertisements

Digital Logic Design Gate-Level Minimization
Digital Circuits.
Gate-level Minimization
Digital Logic & Design Vishal Jethva Lecture 13 SVBITEC.WORDPRESS.COM.
Gate-Level Minimization. Digital Circuits The Map Method The complexity of the digital logic gates the complexity of the algebraic expression.
Give qualifications of instructors: DAP

EET 1131 Unit 5 Boolean Algebra and Reduction Techniques
Logic Design A Review. Binary numbers Binary numbers to decimal  Binary 2 decimal  Decimal 2 binary.
1 Simplification of Boolean Functions:  An implementation of a Boolean Function requires the use of logic gates.  A smaller number of gates, with each.
CHAPTER 1 INTRODUCTION TO DIGITAL LOGIC. K-Map (1)  Karnaugh Mapping is used to minimize the number of logic gates that are required in a digital circuit.
1 © 2015 B. Wilkinson Modification date: January 1, 2015 Designing combinational circuits Logic circuits whose outputs are dependent upon the values placed.
Optimization Algorithm
Chapter3: Gate-Level Minimization Part 1 Origionally By Reham S. Al-Majed Imam Muhammad Bin Saud University.
Boolean Algebra & Logic Circuits Dr. Ahmed El-Bialy Dr. Sahar Fawzy.
Karnaugh Map and Circuit Design.
BOOLEAN ALGEBRA AND LOGIC SIMPLIFICATION
CHAPTER 1 INTRODUCTION TO DIGITAL LOGIC
Digital Logic (Karnaugh Map). Karnaugh Maps Karnaugh maps (K-maps) are graphical representations of boolean functions. One map cell corresponds to a row.
Karnaugh Maps (K maps).
EET 1131 Unit 5 Boolean Algebra and Reduction Techniques
Speaker: Fuw-Yi Yang 楊伏夷 伏夷非征番, 道德經 察政章(Chapter 58) 伏者潛藏也
Lecture 6 Quine-McCluskey Method
SLIDES FOR CHAPTER 7 MULTI-LEVEL GATE CIRCUITS NAND AND NOR GATES
Lecture 7 Multi-Level Gate Networks
FIGURE 3.1 Two-variable K-map
CHAPTER 3 Simplification of Boolean Functions
De Morgan’s Theorem,.
Combinational Logic Design&Analysis.
DeMorgan’s Theorem DeMorgan’s 2nd Theorem
ECE 2110: Introduction to Digital Systems
Computer Organisation
Lecture #6 EGR 277 – Digital Logic
ECE 3110: Introduction to Digital Systems
Plotting functions not in canonical form
PROPAGATION DELAY.
CS 352 Introduction to Logic Design
Princess Sumaya University
ECE 331 – Digital System Design
Optimized Implementation of Logic Function
CSE 140 : Components and Design Techniques for Digital Systems
Digital Logic and Design
Optimized Implementation of Logic Function
BASIC & COMBINATIONAL LOGIC CIRCUIT
ECE 331 – Digital System Design
Digital Logic & Design Dr. Waseem Ikram Lecture 12.
CHAPTER 5 KARNAUGH MAPS 5.1 Minimum Forms of Switching Functions
Combinatorial Logic Circuit
CH7 Multilevel Gate Network
Optimization Algorithm
Karnaugh Maps Introduction Venn Diagrams 2-variable K-maps
Digital Logic Design I Gate-Level Minimization
Chapter 3 Gate-level Minimization.
COE 202: Digital Logic Design Combinational Logic Part 3
Digital Fundamentals Floyd Chapter 5 Tenth Edition
Digital Fundamentals Floyd Chapter 4 Tenth Edition
Overview Part 2 – Circuit Optimization
3-Variable K-map AB/C AB/C A’B’ A’B AB AB’
Digital Fundamentals Floyd Chapter 5 Tenth Edition
Karnaugh Maps (K maps).
Analysis of Logic Circuits Example 1
Analysis of Logic Circuits Example 1
Principles & Applications
Laws & Rules of Boolean Algebra
Chapter 3 – Describing Logic Circuits
Circuit Simplification and
ECE 331 – Digital System Design
Computer Architecture
Lecture 2: Combinational Logic Design
Presentation transcript:

Digital Logic & Design Dr. Waseem Ikram Lecture 13

Recap Functions having multiple outputs Comparator Quine-McCluskey Method (two variations) Odd-Prime Number checker circuit

Odd Prime Number (table1) Minterm A B C D E 1 3 5 7 11 13 17 19 23 29 31 The function for Odd Prime numbers in the range 0 to 31 is defined in Canonical Sum form as Sigma ABCDE (1, 3, 5, 7, 11, 13, 17, 19, 23, 29 and 31) The Minterms along with variables ABCDE are written in a tabular form Each minterm is represented in terms of its binary value. We refer to this table as table 1

Odd Prime Number (table2) Minterm A B C D E used 1  3 5 17 7 11 13 19 23 29 31 The table of minterms is reorganized in terms of groups of minterms having 0, 1, 2, 3 and 4 1s Thus minterms 1 has a single 1s The minterms 3, 5 and 17 have two 1s each The minterms 7, 11, 13 and 19 have three 1s each The minterm 23 and 29 have 4 1s. And minterm 31 has 5 1s. This table is referred to as table 2. Minterm 1 is compared with minterms 3, 5 and 17 in the next group. Similarly each of the 3 minterms 3, 5 and 17 are compared with each of the minterms in the next group having 3 1s, that is minterms 7, 11, 13 and 19. Minterms 7, 11, 13 and 19 are compared with each of the minterms in the next group having 4 1s, that is minterms 23 and 29 Lastly, each of the two minterms 23 and 29 are compared with the minterm 31 in the last group having all 1s or 5 1s.

Odd Prime Number (table3) Minterms Variable removed used 1,3 2  1,5 4 1,17 16 3,7 3,11 8 3,19 5,7 5,13 The results of the comparisons between two minterms are represented in a separate table. Referred to as table 3 The first column lists the minterms that have been compared together to eliminate common variables. So terms 1 and 3 form a single term eliminating variable D, forming the product term A*B*C*E The comparison terms 1 and 3 are marked as used in table 2 Similarly terms 1 and 5 from a single term eliminating variable C, forming the product term A*B*D*E Both these terms are marked as used in table 2. Terms 1,17 eliminate variable A Terms 3, 7 eliminate variable C Terms 3, 11 eliminate variable B and so on.

Odd Prime Number (table3) Minterms Variable removed used 17,19 2  7,23 16 13,29 19, 23 4 23,31 8 29,31 As a result of comparison a total of 14, four variable product terms are formed, eliminating a single variable from each term. All the 14 terms are represented in table 3. The exhaustive search for finding prime implicants has not completed. An unmarked term represents a prime implicant.

Odd Prime Number (table4) Minterms Variable removed used 1,3,5,7 2,4 1,3,17,19 2,16 3,7,19,23 4,16 The results of the comparisons between two terms in table 3 are represented in a separate table. Referred to as table 4 The first column lists the terms that have been compared together to eliminate common variables. So terms 1, 3, 5 and 7 form a single term eliminating variables C and D, forming the product term A*B*E The comparison terms 1,3 and 5,7 are marked as used in table 3 Similarly terms 1, 3, 17 and 19 from a single term eliminating variable A and D, forming the product term B*C*E Both these terms are marked as used in table 3. Product terms in table 4 are compared to eliminate common variables. No more comparisons of terms and elimination of variables take place. Thus the prime implicants have been found. There are 3 prime implicants in table 4 and 5 prime implicant in table 3 The eight prime implicants are represented by product terms A*C*DE, A*CD*E, BCD*E, ACDE, ABCE, A*B*E, B*C*E and B*DE.

Odd Prime Number (table5) 1 3 5 7 11 13 17 19 23 29 31 x In the second step of Quine McCluskey method the essential and minimal Prime implicants are found. The prime implicants found in the first step are listed in left most column of the table. The table is referred to as table 5. All the original minterms are listed in the top row In each cell an x is marked indicating that the prime implicant listed in the left column covers the minterm mentioned in the top row. Thus the prime implicant A*C*D covers the minterms 1 and 5 In other words minterms 1 and 5 all have the product terms A*C*D. The table 5 can be directly implemented from table 3 and 4. Circles are marked in cells having x, which represent minterms covered by only a single prime impicant. Thus the minterms 11 and 17 are covered by only the prime implicants A*C*DE and B*C*E respectively. These implicants do not cover all the minterms. The other essential implicants that have minimum number of variables and which cover all the remaining minterms are BCD*E, ACDE and A*B*E. Thus the simplified expression that represents the Odd Prime number in the range 0 to 31 is represented by the product terms A*C*DE, BCD*E, ACDE, A*B*E and B*C*E

Combinational Logic Implementation of SOP using AND-OR Implementation of POS using OR-AND

SOP Implementation The diagram shows the general architecture of the SOP Implementation. SOP expression is implemented by the AND-OR combination of gates. The AND gates produce the product terms. Outputs of all the AND gates are connected to a single multiple input OR gate for sum of products. The product terms comprise of literals in their complemented form and un-complemented form which are implemented by NOT gates connected to the inputs of the AND gates.

POS Implementation The diagram shows the general architecture of the POS Implementation. POS expression is implemented by the OR-AND combination of gates. The OR gates produce the sum terms. Outputs of all the OR gates are connected to a single multiple input AND gate for product of sum terms The sum terms comprise of literals in their complemented form and un-complemented form which are implemented by NOT gates connected to the inputs of the OR gates.

Design and Implementation of Digital Circuits Function Table Simplification of Expression Implementation

Adjacent 1s Detector Circuit SOP Implementation Directly from function table Simplified implementation Implementation using NAND gates

Adjacent 1s Detector Function Input Output A B C D F 1 The Adjacent 1s detector circuit accepts a 4-bit binary input and generates a 1 output when it detects a combination of two adjacent 1s. The function diagram shows the 16 possible input combinations and the corresponding outputs. Thus for the input combinations 0011, 0110, 0111, 1011, 1100, 1101, 1110 and 1111 the output function is a 1. The information provided by the function table can be directly implemented to form the Adjacent 1s Detector circuit How many AND gates are required? Eight gates to implement the 8 minterms. How many OR gates are required? A single eight input OR gate is required to sum all the eight product terms. Some NOT gates are also required to implement complemented literals in some of the product terms.

SOP Implementation The SOP based implementation of the Adjacent 1s detector circuit is shown implemented directly from the function table. This implementation uses maximum number of gates. The total gate count is one 8 input OR gate eight 4 input AND gates ten NOT gates All together 19 gates are required. The increased number of gates increases the cost, the size of the circuit, the power requirement and the propagation delay which is of the order of three gates.

SOP Expression Simplification AB\CD 00 01 11 10 1 An appropriate way to implement the Adjacent 1s detector circuit is to simplify the SOP boolean expression represented by the function table and then implement the circuit based on the simplified expression. The function table information is directly mapped to a 4-variable K-map The 1s are grouped together forming three product terms AB, CD and BC

SOP based Simplified Circuit The simplified circuit is implemented using three 2-input AND gates And a single 3-input OR gate. The total circuit count is 4 gates. The cost of the circuit reduces The size of the circuit reduces The power requirement of the circuit reduces And the propagation delay has reduced from three gate delay to two gate delay.

NAND based Implementation The simplified 4 gate circuit can be implemented using only NAND gates without a change in the total number of gates. Bubbles representing NOT gates are placed at the output of the three AND gates. Converting the three AND gates to NAND gates. To balance out the three NOT gates added at the outputs of the three AND gates. Three bubbles representing three NOT gates are also placed at the three inputs of the OR gate. The Resulting OR gate symbol with three bubbles at the three inputs is an alternate symbol for a three input NAND gate. The NAND based circuit is shown.

Adjacent 1s Detector Circuit POS Implementation Directly from function table Simplified Implementation Implementation using NOR Gates

POS Implementation The POS based implementation of the Adjacent 1s detector circuit is shown implemented directly from the function table. This implementation uses maximum number of gates. The total gate count is one 8 input AND gate eight 4 input OR gates ten NOT gates All together 19 gates are required. The increased number of gates increases the cost, the size of the circuit, the power requirement and the propagation delay which is of the order of three gates.

POS Expression Simplification AB\CD 00 01 11 10 1 An appropriate way to implement the Adjacent 1s detector circuit is to simplify the POS boolean expression represented by the function table and then implement the circuit based on the simplified expression. The function table information is directly mapped to a 4-variable K-map The 0s are grouped together forming three sum terms A+C, B+C and B+D

POS based Simplified Circuit The simplified circuit is implemented using three 2-input OR gates And a single 3-input AND gate. The total circuit count is 4 gates. The cost of the circuit reduces The size of the circuit reduces The power requirement of the circuit reduces And the propagation delay has reduced from three gate delay to two gate delay.

NOR based Implementation The simplified 4 gate circuit can be implemented using only NOR gates without a change in the total number of gates. Bubbles representing NOT gates are placed at the output of the three OR gates. Converting the three OR gates to NOR gates. To balance out the three NOT gates added at the outputs of the three OR gates. Three bubbles representing three NOT gates are also placed at the three inputs of the AND gate. The Resulting AND gate symbol with three bubbles at the three inputs is an alternate symbol for a three input NOR gate. The NOR based circuit is shown.

Operation of Circuit Represented through a timing diagram Timing diagram of 8 time intervals Each interval representing a new input

POS based Simplified Circuit

Operation of Circuit The timing diagram describes the operation of the circuit for the POS based simplified circuit for intervals t0 to t8 A, B, C and D are the inputs to the circuit. The timing diagram shows the inputs A, B, C and D changing with time. The timing signals 1, 2 and 3 represent the outputs of the OR gates 1, 2 and 3. The timing signal F represents the output of the circuit. At interval t0 the input ABCD to the circuit is 0000, the outputs of the three OR gates is 00 and 0 and the circuit output is also 0 At tie interval t3 the input ABCD to the circuit is 0011, the outputs of OR gates 1,2 and 3 are 111. The output F is also a 1. The circuit has detected adjacent 1s. At interval t6 the input ABCD to the circuit is 0110, the outputs of OR gates 1,2 and 3 are 111. The output F is 1 indicating adjacent 1s. The operation of the circuit which is based on the POS simplified expression also proves that a POS based expression determined from the truth table and K-map results in a circuit which operates in an identical manner to that of a SOP based circuit.

Active low/high inputs/outputs Active output state represented by 1 or 0 Active input state represented by 1 or 0 A bubble at output represents active low output A bubble at input represents active low input BCD to 7-Segmnet display circuit sets segment output to 1 Comparator circuit sets A>B, A=B, A< B output to 1 Odd-Prime Number Detector Circuit Adjacent 1s detector sets output to 1 when it detects adjacent 1s

Active low/high inputs/outputs AND gate performs AND operation on two active high inputs to result in an active high output NAND gate performs AND operation on two active high inputs resulting in an active low output OR gate performs OR operation on two active high inputs to result in an active high output NOR gate performs OR operation on two active high inputs to result in an active low output

Active-high inputs & outputs The simplified SOP based implementation has an active high output The circuit can be implemented to have an active low output by connecting a NOT gate at the output of the circuit. Now when ever adjacent 1s are detected the circuit output is set to 0. The circuit also is shown to have active-high inputs The circuit can work with active–low input producing an active high output if NOT gates are connected to the inputs of all the AND gates.

Active-high inputs & outputs Consider now the SOP based circuit which has active high inputs and active high output. If the inputs of the circuit are made active low and the output of the circuit is also made active low then bubbles are added at all the inputs of the three AND gates. A bubble is also added to the output of the OR gate. The bubbles added at the input of the AND gate represent the alternate symbol for the NOR gate. Similarly the bubble added to the output of the OR gate also makes it a NOR gate. By modifying the circuit to have active low inputs and outputs. The circuit sets the output F to active 0 to indicate detection of adjacent 1s. Since the inputs are also represented by active low therefore the input ABCD 0000 actually represents 1111, similarly ABCD active low input 0001 actually represents 1110.

Operation of Circuit The timing diagram describes the operation of the circuit for the intervals t0 to t8 The timing signals A, B, C and D represent the active-low inputs applied at the inputs. The timing signals 1, 2 and 3 represent the outputs of the NOR gates 1, 2 and 3 respectively. The timing signal F represents the active-low output. At interval t0 the active-low input at inputs ABCD is 0000 which actually represents 1111. The active-low output F is 0 which indicates that adjacent 1s have been detected. Similarly at intervals t1 to t4, the active-low inputs ABCD 0001, 0010, 0011 and 0100 which actually represent the numbers 1110, 1101, 1100 and 1011, the output is 0 indicating that adjacent 1s have been detected.

Odd-Parity Generator Circuit Circuit checks the 4-bit data Generates a parity bit (odd) Data + parity bit add up to odd number of 1s