Quantum Cost Optimization for Reversible Carry Skip BCD Adder

Similar documents
Design of Universal Shift Register Using Reversible Logic

Design of a Compact Reversible Random Access Memory

A Novel Design of Reversible Universal Shift Register

Optimized design of BCD adder and Carry skip BCD adder using reversible logic gates

Design of Reversible Code Converters Using Verilog HDL

Design of a compact reversible binary coded decimal adder circuit

ENERGY EFFICIENT DESIGN OF REVERSIBLE POS AND SOP USING URG

Design of Reversible Logic based Basic Combinational Circuits

A VLSI Design of Power Efficient Reversible Logic Gates for Arithmetic and Logical Unit

On the Analysis of Reversible Booth s Multiplier

Design of High-speed low power Reversible Logic BCD Adder Using HNG gate

Design and Minimization of Reversible Circuits for a Data Acquisition and Storage System

Reversible Multiplier with Peres Gate and Full Adder.

Optimized Nanometric Fault Tolerant Reversible BCD Adder

Analysis of Multiplier Circuit Using Reversible Logic

Design and Implementation of Nanometric Fault Tolerant Reversible BCD Adder

DESIGN OF OPTIMAL CARRY SKIP ADDER AND CARRY SKIP BCD ADDER USING REVERSIBLE LOGIC GATES

A Novel Reversible Gate and its Applications

Power Optimization using Reversible Gates for Booth s Multiplier

Downloaded from

Design of Reversible Multiplier by Novel ANU Gate

Reversible Multiplier with Peres Gate and Full Adder

A More Effective Realization Of BCD Adder By Using A New Reversible Logic BBCDC

Optimization of reversible sequential circuits

DESIGN AND ANALYSIS OF A FULL ADDER USING VARIOUS REVERSIBLE GATES

Conference on Advances in Communication and Control Systems 2013 (CAC2S 2013)

A Novel Design for carry skip adder using purity preserving reversible logic gates

OPTIMAL DESIGN AND SYNTHESIS OF FAULT TOLERANT PARALLEL ADDER/SUBTRACTOR USING REVERSIBLE LOGIC GATES. India. Andhra Pradesh India,

Department of ECE, Vignan Institute of Technology & Management,Berhampur(Odisha), India

ASIC Design of Reversible Full Adder/Subtractor Circuits

FPGA IMPLEMENTATION OF BASIC ADDER CIRCUITS USING REVERSIBLE LOGIC GATES

A NEW APPROACH TO DESIGN BCD ADDER AND CARRY SKIPBCD ADDER

FPGA Implementation of Optimized 4 Bit BCD and Carry Skip Adders using Reversible Gates

Performance Enhancement of Reversible Binary to Gray Code Converter Circuit using Feynman gate

Power Minimization of Full Adder Using Reversible Logic

Design of Reversible Sequential Circuit Using Reversible Logic Synthesis

Reversible Circuit Using Reversible Gate

Design of Optimized Reversible Binary and BCD Adders

Optimized Reversible Programmable Logic Array (PLA)

Optimized Reversible Vedic multipliers for High Speed Low Power Operations

Design of Digital Adder Using Reversible Logic

Design of Reversible Even and Odd Parity Generator and Checker Using Multifunctional Reversible Logic Gate (MRLG)

A Novel Nanometric Reversible Four-bit Signed-magnitude Adder/Subtractor. Soudebeh Boroumand

An Optimized BCD Adder Using Reversible Logic Gates

Design and Implementation of Efficient Reversible Vedic multiplier for Low Power and High Speed Operations

Design and Implementation of REA for Single Precision Floating Point Multiplier Using Reversible Logic

DESIGN OF COMPACT REVERSIBLE LOW POWER n-bit BINARY COMPARATOR USING REVERSIBLE GATES

Design of 8-Bit and 16-Bit Adder-Subtractor with Optimized Power and Quantum Cost

High Speed Time Efficient Reversible ALU Based Logic Gate Structure on Vertex Family

Carry Bypass & Carry Select Adder Using Reversible Logic Gates

VHDL DESIGN AND IMPLEMENTATION OF C.P.U BY REVERSIBLE LOGIC GATES

