Docsity

Exploring New Logic Primitives for EDA Tools: A Focus on Majority Logic, Lecture notes of Data Structures and Algorithms

Partial preview of the text

Download Exploring New Logic Primitives for EDA Tools: A Focus on Majority Logic and more Lecture notes Data Structures and Algorithms in PDF only on Docsity!

Luca Gaetano Amaru

New Data

Structures and

Algorithms for

Logic Synthesis

and Verification

New Data Structures and Algorithms for Logic

Synthesis and Verification

Luca Gaetano Amaru Synopsys Inc. Santa Clara, CA USA

ISBN 978-3-319-43173-4 ISBN 978-3-319-43174-1 (eBook) DOI 10.1007/978-3-319-43174-

Library of Congress Control Number: 2016946018

© Springer International Publishing Switzerland 2017 This work is subject to copyright. All rights are reserved by the Publisher, whether the whole or part of the material is concerned, specifically the rights of translation, reprinting, reuse of illustrations, recitation, broadcasting, reproduction on microfilms or in any other physical way, and transmission or information storage and retrieval, electronic adaptation, computer software, or by similar or dissimilar methodology now known or hereafter developed. The use of general descriptive names, registered names, trademarks, service marks, etc. in this publication does not imply, even in the absence of a specific statement, that such names are exempt from the relevant protective laws and regulations and therefore free for general use. The publisher, the authors and the editors are safe to assume that the advice and information in this book are believed to be true and accurate at the date of publication. Neither the publisher nor the authors or the editors give a warranty, express or implied, with respect to the material contained herein or for any errors or omissions that may have been made.

Printed on acid-free paper

This Springer imprint is published by Springer Nature The registered company is Springer International Publishing AG Switzerland

Success is not final, failure is not fatal:

It is the courage to continue that counts.

—Winston Churchill

Preface

The strong interaction between Electronic Design Automation (EDA) tools and Complementary Metal-Oxide Semiconductor (CMOS) technology contributed substantially to the advancement of modern digital electronics. The continuous downscaling of CMOS Field Effect Transistor (FET) dimensions enabled the semiconductor industry to fabricate digital systems with higher circuit density at reduced costs. To keep pace with technology, EDA tools are challenged to handle both digital designs with growing functionality and device models of increasing complexity. Nevertheless, while the downscaling of CMOS technology requires more complex physical design models, the logic abstraction of a transistor as a switch has not changed even with the introduction of 3D FinFET technology. As a consequence, modern EDA tools are fine-tuned for CMOS technology and the underlying design methodologies are based on CMOS logic primitives, i.e., neg- ative unate logic functions. While it is clear that CMOS logic primitives will be the ultimate building blocks for digital systems in the next 10 years, no evidence is provided that CMOS logic primitives are also the optimal basis for EDA software. In EDA, the efficiency of methods and tools is measured by different metrics such as (i) the result quality, for example the performance of an automatically synthe- sized digital circuit, (ii) the runtime, and (iii) the memory footprint on the host computer. With the aim to optimize these metrics, the accordance to a specific logic model is no longer important. Indeed, the key to the success of an EDA technique is the expressive power of the logic primitives’ handling and solving the problem, which determines the capability to reach better metrics. In this book, we investigate new logic primitives for electronic design automation tools. We improve the efficiency of logic representation, manipulation, and opti- mization tasks by taking advantage of majority and biconditional logic primitives. We develop synthesis tools exploiting the majority and biconditional logic expressiveness. Our tools show strong results as compared to state-of-the-art aca- demic and commercial synthesis tools. Indeed, we produce the best (public) results for many circuits in combinational benchmark suites. On top of the enhanced

ix

synthesis power, our methods are also the natural and native logic abstraction for circuit design in emerging nanotechnologies, where majority and biconditional logic are the primitive gates for physical implementation. We accelerate formal methods by (i) studying core properties of logic circuits and (ii) developing new frameworks for logic reasoning engines. Thanks to the majority logic representation theory, we prove nontrivial dualities for the property checking problem of logic circuits. Our findings enable sensible speedups in solving circuit satisfiability. With the aim of exploiting further the expressive power of majority logic, we develop an alternative Boolean satisfiability framework based on majority functions. We prove that the general problem is still intractable, but we show practical restrictions that instead can be solved efficiently. Finally, we focus on the important field of reversible logic where we propose a new approach to solve the equivalence checking problem. We define a new type of reversible miter over which the equivalence test is performed. Also, we represent the core checking problem in terms of biconditional logic. This enables a much more compact for- mulation of the problem as compared to the state of the art. Indeed, it translates into more than one order of magnitude speedup for the equivalence checking task, as compared to the state-of-the-art solution. We argue that new approaches to solve core EDA problems are necessary, as we have reached a point in technology where keeping pace with design goals is tougher than ever.

