A Review On Reversible Logic Gates and Their Implementation
A Review On Reversible Logic Gates and Their Implementation
A Review On Reversible Logic Gates and Their Implementation
Website: www.ijetae.com (ISSN 2250-2459, ISO 9001:2008 Certified Journal, Volume 3, Issue 3, March 2013)
417
International Journal of Emerging Technology and Advanced Engineering
Website: www.ijetae.com (ISSN 2250-2459, ISO 9001:2008 Certified Journal, Volume 3, Issue 3, March 2013)
In other words, reversible functions are those that H. Hardware Complexity :
perform permutations of the set of input vectors[7]. This refers to the total number of logic operation in a
B. Reversible logic gate: circuit. Means the total number of AND, OR and EXOR
operation in a circuit [14] and [15].
Reversible Gates are circuits in which number of outputs
is equal to the number of inputs and there is a one to one I. Design Constraints for Reversible Logic Circuits:
correspondence between the vector of inputs and outputs[8- The following are the important design constraints for
10]. It not only helps us to determine the outputs from the reversible logic circuits.
inputs but also helps us to uniquely recover the inputs from
Reversible logic gates do not allow fan-outs.
the outputs.
Reversible logic circuits should have minimum
C. Ancilla inputs/ constant inputs : quantum cost.
This refers to the number of inputs that are to be The design can be optimized so as to produce
maintain constant at either 0 or 1 in order to synthesize the minimum number of garbage outputs.
given logical function[11]. The reversible logic circuits must use minimum
number of constant inputs.
D.Garbage outputs: The reversible logic circuits must use a minimum
Additional inputs or outputs can be added so as to make logic depth or gate levels
the number of inputs and outputs equal whenever
necessary. This also refers to the number of outputs which III. REVERSIBLE LOGIC GATES
are not used in the synthesis of a given function. In certain There are many number of reversible logic gates that
cases these become mandatory to achieve reversibility. exist at present. The quantum cost of each reversible logic
Garbage is the number of outputs added to make an n-input gate is an important optimization parameter [16]. The
k-output function ((n; k) function) reversible. quantum cost of a 1x1 reversible gate is assumed to be zero
We use the words ―constant inputs‖ to denote the present while the quantum cost of a 2x2 reversible logic gate is
value inputs that were added to an (n; k) function to make it taken as unity. The quantum cost of other reversible gates
reversible. The following simple formula shows the is calculated by counting the number of V, V+ and CNOT
relation between the number of garbage outputs and gates present in their circuit. V is the square root of NOT
constant inputs . gate and V+ is its Hermitian. The V and V+ quantum gates
Input + constant input = output + garbage. [7] have the following properties:
V * V = NOT ……………………. (1)
E. Quantum cost:
V * V+ = V+ * V = 1 ……………. (2)
Quantum cost refers to the cost of the circuit in terms of V+ * V+ = NOT …………………. (3)
the cost of a primitive gate. It is calculated knowing the
Some of the important reversible logic gates are,
number of primitive reversible logic gates (1*1 or 2*2)
required to realize the circuit. The quantum cost of a circuit 1) NOT Gate
is the minimum number of 2*2 unitary gates to represent The simplest Reversible gate is NOT gate and is a 1*1
the circuit keeping the output unchanged. The quantum cost gate[7]. The Reversible 1*1 gate is NOT Gate with zero
of a 1*1 gate is 0 and that of any 2*2 gate is the same, Quantum Cost is as shown in the Figure 1.
which is 1 [12].
F. Flexibility : A NOT
P=A’
GATE
Flexibility refers to the universality of a reversible logic
gate in realizing more functions [13]. (a) Block diagram (b) symbol
Figure1. NOT gate
G. Gate Level :
This refers to the number of levels in the circuit which 2) CNOT GATE
are required to realize the given logic functions. CNOT gate is also known as controlled-not gate. It is a
2*2 reversible gate. The CNOT gate can be described as:
418
International Journal of Emerging Technology and Advanced Engineering
Website: www.ijetae.com (ISSN 2250-2459, ISO 9001:2008 Certified Journal, Volume 3, Issue 3, March 2013)
Iv = (A, B) ; Ov = (P= A, Q= A B) 6) FREDKIN Gate:
Iv and Ov are input and output vectors respectively. Fredkin gate which is a 3*3 gate with inputs (A, B, C)
Quantum cost of CNOT gate is 1[17]. Figure 2 shows a 2*2 and outputs P=A, Q=A'B+AC, R=AB+A'C. It has Quantum
CNOT gate and its symbol. cost five[22].
419
International Journal of Emerging Technology and Advanced Engineering
Website: www.ijetae.com (ISSN 2250-2459, ISO 9001:2008 Certified Journal, Volume 3, Issue 3, March 2013)
10) R Gate: 14) NFT Gate:
It is a 3x3 gate and its logic circuit is as shown in the It is a 3x3 gate and its logic circuit and its quantum
figure. The gate can be used to invert a signal and also to implementation is as shown in the figure. It has quantum
duplicate a signal [26]. Quantum implementation of R gate cost five [24].
is not discussed by author.
Figure 11: URG Gate Block diagram Figure 14: BJN Gate
420
International Journal of Emerging Technology and Advanced Engineering
Website: www.ijetae.com (ISSN 2250-2459, ISO 9001:2008 Certified Journal, Volume 3, Issue 3, March 2013)
17) MTSG Gate: 21) BVF Gate:
The MTSG gate and its symbol is shown in fig 17 [30]. This is a reversible double XOR gate and can be used for
Quantum cost of MTSG gate is 6. the duplication of the required inputs to meet the fan-out
requirements. This gate is used to copy the operand bits and
the number of gates required to copy is reduced by 50%
with same quantum cost.[28]
421
International Journal of Emerging Technology and Advanced Engineering
Website: www.ijetae.com (ISSN 2250-2459, ISO 9001:2008 Certified Journal, Volume 3, Issue 3, March 2013)
28) BSCL gate:
The purpose of this gateis either to find correction logic
for BCD subtraction or to pass same data to the output
depending on the control signal.Here F is the control signal
,if F is equal to 0 E A B C and D as it is passed to the
output P Q R S and T. If F is equal to 1, then output Q R S
and T depends on the value of E. If E is equal to 0 then Q R
Figure 24: Block diagram of DKG Gate S and T is the nines compliment of the input binary number
25) PTR Gate: A B C and D. If E is equal to 1 then binary number 0001 is
added to ABCD to get the valid corrected subtraction
A 4* 4 reversible PTR gate can work as a reversible Full
result.
adder. [34]
Figure 25: Block diagram of PTR Gate Figure 28: BSCL Gate
26) NCG[Nines compliment gate]:
The key feature of this NCG is when control signal E is IV. CONCLUSION AND FUTURE SCOPE
equal to zero, four bit binary number is directly passed to The reversible circuits form the basic building block of
the output Q, R, S and T .When E is equal to one then, Q, quantum computers. This paper presents the primitive
R, S and T is equal to nines compliment of the number reversible gates which are gathered from literature and this
A,B, C and D. Therefore depending on control signal E, paper helps researches/designers in designing higher
either passnine’s compliment outputs will be available on complex computing circuits using reversible gates. The
output Q, R, S and T. paper can further be extended towards the digital design
development using reversible logic circuits which are
helpful in quantum computing, low power CMOS,
nanotechnology, cryptography, optical computing, DNA
computing, digital signal processing (DSP), quantum dot
cellular automata, communication, computer graphics.
ACKNOWLEDGEMENT
We would like to express our sincere thanks to the
anonymous reviewers for their critical suggestions which
helped in improving the manuscript and also we express
Figure 26: NCG [Nines compliment gate]:
our gratitude to our respective faculty and our parents for
27) SBV Gate: supporting this work.
SBV gate is a 5 x 5 reversible gate. The fig 27 shows the REFERENCES
proposed reversible logic gate which can individually work
[1] R. Landauer, ―Irreversibility and Heat Generation in the
as a nines complementer with one garbage output [31]. Computational Process‖, IBM Journal of Research and
Development, 5, pp. 183-191, 1961.
[2] C.H. Bennett, ―Logical Reversibility of Computation‖, IBM
J.Research and Development, pp. 525-532, November 1973.
[3] Vlatko Vedral, Adriano Bareno and Artur Ekert, ―QUANTUM
Networks for Elementary Arithmetic Operations‖, arXiv:quantph/
9511018 v1, nov 1995.
422
International Journal of Emerging Technology and Advanced Engineering
Website: www.ijetae.com (ISSN 2250-2459, ISO 9001:2008 Certified Journal, Volume 3, Issue 3, March 2013)
[4] Perkowski, M., A. Al-Rabadi, P. Kerntopf, A. Buller, M. [20] T.Toffoli,‖Reversible Computing‖ Tech memoMIT/LCS/TM-151,
Chrzanowska-Jeske, A. Mishchenko, M. Azad Khan, A. Coppola, MIT Lab for Computer Science 1980.
S.Yanushkevich, V. Shmerko and L. Jozwiak, ―A general [21] Fredkin E. Fredkin and T. Toffoli,‖Conservative Logic‖, Int’l J.
decomposition for reversible logic‖, Proc. RM’2001, Starkville, pp: Theoretical Physics Vol 21, pp.219-253, 1982
119-138, 2001..
[22] Peres, ―Reversible Logic and Quantum Computers‖, Physical review
[5] Perkowski, M. and P. Kerntopf, ―Reversible Logic. Invited tutorial‖, A, 32:3266- 3276, 1985.
Proc. EURO-MICRO, Sept 2001, Warsaw, Poland.
[23] Rakshith Saligram, Rakshith T.R, ―Novel Code Converter
[6] Hafiz Md. Hasan and A.R. Chowdhury, ―Design of Reversible Employing Reversible logic‖,Volume 52– No.18, August 2012.
Binary Coded decimal Adder by using Reversible 4 – bit Parallel
[24] Majid Mohammadi, Mohammad Eshghi, Majid Haghparast and
Adder‖, VLSI Design 2005, pp. 255 – 260, Kolkata, India, Jan 2005.
Abbas Bahrololoom,‖Design and Optimization of Reversible BCD
[7] B.Raghu kanth, B.Murali Krishna, M. Sridhar, V.G. Santhi Swaroop Adder/Subtractor Circuit for Quantum and Nanotechnology Based
―A DISTINGUISH BETWEEN REVERSIBLE AND Systems‖, World Applied Sciences Journal 4 (6): 787-792, 2008
CONVENTIONAL LOGIC GATES ‖, International Journal of ISSN 1818-4952 © IDOSI Publications, 2008
Engineering Research and Applications (IJERA) ISSN: 2248-9622
[25] D.P.Vasudevan, P.K.Lala, J.Di and J.P.Parkerson, ― Reversible-
www.ijera.com Vol. 2, Issue 2,Mar-Apr 2012, pp.148-151
logic design with online testability‖, IEEE Trans. on Instrumentation
[8] Babu HMH, Islam MR, Chowdhury AR, Chowdhury SMA. and Measurement, vol.55., no.2, pp.406- 414, April 2006.
―Synthesis of full-adder circuit using reversible logic‖, 17th
[26] Nagamani A N#1, Jayashree H V#1,H R Bhagyalakshmi ―Novel
International Conference on VLSI Design 2004, 757-60.
Low Power Comparator Designusing Reversible Logic Gates‖,
[9] Ashis Kumer Biswas, Md. Mahmudul Hasan, Moshaddek Hasan, Indian Journal of Computer Science and Engineering (IJCSE)
Ahsan Raja Chowdhury and Hafiz Md. Hasan Babu. ―A Novel
[27] V. Rajmohan, Member IACSIT, V. Renganathan, and M. Rajmohan
Approach to Design BCD Adder and Carry Skip BCD Adder‖. 21st
―A Novel Reversible Design of Unified Single Digit BCD Adder-
International Conference on VLSI Design, 1063-9667/08 $25.00 ©
Subtractor‖, International Journal of Computer Theory and
2008 IEEE DOI 10.1109/VLSI.2008.37.
Engineering, Vol. 3, No. 5, October 2011
[10] Abu Sadat Md. Sayem, Masashi Ueda.‖ Optimization of reversible
[28] X. Susan Christina, M.Sangeetha Justine, K.Rekha, U.Subha and
sequential circuits‖. Journal of Computing, Volume 2, Issue 6, June
R.Sumathi, ―Realization of BCD adder using Reversible Logic‖,
2010, ISSN 2151-9617.
International Journal of Computer Theory and Engineering, Vol. 2,
[11] H.Thapliyal and N. Ranganathan, ―Design of reversible No. 3, June, 2010 1793-8201
sequentialcircuits optimizing quantum cost, delay and garbage
[29] K. Biswas, M. M. Hasan, A. R. Chowdhury, and H. M. Hasan
outputs,‖ ACMJournal of Emerging Technologies in Computing
Babu,―Efficient approaches for designing reversible binary coded
Systems, vol. 6, no.4, Article 14, pp. 14:1–14:35, Dec. 2010.
decimaladders,‖ Microelectron. J., vol. 39, no. 12, pp. 1693–1703,
[12] J.Smoline and David P.DiVincenzo, ―Five two-qubit gates are 2008.
sufficient to implement the quantum fredkin gate‖, Physics Review
[30] Sudharshan M, H R Bhagyalakshmi, M K Venkatesha, ― Novel
A, vol. 53, no.4, pp. 2855-2856,1996.
Design of one digit high speed Carry select BCD Subtractor using
[13] H.R.Bhagyalakshmi, M.K.Venkatesha,‖ Optimized Reversible BCD Reversible logic gates‖, International Journal of Emerging
adder using new Reversible Logic Gates‖, Journal of Computing, Technology and Advanced Engineering (ISSN 2250-2459, Volume
Vol 2, Issue 2, February 2010. 2, Issue 7, July 2012)
[14] M. Haghparast,K. Navi, ‖A Novel Reversible BCD Adder For [31] Md. Belayet Ali , Md. Mosharof Hossin and Md. Eneyat Ullah‖
Nanotechnology Based Systems‖, American Journal of Applied Design of Reversible Sequential Circuit Using Reversible Logic
Sciences 5 (3): 282‐ 288, 2008,ISSN 1546‐ 9239. Synthesis‖, International Journal of VLSI design & Communication
[15] Abu Sadat Md. Sayem, Masashi Ueda.‖ Optimization of reversible Systems (VLSICS) Vol.2, No.4, December 2011
sequential circuits‖. Journal ofComputing, Volume 2, Issue 6, June [32] B.Raghu kanth, B.Murali Krishna, M. Sridhar, V.G. Santhi
2010, ISSN 2151-9617. Swaroop,‖ A DISTINGUISH BETWEEN REVERSIBLE AND
[16] M. Mohammadi and M. Eshghi. On figures of merit in reversible and CONVENTIONAL LOGIC GATES‖, International Journal of
quantum logic designs. Quantum Information Processing, 8(4):297– Engineering Research and Applications (IJERA) ISSN: 2248-9622
318, Aug. 2009. Vol. 2, Issue 2,Mar-Apr 2012, pp.148-151
[17] Himanshu Thapliyal, Nagarajan Ranganathan, ―A New Reversible [33] Rashmi S, Praveen, and Tilak G, ―Design of Optimized Reversible
Design of BCD Adder‖ 978-3-9810801-7-9/DATE11/@2011 EDAA BCD Adder/Subtractor, IACSIT International Journal of
[18] R. Feynman,‖ Quantum Mechanical Computers‖, Optic News, Vol Engineering and Technology, Vol.3, No.3, June 2011.
11, pp 11-20 1985.
[19] Md. Belayet Ali , Md. Mosharof Hossin and Md. Eneyat Ullah,
―Design of Reversible Sequential Circuit UsingReversible Logic
Synthesis‖ International Journal of VLSI design & Communication
Systems (VLSICS) Vol.2, No.4, December 2011
423