PERFORMANCE ANALYSIS OF CLA CIRCUITS USING SAL AND REVERSIBLE LOGIC GATES FOR ULTRA LOW POWER APPLICATIONS

Design and Implementation of Combinational Circuits using Reversible Gates

Design and Optimization of Reversible BCD Adder/Subtractor Circuit for Quantum and Nanotechnology Based Systems

SCOPE OF REVERSIBLE ENGINEERING AT GATE-LEVEL: FAULT-TOLERANT COMBINATIONAL ADDERS

Quantum Cost efficient Reversible Multiplier

On Universality of Ternary Reversible Logic Gates

Reversible Circuit Synthesis of Symmetric Functions Using a Simple Regular Structure

Realization of programmable logic array using compact reversible logic gates 1

Progress in Reversible Processor Design: A Novel Methodology for Reversible Carry Look-ahead Adder

Computer Science & Engineering Dept, West Bengal University of Technology 2 Information Technology Dept, Manipal University

Design and Synthesis of Sequential Circuit Using Reversible Logic

Design of 16 Bit Adder Subtractor with PFAG and TG Gates Using Verilog HDL

DESIGN OF A COMPACT REVERSIBLE READ- ONLY-MEMORY WITH MOS TRANSISTORS

BCD Adder Design using New Reversible Logic for Low Power Applications

Implementation of Optimized Reversible Sequential and Combinational Circuits for VLSI Applications

FPGA Implementation of Ripple Carry and Carry Look Ahead Adders Using Reversible Logic Gates

Technical Report: Projects & Background in Reversible Logic

Online Testable Reversible Circuits using reversible gate

Design and Implementation of Carry Adders Using Adiabatic and Reversible Logic Gates

DESIGN AND IMPLEMENTATION OF EFFICIENT HIGH SPEED VEDIC MULTIPLIER USING REVERSIBLE GATES

Design of Stuck at Fault Testable Conservative Logic based Flip-Flops and its Application Circuits

An Efficient Reversible Design of BCD Adder

Realization of 2:4 reversible decoder and its applications

Design of a Compact Reversible Carry Look-Ahead Adder Using Dynamic Programming

Reversible Function Synthesis with Minimum Garbage Outputs

Low Power and High Speed BCD Adder using Reversible Gates

Design &Implementation 16-Bit Low Power Full Adder using Reversible Logic Gates

DESIGN OF 3:8 REVERSIBLE DECODER USING R- GATE

Implementation of Reversible ALU using Kogge-Stone Adder

Design of an Online Testable Ternary Circuit from the Truth Table

ISSN Vol.03, Issue.03, June-2015, Pages:

OPTIMIZED MULTIPLIER USING REVERSIBLE MULTI- CONTROL INPUT TOFFOLI GATES

An Approach to Simplify Reversible Logic Circuits

Department of ECE, Assistant professor, Sri Padmavatimahilavisvavidyalayam, Tirupati , India

Design of Efficient Adder Circuits Using PROPOSED PARITY PRESERVING GATE (PPPG)

A New Design of Optical Reversible Adder and Subtractor Using MZI

Basic Logic Gate Realization using Quantum Dot Cellular Automata based Reversible Universal Gate

Circuit for Revisable Quantum Multiplier Implementation of Adders with Reversible Logic 1 KONDADASULA VEDA NAGA SAI SRI, 2 M.

Literature Review on Multiplier Accumulation Unit by Using Hybrid Adder

The Implementation of Reversible Gates in Design of 1bit, 4-bit ALU and 8b/10b Encoder & Decoder

DESIGN OF PARITY PRESERVING LOGIC BASED FAULT TOLERANT REVERSIBLE ARITHMETIC LOGIC UNIT

Regularity and Symmetry as a Base for Efficient Realization of Reversible Logic Circuits

FULL ADDER/ SUBTRACTOR USING REVERSIBLE LOGIC

Implementation of Reversible Control and Full Adder Unit Using HNG Reversible Logic Gate

Reversible ALU Implementation using Kogge-Stone Adder

PERFORMANCE IMPROVEMENT OF REVERSIBLE LOGIC ADDER

Synthesis of Quantum Circuit for FULL ADDER Using KHAN Gate

