Combinational Logic Design

Slides:



Advertisements
Similar presentations
Functions and Functional Blocks
Advertisements

Combinational Circuits CS370 – Spring BCD to 7 Segment Display Controller Understanding the problem: input is a 4 bit bcd digit output is the control.
COE 202: Digital Logic Design Combinational Circuits Part 1
Henry Hexmoor1 C hapter 4 Henry Hexmoor-- SIUC Rudimentary Logic functions: Value fixing Transferring Inverting.
التصميم المنطقي Second Course
CHAPTER 2 Digital Combinational Logic/Arithmetic Circuits.
Code Converters, Multiplexers and Demultiplexers
1 Homework Reading –Tokheim, Section 5-10, 7-4 Machine Projects –Continue on MP4 Labs –Continue labs with your assigned section.
Decoder.
DIGITAL SYSTEMS TCE OTHER COMBINATIONAL LOGIC CIRCUITS WEEK 7 AND WEEK 8 (LECTURE 1 OF 3) COMPARATORS CODE CONVERTERS.
CS 151 Digital Systems Design Lecture 13 Combinational Design Procedure.
Charles Kime & Thomas Kaminski © 2008 Pearson Education, Inc. (Hyperlinks are active in View Show mode) Chapter 3 – Combinational Logic Design Part 1 –
Design of Two-Level Multiple-Output Networks
ECE 331 – Digital System Design Logic Circuit Design (Lecture #7)
COE 202: Digital Logic Design Combinational Circuits Part 1
EE2174: Digital Logic and Lab
Chapter 3 Combinational Logic Design
DIGITAL CIRCUITS Dr. L M Head Sophomore Clinic Fall 2004.
Charles Kime & Thomas Kaminski © 2008 Pearson Education, Inc. (Hyperlinks are active in View Show mode) Chapter 3 – Combinational Logic Design Part 1 –
Combinational Logic Design
Overview Part 1 – Design Procedure 3-1 Design Procedure
9/15/09 - L22 Sequential Circuit Design Copyright Joanne DeGroat, ECE, OSU1 Sequential Circuit Design Creating a sequential circuit to address a.
Boolean Algebra and Logic Simplification
9/15/09 - L15 Decoders, Multiplexers Copyright Joanne DeGroat, ECE, OSU1 Decoders and Multiplexers.
ECE 2110: Introduction to Digital Systems Chapter 6 Combinational Logic Design Practices Decoders.
CS 151: Digital Design Chapter 3 3-8: Encoding. CS 151 Encoding Encoding - the opposite of decoding - the conversion of a maximum of 2 n input code to.
9/15/09 - L6 Standard FormsCopyright Joanne DeGroat, ECE, OSU1 Standard Forms.
Charles Kime & Thomas Kaminski © 2004 Pearson Education, Inc. Terms of Use (Hyperlinks are active in View Show mode) Terms of Use Lecture 12 – Design Procedure.
Combinational Logic Design
Logic Function Optimization. Combinational Logic Circuit Regular SOP and POS designs Do not care expressions Digital logic circuit applications Karnaugh.
Combinational Logic Design BIL- 223 Logic Circuit Design Ege University Department of Computer Engineering.
9/15/09 - L7 Two Level Circuit Optimization Copyright Joanne DeGroat, ECE, OSU1 Two Level Circuit Optimiztion An easier way to generate a minimal.
9/15/09 - L15 Decoders, Multiplexers Copyright Joanne DeGroat, ECE, OSU1 Decoders and Multiplexer Circuits.
Combinational Design, Part 3: Functional Blocks
Charles Kime & Thomas Kaminski © 2008 Pearson Education, Inc. (Hyperlinks are active in View Show mode) Chapter 3 – Combinational Logic Design Part 1 –
9/15/09 - L21 Sequential Circuit Analaysis Copyright Joanne DeGroat, ECE, OSU1 Sequential Circuit Analysis.
9/15/09 - L24 Other FF TypesCopyright Joanne DeGroat, ECE, OSU1 Other FF Types.
Figure 4–1 Application of commutative law of addition. Thomas L. Floyd Digital Fundamentals, 9e Copyright ©2006 by Pearson Education, Inc. Upper Saddle.
9/15/09 - L15 Decoders, Multiplexers Copyright Joanne DeGroat, ECE, OSU1 Decoders and Multiplexer Circuits.
CS221: Digital Logic Design Combinational Circuits
CS151 Introduction to Digital Design
Chap 2. Combinational Logic Circuits
Lecture 11 Combinational Design Procedure
EKT 124 / 3 DIGITAL ELEKTRONIC 1
EE207: Digital Systems I, Semester I 2003/2004
1 Chapter 4 Combinational Logic Logic circuits for digital systems may be combinational or sequential. A combinational circuit consists of input variables,
Magnitude Comparator A magnitude comparator is a combinational circuit that compares two numbers, A and B, and then determines their relative magnitudes.
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’
Magnitude Comparator Dr. Ahmed Telba.
Chapter # 4: Programmable Logic
1 CS 151: Digital Design Chapter 3: Combinational Logic Design 3-1Design Procedure CS 151: Digital Design.
CS151 Introduction to Digital Design Chapter 3: Combinational Logic Design 3-1 Design Procedure 1Created by: Ms.Amany AlSaleh.
Digital Electronics Dr. Imtiaz Hussain Assistant Professor Mehran University of Engineering & Technology Jamshoro
© 2009 Pearson Education, Upper Saddle River, NJ All Rights ReservedFloyd, Digital Fundamentals, 10 th ed Binary Numbers For digital systems, the.
ECE 301 – Digital Electronics Logic Circuit Design (Lecture #9)
CS151 Introduction to Digital Design Chapter 3: Combinational Logic Design 3-5 Combinational Functional Blocks 3-6 Rudimentary Logic Functions 3-7 Decoding.
Advanced FPGA Based System Design Lecture-1 Introduction to the Subject By: Dr Imtiaz Hussain
Explain Half Adder and Full Adder with Truth Table.
1 Combinational Logic Design.  A process with 5 steps Specification Formulation Optimization Technology mapping Verification  1 st three steps and last.
Decoder. 2 ABC 3:8 dec O0O0 O1O1 O2O2 A B C Enb S2S2 S1S1 S0S0 O3O3 O4O4 O5O5 O6O6 O7O7 EABC O0O0 O1O1 O2O2 O3O3 O4O4 O5O5 O6O6 O7O7 0XXX
CHAPTER 2 Digital Combinational Logic/Arithmetic Circuits.
Lecture 1 Gunjeet kaur Dronacharya group of institutions.
Overview Part 2 – Combinational Logic Functions and functional blocks
Combinational Logic Design&Analysis.
EKT 124 / 3 DIGITAL ELEKTRONIC 1
Programmable Logic Devices (PLDs)
ECE 352 Digital System Fundamentals
Presentation transcript:

Combinational Logic Design 9/15/09 - L12 Combinational Logic Design Copyright 2009 - Joanne DeGroat, ECE, OSU

Class 12-Combinational Logic Other gate types Material from section 3-1 and 3-2 of text 9/15/09 - L12 Combinational Logic Design Copyright 2009 - Joanne DeGroat, ECE, OSU

Combinational Logic Design A process with 5 steps Specification Formulation Optimization Technology mapping Verification 1st three steps and last best illustrated by example 9/15/09 - L12 Combinational Logic Design Copyright 2009 - Joanne DeGroat, ECE, OSU

Copyright 2009 - Joanne DeGroat, ECE, OSU Functional Blocks Fundamental circuits that are the base building blocks of most larger digital circuits They are reusable and are common to many systems. Examples of functional logic circuits Decoders Encoders Code converters Multiplexers 9/15/09 - L12 Combinational Logic Design Copyright 2009 - Joanne DeGroat, ECE, OSU

Copyright 2009 - Joanne DeGroat, ECE, OSU Where they are used Multiplexers Selectors for routing data to the processor, memory, I/O Multiplexers route the data to the correct bus or port. Decoders are used for selecting things like a bank of memory and then the address within the bank. This is also the function needed to ‘decode’ the instruction to determine the operation to perform. Encoders are used in various components such as keyboards. 9/15/09 - L12 Combinational Logic Design Copyright 2009 - Joanne DeGroat, ECE, OSU

Copyright 2009 - Joanne DeGroat, ECE, OSU Specifications step Write a specification for the circuits Specification includes What are the inputs: how many, how many bits in a given output, how are they grouped,, are they control, are they active high? What are the outputs: how many and how many bits in a each, active high, active low, tristate output? The functional operation that takes place in the chip, i.e., for given inputs what will appear on the outputs. 9/15/09 - L12 Combinational Logic Design Copyright 2009 - Joanne DeGroat, ECE, OSU

Copyright 2009 - Joanne DeGroat, ECE, OSU Formulation step Convert the specifications into a variety forms for optimal implementation. Possible forms Truth Tables Expressions K-maps Binary Decision Diagrams IF THE SPECIFCATION IS ERRONOUS OR INCOMPLETE (open for various interpretation) then the circuit will perform as specified but will not perform as desired. 9/15/09 - L12 Combinational Logic Design Copyright 2009 - Joanne DeGroat, ECE, OSU

Copyright 2009 - Joanne DeGroat, ECE, OSU Last 3 steps Best illustrated by example A BCD to Excess-3 code converter BCD-to-7-segment decoder 9/15/09 - L12 Combinational Logic Design Copyright 2009 - Joanne DeGroat, ECE, OSU

BCD-to-Excess-3 Code converter BCD is a code for the decimal digits 0-9 Excess-3 is also a code for the decimal digits 9/15/09 - L12 Combinational Logic Design Copyright 2009 - Joanne DeGroat, ECE, OSU

Specification of BCD-to-Excess3 Inputs: a BCD input, A,B,C,D with A as the most significant bit and D as the least significant bit. Outputs: an Excess-3 output W,X,Y,Z that corresponds to the BCD input. Internal operation – circuit to do the conversion in combinational logic. 9/15/09 - L12 Combinational Logic Design Copyright 2009 - Joanne DeGroat, ECE, OSU

Formulation of BCD-to-Excess-3 Excess-3 code is easily formed by adding a binary 3 to the binary or BCD for the digit. There are 16 possible inputs for both BCD and Excess-3. It can be assumed that only valid BCD inputs will appear so the six combinations not used can be treated as don’t cares. 9/15/09 - L12 Combinational Logic Design Copyright 2009 - Joanne DeGroat, ECE, OSU

Optimization – BCD-to-Excess-3 Lay out K-maps for each output, W X Y Z A step in the digital circuit design process. 9/15/09 - L12 Combinational Logic Design Copyright 2009 - Joanne DeGroat, ECE, OSU

Copyright 2009 - Joanne DeGroat, ECE, OSU Placing 1 on K-maps Where are the minterms located on a K-Map? 9/15/09 - L12 Combinational Logic Design Copyright 2009 - Joanne DeGroat, ECE, OSU

Copyright 2009 - Joanne DeGroat, ECE, OSU Expressions for W X Y Z W(A,B,C,D) = Σm(5,6,7,8,9) +d(10,11,12,13,14,15) X(A,B,C,D) = Σm(1,2,3,4,9) +d(10,11,12,13,14,15) Y(A,B,C,D) = Σm(0,3,4,7,8) +d(10,11,12,13,14,15) Z(A,B,C,D) = Σm(0,2,4,6,8) +d(10,11,12,13,14,15) 9/15/09 - L12 Combinational Logic Design Copyright 2009 - Joanne DeGroat, ECE, OSU

Copyright 2009 - Joanne DeGroat, ECE, OSU Minimize K-Maps W minimization Find W = A + BC + BD 9/15/09 - L12 Combinational Logic Design Copyright 2009 - Joanne DeGroat, ECE, OSU

Copyright 2009 - Joanne DeGroat, ECE, OSU Minimize K-Maps X minimization Find X = BC’D’+B’C+B’D 9/15/09 - L12 Combinational Logic Design Copyright 2009 - Joanne DeGroat, ECE, OSU

Copyright 2009 - Joanne DeGroat, ECE, OSU Minimize K-Maps Y minimization Find Y = CD + C’D’ 9/15/09 - L12 Combinational Logic Design Copyright 2009 - Joanne DeGroat, ECE, OSU

Copyright 2009 - Joanne DeGroat, ECE, OSU Minimize K-Maps Z minimization Find Z = D’ 9/15/09 - L12 Combinational Logic Design Copyright 2009 - Joanne DeGroat, ECE, OSU

Two level circuit implementation Have equations W = A + BC + BD = A + B(C+D) X = B’C + B’D + BC’D’ = B’(C+D) + BC’D’ Y = CD + C’D’ Z = D’ Factoring out (C+D) and call it T Then T’ = (C+D)’ = C’D’ W = A + BT X = B’T + BT’ Y = CD + T’ 9/15/09 - L12 Combinational Logic Design Copyright 2009 - Joanne DeGroat, ECE, OSU

Create the digital circuit Implementing the second set of equations where T=C+D results in a lower gate count. This gate has a fanout of 3 9/15/09 - L12 Combinational Logic Design Copyright 2009 - Joanne DeGroat, ECE, OSU

BCD-to-Seven-Segment Decoder Specification Digital readouts on many digital products often use LED seven-segment displays. Each digit is created by lighting the appropriate segments. The segments are labeled a,b,c,d,e,f,g The decoder takes a BCD input and outputs the correct code for the seven-segment display. 9/15/09 - L12 Combinational Logic Design Copyright 2009 - Joanne DeGroat, ECE, OSU

Copyright 2009 - Joanne DeGroat, ECE, OSU Specification Input: A 4-bit binary value that is a BCD coded input. Outputs: 7 bits, a through g for each of the segments of the display. Operation: Decode the input to activate the correct segments. 9/15/09 - L12 Combinational Logic Design Copyright 2009 - Joanne DeGroat, ECE, OSU

Copyright 2009 - Joanne DeGroat, ECE, OSU Formulation Construct a truth table 9/15/09 - L12 Combinational Logic Design Copyright 2009 - Joanne DeGroat, ECE, OSU

Copyright 2009 - Joanne DeGroat, ECE, OSU Optimization Create a K-map for each output and get A = A’C+A’BD+B’C’D’+AB’C’ B = A’B’+A’C’D’+A’CD+AB’C’ C = A’B+A’D+B’C’D’+AB’C’ D = A’CD’+A’B’C+B’C’D’+AB’C’+A’BC’D E = A’CD’+B’C’D’ F = A’BC’+A’C’D’+A’BD’+AB’C’ G = A’CD’+A’B’C+A’BC’+AB’C’ 9/15/09 - L12 Combinational Logic Design Copyright 2009 - Joanne DeGroat, ECE, OSU

Note on implementation Direct implementation would require 27 AND gates and 7 OR gates. By sharing terms, can actualize and implementation with 14 less gates. Normally decoder in a device name indicates that the number of outputs is less than the number of inputs. 9/15/09 - L12 Combinational Logic Design Copyright 2009 - Joanne DeGroat, ECE, OSU

Copyright 2009 - Joanne DeGroat, ECE, OSU 4-bit Equality Checker Specification Input: Two vectors, A(3:0) and B(3:0) each being 4-bits. The msb bits the A(3) and B(3). Output: E which has a value of 1 when A=B and 0 if any bit of A/=B. Operation: Combinational logic to compare the 4 bits of A with the 4 bits of B to produce E 9/15/09 - L12 Combinational Logic Design Copyright 2009 - Joanne DeGroat, ECE, OSU

Copyright 2009 - Joanne DeGroat, ECE, OSU 4-bit Equality Checker Formulation For each bit position Ai will be compared with Bi and if they are equal, a 0 will be output. If they differ a 1 will be output. Thus, if any bit position indicates a 1 then the values are different. These 1st level comparators outputs can then be Ored together. The ORed output is inverted to produce a 1 when they are equal. 9/15/09 - L12 Combinational Logic Design Copyright 2009 - Joanne DeGroat, ECE, OSU

Copyright 2009 - Joanne DeGroat, ECE, OSU 4-bit Equality Checker Optimization Done by implementing two separate blocks. 1st the unit MX that compares two bit and outputs a 0 if they are equal, i.e., an XOR operation. 9/15/09 - L12 Combinational Logic Design Copyright 2009 - Joanne DeGroat, ECE, OSU

Copyright 2009 - Joanne DeGroat, ECE, OSU The second unit The ME unit takes the MX outputs and generates a 1 when all the inputs are 0, i.e., a NOR operation. E = (N0+N1+N2+N3)’ 9/15/09 - L12 Combinational Logic Design Copyright 2009 - Joanne DeGroat, ECE, OSU

Heirarchical Representation Figure 3-5 of text 9/15/09 - L12 Combinational Logic Design Copyright 2009 - Joanne DeGroat, ECE, OSU

Copyright 2009 - Joanne DeGroat, ECE, OSU Class 12 assignment Covered sections 3-1 and 3-2 Problems for hand in 3-1 and 3-3 (due Monday) Problems for practice 3-2, 3-8, 3-10, 3-11a Reading for next class: 9/15/09 - L12 Combinational Logic Design Copyright 2009 - Joanne DeGroat, ECE, OSU