CSE 370 – Winter Combinational Implementation - 1

Slides:



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

Combinational Logic : NAND – NOR Gates CS370 – Spring 2003.
Chapter 2 Logic Circuits.
III - Working with Combinational Logic © Copyright 2004, Gaetano Borriello and Randy H. Katz 1 Working with combinational logic Simplification  two-level.
Chapter # 3: Multi-Level Combinational Logic
CS 151 Digital Systems Design Lecture 11 NAND and XOR Implementations.
ENGIN112 L11: NAND and XOR Implementation September 26, 2003 ENGIN 112 Intro to Electrical and Computer Engineering Lecture 11 NAND and XOR Implementations.
Lecture 5 Multilevel Logic Synthesis
Example: Given a 4-bit input combination N=N 3 N 2 N 1 N 0, this function produces a 1 output for N=1,2,3,5,7,11,13, and 0 otherwise.  According to the.
بهينه سازي با نقشة کارنو Karnaugh Map. 2  Method of graphically representing the truth table that helps visualize adjacencies 2-variable K-map 3-variable.
EE 231 Digital Electronics Fall 01 Week 4-1 Multi-Level Logic: Conversion of Forms NAND-NAND and NOR-NOR Networks DeMorgan's Law: A + B = A B; A B = A.
Unit 7 Multi-Level Gate Circuits / NAND and NOR Gates Ku-Yaw Chang Assistant Professor, Department of Computer Science and Information.
Chapter # 3: Multi-Level Combinational Logic
Overview of Chapter 3 °K-maps: an alternate approach to representing Boolean functions °K-map representation can be used to minimize Boolean functions.
1 Lecture 10 PLDs  ROMs Multilevel logic. 2 Read-only memories (ROMs) Two dimensional array of stored 1s and 0s  Input is an address  ROM decodes all.
Logic Gates Shashidhara H S Dept. of ISE MSRIT. Basic Logic Design and Boolean Algebra GATES = basic digital building blocks which correspond to and perform.
Multi-Level Gate Networks NAND and NOR Gates
CHAPTER 7 MULTI-LEVEL GATE CIRCUITS / NAND AND NOR GATES
LOGIC GATES & BOOLEAN ALGEBRA
Lecture 09 NAND and XOR Implementations. Overview °Developing NAND circuits °Two-level implementations Convert from AND/OR to NAND (again!) °Multi-level.
No. 3-1 Chapter # 3: Multi-Level Combinational Logic.
BOOLEAN ALGEBRA LOGIC GATES. Introduction British mathematician George Boole( ) was successful in finding the link between logic and mathematics.
1 CS 352 Introduction to Logic Design Lecture 4 Ahmed Ezzat Multi-level Gate Circuits and Combinational Circuit Design Ch-7 + Ch-8.
1 CSE370, Lecture 10 Lecture 10  Logistics  HW3 due now  Solutions will be available at the midterm review session tomorrow (and at the end of class.
Boolean Algebra & Logic Gates
Lecture 7 Multi-Level Gate Networks
MULTI-LEVEL GATE CIRCUITS / NAND AND NOR GATES
Universal Gate – NOR Universal Gate - NOR Digital Electronics
Universal Gate – NAND Universal Gate - NAND Digital Electronics
CHAPTER 7 MULTI-LEVEL GATE CIRCUITS / NAND AND NOR GATES
CHAPTER 3 Simplification of Boolean Functions
De Morgan’s Theorem,.
Combinational Logic Implementation
Digital Fundamentals Floyd Chapter 5 Tenth Edition
Universal Gate – NAND Universal Gate - NAND Digital Electronics
CS 105 Digital Logic Design
ECE 3110: Introduction to Digital Systems
Overview Part 1 – Gate Circuits and Boolean Equations
Boolean Algebra and Combinational Logic
ECE 331 – Digital System Design
Digital Fundamentals Floyd Chapter 5 Tenth Edition
Universal Gate – NAND Universal Gate - NAND Digital Electronics
Basics Combinational Circuits Sequential Circuits
Universal Gate – NOR Universal Gate - NOR Digital Electronics
Overview Last Lecture Conversion of two-level logic to NAND or NOR forms Multilevel logic AOI and OAI gates Today Timing and hazards Multiplexers and demultiplexers.
Digital Logic & Design Dr. Waseem Ikram Lecture 13.
CSE 370 – Winter Combinational Logic - 1
CSE 370 – Winter 2002 – Comb. Logic building blocks - 1
Lecture 13 Logistics Last lecture Today HW4 up, due on Wednesday PLDs
Universal Gate – NAND Universal Gate - NAND Digital Electronics
Combinatorial Logic Circuit
CH7 Multilevel Gate Network
EECS150 - Digital Design Lecture 7 - Boolean Algebra II
Chapter 2 Introduction to Logic Circuits
Digital Fundamentals Floyd Chapter 5 Tenth Edition
Lecture 5 Logistics Last lecture Today’s lecture
Universal Gate – NOR Universal Gate - NOR Digital Electronics
CSE 370 – Winter 2002 – Comb. Logic building blocks - 1
Chapter 3 Overview • Multi-Level Logic
Overview Last lecture Timing; Hazards/glitches
Digital Fundamentals Floyd Chapter 5 Tenth Edition
Digital Fundamentals Floyd Chapter 5 Tenth Edition
Digital Fundamentals Floyd Chapter 5 Tenth Edition
NAND and XOR Implementation
Chapter 5 Combinational Logic Analysis
Digital Fundamentals Floyd Chapter 5 Tenth Edition
Combinational Logic Circuit
ECE 352 Digital System Fundamentals
CSE 370 – Winter Number syst.; Logic functions- 1
Circuit Simplification and
Presentation transcript:

CSE 370 – Winter 2002 - Combinational Implementation - 1 Overview Last lecture Examples of two-level combinational logic designs Implicants, prime implicants, Essential prime implicants Today Two-level logic using NANDs and NORs Multilevel logic 12/5/2018 CSE 370 – Winter 2002 - Combinational Implementation - 1

Combinational logic implementation Two-level logic implementations of two-level logic NAND/NOR Multi-level logic factored forms and-or-invert gates Time behavior gate delays hazards Regular logic multiplexors decoders PAL/PLAs ROMs 12/5/2018 CSE 370 – Winter 2002 - Combinational Implementation - 2

Implementations of two-level logic Sum-of-products AND gates to form product terms (minterms) OR gate to form sum Product-of-sums OR gates to form sum terms (maxterms) AND gates to form product F = AB’C’ + A’B + BC G = (A+B)(B+C’)(A’+B’+C) 12/5/2018 CSE 370 – Winter 2002 - Combinational Implementation - 3

Two-level logic using NAND gates Step 1: Replace minterm AND gates with NAND gates and place compensating inversion at inputs of OR gate 12/5/2018 CSE 370 – Winter 2002 - Combinational Implementation - 4

Two-level logic using NAND gates (cont’d) Step 2: OR gate with inverted inputs is a NAND gate de Morgan's: A' + B' = (A • B)' Two-level NAND-NAND network inverted inputs are not counted in a typical circuit, inversion is done once and signal distributed 12/5/2018 CSE 370 – Winter 2002 - Combinational Implementation - 5

Two-level logic using NOR gates Step 1: Replace maxterm OR gates with NOR gates and place compensating inversion at inputs of AND gate 12/5/2018 CSE 370 – Winter 2002 - Combinational Implementation - 6

Two-level logic using NOR gates (cont’d) Step 2: AND gate with inverted inputs is a NOR gate de Morgan's: A' • B' = (A + B)' Two-level NOR-NOR network inverted inputs are not counted in a typical circuit, inversion is done once and signal distributed 12/5/2018 CSE 370 – Winter 2002 - Combinational Implementation - 7

Two-level logic using NAND and NOR gates NAND-NAND and NOR-NOR networks de Morgan's law: (A + B)' = A' • B' (A • B)' = A' + B' written differently: A + B = (A' • B')' (A • B) = (A' + B')' In other words –– OR is the same as NAND with complemented inputs AND is the same as NOR with complemented inputs NAND is the same as OR with complemented inputs NOR is the same as AND with complemented inputs OR OR AND AND NAND NAND NOR NOR 12/5/2018 CSE 370 – Winter 2002 - Combinational Implementation - 8

Conversion between forms Convert from networks of ANDs and ORs to networks of NANDs and NORs introduce appropriate inversions ("bubbles") Each introduced "bubble" must be matched by a corresponding "bubble" conservation of inversions do not alter logic function Example: AND/OR to NAND/NAND A B C D Z A B C D NAND OR with complemented inputs is the same as NAND 12/5/2018 CSE 370 – Winter 2002 - Combinational Implementation - 9

Conversion between forms (cont’d) Example: verify equivalence of two forms A B C D Z A B C D Z NAND Z = [ (A • B)' • (C • D)' ]' = [ (A' + B') • (C' + D') ]' = [ (A' + B')' + (C' + D')' ] = (A • B) + (C • D)  12/5/2018 CSE 370 – Winter 2002 - Combinational Implementation - 10

Conversion between forms (cont’d) Example: map AND/OR network to NOR/NOR network A B C D Z NOR A B C D Z NOR \A \B \C \D Z Step 1 Step 2 conserve "bubbles" conserve "bubbles" 12/5/2018 CSE 370 – Winter 2002 - Combinational Implementation - 11

Conversion between forms (cont’d) Example: verify equivalence of two forms NOR \A \B \C \D Z A B C D Z Z = { [ (A' + B')' + (C' + D')' ]' }’ /* ((X’ + Y’ )’)’ */ = { (A' + B') • (C' + D') }’ /* (X • Y)’*/ = (A' + B')' + (C' + D')’ /* X’ + Y’ */ = (A • B) + (C • D)  12/5/2018 CSE 370 – Winter 2002 - Combinational Implementation - 12

CSE 370 – Winter 2002 - Combinational Implementation - 13 Multi-level logic x = A D F + A E F + B D F + B E F + C D F + C E F + G reduced sum-of-products form – already simplified 6 x 3-input AND gates + 1 x 7-input OR gate (that may not even exist!) 25 wires (19 literals plus 6 internal wires) x = (A + B + C) (D + E) F + G factored form – not written as two-level S-o-P 1 x 3-input OR gate, 2 x 2-input OR gates, 1 x 3-input AND gate 10 wires (7 literals plus 3 internal wires) A B C D E F G X 12/5/2018 CSE 370 – Winter 2002 - Combinational Implementation - 13

Choosing the “best” realization Two-level logic: usually has minimal delay Usually means faster circuits But with more gates (more transistors) and more wires (larger circuit area); hence requires more power. Easy to eliminate static hazards (see later) Sometimes requires large fan-ins Multilevel logic usually requires less gates Usually means smaller circuits Less gates, less wires, shorter wires Harder to eliminate hazards 12/5/2018 CSE 370 – Winter 2002 - Combinational Implementation - 14

Issues with multilevel design No global definition of an “optimal” multilevel circuit Depends on user-defined goals (number of gates, delay etc.) Use of synthesis (starting with a formal description and proceeding to a logic diagram) to meet the design goals Synthesis requires CAD-tool help No simple hand methods like Karnaugh maps CAD tools manipulate Boolean expressions with some “heurisitics” to achieve goals 12/5/2018 CSE 370 – Winter 2002 - Combinational Implementation - 15

Conversion of multi-level logic to NAND gates Level 1 Level 2 Level 3 Level 4 F = A (B + C D) + B C' original AND-OR network A C D B \C F introduction and conservation of bubbles A C D B \C F redrawn in terms of conventional NAND gates A C D \B B \C F 12/5/2018 CSE 370 – Winter 2002 - Combinational Implementation - 16

Conversion of multi-level logic to NORs Level 1 Level 2 Level 3 Level 4 F = A (B + C D) + B C' A C D B \C F original AND-OR network introduction and conservation of bubbles A C D B \C F redrawn in terms of conventional NOR gates \A \C \D B \B C F 12/5/2018 CSE 370 – Winter 2002 - Combinational Implementation - 17

Conversion between forms Example A X B C D F (a) original circuit A X B C D F (b) add double bubbles at inputs \D A X B C F \X (d) insert inverters to fix mismatches \D A \X B C F (c) distribute bubbles some mismatches 12/5/2018 CSE 370 – Winter 2002 - Combinational Implementation - 18

CSE 370 – Winter 2002 - Combinational Implementation - 19 AND-OR-Invert gates AOI function: conceptually three stages of logic — AND, OR, Invert multiple gates "packaged" as a single circuit block AND OR Invert logical concept A B C D Z NAND NAND Invert possible implementation A B C D Z & + 2x2 AOI gate symbol & + 3x2 AOI gate symbol 3 inputs, 2 stacks 12/5/2018 CSE 370 – Winter 2002 - Combinational Implementation - 19

Conversion to AOI forms General procedure to place in AOI form compute the complement of the function in sum-of-products form by grouping the 0s in the Karnaugh map Example: XOR implementation –– A xor B = A' B + A B' AOI form: F = (A' B' + A B)' 0 1 1 0 A B & + A' B' A B F 12/5/2018 CSE 370 – Winter 2002 - Combinational Implementation - 20

Examples of using AOI gates F = B C' + A C' + A B F' = A' B' + A' C + B' C Implemented by 2-input 3-stack AOI gate F = (A + B) (A + C') (B + C') F' = (B' + C) (A' + C) (A' + B') Implemented by 2-input 3-stack OAI gate Example: 4-bit equality function Z = (A0 B0 + A0' B0')(A1 B1 + A1' B1')(A2 B2 + A2' B2')(A3 B3 + A3' B3') 0 1 0 0 1 1 1 0 C B A each implemented in a single 2x2 AOI gate; then NOR them together 12/5/2018 CSE 370 – Winter 2002 - Combinational Implementation - 21

Examples of using AOI gates (cont’d) Example: AOI implementation of 4-bit equality function high if A0  B0 low if A0 = B0 A0 B0 A1 B1 A2 B2 A3 B3 & + NOR Z conservation of bubbles if all inputs are low then Ai = Bi, i=0,...,3 output Z is high 12/5/2018 CSE 370 – Winter 2002 - Combinational Implementation - 22

Summary for multi-level logic Advantages circuits may be smaller gates have smaller fan-in circuits may be faster Disadvantages more difficult to design tools for optimization are not as good as for two-level analysis is more complex 12/5/2018 CSE 370 – Winter 2002 - Combinational Implementation - 23