Design of Universal Shift Register Using Reversible Logic

Similar documents
Quantum Cost Optimization for Reversible Carry Skip BCD Adder

A Novel Design of Reversible Universal Shift Register

Design of Reversible Logic based Basic Combinational Circuits

Design of a Compact Reversible Random Access Memory

Optimization of reversible sequential circuits

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

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

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

Analysis of Multiplier Circuit Using Reversible Logic

Design of Digital Adder Using Reversible Logic

Implementation of Optimized Reversible Sequential and Combinational Circuits for VLSI Applications

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

Downloaded from

Design of Reversible Sequential Circuit Using Reversible Logic Synthesis

Design and Synthesis of Sequential Circuit Using Reversible Logic

DESIGN OF 3:8 REVERSIBLE DECODER USING R- GATE

Realization of programmable logic array using compact reversible logic gates 1

Australian Journal of Basic and Applied Sciences. Implementation and Testing of Fredkin Gate based Sequential Circuits

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

On the Analysis of Reversible Booth s Multiplier

Design of Reversible Synchronous Sequential Circuits

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

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

Design of a compact reversible binary coded decimal adder circuit

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

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

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

FPGA IMPLEMENTATION OF BASIC ADDER CIRCUITS USING REVERSIBLE LOGIC GATES

DESIGN AND ANALYSIS OF A FULL ADDER USING VARIOUS REVERSIBLE GATES

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

Design and Implementation of Combinational Circuits using Reversible Gates

An Optimized BCD Adder Using Reversible Logic Gates

Design and Optimization of Asynchronous counter using Reversible Logic

Realization of 2:4 reversible decoder and its applications

A Novel Reversible Gate and its Applications

Design of Optimized Reversible Binary and BCD Adders

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

Reversible Circuit Using Reversible Gate

Power Minimization of Full Adder Using Reversible Logic

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

A NEW DESIGN TECHNIQUE OF REVERSIBLE GATES USING PASS TRANSISTOR LOGIC

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

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

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

Power Optimization using Reversible Gates for Booth s Multiplier

A novel design approach of low power consuming Decoder using Reversible Logic gates

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

ASIC Design of Reversible Full Adder/Subtractor Circuits

FULL ADDER/ SUBTRACTOR USING REVERSIBLE LOGIC

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

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

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

A New Design of Optical Reversible Adder and Subtractor Using MZI

REALIZATION OF EFFECTIVE REVERSIBLE DECODER BASED COMBINATIONAL CIRCUITS

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

BCD Adder Design using New Reversible Logic for Low Power Applications

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

Low Power and High Speed BCD Adder using Reversible Gates

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

Optimized Reversible Programmable Logic Array (PLA)

A NEW APPROACH TO DESIGN BCD ADDER AND CARRY SKIPBCD ADDER

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

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

International Journal of Scientific & Engineering Research, Volume 6, Issue 6, June ISSN

Design and Implementation of Nanometric Fault Tolerant Reversible BCD Adder

Design of Reversible Code Converters Using Verilog HDL

Design of Reversible Multiplier by Novel ANU Gate

An Efficient Reversible Design of BCD Adder

A Novel Ternary Content-Addressable Memory (TCAM) Design Using Reversible Logic

A NEW DESIGN TECHNIQUE OF REVERSIBLE BCD ADDER BASED ON NMOS WITH PASS TRANSISTOR GATES

Reversible Multiplier with Peres Gate and Full Adder.

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

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

Implementation of Reversible ALU using Kogge-Stone Adder

An Approach to Simplify Reversible Logic Circuits

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

EFFICIENT APPROACH FOR DESIGNING LOW POWER REVERSIBLE DECODER/ENCODER WITH LOW QUANTUM COST

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

Direct Design of Reversible Combinational and Sequential Circuits Using PSDRM Expressions

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

Literature Review on Multiplier Accumulation Unit by Using Hybrid Adder

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

ENERGY EFFICIENT DESIGN OF REVERSIBLE POS AND SOP USING URG

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

Online Testable Reversible Circuits using reversible gate

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

Transistor Implementation of Reversible Comparator Circuit Using Low Power Technique

Reversible Implementation of Ternary Content Addressable Memory (TCAM) Interface with SRAM

A New Approach for Designing of 3 to 8 Decoder and It s Applications Using Verilog HDL

Optimized Nanometric Fault Tolerant Reversible BCD Adder

Reversible Multiplier with Peres Gate and Full Adder

