CLASSICAL LOGIC 2 3 4 5 SRFPGA layout With I/O pins.

Slides:



Advertisements
Similar presentations
Reversible Gates in various realization technologies
Advertisements

Synthesis of Reversible Synchronous Counters Mozammel H A Khan Department of Computer Science and Engineering, East West University, 43 Mohakhali, Dhaka.
©2004 Brooks/Cole FIGURES FOR CHAPTER 9 MULTIPLEXERS, DECODERS, AND PROGRAMMABLE LOGIC DEVICES Click the mouse to move to the next page. Use the ESC key.
SYNTHESIS OF REVERSIBLE CIRCUITS WITH NO ANCILLA BITS FOR LARGE REVERSIBLE FUNCTIONS SPECIFIED WITH BIT EQUATIONS Nouraddin Alhagi, Maher Hawash, Marek.
Designing Oracles for Grover Algorithm
GF(4) Based Synthesis of Quaternary Reversible/Quantum Logic Circuits
A Transformation Based Algorithm for Reversible Logic Synthesis D. Michael Miller Dmitri Maslov Gerhard W. Dueck Design Automation Conference, 2003.
Quantum Error Correction SOURCES: Michele Mosca Daniel Gottesman Richard Spillman Andrew Landahl.
Marek Perkowski Reversible Logic Synthesis with Garbage Bits Lecture 6.
LAYOUTDRIVEN SYNTHESIS FOR SUBMICRON TECHNOLOGY MAPPING EXPANSIONS TO REGULAR LATTICES Woong Hwangbo.
Derivatives of Perkowski’s Gate k f2 g h t t De Vos gates  f1f1  A B P Q Feynman gates A B P f 2f 2  C Q R Toffoli gates Q P f 2 A C R B S D 0.
Reversible Computation Computational Group Theory and Circuit Synthesis.
Synthesis of Reversible Synchronous Counters Mozammel H. A. Khan East West University, Bangladesh Marek Perkowski Portland State University,
Engineering Models and Design Methods for Quantum State Machines.
Lattice Diagrams using Reed-Muller Logic Shim, Hee Jun.
How to realize many-input AND gates a 0 d c b X ab abc  X 0 acd  abc  X 0 cd We need just one row to create all three-input ANDs.
April 25, A Constructive Group Theory based Algorithm for Reversible Logic Synthesis.
Automated Generation of Layout and Control for Quantum Circuits Mark Whitney, Nemanja Isailovic, Yatish Patel, John Kubiatowicz University of California,
2002/10/08 SeonPil Kim Layout-Driven Synthesis For Submicron Technology : Mapping Expansions To Regular Lattices High Level Synthesis Homework #2.
Regular Structures. Levelized Structures Standard Lattice Diagrams for continuous, multiple-valued and binary logic.
Homework Your task is to design a regular structure such as Kronecker Lattice or Shannon Lattice using modern Quantum Dot Cellular Automata technology.
Classical and Quantum Circuit Synthesis An Algorithmic Approach.
Design of Regular Quantum Circuits
 2001 CiesielskiBDD Tutorial1 Decision Diagrams Maciej Ciesielski Electrical & Computer Engineering University of Massachusetts, Amherst, USA
