ICS 252 Introduction to Computer Design Lecture 10 Winter 2004 Eli Bozorgzadeh Computer Science Department-UCI.

Slides:



Advertisements
Similar presentations
Minimization of Circuits
Advertisements

CSEE 4823 Advanced Logic Design Handout: Lecture #2 1/22/15
Traveling Salesperson Problem
Prof. Sin-Min Lee Department of Computer Science
AN ITERATIVE TECHNIQUE FOR IMPROVED TWO-LEVEL LOGIC MINIMIZATION Kunal R. Shenoy Nikhil S. Saluja Nikhil S. Saluja (University of Colorado, Boulder) Sunil.
ECE C03 Lecture 31 Lecture 3 Two-Level Logic Minimization Algorithms Hai Zhou ECE 303 Advanced Digital Design Spring 2002.
Winter 2005ICS 252-Intro to Computer Design ICS 252 Introduction to Computer Design Lecture 5-Scheudling Algorithms Winter 2005 Eli Bozorgzadeh Computer.
Two-Level Logic Synthesis -- Heuristic Method (ESPRESSO)
Logic Synthesis 2 Outline –Two-Level Logic Optimization –ESPRESSO Goal –Understand two-level optimization –Understand ESPRESSO operation.
1 Consensus Definition Let w, x, y, z be cubes, and a be a variable such that w = ax and y = a’z w = ax and y = a’z Then the cube xz is called the consensus.
Logic Synthesis Outline –Logic Synthesis Problem –Logic Specification –Two-Level Logic Optimization Goal –Understand logic synthesis problem –Understand.
ENEE 6441 On Quine-McCluskey Method > Goal: find a minimum SOP form > Why We Need to Find all PIs? f(w,x,y,z) = x’y’ +wxy+x’yz’+wy’z = x’y’+x’z’+wxy+wy’z.
SYEN 3330 Digital Systems Jung H. Kim Chapter SYEN 3330 Digital Systems Chapter 2 – Part 6.
Gate Logic: Two Level Canonical Forms
1 Generalized Cofactor Definition 1 Let f, g be completely specified functions. The generalized cofactor of f with respect to g is the incompletely specified.
ICS 252 Introduction to Computer Design Fall 2006 Eli Bozorgzadeh Computer Science Department-UCI.
Winter 2014 S. Areibi School of Engineering University of Guelph
ECE Synthesis & Verification 1 ECE 667 ECE 667 Synthesis and Verification of Digital Systems Exact Two-level Minimization Quine-McCluskey Procedure.
ECE 667 Synthesis and Verification of Digital Systems
Simple Minimization Loop F = EXPAND(F,D); F = IRREDUNDANT(F,D); do { cost = F ; F = REDUCE(F,D); F = EXPAND(F,D); F = IRREDUNDANT(F,D); } while ( F < cost.
Overview Part 2 – Circuit Optimization 2-4 Two-Level Optimization
Two Level Logic Optimization. Two-Level Logic Minimization PLA Implementation Ex: F 0 = A + B’C’ F 1 = AC’ + AB F 2 = B’C’ + AB product term AB, AC’,
Courtesy RK Brayton (UCB) and A Kuehlmann (Cadence) 1 Logic Synthesis Two-Level Minimization II.
1 Chapter 5 Karnaugh Maps Mei Yang ECG Logic Design 1.
Flexible Two-Level Boolean Minimizer BOOM ‑ II and Its Applications Petr Fišer, Hana Kubátová Department of Computer Science and Engineering Czech Technical.
Two-Level Simplification Approaches Algebraic Simplification: - algorithm/systematic procedure is not always possible - No method for knowing when the.
ICS 252 Introduction to Computer Design Lecture 9 Winter 2004 Eli Bozorgzadeh Computer Science Department-UCI.
Two Level and Multi level Minimization
ECE 2110: Introduction to Digital Systems PoS minimization Don’t care conditions.
Boolean Minimizer FC-Min: Coverage Finding Process Petr Fišer, Hana Kubátová Czech Technical University Department of Computer Science and Engineering.
ECE 3110: Introduction to Digital Systems Symplifying Products of sums using Karnaugh Maps.
Two Level Networks. Two-Level Networks Slide 2 SOPs A function has, in general many SOPs Functions can be simplified using Boolean algebra Compare the.
Chapter 6 Quine-McCluskey Method Mei Yang ECG Logic Design 1.
2-1 Introduction Gate Logic: Two-Level Simplification Design Example: Two Bit Comparator Block Diagram and Truth Table A 4-Variable K-map for each of the.
ECE2030 Introduction to Computer Engineering Lecture 8: Quine-McCluskey Method Prof. Hsien-Hsin Sean Lee School of Electrical and Computer Engineering.
CMPUT Computer Organization and Architecture II1 CMPUT329 - Fall 2003 Topic 5: Quine-McCluskey Method José Nelson Amaral.
State university of New York at New Paltz Electrical and Computer Engineering Department Logic Synthesis Optimization Lect15: Heuristic Two Level Logic.
1 ECE2030 Introduction to Computer Engineering Lecture 8: Quine-McCluskey Method Prof. Hsien-Hsin Sean Lee School of ECE Georgia Institute of Technology.
1 Quine-McCluskey Method. 2 Motivation Karnaugh maps are very effective for the minimization of expressions with up to 5 or 6 inputs. However they are.
Ahmad Almulhem, KFUPM 2010 COE 202: Digital Logic Design Combinational Logic Part 3 Dr. Ahmad Almulhem ahmadsm AT kfupm Phone: Office:
Two-Level Boolean Minimizer BOOM-II Petr Fišer, Hana Kubátová Department of Computer Science and Engineering Czech Technical University Karlovo nam. 13,
Computer Science CPSC 322 Lecture 6 Iterative Deepening and Search with Costs (Ch: 3.7.3, 3.5.3)
1 Implicant Expansion Methods Used in The BOOM Minimizer Petr Fišer, Jan Hlavička Czech Technical University, Karlovo nám. 13, Prague 2
1 Gate Level Minimization EE 208 – Logic Design Chapter 3 Sohaib Majzoub.
Boolean Functions 1 ECE 667 ECE 667 Synthesis and Verification of Digital Circuits Boolean Functions Basics Maciej Ciesielski Univ.
ECE/CS 352 Digital System Fundamentals1 ECE/CS 352 Digital Systems Fundamentals Spring 2001 Chapter 2 – Part 6 Tom Kaminski & Charles R. Kime.
Lecture 5: K-Map minimization in larger input dimensions and K-map minimization using max terms CSE 140: Components and Design Techniques for Digital Systems.
ICS 252 Introduction to Computer Design Lecture 8- Heuristics for Two-level Logic Synthesis Winter 2005 Eli Bozorgzadeh Computer Science Department-UCI.
ICS 252 Introduction to Computer Design Lecture 8 Winter 2004 Eli Bozorgzadeh Computer Science Department-UCI.
CHAPTER 6 Quine-McCluskey Method
CHAPTER 3 Simplification of Boolean Functions
Computer Organisation
3-7 Other Two-level Implementations
QUINE-McCLUSKEY METHOD
Uniformed Search (cont.) Computer Science cpsc322, Lecture 6
ICS 252 Introduction to Computer Design
EE4271 VLSI Design Logic Synthesis EE 4271 VLSI Design.
ECE 331 – Digital System Design
MINTERMS and MAXTERMS Week 3
ICS 252 Introduction to Computer Design
COE 202: Digital Logic Design Combinational Logic Part 3
Minimization of Switching Functions
Heuristic Minimization of Two Level Circuits
Overview Part 2 – Circuit Optimization
Heuristic Minimization of Two Level Circuits
ICS 252 Introduction to Computer Design
CHAPTER 6 QUINE-McCLUSKEY METHOD
ICS 252 Introduction to Computer Design
ECE 331 – Digital System Design
Presentation transcript:

ICS 252 Introduction to Computer Design Lecture 10 Winter 2004 Eli Bozorgzadeh Computer Science Department-UCI

2 Winter 2004ICS 252-Intro to Computer Design Reference –Lecture note Ankur Srivastava –Chapter 7(7.3,7.4) of the textbook Administrative –No class on Monday, Feb 23 – me if you don’t receive from me by this weekend for your project

3 Winter 2004ICS 252-Intro to Computer Design Heuristic Optimization Principles Exact minimizer: guaranteed optimality –PIs and/or minterms –Complexity Heuristic minimizer –Quality of the solution –complexity

4 Winter 2004ICS 252-Intro to Computer Design Local Search Approach –Find a staring solution –Search the neighborhood –Move to neighbor points –Continue until a local optimal is reached Components –Solution space –Neighborhood structure –Move strategy –Action on local optimal

5 Winter 2004ICS 252-Intro to Computer Design Local Search for Logic Minimization Goal: Given a Boolean function, find a SOP with minimal cost Local search: –Search space: all SOP forms on given variables Solution space: all SOP forms equal to the given function –Neighborhood : two SOP forms are of distance 1 if They have only one product term not in common They have only one literal not in common in this term How to find neighbors? Expansion and reduction –Greedy move strategy: move to a neighbor with less cost –Halt (or try again starting) at local minimum

6 Winter 2004ICS 252-Intro to Computer Design Neighborhood Structure Two solutions, s and t are of distance r if there exist a sequence of (r+1) solutions,s 0, s 1,…,s n s.t. s 0 =s, s r =t, and s i and s i+1 are of distance 1. –xy+wy’z+w’x’y  xy’+wy’z+w’x’y  x’y’+w’x’y+wy’z A local search algorithm usually is based on searching neighbors within a given distance (radius). Larger radius in general leads to more neighbors, better movement, shorter search time before reach a local optimal, but longer run-time overall and no guarantee on the quality of the local optimal

7 Winter 2004ICS 252-Intro to Computer Design Expand The expansion of an implicant is obtained by deleting one (or more) of its literals. A k-literal implicant can have 2 k -1 expansions Literal vs. minterm Check for valid implicant Stop at prime implicant Goal: expand non-prime implicant to prime with the least literals

8 Winter 2004ICS 252-Intro to Computer Design Example: Expand F=x’y’z’+xy’z’+x’yz’+x’y’z (xyz’:don’t care) =x’y’z’  y’z’(xy’z’ √)  z’(xyz’ √, x’yz’ √)  1(x) =x’y’z’  x’z’ (x’yz’ √)  x’ (x’yz x) =x’y’z  y’z(xy’z x) Questions: –Where to start : unlikely to be covered by others –Check validity Compare with off-set Compare with on-set and don’t care set –Which literal to delete?

9 Winter 2004ICS 252-Intro to Computer Design Reduce The reduction of an implicant is obtained by adding one or more literals Reduction increases the cost (fanin) Why reduce f=xz’+xy’+x’y+x’z=xy’+x’z+yz’ Check for valid cover Stop at maximally reduced implicant  Goal: decrease the size of implicants such that expansion may lead to a better solution

10 Winter 2004ICS 252-Intro to Computer Design Example:reduce F=xz’+xy’+x’y+x’z No implicant can be expanded (PIs) Reduce x’y to x’yz’ Reduce xz’ to xyz’ Expand x’yz’ to yz’ F=xy’+x’z+yz’  reduction is for further expansion, one way to get out of local optimal

11 Winter 2004ICS 252-Intro to Computer Design irredundant An implicant in a cover is redundant if all the minterms covered by it are contained in other implicants in the cover.

12 Winter 2004ICS 252-Intro to Computer Design The espresso heuristic First it applies the expand and irredundant operators to optimize the current function specification Then it uses the reduce operator to get out of local minimum This is iterated until the solution converges