Santa Clara, USA Luca Gaetano Amaru

x Preface

Contents

  • 1 Introduction
    • 1.1 Electronic Design Automation.
    • 1.2 Modern EDA Tools and Their Logic Primitives
      • 1.2.1 Logic Synthesis
      • 1.2.2 Formal Methods
    • 1.3 Research Motivation
      • 1.3.1 Impact on Modern CMOS Technology
      • 1.3.2 Impact on Beyond CMOS Technologies
    • 1.4 Contributions and Position with Respect to Previous Work
      • 1.4.1 Logic Representation, Manipulation and Optimization
      • 1.4.2 Boolean Satisfiability and Equivalence Checking.
    • 1.5 Book Organization.
    • References
  • 2 Biconditional Logic Part I Logic Representation, Manipulation and Optimization
    • 2.1 Introduction
    • 2.2 Background and Motivation
      • 2.2.1 Binary Decision Diagrams
      • 2.2.2 Emerging Technologies
    • 2.3 Biconditional Binary Decision Diagrams
      • 2.3.1 Biconditional Expansion
      • 2.3.2 BBDD Structure and Ordering
      • 2.3.3 BBDD Reduction
      • 2.3.4 BBDD Complemented Edges
      • 2.3.5 BBDD Manipulation
    • 2.4 BBDD Representation: Theoretical and Experimental Results
      • 2.4.1 Theoretical Results
      • 2.4.2 Experimental Results
    • 2.5 BBDD-based Synthesis and Verification
      • 2.5.1 Logic Synthesis
      • 2.5.2 Formal Equivalence Checking.
        • Code Decoder. 2.5.3 Case Study: Design of an Iterative Product
    • 2.6 BBDDs as Native Design Abstraction for Nanotechnologies
      • 2.6.1 Reversible Logic
      • 2.6.2 NEMS
    • 2.7 Summary
    • References
  • 3 Majority Logic
    • 3.1 Introduction
    • 3.2 Background and Motivation
      • 3.2.1 Logic Representation
      • 3.2.2 Logic Optimization
      • 3.2.3 Notations and Definitions
    • 3.3 Majority-Inverter Graphs
      • 3.3.1 MIG Logic Representation
      • 3.3.2 MIG Boolean Algebra
      • 3.3.3 Inserting Safe Errors in MIG
    • 3.4 MIG Algebraic Optimization.
      • 3.4.1 Size-Oriented MIG Algebraic Optimization
      • 3.4.2 Depth-Oriented MIG Algebraic Optimization
        • Optimization. 3.4.3 Switching Activity-Oriented MIG Algebraic
    • 3.5 MIG Boolean Optimization.
      • 3.5.1 Identifying Advantageous Orthogonal Errors in MIGs
      • 3.5.2 Depth-Oriented MIG Boolean Optimization
      • 3.5.3 Size-Oriented MIG Boolean Optimization
    • 3.6 Experimental Results
      • 3.6.1 Methodology
      • 3.6.2 Optimization Case Study: Adders
      • 3.6.3 General Optimization Results
      • 3.6.4 ASIC Results
      • 3.6.5 FPGA Results.
    • 3.7 MIGs as Native Design Abstraction for Nanotechnologies
      • 3.7.1 MIG-Based Synthesis
      • 3.7.2 Spin-Wave Devices
      • 3.7.3 Resistive RAM
    • 3.8 Extension to MAJ-n Logic
      • 3.8.1 Generic MAJ-n/INV Axioms
      • 3.8.2 Soundness
      • 3.8.3 Completeness
    • 3.9 Summary
    • References
  • 4 Exploiting Logic Properties to Speedup SAT. Part II Logic Satisfiability and Equivalence Checking
    • 4.1 Introduction
    • 4.2 Background and Motivation
      • 4.2.1 Notation.
      • 4.2.2 Tautology Checking
      • 4.2.3 Motivation
    • 4.3 Properties of Logic Circuits
    • 4.4 From Tautology to Contradiction and Back.
      • 4.4.1 Boolean SAT and Tautology/Contradiction Duality
    • 4.5 Experimental Results - Circuit 4.5.1 Verification of SAT Solving Advantage on the Dual
      • 4.5.2 Results for Concurrent Regular/Dual SAT Execution
    • 4.6 Summary
    • References
  • 5 Majority Normal Form Representation and Satisfiability
    • 5.1 Introduction
    • 5.2 Background and Motivation
      • 5.2.1 Notations and Definitions
      • 5.2.2 Two-Level Logic Representation
      • 5.2.3 Satisfiability
    • 5.3 Two-Level Majority Representation Form.
      • 5.3.1 Majority Normal Form Definition and Properties.
      • 5.3.2 Representation Examples with DNF, CNF and MNF
    • 5.4 Majority Satisfiability.
      • 5.4.1 Complexity of Unrestricted MNF-SAT.
      • 5.4.2 Complexity of Some Restricted MNF-SAT.
    • 5.5 Algorithm to Solve MNF-SAT
      • 5.5.1 One-Level Majority-SAT
      • 5.5.2 Decide Strategy for MNF-SAT
    • 5.6 Discussion and Future Work
    • 5.7 Summary
    • References
    • of Reversible Circuits. 6 Improvements to the Equivalence Checking
    • 6.1 Introduction
    • 6.2 Background
      • 6.2.1 Reversible Circuits
      • 6.2.2 Boolean Satisfiability
      • Circuits to XOR-CNF SAT. 6.3 Mapping Combinational Equivalence Checking for Reversible
        • 6.3.1 Creating an Identity Miter
        • 6.3.2 XOR-CNF Formulation
    • 6.4 Experimental Results - 6.4.1 Methodology and Setup - 6.4.2 Results.
    • 6.5 Discussion - Circuits 6.5.1 Application to the Verification of Conventional - 6.5.2 Easy Exploitation of Parallelism
    • 6.6 Summary
    • References
  • 7 Conclusions
    • 7.1 Overview of Book Contributions
    • 7.2 Open Problems
    • 7.3 Concluding Remarks
    • References
  • Index