Minimization Techniques for Reversible Logic Synthesis.
Grover’s Algorithm in Machine Learning and Optimization Applications
Introduction to Quantum logic (2) Yong-woo Choi.
Research Potential We should develop a set of unified standardized CAD tools for synthesizing, verifying, testing and simulating of quantum computers.
Quantum Algorithms Preliminaria Artur Ekert. Computation INPUT OUTPUT Physics Inside (and outside) THIS IS WHAT OUR LECTURES WILL.
|x1 |x1 (a) |x2 |x2 | x1 x2  y |y |x |x (b) | x  y |y
ROM-based computations: quantum versus classical B.C. Travaglione, M.A.Nielsen, H.M. Wiseman, and A. Ambainis.
Fast Spectral Transforms and Logic Synthesis DoRon Motter August 2, 2001.
Introduction to Digital Logic Design Appendix A of CO&A Dr. Farag
MASSOUD PEDRAM UNIVERSITY OF SOUTHERN CALIFORNIA Interconnect Length Estimation in VLSI Designs: A Retrospective.
Digital Computer Concept and Practice Copyright ©2012 by Jaejin Lee Logic Circuits I.
REVERSIBLE LOGIC SYNTHESIS. Overview of the Presentation 1. Introduction 2. Design of a Reversible Full-adder Circuit.
1 Cost Metrics for Reversible and Quantum Logic Synthesis Dmitri Maslov 1 D. Michael Miller 2 1 Dept. of ECE, McGill University 2 Dept. of CS, University.
Digital Computer Concept and Practice Copyright ©2012 by Jaejin Lee Logic Circuits I.
Important Components, Blocks and Methodologies. To remember 1.EXORS 2.Counters and Generalized Counters 3.State Machines (Moore, Mealy, Rabin-Scott) 4.Controllers.
1 hardware of quantum computer 1. quantum registers 2. quantum gates.
1 A Novel Synthesis Algorithm for Reversible Circuits Mehdi Saeedi, Mehdi Sedighi*, Morteza Saheb Zamani {msaeedi, msedighi, aut.ac.ir.
4. Computer Maths and Logic 4.2 Boolean Logic Logic Circuits.
Chapter 5 Boolean Algebra and Reduction Techniques 1.
1 Lecture 6 BOOLEAN ALGEBRA and GATES Building a 32 bit processor PH 3: B.1-B.5.
Generating Toffoli Networks from ESOP Expressions Yasaman Sanaee Winter 2009 University of New Brunswick.
Functional Modeling.
Garbage in Reversible Designs of Multiple Output Functions
1 Multiplexers (Data Selectors) A multiplexer (MUX) is a device that allows several low-speed signals to be sent over one high-speed output line. “Select.
Combinational Logic Design. 2 Combinational Circuits A combinational logic circuit has: ♦ A set of m Boolean inputs, ♦ A set of n Boolean outputs ♦ n.
ECE 331 – Digital System Design Basic Logic Operations, Boolean Expressions and Truth Tables, and Standard Logic Gates The slides included herein were.
Quantum Cost Calculation of Reversible Circuit Sajib Mitra MS/ Department of Computer Science and Engineering University of Dhaka
What is a quantum computer? A quantum computer is any device for computation that makes use of quantum mechanical phenomena to perform operations on data,
Online Testable Fault Tolerant Full Adder in Reversible Logic Synthesis Sajib Kumar Mitra MS/ Department of Computer Science and Engineering University.
Controlled- Controlled NOTControlled- Controlled NOT = Toffoli Gate.
BDD-based Synthesis of Reversible Logic for Large Functions Robert Wille Rolf Drechsler DAC’09 Presenter: Meng-yen Li.
Combinational Design, Part 2: Procedure. 2 Topics Positive vs. negative logic Design procedure.
Very good news for People who know Reed-Muller Logic 1.Quantum XOR 1.Quantum XOR is the most important gate in Quantum Logic 2.Synthesis of Quantum Circuits.
Mohammad Gh. Alfailakawi, Imtiaz Ahmad, Suha Hamdan
Boolean Expressions Lecture No. 10.
Fredkin/Toffoli Templates for Reversible Logic Synthesis
Kerntopf Gate and Regular Structures for Symmetric Functions
Instructor: Alexander Stoytchev
Instructor: Alexander Stoytchev
Instructor: Alexander Stoytchev
Introduction to Quantum logic (2)
Homework 2 This homework is the first use of quantum gates. In lectures we learned about the following gates: inverter, Feynman (controlled NOT), Toffoli.
Design of new quantum primitives
Instructor: Alexander Stoytchev
Fuzzy Reversible Logic using Toffoli-like gates
Sajib Kumar Mitra, Lafifa Jamal and Hafiz Md. Hasan Babu*
Presentation transcript:

CLASSICAL LOGIC 2

3

4

5 SRFPGA layout With I/O pins

6 Var1 var2 var3 var4 var5 var6 var7 var8 var9 var10 var11 var12 var13 var14 var15 var Input test vector InputtestvectorInputtestvector Test output TestoutputTestoutput Faults observed during column test C = 2. Faults observed during diagonal test D = 2 Total number of Faults N = C * D = 2 * 2 = 4.

REVERSIBLE LOGIC 7

A logic gate is reversible if  Each input is mapped to a unique output  It permutes the set of input values A combinational logic circuit is reversible if it satisfies the following:  Has only one Fanout,  Uses only reversible gates,  No feedback path,  has as many input wires as output wires, and permutes the input values. 8

9 NOT gate a b a c Controlled-NOT or Feynman gate

10 a b c a b f Toffoli gate (Controlled-Controlled NOT gate)

11 Swap gate Implementation of Swap gate using controlled-NOT

12 Swap gate Implementation of Swap gate using controlled-NOT

13 a b c a f g Fredkin gate (Controlled SWAP gate)

14

MMD: Transformation based Gupta-Agrawal-Jha: PPRM based Mishchenko-Perkowski: Reversible wave cascade Kerntopf: Heuristics based Wille: BDD based synthesis 15

16 c b ac o b o a o  PPRM form for each output in terms of Input variables are given as follows and node is created  PPRM form for each output in terms of Input variables are given as follows and node is created

Parent node is explored by examining each output variable in the PPRM expansion. Factors are searched in the PPRM expansions that do not contain the same input variable. For example in the expansion below appropriate terms are “c” and “ac” The substitution is performed as In this example OR 17

18

19 New nodes are created based on substitution

20

21

22

Common problem with current approaches: they invariably use nxn Toffoli gates, that might imposes technological limitations. High Quantum cost of Toffoli gates with many inputs. Synthesize only reversible functions, not Boolean functions that is not reversible. 23

24  Implementation of 4x4 Toffoli gate with Quantum realizable 2x2 primitives such as controlled-V, controlled-NOT, controlled-V +.

CREATING QUANTUM ARRAY FROM LATTICE 25

26 Positive Davio Tree can be created by expanding PPRM function using positive Davio expansion. Positive Davio Lattice is created by performing joining operation for neighboring cells at every level. Other Lattices can be created using similar method but using expansions such as Shannon or Negative Davio expansions or combination of them.

On the previous foils I showed representation of the Davio and Shannon cells as cascade of reversible gates. Next I present unique method to create Quantum Array from Positive Davio Lattice. The same approach can be used for other Lattices. 27

28  Each node represents pDv cell.

d d a d b b 1 a a c 1

30 a b c d a1  ad1  bab1  d a aabdb  adabddb1  bddab  bcdcdacbcabdaddb1  garbage function

31 a b c d a1  ad1  bab1  d a aabdb  adabddb1  bddab  bcdcdacbcabdaddb1  garbage function

32  Each node represents pDv cell.

33

Reversible circuit synthesized with only 3x3 Toffoli gates. Generates reversible circuit for any ESOP. Adds ancilla bits but overall cost of the circuit will be lower due to use of low cost 3x3 Toffoli gates. 34

35

36

37

DIPAL GATES, DIPAL GATE FAMILIES AND THEIR ARRAYS 38

39

40 a b c cabaf  a b c cabaf  cb  a Shannon cell Dipal cell representation with reversible gates  There are 2 3 ! = 8! = x3 Reversible logic functions, however only handful of them shown earlier are useful for synthesis purpose.  Dipal gate is a reversible equivalent of Shannon cell  Dipal gate is a reversible equivalent of Shannon cell

41 a b c bacaf  a b c a cb  bacaf  Shannon cell with negative variable Dipal cell with negative variable represented with reversible gates

42 a b c cabaf  a b c cabaf  cb  a Shannon cell Dipal cell representation with reversible gates  There are 2 3 ! = 8! = x3 Reversible logic functions, however only handful of them shown earlier are useful for synthesis purpose.  Dipal gate is a reversible equivalent of Shannon cell  Dipal gate is a reversible equivalent of Shannon cell

cbaa inputoutput

45

EXPERIMENTAL RESULTS 46

47 Benchmark#Real inputs #Garbag e inputs #Gates Lattice Cost Lattice CPU time Lattice #Gates DMM Cost DMM #Gates AJ Cost AJ 2to rd323148< rd < _ < sym NA 5mod < mod541618< ham33037< xor55044< Xnor55155< decod < Cycle10_ ham

48 Benchmark#Real inputs #Garbage inputs #Gates Lattice Cost Lattice CPU time Lattice #Gates DMM Cost DMM #Gates AJ Cost AJ graycode66555< graycode < graycode < nth_prime3_ inc 3446< nth_prime4_ inc < nth_prime5_ inc alu52517< _ hwb < hwb hwb pprm144933<

49 Benchmark#Inputs#Gates pDv Lattice Cost pDv Lattice #Gates Shannon Lattice Cost Shannon Lattice 2to rd rd _ sym mod mod Ham xor Xnor Decod Cycle10_ Ham

50 Benchmark#Inputs#Gates pDv Lattice Cost pDv Lattice #Gates Shannon Lattice Cost Shannon Lattice Graycode Graycode Graycode nth_prime3_ inc nth_prime4_ inc nth_prime5_ inc Alu _ Hwb Hwb Hwb Pprm

51

52

 Fig. 2. Circuit for function FX2 created with our method for traditional cost function calculation that does not take Ion Trap technology constraints into account. 53

 Fig. 3. Circuit from Figure 2 modified with adding SWAP gates for new cost function calculation that does take Ion Trap technology constraints into account, with XX gates added. It has 36 SWAP gates added to realize LNNM. 54

55 Example of Positive Davio Lattice from [Perkowski97d]. Positive Davio Expansion is applied in each node. Variable d is repeated

56 Transformation of function F3(a,b,c) from classical Positive Davio Lattice to a Quantum Array with Toffoli and SWAP gates. Each SWAP gate is next replaced with 3 Feynman gates.(a) intermediate form, (b) final Quantum Array.

57

58

59  General layout of the layered diagram  Each box represents a gate from family of Dipal gate

60

61 Benchmark#Gates Lattice Cost Lattice #Gates with SWAP insertion for Lattice Cost with SWAP gates for Lattice #Gates DMM Cost DMM #Gates with SWAP insertion for MMD Cost with SWAP gates for MMD 2to rd rd _ sym mod mod Ham Xor Xnor decod Cycle10_ Ham

62 Benchmark#Gates Lattice Cost Lattice #Gates with SWAP insertion for Lattice Cost with SWAP gates for Lattice #Gates DMM Cost DMM #Gates with SWAP insertion for MMD Cost with SWAP gates for MMD Graycode Graycode Graycode2019 Nth_prime3 _inc Nth_prime4 _inc Nth_prime5 _inc Alu _ hwb hwb hwb pprm

GENERALIZED REGULARITIES FOR QUANTUM AND NANO- TECHNOLOGIES 63

64 (a)(b)(c) (d)

65

66

67

68

69

70

71

72

73

QUANTUM CIRCUITS AND QUANTUM ARRAYS FROM TRULY QUANTUM GATES 74

Basic single qubit quantum gates 75

 Transformation of the circuit realized in Fig. 7 using Toffoli gate. Each Toffoli and SWAP gates are replaced by quantum CNOT and CV/CV+ quantum gates and rearranged to satisfy the neighborhood requirements of Ion trap.  76

 The transformations of blocks of quantum gates to the pulses level.  77

CONCLUSIONS 78

Experimental results proved that our algorithm produced better results in terms of quantum cost compared to other contemporary algorithms for synthesis of reversible logic. New gate family called Dipal gate Presented new synthesis method with layered diagrams. More accurate technology specific cost model for 1D qubit neighborhood architecture. 79

A new method based of lattice diagram to synthesize reversible logic circuit with 3x3 Toffoli gates. A new method based of lattice diagram to synthesize reversible logic circuit with 3x3 Toffoli gates. A new family of gates called Dipal Gates. A new family of gates called Dipal Gates. New diagrams called layered diagram that uses family of Dipal gate for synthesis of reversible logic function. New diagrams called layered diagram that uses family of Dipal gate for synthesis of reversible logic function. Software for creating Lattice diagrams and software for creating quantum array from Lattice (Lattice to QA). Software for creating Lattice diagrams and software for creating quantum array from Lattice (Lattice to QA). Program to implement a variant of MMD algorithm. Program to implement a variant of MMD algorithm. 80