REVERSIBLE LOGIC SYNTHESIS. Overview of the Presentation 1. Introduction 2. Design of a Reversible Full-adder Circuit.

Slides:



Advertisements
Similar presentations
Hadi Hosseini CS 6805 Logic Synthesis Faculty of Computer Science Spring 2009.
Advertisements

Reversible Gates in various realization technologies
Synthesis of Reversible Synchronous Counters Mozammel H A Khan Department of Computer Science and Engineering, East West University, 43 Mohakhali, Dhaka.
Chapter 2 Logic Circuits.
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.
Regular Realization of Symmetric Binary and Ternary Reversible Logic Functions.
Marek Perkowski Reversible Logic Models: Billiard Ball and Optical Lecture 4.
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.
CSE 246: Computer Arithmetic Algorithms and Hardware Design Instructor: Prof. Chung-Kuan Cheng Winter 2004 Lecture 4.
Synthesis of Reversible Synchronous Counters Mozammel H. A. Khan East West University, Bangladesh Marek Perkowski Portland State University,
Lecture 14 Today we will Learn how to implement mathematical logical functions using logic gate circuitry, using Sum-of-products formulation NAND-NAND.
Introduction to Reversible Ckts Igor Markov University of Michigan Electrical Engineering & Computer Science.
April 25, A Constructive Group Theory based Algorithm for Reversible Logic Synthesis.
4/11/03 Minute Paper How does MS window work? Like how do we have the screen on the computer. Is it just a bunch of Binary #’s representing colors? When.
Introduction to Quantum Logic 2002/10/08 Tuesday Jung-wook Kim.
Chapter 4 Logic Gates and Boolean Algebra. Introduction Logic gates are the actual physical implementations of the logical operators. These gates form.
Minimization Techniques for Reversible Logic Synthesis.
Design Of Combinational Logic Circuits
Boolean Algebra. Introduction 1854: Logical algebra was published by George Boole  known today as “Boolean Algebra” 1854: Logical algebra was published.
ENGG 1203 Tutorial Combinational Logic (I) 1 Feb Learning Objectives
Chapter 10_1 Digital Logic. Irvine, Kip R. Assembly Language for Intel-Based Computers, NOT AND OR XOR NAND NOR Truth Tables Boolean Operators.
Thapliyal 1MAPLD 2005/1012 A Beginning in the Reversible Logic Synthesis of Sequential Circuits Himanshu Thapliyal and M.B Srinivas
Logic gates & Boolean Algebra. Introduction Certain components (called logic elements) of the computer combine electric pulses using a set of rules. Electric.
The NAND gate as a universal gate Logic function NAND gate only AA A B A.BA.B A B A+B A B A B A B A A A B A.BA.B B A A B A B A B.
BOOLEAN ALGEBRA Saras M. Srivastava PGT (Computer Science)
DeMorgan Theorem, Computer Simulation Exercises
F = ∑m(1,4,5,6,7) F = A’B’C+ (AB’C’+AB’C) + (ABC’+ABC) Use X’ + X = 1.
Computer Organization 1 Logic Gates and Adders. Propositions –Venn Diagrams.
Digital Electronics Lecture 4 Simplification using Boolean Algebra, Combinational Logic Circuit Design.
LOGIC GATES & TRUTH TABLE – Digital Circuit 1 Choopan Rattanapoka.
Elementary Combinational Circuits Introduction Combinational circuits are built from logic gates Can realize arbitrary logical functions Goal is to design.
Module 9.  Digital logic circuits can be categorized based on the nature of their inputs either: Combinational logic circuit It consists of logic gates.
ROM & PLA Digital Logic And Computer Design
Digital Electronics Lecture 6 Combinational Logic Circuit Design.
Copyright © 2004 by Miguel A. Marin1 COMBINATIONAL CIRCUIT SYNTHESIS CLASSIC TWO-LEVEL CIRCUIT SYNTHESIS MULTILEVEL-CIRCUIT SYNTHESIS FACTORIZATION DECOMPOSITION.
Lecture 22: 11/19/2002CS170 Fall CS170 Computer Organization and Architecture I Ayman Abdel-Hamid Department of Computer Science Old Dominion University.
Exclusive OR Gate. Logically, the exclusive OR (XOR) operation can be seen as either of the following operations:exclusive OR (XOR) 1. A AND NOT B OR.
1 A Novel Synthesis Algorithm for Reversible Circuits Mehdi Saeedi, Mehdi Sedighi*, Morteza Saheb Zamani {msaeedi, msedighi, aut.ac.ir.
Combination of logic gates  Logic gates can be combined to produce more complex functions.  They can also be combined to substitute one type of gate.
CH51 Chapter 5 Combinational Logic By Taweesak Reungpeerakul.
Logic Gates. The Inverter The inverter (NOT circuit) performs the operation called inversion or complementation. Standard logic symbols: 1 1 input output.
1 EG 32 Digital Electronics Thought for the day You learn from your mistakes..... So make as many as you can and you will eventually know everything.
Universal college of engineering & technology. .By Harsh Patel)
Design of a Reversible Binary Coded Decimal Adder by Using Reversible 4-bit Parallel Adder Babu, H. M. H. Chowdhury, A.R, “Design of a reversible binary.
Digital Integrated Circuit Design Laboratory Department of Computer Science and Information Engineering National Cheng Kung University Experiment on digital.
1 EENG 2710 Chapter 2 Algebraic Methods For The Analysis and Synthesis of Logic circuits.
Computer Architecture
Generating Toffoli Networks from ESOP Expressions Yasaman Sanaee Winter 2009 University of New Brunswick.
Garbage in Reversible Designs of Multiple Output Functions
A General Decomposition for Reversible Logic M. Perkowski, L. Jozwiak#, P. Kerntopf+, A. Mishchenko, A. Al-Rabadi, A. A. Buller*, X. Song, M.
Quantum Cost Calculation of Reversible Circuit Sajib Mitra MS/ Department of Computer Science and Engineering University of Dhaka
Online Testable Fault Tolerant Full Adder in Reversible Logic Synthesis Sajib Kumar Mitra MS/ Department of Computer Science and Engineering University.
1’S COMPLEMENT REPRESENTATION 1’s complement of a number (binary) is obtained by changing all 1’s to 0 and all 0’s to 1. If one of these numbers is positive.
LOGIC CIRCUITLOGIC CIRCUIT. Goal To understand how digital a computer can work, at the lowest level. To understand what is possible and the limitations.
BDD-based Synthesis of Reversible Logic for Large Functions Robert Wille Rolf Drechsler DAC’09 Presenter: Meng-yen Li.
Logic Gates and Boolean Algebra
Boolean Algebra.
Kerntopf Gate and Regular Structures for Symmetric Functions
Karnaugh Maps (K-Maps)
CSE 311 Foundations of Computing I
Lecture 6: Universal Gates
CSE 370 – Winter Combinational Logic - 1
Introduction to Quantum logic (2)
Boolean Algebra.
Gates Type AND denoted by X.Y OR denoted by X + Y NOR denoted by X + Y
DIGITAL ELECTRONICS B.SC FY
Lecture 4 Logistics Last lecture --- Boolean algebra Today’s lecture
Logic Gates AIM: To know the different types of logic gate
Sajib Kumar Mitra, Lafifa Jamal and Hafiz Md. Hasan Babu*
Presentation transcript:

REVERSIBLE LOGIC SYNTHESIS

Overview of the Presentation 1. Introduction 2. Design of a Reversible Full-adder Circuit

Part 1 Introduction

The gate/circuit that does not loose information is called reversible. What is Reversible Logic / Reversibility ? Input Vector I v =( I i,j, I i+1,j, I i+2,j, …, I k-1,j, I k,j ) Output Vector O v =( O i,j, O i+1,j, O i+2,j, …, O k-1,j, O k,j ) For each particular vector j I v  O v Def n 1: A Reversible circuit has the facility to generate a unique output vector from each input vector, and vice versa.

What is Reversible Logic / Reversibility ? (cont.) Def n 2: Reversible are circuits in which the number of inputs is equal to the number of outputs and there is one-to-one mapping between vectors of inputs and outputs. Reversible Gate i i i i i K-1 K O O O O O K A gate with k inputs and k outputs is called k*k gate.

Difference Between Reversible Gate and Irreversible Gate Truth Table For Irreversible EXOR Logic InputsOutput ABC = A B

Difference Between Reversible Gate and Irreversible Gate (cont.) Truth Table For Reversible EXOR Logic (Feynman Gate) InputsOutput ABP=AQ = A B

It has been proved ( by Bennett and Landauer [1]) that, “losing information in a circuit causes losing power. Information lost when the input vector cannot be uniquely recovered from the output vector of a combinational circuit”. The gate/ circuit does not loose information is called reversible. Motivation Towards Reversible Gate

Garbage Bit Every gate output that is not used as input to other gate or as a primary output is called garbage. The unutilized outputs from a gate are called “garbage”. Heavy price is paid off for every garbage output. A B P = A * Q = A B

Some Popular Reversible Gates P = A ' A Not Gate AP x 1 Not Gate

Some Popular Reversible Gates (cont.) A B P = A Q = A B Feynman Gate AB PQ x 2 Feynman Gate (CNOT Gate) [2]

Some Popular Reversible Gates (cont.) A B Toffoli Gate C P = A Q = B R = AB C ABC PQR x 3 Toffoli Gate [3]

Some Popular Reversible Gates(cont.) A B Fredkin Gate C P = A Q = A ' B AC R = A ' C AB ABC PQR x 3 Fredkin Gate [4]

Some Popular Reversible Gates(cont.) A B New Gate C P = A Q = AB C R = A'C' B' ABC PQR x 3 New Gate (Khan Gate) [5]