arxiv: v1 [quant-ph] 20 Jul 2009

Design of Reversible Synchronous Sequential Circuits

Transcription:

International Journal of Science and Technology Volume 1 No. 10, October, 2012 Quantum Cost Optimization for Reversible Carry Skip BCD Adder Md. Selim Al Mamun, Indrani Mandal, Uzzal Kumar Prodhan Department of Computer Science and Engineering, Jatiya Kabi Kazi Nazrul Islam University, Bangladesh ABSTRACT Reversible Logic is a very promising and flourishing research area. Reversible logic theoretically allows designers to build subsystem circuit design with zero power dissipation than the existing classical ones. However synthesis of reversible circuit is not easy. In this paper we propose an efficient approach for carry skip BCD adder using reversible logic. Our results show that our design is much more efficient than the existing ones in terms quantum cost, garbage outputs and delay. Keywords: Adder, BCD Adder, Garbage Output, Reversible Logic, Quantum Cost. 1. INTRODUCTION In recent year reversible logic has received great attention of the researchers. The primary reason for this is the increasing demands for lower power devices. In early 1960s R. Landauer [1] demonstrated that losing bits of information causes loss of energy. Information is lost when an input cannot be recovered from its output. In 1973 C. H. Bennett [2] showed that energy dissipation problem can be avoided if the circuits are built using only reversible logic gates. Reversible logic gates have a one to one mapping between its inputs and its outputs. So no information bit lost and therefore no loss of energy [3]. In current literature most of the researchers realized complex gate using realizable gates and the cost is significantly high. They used the circuit as a single gate in their design to claim success in terms of number of gates. Although the number of gates is proposed as a major metric of optimization [4], Dmitri Maslov et al.[5] proved that number of gates is not a good metric of optimization as reversible gates are of different type and have different quantum costs. In this paper we propose a novel design of carry skip BCD adder that is efficient in terms of quantum cost, number of garbage outputs and delay. The rest of the paper is organized as follows. In Section 2 we present some basic definitions related to reversible logic. Section 3 covers description of basic reversible logic gates and their quantum implementation. Section 4 describes the logic synthesis of proposed carry skip adder circuits and compares our design with other researchers. Finally this paper is concluded with Section 5. 2. BASIC DEFINITIONS In this section, some basic definitions related to reversible logic are presented. We formally define reversible gate, garbage output, delay in reversible circuit and quantum cost of reversible in reversible circuit. 2.1 Reversible Gate A Reversible Gate is a k-input, k-output (denoted by k*k) circuit that produces a unique output pattern for each possible input pattern [6]. If the input vector is Iv where Iv = (I 1,j, I 2,j, I 3,j,., I k-1,j, I k,j ) and the output vector is Ov where Ov = (O 1,j, O 2,j, O 3,j,, O k-1,j, O k,j ), then according to the definition, for each particular vector j, Iv«Ov. 2.2 Garbage Output Every gate output that is not used as input to other gates or as a primary output is garbage. Unwanted or unused outputs which are needed to maintain reversibility of a reversible gate (or circuit) are known as Garbage Outputs. The garbage output of Feynman gate [7] is shown Figure 1 with *. 2.3 Delay The delay of a logic circuit is the maximum number of gates in a path from any input line to any output line. The definition is based on two assumptions: (i) Each gate performs computation in one unit time and (ii) All inputs to the circuit are available before the computation begins. In this paper, we used the logical depth as measure of the delay proposed by Mohammadi and Eshghi [8]. The delay of each 1x1 gate and 2x2 reversible gate is taken as unit delay 1. Any 3x3 reversible gate can be designed from 1x1 reversible gates and 2x2 reversible gates, such as CNOT gate, Controlled-V and Controlled-V + gates (V is a square-root-of NOT gate and V + is its hermitian). Thus, the delay of a 3x3 reversible gate can be computed by calculating its logical depth when it is designed from smaller 1x1 and 2x2 reversible gates. IJST 2012 IJST Publications UK. All rights reserved. 499