Available online at ScienceDirect. Procedia Computer Science 57 (2015 )

International Association of Scientific Innovation and Research (IASIR) (An Association Unifying the Sciences, Engineering, and Applied Research)

Quantum Cost efficient Reversible Multiplier

Design of Low Power Adder and Multiplier Using Reversible Logic Gates

OPTIMIZED MULTIPLIER USING REVERSIBLE MULTI- CONTROL INPUT TOFFOLI GATES

Reversible ALU Implementation using Kogge-Stone Adder

Carry Bypass & Carry Select Adder Using Reversible Logic Gates

Design of reversible MAC unit, shift and add multiplier using PSDRM technique

On Design of a Fault Tolerant Reversible 4-Bit Binary Counter with Parallel Load

Transcription:

International Journal of Engineering and Technology Volume 2 No. 9, September, 2012 Design of Universal Shift Register Using Reversible Logic 1 Md. Selim Al Mamun, 2 Indrani Mandal, 3 Md. Hasanuzzaman 1,2 Department of Computer Science and Engineering, Jatiya Kabi Kazi Nazrul Islam University, Bangladesh 3 Department of Computer Science and Engineering, Dhaka University, Bangladesh ABSTRACT Reversible sequential circuits are considered the significant memory block for their ultra-low power consumption. Universal shift register is an important memory element of the sequential circuit family. In this paper we proposed efficient design of reversible universal shift register that is optimized in terms of quantum cost, delay and garbage outputs. Appropriate theorems and lemmas are presented to clarify the proposed designs and establish its efficiency. Keywords: Flip-Flop, Garbage Output, Multiplexer, Reversible Logic, Reversible Gate, Shift Register, Quantum Cost. 1. INTRODUCTION In recent year reversible logic has been considered as an important issue for computer design. The primary reason for this is the increasing demands for lower power devices. It has been demonstrated by Landauer [1] that circuits and systems constructed using irreversible logic will result in power consumption and energy dissipation due to information loss and the loss of one bit of information dissipates kt*ln2 joules of heat energy, where k is Boltzmann s constant and T the absolute temperature at which computation is performed. Bennett [2] showed that to avoid the heat dissipation, circuits must be built using reversible logic gates only. Reversible computing does not result in information loss during the computation process. Thus, it naturally takes care of heating generated due to information loss. Despite the great potential of reversible logic and these endorsements from the leaders in the field, little work has been done in the area of sequential reversible logic. We studied the existing work in this area and proposed a new efficient design for universal shift register. For this we modified the existing Frekdin gate (FRG) in two ways and named Modified FRG1 to design efficient 4-to-1 multiplexer and Modified FRG2 to design D flip-flop. The main challenges of designing reversible circuits are to reduce the number of gates, garbage outputs, constant inputs, propagation delay and quantum cost. While designing the proposed universal shift register, we optimized the quantum cost, the number of garbage outputs and delay of the proposed design. This paper consists of the following sections: Section 2 describes some basic definitions related to reversible logic, Section 3 describes some popular reversible logic gates and their quantum representations, Section 4 describes our proposed modification on Frekdin gate (FRG), Section 5 presented the logic synthesis and design of our proposed Universal Shift Register, Section 6 compares our design with the existing designs available in literature and finally this paper is concluded with Section 7. 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 gate. 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 [3]. Reversible Gates are circuits in which the number of outputs and inputs are equal and there is a one to one mapping between the vector of inputs and outputs. 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 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 [4] 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. This definition is based on the assumptions that: (i) Each gate performs computation in one unit time and (ii) All inputs to the circuit are available before the computation begins. ISSN: 2049-3444 2012 IJET Publications UK. All rights reserved. 1620