Some Popular Reversible Gates(cont.) A B Peres Gate C P = A Q = A B R = AB C ABC PQR x 3 Peres Gate[6]

Different Modes of Feynman Gate 0 B P = 0 Q = B Feynman Gate All possible cases in 2 x 2 Feynman Gate A as control input Output B as control input Output PQPQ 00B 0AA 11 B'B' 1AA' 1 B P = 1 Q = B ' Feynman Gate A 0 P = A Q = A Feynman Gate A 1 P = A Q = A ' Feynman Gate

Realizations of Irreversible Gates Using Reversible Gates A B Toffoli Gate 0 P = A Q = B R = AB 0 = AB InputOutput ABC A B AND GATE C = AB AND GATE

Realizations of Irreversible Gates Using Reversible Gates(cont.) A B Toffoli Gate 1 P = A Q = B R = AB 1 = AB InputOutput ABC A B NAND GATE C = AB NAND GATE

Realizations of Irreversible Gates Using Reversible Gates(cont.) A B Toffoli Gate 1 P = A Q = B R = A B 1 =A B =A + B InputOutput ABC A B OR GATE C = A + B OR GATE

Realizations of Irreversible Gates Using Reversible Gates(cont.) A B Toffoli Gate 0 P = A Q = B R = A B 0 = A + B InputOutput ABC A B NOR GATE C = A + B NOR GATE

Reversible Network Structure

The main rules for efficient reversible logic synthesis Use as many outputs of every gate as possible, and thus minimize the garbage outputs. Do not create more constant inputs to gates that are absolutely necessary. Avoid leading output signals of gates to more than one input( Fanout). Don’t use any feedback loop; it is strictly restricted. Use as less number of reversible gates as possible to achieve the goal. The main rules for efficient reversible logic synthesis

Part 2 Design of a Reversible Full-adder Circuit

Input Output ABC in SumC out Design of a Reversible Full-adder Circuit Sum=A B C Carry=AB + BC + CA =AB BC CA

Design of a Reversible Full-adder Circuit(cont.) Sum=A B C Carry=AB + BC + CA =AB BC CA A B EXOR GATE A B EXOR GATE Sum AND GATE AND GATE AND GATE C EXOR GATE EXOR GATE Carry

Design of a Reversible Full-adder Circuit Sum=A B CCarry=AB + BC + CA =AB BC CA A B P = A Q = A B Feynman Gate Q = A B C = Sum Feynman Gate P = A B C

Design of a Reversible Full-adder Circuit (cont.) Sum=A B C Carry =AB BC CA A B Toffoli Gate 0 P = A Q = B R = AB B C Toffoli Gate 0 P = B Q = C R = BC C A Toffoli Gate 0 P = C Q = A R = CA P = AB Q = AB BC Feynman Gate P = AB BC Q = AB BC CA= Carry Feynman Gate

Design of a Reversible Full-adder Circuit (cont.) Sum=A B CCarry= =AB BC CA = (A C)B CA A B Toffoli Gate 0 A B AB C Toffoli Gate A B C (A C)B CA = Carry A A B Feynman Gate P = A B Q = A B C = Sum Feynman Gate

Three Gates & Three Garbage outputs [5] Four Gates & Two Garbage outputs [7] Existing Reversible Full-adder Circuits

Two Gates & Two Garbage outputs Three Gates & Two Garbage outputs Proposed Reversible Full-adder Circuits

Comparative Results Gates Garbage Outputs Existing 1 42 Existing 2 33 Proposed 1 32 Proposed 2 22

Input Section Output Section ABC in Sum (S)C out Theorem: A reversible full-adder circuit can be realized with at least two garbage outputs

A reversible full-adder circuit can be realized with at least two garbage outputs (cont.) A reversible full-adder circuit can be realized with at least two garbage outputs (cont.) Input Section Output Section ABC in SC out G

A reversible full-adder circuit can be realized with at least two garbage outputs (cont.) A reversible full-adder circuit can be realized with at least two garbage outputs (cont.) Input Section Output Section ABC in SC out G1G1 G2G

References [1] C. H. Bennett. Logical reversibility of computation, IBM J. Research and Development, 17:pp , November [2] R. Feynman, Quantum Mechanical Computers, Optical News (1985) [3] T. Toffoli., Reversible Computing, Tech memo MIT/LCS/TM-151, MIT Lab for Computer Science (1980). [4] E. Fredkin, T Toffoli, Conservative Logic, International Journal of Theor. Physics, 21(1982), pp [5] Md. M. H Azad Khan, Design of Full-adder with Reversible Gates, International Conference on Computer and Information Technology, Dhaka, Bangladesh, pp , [6] Peres, A., Reversible Logic and Quantum Computers, Physical Review A, 32: , [7] A. Mishchenko and M. Perkowski. Logic synthesis of reversible wave cascades. International Workshop on Logic Synthesis, pages , June 2002.

The End REVERSIBLE LOGIC SYNTHESIS