Quantum Cost The quantum cost of a reversible gate is the number of 1x1 and 2x2 reversible gates or quantum gates required in its design. The quantum costs of all reversible 1x1 and 2x2 gates are taken as unity [9]. Since every reversible gate is a combination of 1 x 1 or 2 x 2 quantum gate, therefore the quantum cost of a reversible gate can be calculated by counting the numbers of NOT, Controlled- V, Controlled-V + and CNOT gates used. 3. QUANTUM ANALYSIS OF POPULAR REVERSIBLE GATES Every reversible gate can be calculated in terms of quantum cost and hence the reversible circuits can be measured in terms of quantum cost. Reducing the quantum cost from reversible circuit is always a challenging one and works are still going on in this area. This section describes some popular reversible gates and quantum equivalent diagram of each reversible. 3.1 Feynman Gate Let I v and O v are input and output vector of a 2*2 Feynman gate where I v and O v are defined as follows: I v = (A, B) and O v = (P = A, Q = A B). The quantum cost of Feynman gate is 1. The block diagram and equivalent quantum representation for a 2*2 Feynman gate are shown in Fig. 1. representation for 3*3 Double Feynman gate are shown in Fig. 2. Fig. 2. Block diagram of 3x3 Double Feynman gate and Equivalent quantum representation. 3.3 Toffoli Gate The input vector, I v and output vector, O v for 3*3 Toffoli gate (TG) [11] can be defined as follows: I v = (A, B, C) and O v = (P = A, Q = B, R = AB C). The quantum cost of Toffoli gate is 5. The block diagram and equivalent quantum representation for 3*3 Toffoli gate are shown in Fig. 3. Fig.3. Block diagram of 3*3 Toffoli gate and Equivalent quantum representation. 3.4 Frekdin Gate Fig. 1. Block diagram of 2x2 Feynman gate and Equivalent quantum representation. 3.2 Double Feynman Gate Let I v and O v are input and output vector of a 3*3 Double Feynman gate (DFG) where I v and O v are defined as follows: I v = (A, B, C) and O v = (P = A, Q = A B, R = A C). The quantum cost of Double Feynman gate is 2 [10]. The block diagram and equivalent quantum The input vector, I v and output vector, O v for 3*3 Fredkin gate (FRG) [12] can be defined as follows: I v = (A, B, C) and O v = (P=A, Q AB AC, R AC AB ). The quantum cost of Frekdin gate is 5. The block diagram and equivalent quantum representation for 3*3 Fredkin gate are shown in Fig. 4. IJST 2012 IJST Publications UK. All rights reserved. 500

Fig.4. Block diagram of 3*3 Frekdin gate and Equivalent quantum representation 3.5 Peres Gate The input vector, I v and output vector, O v for 3*3 Peres gate (PG)[13] can be defined as follows: I v = (A, B, C) and O v = (P = A, Q = A B, R = AB C). The quantum cost of Peres gate is 4. The block diagram and equivalent quantum representation for 3*3 Peres gate are shown in Fig. 5. (c) (d) Fig.6. Block diagram of the proposed full adder block and its equivalent quantum implementation. 4.2 Proposed Multiplexer Block Fig.5. Block diagram of 3*3 Peres and Equivalent quantum representation 4. PROPOSED CARRY SKIP ADDER In this section we first present our proposed design for all the components of carry skip adder and then describe our proposed novel design of carry skip adder that is optimized in terms of quantum cost, delay and garbage outputs. For multiplexer block we modify the Frekdin gate. The input vector, I v and output vector, O v for 3*3 modified Fredkin Gate (MFRG 1) is defined as follows: I v = ( A, B, C ) and O v = (P =A, Q A AB AC = AB AC, R AC AB ). The quantum realization of MRFG1 is shown in figure 7 and 7. Here input A works as a selector and B and C as mux inputs to be selected by A. When A=0 the 3 rd output is C and when A=1 the 3 rd output is B. The quantum cost of Modified FRG1 gate is 4, delay 4 and it produces 2 garbage outputs. 4.1 Proposed Full Adder Block Our proposed full adder block is shown in figure 6. It is realized by two Toffoli gates and two Feynman gates and its quantum cost is 2*5 (quantum cost of TG is 5) +2*1(quantum cost of FG is 1) =12. Quantum implementations of our adder block and cost minimization using template matching and moving rules are shown in figure 6 to figure 6(d). Finally the cost is reduced to 6. Fig.7. Equivalent quantum representation of MFRG1 gate. IJST 2012 IJST Publications UK. All rights reserved. 501

