Combinational Logic Design

Slides:



Advertisements
Similar presentations
Switching circuits Composed of switching elements called “gates” that implement logical blocks or switching expressions Positive logic convention (active.
Advertisements

Other Gate Types COE 202 Digital Logic Design Dr. Aiman El-Maleh
Functions and Functional Blocks
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
1 Combinational Logic Design&Analysis. 2 Introduction We have learned all the prerequisite material: – Truth tables and Boolean expressions describe functions.
Sequential Circuit Analysis & Design Dr. Aiman H. El-Maleh Computer Engineering Department King Fahd University of Petroleum & Minerals Dr. Aiman H. El-Maleh.
K-Map Simplification COE 202 Digital Logic Design Dr. Aiman El-Maleh
Combinational Logic Design
1 Homework Reading –Tokheim, Section 5-10, 7-4 Machine Projects –Continue on MP4 Labs –Continue labs with your assigned section.
Combinational Circuits
08/07/041 CSE-221 Digital Logic Design (DLD) Lecture-8:
CPEN Digital System Design
ENGIN112 L13: Combinational Design Procedure October 1, 2003 ENGIN 112 Intro to Electrical and Computer Engineering Lecture 13 Combinational Design Procedure.
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 –
ECE 331 – Digital System Design Logic Circuit Design (Lecture #7)
COE 202: Digital Logic Design Combinational Circuits Part 1
Chapter 3 Combinational Logic Design
Charles Kime & Thomas Kaminski © 2008 Pearson Education, Inc. (Hyperlinks are active in View Show mode) Chapter 3 – Combinational Logic Design Part 1 –
1 Forging new generations of engineers. 2 DESIGN EXAMPLE “Date of Birth Problem”
Overview Part 1 – Design Procedure 3-1 Design Procedure
Overview Part 2 – Circuit Optimization 2-4 Two-Level Optimization
Binary Logic and Gates COE 202 Digital Logic Design Dr. Aiman El-Maleh
Digital Logic Lecture 08 By Amr Al-Awamry. Combinational Logic 1 A combinational circuit consists of an interconnection of logic gates. Combinational.
Combinational Logic Design CS341 Digital Logic and Computer Organization F2003.
ECE 2110: Introduction to Digital Systems Chapter 6 Combinational Logic Design Practices Decoders.
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.
Logic Function Optimization. Combinational Logic Circuit Regular SOP and POS designs Do not care expressions Digital logic circuit applications Karnaugh.
Dr. Ahmed El-Bialy, Dr. Sahar Fawzy Combinational Circuits Dr. Ahmed El-Bialy Dr. Sahar Fawzy.
Combinational Logic Design BIL- 223 Logic Circuit Design Ege University Department of Computer Engineering.
1 Combinational Logic Design Digital Computer Logic Kashif Bashir
Charles Kime & Thomas Kaminski © 2008 Pearson Education, Inc. (Hyperlinks are active in View Show mode) Chapter 3 – Combinational Logic Design Part 1 –
Chapter 0 - reVieW Combinational Logic Circuit, Combinational Logic Circuit, Propagation Delay, Propagation Delay, Programmable Logic. Programmable Logic.
Lecture 11 Combinational Design Procedure
EKT 124 / 3 DIGITAL ELEKTRONIC 1
EE 5900 Advanced Algorithms for Robust VLSI CAD, Spring 2009 Combinational Circuits.
1 Lecture 12 More about Combinational Analysis and Design Procedures.
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’
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.
Combinational Circuits
ECE 301 – Digital Electronics Logic Circuit Design (Lecture #9)
Chapter 0 – Week 2 Combinational Logic Design. What have been discussed Design hierarchy –Top – down –Bottom – up CAD HDL Logic synthesis.
Standard & Canonical Forms COE 202 Digital Logic Design Dr. Aiman El-Maleh College of Computer Sciences and Engineering King Fahd University of Petroleum.
C OMBINATIONAL L OGIC D ESIGN 1 Eng.Maha AlGubali.
Logic Design (CE1111 ) Lecture 4 (Chapter 4) Combinational Logic Prepared by Dr. Lamiaa Elshenawy 1.
1 Combinational Logic Design.  A process with 5 steps Specification Formulation Optimization Technology mapping Verification  1 st three steps and last.
Combinational Logic Design. 2 Combinational Circuits A combinational logic circuit has: ♦ A set of m Boolean inputs, ♦ A set of n Boolean outputs ♦ n.
Combinational Design, Part 2: Procedure. 2 Topics Positive vs. negative logic Design procedure.
Lecture 1 Gunjeet kaur Dronacharya group of institutions.
CS151 Introduction to Digital Design Chapter 3: Combinational Logic Design 3-4 Verification 1Created by: Ms.Amany AlSaleh.
Combinational Circuit Design COE 202 Digital Logic Design Dr. Muhamed Mudawar King Fahd University of Petroleum and Minerals.
Lecture 3: Incompletely Specified Functions and K Maps
Combinational Logic Design&Analysis.
EKT 124 / 3 DIGITAL ELEKTRONIC 1
Overview Part 1 – Design Procedure Beginning Hierarchical Design
Lecture 3: Incompletely Specified Functions and K Maps
Chapter 3 – Combinational Logic Design
Homework Reading Tokheim, Section 5-10, 7-4.
Design Example “Date of Birth Problem”
Sequential Circuit Analysis & Design
Overview Part 2 – Circuit Optimization
Combinational Circuits
Digital System Design Combinational Logic
Combinational Circuits
Lecture 3: Incompletely Specified Functions and K Maps
Combinational Circuit Design
Presentation transcript:

Combinational Logic Design COE 202 Digital Logic Design Dr. Aiman El-Maleh College of Computer Sciences and Engineering King Fahd University of Petroleum and Minerals

Outline Combinational Logic Circuits Combinational Circuits Design Procedure Design Examples BCD to Excess 3 Code Converter BCD to 7-Segment Decoder for LED

Combinational Logic Circuits A combinational logic circuit has: A set of m Boolean inputs, A set of n Boolean outputs, and n logic functions, each mapping the 2m input combinations to an output Outputs are determined only by present inputs Each Output = F (the m inputs)

Combinational Circuits Design Procedure 1. Specification (Requirement) Write a specification for what the circuit should do e.g. add two 4-bit binary numbers Specify names for the inputs and outputs 2. Formulation Convert the Specification into a form that can be Optimized Usually as a truth table or a set of Boolean equations that define the required relationships between the inputs and outputs 3. Logic Optimization Apply logic optimization (2-level & multi-level) to minimize the logic circuit Provide a logic diagram or a netlist for the resulting circuit using ANDs, ORs, and inverters

Combinational Circuits Design Procedure 4. Technology Mapping and Design Optimization Map the logic diagram or netlist to the implementation technology and gate type selected, e.g. CMOS NANDs Perform design optimizations of gate costs, gate delays, fan-outs, power consumption, etc. Sometimes this stage is merged with stage 3 5. Verification Verify that the final design satisfies the original specification- Two methods: Manual: Ensure that the truth table for the final technology-mapped circuit is identical to the truth table derived from specifications By Simulation: Simulate the final technology-mapped circuit on a CAD tool and test it to verify that it gives the desired outputs at the specified inputs and meets delay specs etc.

BCD to Excess 3 Code Converter 1. Specification Transforms BCD code for the decimal digits (0-9) to the corresponding Excess-3 code BCD code words for digits 0 through 9: 4-bit patterns 0000 to 1001, respectively Excess-3 code words for digits 0 through 9: 4-bit patterns obtained by adding 3 (binary 0011) to each BCD code input 2. Formulation In the form of a truth table: Variables BCD: A,B,C,D Excess-3: W,X,Y,Z Don’t Cares: BCD 1010 to 1111

BCD to Excess 3 Code Converter Z map Y map 3. Optimization 2-level using K-maps z C C 1 1 1 1 1 3 2 1 3 2 1 1 1 1 4 5 7 6 B 4 5 7 6 B X X X X X X X X 12 13 15 14 12 13 15 14 A A 1 X X 1 X X 8 9 11 10 8 9 11 10 D D W map X map C C 1 1 1 1 3 2 1 3 2 1 1 1 1 4 5 7 6 B 4 5 7 6 B X X X X X X X X 12 13 15 14 12 13 15 14 A A 1 X X 1 1 X X 8 9 11 10 8 9 11 10 D D

BCD to Excess 3 Code Converter 3. Logic Optimization (continued) Start with SOPs (2-level) from the K-maps: Extracting a common factor:

BCD to Excess 3 Code Converter 4. Technology Mapping Use a library containing inverters, 2-input NAND, 2-input NOR, and 2-2 AOI gates A B C D W X Y Z T1 T1

BCD to Excess 3 Code Converter 5. Verification Find the SOP Boolean equations from the final technology mapped circuit Find the truth table from these equations Compare it with the specification truth table Finding the Boolean Equations T1

BCD to Excess 3 Code Converter 5. Verification- Manual, Continued: The circuit truth table from the equations - Compare it with the specification truth table: The tables match!

BCD to Excess 3 Code Converter 5. Verification- by Simulation: Procedure Use a schematic editor or text editor to enter a gate level representation of the final circuit Use a waveform editor or text editor to enter a test consisting of a sequence of input combinations to be applied to the circuit This test should guarantee the correctness of the circuit if the simulated responses to it are correct Generation of such a test can be difficult, and sometimes people apply all possible “care” input combinations

BCD to Excess 3 Code Converter 5. Verification- by Simulation: Final Circuit Schematic

BCD to Excess 3 Code Converter Run the simulation of the circuit for 120 ns Do the simulation output combinations match the original specification truth table?

BCD to 7-Segment Decoder for LED 1. Specification Transforms a BCD input code for the decimal digits (0 to 9) to 7 outputs (one for each of the seven LED segments) used to drive the display Each output indicates whether the corresponding segment is ON (1) or OFF (0) for the input BCD code

BCD to 7-Segment Decoder for LED 2. Formulation 4 Input Variables BCD: A,B,C,D (LSB) 7 Output Variables Drivers for the 7 Segments: a,b,c,d,e,f,g (1 = segment lit, i.e. active high) Don’t Cares None! Display is OFF for non BCD codes

BCD to 7-Segment Decoder for LED 3. Optimization: Using Seven 4-Variable K-maps we get:

BCD to 7-Segment Decoder for LED