Chapter 1

Introduction

The strong interaction between Electronic Design Automation (EDA) tools and Complementary Metal-Oxide Semiconductor (CMOS) technology contributed substantially to the advancement of modern digital electronics. The continuous down- scaling of CMOS Field Effect Transistor (FET) dimensions enabled the semiconduc- tor industry to fabricate digital systems with higher circuit density and performance at reduced costs [1]. To keep pace with technology, EDA tools are challenged to han- dle both digital designs with growing functionality and device models of increasing complexity. Nevertheless, whereas the downscaling of CMOS technology is requir- ing more complex physical design models, the logic abstraction of a transistor as a switch has not changed even with the introduction of 3D FinFET technology [2]. As a consequence, modern EDA tools are fine tuned for CMOS technology and the underlying design methodologies are based on CMOS logic primitives, i.e., nega- tive unate logic functions. While it is clear that CMOS logic primitives will be the ultimate building blocks for digital systems in the next ten years [3], no evidence is provided that CMOS logic primitives are also the optimal basis for EDA software. In EDA, the efficiency of methods and tools is measured by different metrics such as (i) the result quality, for example the performance of an automatically synthesized digital circuit, (ii) the runtime and (iii) the memory footprint on the host computer. With the aim to optimize these metrics, the accordance to a specific logic model is no longer important. Indeed, the key to the success of an EDA technique is the expressive power of the logic primitives handling and solving the problem, which determines the capability to reach better metrics. Overall, this book addresses the general question: “Can EDA logic tools produce better results if based on new, different, logic primitives?”. We show that the answer to this question is affirmative and we give pragmatic examples. We argue that new approaches to solve core EDA problems are necessary, as we have reached a point of technology where keeping pace with design goals is tougher than ever.

© Springer International Publishing Switzerland 2017 L.G. Amaru, New Data Structures and Algorithms for Logic Synthesis and Verification , DOI 10.1007/978-3-319-43174-1_

1

1.1 Electronic Design Automation 3

Fig. 1.2 Design verification methods

popular verification approaches [8]. Simulation techniques compute the output values for given input patterns using simulation models [9]. If the output values mismatch the given specification then verification fails. Simulation-based verifica- tion formally succeeds only if the output values match the specification for all input patterns. Because of the exponential space of input patterns, it is impractical to verify overall designs by simulations. Nevertheless, random simulation techniques are still used as fast bugs hunters. When an exact answer is needed, formal methods pre- cisely prove whether the system conforms to specification or not. In formal methods, specification and design are translated into mathematical models [8]. Formal verifi- cation techniques prove correctness with various sorts of mathematical reasoning. It explores all possible cases in the generated mathematical models. Popular mathemat- ical models used in formal methods include mainly Boolean functions/expressions, first order logic, and others. The main reasoning engines used are binary decision diagrams [10] and satisfiability methods [11]. Figure 1.2 depicts the aforementioned verification environment by means of a diagram. In this book, we focus on the logic synthesis and formal methods sub-fields of EDA.

1.2 Modern EDA Tools and Their Logic Primitives