4.3 Proposed Carry Propagation Block On the design of carry propagation block we consider the block size 4. Carry propagation block receives 4 inputs P 0, P 1, P 2 andp 3 and we have to generate P 0 P 1 P 2 P 3.. It can be realized by three Peres gates. Our proposed carry propagation block is shown in figure 8 producing 6 garbage bits and 12 (= 3*4, quantum cost of PG is 4) quantum cost. Fig. 8. Proposed carry propagation block 4.4 Proposed Correction Logic Block The correction logic block receives carry C 4 and three sums S 1, S 2 and S 3 as inputs. The required logic for the correction block is C 4 S3 (S 1 S2 ). Our proposed reversible logic circuit for correction block is shown in figure 9. It can be realized by giving S 3, S 2, S 1 and C 4 as inputs to the 1 st (=A), 2 nd (=B), 3 rd (=C) and 4 th (=D) inputs to the block. The 4 th output will generate C 4 S3 (S 1 S2 ). The quantum equivalent circuits for the correction block are shown in figure 9 to 9(c). The quantum cost of the proposed logic block is 7. (c) Fig.9. Proposed correction logic design and its equivalent quantum representation 4.5 Proposed Carry Skip Adder Our proposed carry skip adder is shown in figure 10. It is realized by 5 full adder blocks, one carry propagation block, one correction logic block, one 2 to 1 multiplexer block, one Peres gate and 2 Feynman gates. The overall quantum cost of our proposed BCD carry skip adder is 5*6 (5 full adder blocks) + 4*1(1 multiplexer block) + 12*1(1 carry propagation blocks) 7*1 (1 correction logic block) + 4*1(1 Peres gate) +1*2(2 Feynman gates) = 59. The total number of garbage outputs is 6(shown in figure 8) + 6(from carry propagation blocks) + 2(from MUX) =14. In [14] 3 New gates (NG) for the correction logic circuit and 8 TSG gates for the adders are used for the Fig.10. Proposed design of BCD carry skip adder. construction of reversible implementation of BCD adder. The quantum cost of the design is 129. This produces 27 IJST 2012 IJST Publications UK. All rights reserved. 502