In this paper, we use the logical depth as measure of the delay proposed by Mohammadi and Eshghi [5]. The delay of each 1x1 gate and 2 2 reversible gate is taken as unit delay 1. Any 3 3 reversible gate can be designed from 1 1 reversible gates and 2 2 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 3 3 reversible gate can be computed by calculating its logical depth when it is designed from smaller 1 1 and 2 2 reversible gates. The input vector, I v and output vector, O v for 3*3 Toffoli gate (TG) [7] is 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 Figure 2. 2.4 Quantum Cost The quantum cost of a reversible gate is the number of 1 1 and 2 2 reversible gates or quantum logic gates required in its design. The quantum costs of all reversible 1 1 and 2 2 gates are taken as unity [6]. In simple terms, the quantum cost of a reversible gate can be calculated by counting the numbers of NOT, Controlled-V, Controlled- V + and CNOT gates required in its implementation. 3. QUANTUM ANALYSIS OF DIFFERENT 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 The input vector, I v and output vector, O v for 2*2 Feynman Gate (FG) is 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 2*2 Feynman gate are shown in Fig 1. Figure 2. Block diagram of 3*3 Toffoli gate and. 3.3 Fredkin Gate The input vector, I v and output vector, O v for 3*3 Fredkin gate (FRG) [8] is 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 Figure 3. Figure 3. Block diagram of 3*3 Frekdin gate and 3.4 Peres Gate Figure 1. Block diagram of 2x2 Feynman gate and 3.2 Toffoli Gate The input vector, I v and output vector, O v for 3*3 Peres gate (PG)[9] is 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 Figure 4. ISSN: 2049-3444 2012 IJET Publications UK. All rights reserved. 1621

= (A, B, C) and O v = (P=, Q AB AC, R AC AB ). The quantum cost of Modified FRG2 gate is 5. Figure 4. Block diagram of 3*3 Peres and Equivalent quantum representation. 4. PROPOSED MODIFIED FREKDIN GATE 4.1 Modified FRG 1 Gate The input vector, I v and output vector, O v for 3*3 modified Fredkin Gate (Modified FRG 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 cost of Modified FRG1 gate is 4. (c) Figure 5. Block diagram of Modified FRG1, and (c) 4.2 Modified FRG 2 Gate The input vector, I v and output vector, O v for 3*3 modified Fredkin Gate (Modified FRG 2) is defined as follows: I v Figure 6. Block diagram of Modified FRG2 gate and 5. DESIGN OF REVERSIBLE UNIVERSAL SHIFT REGISTER In this section we presented novel designs of reversible universal shift register and its components that are optimized in terms of quantum cost, delay and garbage outputs. 5.1 Proposed Universal Shift Register Universal shift registers store binary data and can be shifted left or right when a clock signal is applied. All modes of operation such as serial-in serial-out (SISO), serial-in parallel-out (SIPO), parallel-in serial-out (PISO), parallel-in parallel-out (PIPO) can also be performed upon the occurrence of clock. Figure 7 shows our proposed universal shift register consists of 4 D flip-flop blocks and four 4-to-1 multiplexers. The four multiplexers have two common selection inputs S 1 and S 0. Input 0 in each multiplexer is selected when S 1 S 0 = 00, input 1 is selected when S 1 S 0 =01, and similarly for other two inputs. The functional characteristic of the register is given in Table 1. Table 1. Operations of Universal Shift Register Mode Control S 1 S 0 Register Operation 0 0 No change 0 1 Shift Right 1 0 Shift Left 1 1 Parallel Load When S 1 S 0 = 00, the present value of the register is applied to the D inputs of the flip-flops. This condition forms a path from the output of each flip-flop into the input of the same flip-flop, so that the output recirculates to the input in this mode of operation. When S 1 S 0 = 01 terminal 1 of the multiplexer inputs has a path to the D ISSN: 2049-3444 2012 IJET Publications UK. All rights reserved. 1622

inputs to the flip-flops. This causes right shift operation with the serial input transferred into flip-flop O 3. When S 1 S 0 = 01 shift left operation results with other serial input going into the flip-flop O 0. Finally when S 1 S 0 = 11, binary information in parallel input lines is transferred into register simultaneously during next clock pulse. 5.2 Proposed 4-to-1 Reversible Multiplexer The characteristic equation of a 4-to-1 multiplexer is which can be simplified as ( ) ( ). It can be realized by 3 Modified FRG1. The proposed 4-to- 1 reversible multiplexer is shown in Figure 8. Figure 8. Proposed 4-to-1 Reversible Multiplexer 5.3 Proposed D Flip-Flop Figure 7. Proposed Reversible Universal Shift Register The characteristic equation of gated D flip-flop is Q + =.D+.Q. The D flip-flop can be realized by one Modified FRG2 gate and one FG. It can be mapped with Modified FRG2 by giving, D and Q respectively in 1 st, 2 nd and 3 rd inputs of Modified FRG2 gate. The Figure 9 shows our proposed gated D flip-flop. Figure 9. Proposed gated D flip-flop For our shift register we need master slave D flip-flop with asynchronous inputs Set(S) and Reset(R). Our proposed Master Slave D flip-flop with asynchronous inputs is shown in Figure 10. ISSN: 2049-3444 2012 IJET Publications UK. All rights reserved. 1623

Improvement (%) 18 18 0 6.3 Evaluation of Proposed Reversible Universal Shift Register Figure 10. Proposed Master Slave D flip-flop with Asynchronous Inputs 6. RESULTS AND DISCUSSIONS 6.1 Evaluation of Proposed 4 to - 1 Multiplexer The proposed 4-to-1 Multiplexer has quantum cost 12, delay 12 and 5 garbage bits. The proposed design of 4-to- 1 Multiplexer achieves improvement ratios of 20%, 20% and 0% in terms of quantum cost, delay and garbage outputs compared to the design presented in existing [10]. The results are summarized in Table 2. Table 2. Comparison of 4-to-1 Multiplexer Design of 4-to-1 Multiplexer Quantum Cost Delay Garbage Outputs Proposed 12 12 5 Existing[10] 15 15 5 Improvement (%) 20 20 0 6.2 Evaluation of Proposed Master Slave D Flip-flop with Asynchronous Inputs The proposed Master Slave DFF with asynchronous inputs has quantum cost 14, delay 14 and 5 garbage bits. The proposed design of Master Slave DFF with asynchronous inputs achieves improvement ratios of 18%, 18% and 0% in terms of quantum cost, delay and garbage outputs compared to the design presented in existing [10]. The results are summarized in Table 3. Table 3. Comparison of Master Slave DFF with Asynchronous Inputs MSDFF (with Quantum Delay Garbage asynchronous inputs) Cost Outputs Proposed 14 14 5 Existing[10] 17 17 5 The proposed Reversible Universal Shift Register has quantum cost 114, delay 114 and 40 garbage bits. The proposed design of Reversible Universal Shift Register achieves improvement ratios of 21%, 21% and 0% in terms of quantum cost, delay and garbage outputs compared to the design presented in existing [10]. The improvement ratios compared to the design presented in existing [11] and [12] are 5% and 5% in terms quantum cost and delay. The results are summarized in Table 4. Table 4. Comparison of Reversible Universal Shift Register Design of Universal Shift Quantum Delay Garbage Register Cost Outputs Proposed 114 114 40 Existing[10] 144 144 40 Existing[11] 120 120 36 Existing[12] 120 120 29 Improvement (%) w.r.t [10] 21 21 0 Improvement (%) w.r.t [11] 5 5 - Improvement (%) w.r.t [12] 5 5-7. CONCLUSION Universal shift register is an important sequential memory element. In this paper we proposed a novel approach of designing an optimized reversible universal shift register with the help of proposed Modified FRG1 and Modified FRG2 gates. 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. 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] 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. ISSN: 2049-3444 2012 IJET Publications UK. All rights reserved. 1624

