Digital Logic & Design Vishal Jethva Lecture 13 SVBITEC.WORDPRESS.COM.

Slides:



Advertisements
Similar presentations
Chapter 3 Gate-Level Minimization
Advertisements

Exclusive-OR and Exclusive-NOR Gates
Chapter3: Gate-Level Minimization Part 2
ECE 3110: Introduction to Digital Systems Chapter 6 Combinational Logic Design Practices XOR, Parity Circuits, Comparators.
Boolean Algebra and Reduction Techniques
Exclusive-OR and Exclusive-NOR Gates
ECE 2373 Modern Digital System Design Exam 2. ECE 2372 Exam 2 Thursday March 5 You may use two 8 ½” x 11” pages of information, front and back, write.
Universal Gates Sum of Products Products of Sum
CS 151 Digital Systems Design Lecture 11 NAND and XOR Implementations.
EE2174: Digital Logic and Lab Professor Shiyan Hu Department of Electrical and Computer Engineering Michigan Technological University CHAPTER 4 Technology.
Chapter 3 Combinational Logic Design
Lecture No. 14 Combinational Functional Devices svbitec.wordpress.com.
Digital Logic Design Adil Waheed. BOOLEAN ALGEBRA AND LOGIC SIMPLIFICATION AND gate F = A.B OR gate F = A + B NOT gate F = A NAND gate F = A.B NOR gate.
Digital Logic and Design Vishal Jethva Lecture No. 10 svbitec.wordpress.com.
Digital Logic & Design Vishal Jethava Lecture 12 svbitec.wordpress.com.
Module 3.  Binary logic consists of :  logic variables  designated by alphabet letters, e.g. A, B, C… x, y, z, etc.  have ONLY 2 possible values:
Company LOGO DKT 122/3 DIGITAL SYSTEM 1 WEEK #7 COMBINATIONAL LOGIC ANALYSIS.
Digital Electronics Lecture 4 Simplification using Boolean Algebra, Combinational Logic Circuit Design.
Exclusive OR Gate. Logically, the exclusive OR (XOR) operation can be seen as either of the following operations:exclusive OR (XOR) 1. A AND NOT B OR.
LOGIC CIRCUIT IMPLEMENTATION
Basic logic gates  AND gate:The truth table is given by A.BBA
Circuit Simplification Truth Table  Minimized Logic Gates.
Logic Design CS221 1 st Term Logic-Circuit Implementation Cairo University Faculty of Computers and Information.
NAND-NAND and NOR-NOR Circuits and Even and Odd Logic Functions
Chapter 3 Gate-level Minimization. 3-7 NAND and NOR Implementation Digital circuits are frequently constructed with NAND or NOR gates rather than with.
CH51 Chapter 5 Combinational Logic By Taweesak Reungpeerakul.
COE 202: Digital Logic Design Combinational Logic Part 4
TUTORIAL CHAPTER 3 GATE_LEVEL MINIMIZATION PART 2 TA. Arwa Al Saad. 9 November 2013.
CS 1110 Digital Logic Design
Implementation of SOP/POS Expressions
CS 121 Digital Logic Design Gate-Level Minimization Chapter 3.
Ahmad Almulhem, KFUPM 2010 COE 202: Digital Logic Design Combinational Logic Part 4 Dr. Ahmad Almulhem ahmadsm AT kfupm Phone: Office:
Combinational Logic Digital Design Department of Software Development Faculty of Information Technology Islamic University of Gaza Dr. Rebhi Baraka
NAND-NAND and NOR-NOR Circuits and Even and Odd Logic Functions ECE 301 – Digital Electronics.
ECE 320 Homework #3 1. Simplify the Boolean function F using the don’t care conditions d, in both S.O.P. and P.O.S. form: a) F=A’B’D’+A’CD+A’BC d=A’BC’D+ACD+AB’D’
Digital Logic & Design Vishal Jethava Lecture 11 svbitec.wordpress.com.
CEC 220 Digital Circuit Design NAND/NOR Multi-Level Circuits
CEC 220 Digital Circuit Design More Karnaugh Maps Monday, February 02 CEC 220 Digital Circuit Design Slide 1 of 11.
CHAPTER 5 Combinational Logic Analysis
Combinational Logic: Other Gate Types
CEC 220 Digital Circuit Design SOP and POS forms Friday, January 23 CEC 220 Digital Circuit Design Slide 1 of 17.
ECE 2110: Introduction to Digital Systems Chapter 6 Combinational Logic Design Practices XOR and parity check Circuits.
CEC 220 Digital Circuit Design SOP and POS forms Friday, Sept 11 CEC 220 Digital Circuit Design Slide 1 of 17.
Chapter 5 Boolean Algebra and Reduction Techniques 1.
President UniversityErwin SitompulDigital Systems 4/1 Lecture 4 Digital Systems Dr.-Ing. Erwin Sitompul President University
Lecture No. 16 Vishal Jethva Digital Logic & Design svbitec.wordpress.com.
Combinational Logic Analysis. Basic Combinational Logic Circuits AND-OR logic AND-OR logic AND-OR logic produces an SOP expression. AND-OR logic produces.
Circuits, Truth Tables & Boolean Algebra. Expressions Can describe circuits in terms of Boolean expression.
Digital Logic & Design Dr. Waseem Ikram Lecture 11.
Lecture No. 14 Combinational Functional Devices. Digital Logic &Design Dr. Waseem Ikram Lecture 14.
FIGURE 3.1 Two-variable K-map
Logic Gates.
Digital Logic & Design Dr. Waseem Ikram Lecture 05
EI205 Lecture 5 Dianguang Ma Fall 2008.
Exclusive OR Gate.
Digital Logic and Design
Combinational Logic Design Process
Digital Logic & Design Dr. Waseem Ikram Lecture 13.
Circuits, Truth Tables & Boolean Algebra
Universal gates.
Digital Logic & Design Lecture 05
Programmable Logic Devices
King Fahd University of Petroleum and Minerals
Waveforms & Timing Diagrams
Logic Gates.
Gates Type AND denoted by X.Y OR denoted by X + Y NOR denoted by X + Y
3-Variable K-map AB/C AB/C A’B’ A’B AB AB’
Circuits, Truth Tables & Boolean Algebra
Department of Electronics
Logic Gates By: Asst Lec. Besma Nazar Nadhem
Presentation transcript:

