ICS 252 Introduction to Computer Design Lecture 8- Heuristics for Two-level Logic Synthesis Winter 2005 Eli Bozorgzadeh Computer Science Department-UCI.

Slides:



Advertisements
Similar presentations
CSEE 4823 Advanced Logic Design Handout: Lecture #2 1/22/15
Advertisements

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.
Universal logic design algorithm and its application to the synthesis of two-level switching circuits §H.-J.Mathony §IEEE Proceedings 1989.
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.
EDA (CS286.5b) Day 15 Logic Synthesis: Two-Level.
Logic Synthesis Outline –Logic Synthesis Problem –Logic Specification –Two-Level Logic Optimization Goal –Understand logic synthesis problem –Understand.
Two-Level Logic Synthesis -- Quine-McCluskey Method.
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
Two-Level Logic Minimization Exact minimization –problem : very large number of prime and very large number of minterm Heuristic minimization –avoid computing.
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.
How Much Randomness Makes a Tool Randomized? Petr Fišer, Jan Schmidt Faculty of Information Technology Czech Technical University in Prague
Boolean Minimizer FC-Min: Coverage Finding Process Petr Fišer, Hana Kubátová Czech Technical University Department of Computer Science and Engineering.
Karnaugh map covering Paolo PRINETTO Politecnico di Torino (Italy) University of Illinois at Chicago, IL (USA)
ECE 3110: Introduction to Digital Systems Symplifying Products of sums using Karnaugh Maps.
UM EECS 270 Spring 2011 – Taken from Dr.Karem Sakallah Logic Synthesis: From Specs to Circuits Implementation Styles –Random –Regular Optimization Criteria.
ICS 252 Introduction to Computer Design Lecture 10 Winter 2004 Eli Bozorgzadeh Computer Science Department-UCI.
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.
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.
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)
CALTECH CS137 Winter DeHon CS137: Electronic Design Automation Day 15: March 4, 2002 Two-Level Logic-Synthesis.
1 Implicant Expansion Methods Used in The BOOM Minimizer Petr Fišer, Jan Hlavička Czech Technical University, Karlovo nám. 13, Prague 2
Boolean Functions 1 ECE 667 ECE 667 Synthesis and Verification of Digital Circuits Boolean Functions Basics Maciej Ciesielski Univ.
State university of New York at New Paltz Electrical and Computer Engineering Department Logic Synthesis Optimization Lect10: Two-level Logic Minimization.
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 Winter 2004 Eli Bozorgzadeh Computer Science Department-UCI.
CHAPTER 6 Quine-McCluskey Method
CHAPTER 3 Simplification of Boolean Functions
Computer Organisation
Uniformed Search (cont.) Computer Science cpsc322, Lecture 6
ICS 252 Introduction to Computer Design
EE4271 VLSI Design Logic Synthesis EE 4271 VLSI 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
ICS 252 Introduction to Computer Design
Presentation transcript:

ICS 252 Introduction to Computer Design Lecture 8- Heuristics for Two-level Logic Synthesis Winter 2005 Eli Bozorgzadeh Computer Science Department-UCI

2 Winter 2005ICS 252-Intro to Computer Design Reference –Lecture note Ankur Srivastava –Chapter 7(7.3,7.4) of the textbook Administrative –No class on Tuesday, Feb 22 –Project Proposal due today/extended until Thursday Feb 17. –Project Progress report Thursday March 3, 2005 Details of report will be discussed later.

3 Winter 2005ICS 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 2005ICS 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 2005ICS 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 2005ICS 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 2005ICS 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 2005ICS 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 2005ICS 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 2005ICS 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 2005ICS 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