garbage outputs with 11 constant inputs. But in this paper fan-out is not taken into account which when considered will increase the number of gates and quantum cost. In design [15] a 4 bit parallel adder constructed using four TSGs and a FG to fan out Cin. The design uses two Fredkin gates and one Toffoli gate for the correction logic. It uses a combination of one FG, one PG and a TSG for the adder-2 block which adds the Cout to the sum in order to generate the final BCD sum. To generate block generation bit P three FRGs are used. Finally to generate Cout and to fan-out three sum bits, another three FRGs and a TG are used. This implementation requires a total of 101 quantum cost and it produces a total number of 15 garbage outputs with 11constant inputs. The implementation of design [16] uses 5 TSGs for both adders, 3 NGs for correction logic, one MTG for multiplexer block and one Feynman gate for fanout. It uses one 6 inputs Toffoli gate for carry propagation logic which optimizes the number of gate counts but increase the quantum cost. The total quantum cost of the design is 137 and it produces 14 garbage outputs. In [17] 8 TSGs used for adders, 3 NGs are for correction logic and 2 FRGs and 1 TSG for carry propagation logic. The quantum cost of the design is 151 and produces 27 garbage outputs. The comparisons of our design with the existing ones in literature are summarized in table 1. Table 1. Comparisons of Different Designs of Carry Skip BCD Adders Carry Skip Cost Comparisons BCD Adder Quantum Garbage Delay Cost Outputs Proposed 59 14 59 Existing[14] 129 27 129 Existing [15] 101 14 101 Existing [16] 137 14 137 Existing [17] 151 27 151 5. CONCLUSION Reversible carry skip BCD adder is a very important subsystem for the forthcoming quantum devices. In this paper we proposed an optimized deign for reversible carry skip BCD adder. Appropriate algorithms and theorems are presented to clarify the proposed design and to establish its efficiency. We compare our design with existing ones in literature which claims our success in terms of number of gates, number of garbage outputs and delay. This optimization can contribute significantly in reversible logic community. ACKNOWLEDGMENT The authors would like to thank the anonymous referees for their constructive feedback, which helped significantly improving technical quality of this paper. REFERENCES [1] Rolf Landauer, "Irreversibility and Heat Generation in the Computing Process", IBM Journal of Research and Development, vol. 5, pp. 183-191, 1961. [2] Charles H.Bennett, "Logical Reversibility of computation", IBM Journal of Research and Development, vol. 17, no. 6, pp. 525-532, 1973. [3] Perkowski, M., A.Al-Rabadi, P. Kerntopf, A. Buller, M. Chrzanowska-Jeske, A. Mishchenko, M. Azad Khan, A. Coppola, S. Yanushkevich, V. Shmerko and L. Jozwiak, A general decomposition for reversible logic, Proc. RM 2001, Starkville, pp: 119-138, 2001 [4] J.E Rice, "A New Look at Reversible Memory Elements", Proceedings International Symposium on Circuits and Systems(ISCAS) 2006, Kos, Greece, May 21-24,2006, pp. 243-246. [5] Dmitri Maslov and D. Michael Miller, Comparison of the cost metrics for reversible and quantum logic synthesis, http://arxiv.org/abs/quant-ph/0511008, 2006 [6] Hafiz Md.Hasan Babu, Md.Rafiqul Islam, Ahsan Raja Chowdhury, and Syed Mostahed Ali Chowdhury, "Synthesis of full-adder circuit using reversible logic," International Conference on VLSI Design, vol. 17, pp. 757-760, 2004. [7] Richard P.Feynman, "Quantum mechanical computers," Foundations of Physics, vol. 16, no. 6, pp. 507-531, 1986. [8] Mohammadi,M. and Mshghi,M, On figures ofmerit in reversible and quantumlogic designs, Quantum Inform. Process. 8, 4, 297 318, 2009. [9] D. Michael Miller, Dmitri Maslov, GerhardW. Dueck, A Transformation Based Algorithm for Reversible Logic Synthesis, Annual ACM IEEE Design Automation Conference,Proceedings of the 40th annual Design Automation Conference, Anaheim, CA, USA Pages: 318 323. [10] Perkowski, M., A hierarchical approach to computer-aided design of quantum circuits, 6th International Symposium on Representations and IJST 2012 IJST Publications UK. All rights reserved. 503

Methodology of Future Computing Technology, 201-209, 2003. [11] Tommaso Toffoli, "Reversible Computing," Automata, Languages and Programming, 7th Colloquium of Lecture Notes in Computer Science, vol. 85, pp. 632-644, 1980. [12] Edward Fredkin and Tommaso Toffoli, "Conservative Logic," International Journal of Theoretical Physics, vol. 21, pp. 219-253, 1982. [13] A. Peres, "Reversible Logic and Quantum Computers," Physical Review A, vol. 32, pp. 3266-3276, 1985. [14] Thapliyal H., S. Kotiyal, M. B. Srinivas, 2006.Novel BCD adders and their reversible logic implementation for IEEE 754r format. Proceedings of the 19th International Conference on VLSI Design, 3-7 Jan 2006. [15] Ashis Kumer Biswas, Md. Mahmudul Hasan, Moshaddek Hasan, Ahsan Raja Chowdhury, Hafiz Md. Hasan Babu: A Novel Approach to Design BCD Adder and Carry Skip BCD Adder. VLSI Design 2008: 566-571. [16] Himanshu Thapliyal, Hamid R. Arabnia, and M.B. Srinivas, Efficient Reversible Logic Design of BCD Subtractors, Transactions on Computational Science III Pages 99 121, Springer-Verlag Berlin, Heidelberg 2009, ISBN: 978-3-642-00211. [17] Manjula B.B, Venkatesh S. Sanganal, Hemalatha.K.N, Ravichandra V, FPGA Implementation of Optimized 4 Bit BCD and Carry Skip Adders using Reversible Gates, International Journal of Soft Computing and Engineering (IJSCE), ISSN: 2231-2307, Volume-2, Issue-3, July-2012. IJST 2012 IJST Publications UK. All rights reserved. 504