[4] Richard P.Feynman, "Quantum mechanical computers," Foundations of Physics, vol. 16, no. 6, pp. 507-531, 1986. [5] Mohammadi,M. and Mshghi,M, On figures ofmerit in reversible and quantumlogic designs, Quantum Inform. Process. 8, 4, 297 318, 2009 [6] 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 [7] Tommaso Toffoli, "Reversible Computing," Automata, Languages and Programming, 7th Colloquium of Lecture Notes in Computer Science, vol. 85, pp. 632-644, 1980. [8] Edward Fredkin and Tommaso Toffoli, "Conservative Logic," International Journal of Theoretical Physics, vol. 21, pp. 219-253, 1982. [9] A. Peres, "Reversible Logic and Quantum Computers," Physical Review A, vol. 32, pp. 3266-3276, 1985. [10] H. Thapliyal and A. P. Vinod, Design of reversible sequential elements with feasibility of transistor implementation In Proc. the 2007 IEEE Intl. Symp. On Cir.and Sys., pages 625 628, New Orleans, USA, May 2007. [11] Ashis Kumer Biswas, Lafifa Jamal, M. A. Mottalib1, Hafiz Md. Hasan Babu. Design of a Reversible Parallel Loading Shift Register.Dhaka Univ. J.Eng & Tech. vol 1(2) 1-5,2011. [12] D. Krishnaveni, M. Geetha Priya, A Novel Design of Reversible Universal Shift Register with Reduced Delay and Quantum Cost, Journal of Computing, Volume 4, Issue 2, February 2012, Issn 2151-9617. ISSN: 2049-3444 2012 IJET Publications UK. All rights reserved. 1625