Digital Logic & Design Vishal Jethva Lecture 13 SVBITEC.WORDPRESS.COM

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

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 SVBITEC.WORDPRESS.COM

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. SVBITEC.WORDPRESS.COM

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. SVBITEC.WORDPRESS.COM

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. SVBITEC.WORDPRESS.COM

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. SVBITEC.WORDPRESS.COM

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 SVBITEC.WORDPRESS.COM

Combinational Logic Implementation of SOP using AND-OR Implementation of POS using OR-AND SVBITEC.WORDPRESS.COM

SOP Implementation SVBITEC.WORDPRESS.COM 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. SVBITEC.WORDPRESS.COM

POS Implementation SVBITEC.WORDPRESS.COM 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. SVBITEC.WORDPRESS.COM

Design and Implementation of Digital Circuits Function Table Simplification of Expression Implementation SVBITEC.WORDPRESS.COM

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

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. SVBITEC.WORDPRESS.COM

SOP Implementation SVBITEC.WORDPRESS.COM 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. SVBITEC.WORDPRESS.COM

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 SVBITEC.WORDPRESS.COM

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. SVBITEC.WORDPRESS.COM

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. SVBITEC.WORDPRESS.COM

Adjacent 1s Detector Circuit POS Implementation Directly from function table Simplified Implementation Implementation using NOR Gates SVBITEC.WORDPRESS.COM

POS Implementation SVBITEC.WORDPRESS.COM 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. SVBITEC.WORDPRESS.COM

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 SVBITEC.WORDPRESS.COM

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. SVBITEC.WORDPRESS.COM

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. SVBITEC.WORDPRESS.COM

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

POS based Simplified Circuit SVBITEC.WORDPRESS.COM

Operation of Circuit SVBITEC.WORDPRESS.COM 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. SVBITEC.WORDPRESS.COM

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 SVBITEC.WORDPRESS.COM

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 SVBITEC.WORDPRESS.COM

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. SVBITEC.WORDPRESS.COM

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. SVBITEC.WORDPRESS.COM

Operation of Circuit SVBITEC.WORDPRESS.COM 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. SVBITEC.WORDPRESS.COM

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 SVBITEC.WORDPRESS.COM