Modern EDA tools operate on logic abstractions of an electronic system. These logic abstractions are based on some primitive logic operators over which the synthesis and verification processes are performed. The expressive power and manipulation properties of the logic primitives employed ultimately determine the quality of the EDA tasks accomplished. We review hereafter the basic logic primitives driving logic synthesis and formal verification tools.

4 1 Introduction

1.2.1 Logic Synthesis

In logic synthesis, the main abstraction is a logic circuit, also called logic network, which is defined over a set of primitive logic gates. Very popular primitive gates in logic synthesis are AND, OR and INV. While there are expensive (in terms of runtime) synthesis techniques operating on truth tables and global functions, most practical synthesis methods exploit the local functionality of primitive gates over which the circuit itself is described. For example, two-level AND-OR logic circuits, also called Sum-Of-Products (SOPs), are synthesized by manipulating cubes and their sum [12]. As cubes are inherently AND functions and their sum is inherently an OR function, two-level logic synthesis is based on AND/OR logic primitives [12]. Another example is about multi-level logic circuits and their synthesis [13]. In multi-level logic representations, logic gates may have an unbounded functionality, meaning that each element can represent an arbitrary logic function. However, these logic elements are often represented internally as SOP polynomials which are fac- torized into AND/ORs via algebraic methods [13]. Therefore, also multi-level logic synthesis operates on AND/OR logic primitives [13].

1.2.2 Formal Methods

In formal methods, the main logic abstraction is a formal specification. A formal specification can be a logic circuit, a Boolean formula or any other formal language capable of exhaustively describing the property under test. Ultimately, a formal spec- ification is translated into a mathematical logic formula. To prove properties of the formal specification, two core reasoning engines are very popular in formal meth- ods: binary decision diagrams [10] and Boolean satisfiability [11]. Binary decision diagrams are a data structure to represent Boolean functions. They are driven by the Shannon’s expansion to recursively decompose a Boolean function into cofac- tors until the constant logic values are encountered. Reduced and ordered binary decision diagrams are unique for a given variable order, i.e., canonical. This feature enables efficient property checking. From a logic circuit perspective, the Shannon’s expansion is equivalent to a 2:1 multiplexer (MUX), which therefore is the logic primitive driving binary decision diagrams [10]. Boolean satisfiability consists of determining whether there exists or not an assignment of variables so that a Boolean formula evaluates to true. The standard data structure supporting Boolean satisfiabil- ity is the Conjunctive Normal Form (CNF), which is a conjunction (AND) of clauses (OR). In other words, this data structure is a two-level OR-AND logic circuits, also called a Product of Sums (POS). The CNF satisfiability problem is solved through reasoning on clauses (ORs) and how they interact via the top conjunction operator (AND). It follows that standard satisfiability techniques are based on OR/AND logic primitives [11].

6 1 Introduction

A B

CNFETs

SiNWFETs

Graphene FETs Reversible Logic

6T Nanorelays

4T Nanorelays

Fig. 1.3 Common logic abstraction for SiNWFETs, CNFETs, graphene FETs, reversible logic and nanorelays. Logic model: switch driven by a comparator

while other logic operations, such as conjunctions and disjunctions, are not. All these devices operate as a switch driven by a single bit comparator. Figure 1.3 depicts the common logic abstraction for those comparator-intrinsic nanodevices. Other promising nanodevices, such as Spin-Wave Devices (SWD) [26–28], Resistive RAM (RRAM) [29, 30] and graphene reconfigurable gates [31], operate using different physical phenomena than standard FETs. For example, SWD uses spin waves as information carrier while CRS logic behavior depends on the previous mem- ory state. In those nanotechnologies, the circuit primitive is not anymore a standard switch but a three-input majority voter. Note that there are other nanotechnologies where majority voters are the circuit primitive. Quantum-dot cellular automata is one well-known voting-intrinsic nanotechnology [32]. Also, DNA strand displacement recently showed the capability to implement voting logic [33]. Figure 1.4 depicts the common logic abstraction for these voting-intrinsic nanodevices. In this context, EDA tools capable of natively handling such enhanced func- tionality are essential to permit a fair evaluation on nanotechnologies with logic abstractions different than standard CMOS [34].

1.4 Contributions and Position with Respect to Previous Work 7

Fig. 1.4 Common logic abstraction for SWD, RRAM, Graphene reconfigurable gates, QCA and DNA logic. Logic model: majority voter

1.4 Contributions and Position with Respect

to Previous Work

This book is centered around logic synthesis and formal methods. For the sake of completeness, we also include our results in the area of nanotechnology design. Our contributions can be classified into two main categories.

1.4.1 Logic Representation, Manipulation and Optimization

1.4.1.1 Contributions

We develop new compact representations for logic functions, together with powerful manipulation and optimization techniques. The two main topics here are bicondi- tional logic and majority logic.