Subtractor using a Novel Reversible - iarjset

Loading...

IARJSET

ISSN (Online) 2393-8021 ISSN (Print) 2394-1588

International Advanced Research Journal in Science, Engineering and Technology ISO 3297:2007 Certified Vol. 3, Issue 8, August 2016

Design of Parallel Adder/Subtractor using a Novel Reversible Logic Gate A. Bhagyashree1, Babu Gundlapally2, T. Sammaiah3 M.Tech in VLSI System Design, Vaagdevi College of Engineering, Warangal, Telangana, India1 Associate Professor, Department of ECE, Vaagdevi College of Engineering, Warangal, Telangana, India 2, 3 Abstract: Reversibility plays an important role when energy efficient computations are considered Parity preserving property can be used for this. Reversible logic is a new emerging technology with many promising applications in optical information processing, low power (Complementary Metal Oxide Semiconductor) CMOS design, (De Oxy Ribonucleic Acid) DNA computing, etc. In industrial automation, comparators play an important role in segregating faulty patterns from good ones. In previous works, these comparators have been implemented with more number of reversible gates and computational complexity. All these comparators use propagation technique to compare the data. This will reduce the efficiency of the comparators. To overcome the problem a new 5*5 parity preserving reversible gate is proposed in this paper, named as P2RG. The most significant aspect of this work is that it can work both as a full adder and a full subtractor by using one P2RG and Fredkin gate only. According to the control logic input the proposed design can works as an adder or a subtractor. Keywords: (De Oxy Ribonucleic Acid) DNA, (Complementary Metal Oxide Semiconductor) CMOS design, P2RG. I. INTRODUCTION Reversible circuits are composed of reversible gates. In this circuits there is no information loss. Reversible circuits can produce unique output from each input and vice versa, hence, there is a one-to-one correspondence between input and output vectors (Thapliyal and Srinivas, 2006). So a reversible logic gate has an equal number of inputs and outputs (k ×k) (Babu and Chowdhury, 2005).

fault tolerant reversible circuit is much more difficult than a conventional logic circuit (Parhami, 2006). In this paper, we propose a fault detection method based on parity preserving reversible logic gate.

Present irreversible technologies dissipate a lot of heat in terms of bit loss which reduces life of the circuit. All logical operations in today's classical computers are In ideal conditions, a reversible circuit has zero internal irreversible. power dissipation because, it does not lose information. Under R. Landauer‟s research in the early 1960s, the It means extraction of input from the respective output is amount of energy dissipated for every irreversible bit not possible. On the other hand, reversible computation operation is given by KTLn2 joules, where K = 1.3806505 has a salient feature of unique one to one mapping × 10!23 J/K is the Boltzmann‟s constant and T is the between inputs and outputs which reduces the major absolute temperature at which operation is performed. But problem of power dissipation with no information loss. in 1973, Bennett showed that KTLn2 joules of energy can be saved from a system as long as the system permits the A Reversible logic is characterized by: regeneration of the inputs from produced outputs 1. Equal number of inputs and outputs. (Haghparast et al., 2009; Haghparast and Navi, 2008a; 2. There exists one to one mapping between the respective inputs and outputs. Thapliyal and Gupta, 2006). 3. Loops and fan out are not allowed. A reversible gate with n-inputs and n-outputs is called a n × n reversible gate (Sastry et al., 2006). In a n × n In classical computers, only NOT gate performs reversible reversible function, there are 2n input rows and 2n output operation since it has an equal number of inputs and rows in its truth table. In fact the output rows are a outputs with their unique one to one mapping. Some permutation of the input rows in the truth table (Kerntopf, reversible gates have already been proposed in literature 2002; Hung et al., 2006). Direct fan-outs from the like the controlled-not (CNOT) (proposed by Feynman) reversible gate and feedbacks from a gate output directly [3], Toffoli and Fredkin gates [4], IG Gate[5] and MIG to its inputs are not allowed (Sastry et al., 2006). Classical gate [6]. Reversible gates have various application in the logic gates are called irreversible since they cannot designing of adders, subtractors, multipliers[7], [8] etc, uniquely reconstruct the input vector states from the same like classical computers. The main focus of this output vector states. Synthesis and designing of a paper is to design a circuit that can work as adder as well reversible gate is different from traditional logic gates as subtratctor simultaneously with minimum numbers of (Haghparast and Sheikh, 2011). Therefore, constructing a garbage outputs, constant inputs and area. Copyright to IARJSET

DOI 10.17148/IARJSET.2016.3831

171

IARJSET

ISSN (Online) 2393-8021 ISSN (Print) 2394-1588

International Advanced Research Journal in Science, Engineering and Technology ISO 3297:2007 Certified Vol. 3, Issue 8, August 2016

II. DESIGN CONSTRAINTS AND DEFINITIONS Minimizing the number of Ancillary (constant) Inputs: An extra, auxiliary bit or fixed qubit state that is added to the primary inputs in order to achieve the specific functionality but they need to be minimized for minimizing auxiliary storage.

Toffoli Gate (TG): Toffoli gate is a 3×3 two-through reversible gate as shown in Fig. 4. It means that two of its outputs are same as the inputs. This gate can be represented as: Iv = (A, B, C) , Ov = (P = A, Q = B, R = AB⊕C) where, Iv and Ov are input and output vectors respectively. Toffoli gate is one of the most popular reversible gates and it has quantum cost of 5 (Thapliyal and Ranganathan, 2009; Chung and Wang, 2007).

Minimizing the number of Garbage Outputs: Outputs that are not used further, needed only to make the function reversible (which results to minimize area and power). Peres Gate (PG): Peres gate also known as New Toffoli Gate (NTG) is a 3×3 reversible logic gate. It can be Minimizing the Gate Count: Number of gates that are described as: used to realize the system is gate count [9]. Iv = (A, B, C) , Ov = (P = A, Q = A ⊕ B, R = AB⊕C) where, Iv and Ov are input and output vectors Fault Tolerance: Any physical device while performing respectively. classical or quantum computation is subjected to error either due to noise in the environment or fault in the device. It can be detected by fault tolerant computing. Although reversibility is able to recover bit loss, but it is unable to detect bit errors in the circuit [10]. Recent digital circuit designing is now focusing on the fault tolerant reversible circuits.

Fredkin Gate (FRG): Fig.6 shows 3*3 Fredkin gate (FRG). It has A, B and input vector and output vector as P = A,Q= A’B ⊕ AC and R = A’C ⊕ AB. If control input A = ‟0‟ then inputs B and C are showed clearly in outputs, else if A = ‟1‟ then inputs B and C are swapped and showed in outputs. It has quantum cost Parity Preservation: It can be used for the fault tolerance of 5 (Haghparast and Sheikh, 2011; Saiful, 2010). computation. Faults in the circuit can be detected by comparing the parity of inputs and outputs. The idea of the New gate (NG): Another one of the interesting gate is parity preserving property in the design reversible logic New gate which is represented in Fig. 7. The advantage of the New gate is that, this gate can produce all the basic circuits was given by Parhami [11]. It is known that reversible gates have an equal number of gates. It has the quantum cost of 7 (Hasan et al., 2003; Haghparast and Navi, 2007). inputs and outputs. A⊕B⊕C⊕D=P⊕Q⊕R⊕S Where A, B, C and D are gate inputs and P, Q, R and S are Modified IG Gate (MIG): Fig.8 shows 4*4 Modified IG [11] gate. It has A, B, C and D input vector and output gate outputs. vector as P = A, Q = A ⊕ B, R = AB ⊕ C and S = AB’ ⊕ D. III. LITERATURE SURVEY Reversible logic gates: NOT gate: NOT gate is a 1×1 gate represented as shown in Fig.1. Since it is a 1×1gate, its quantum cost is zero (Thapliyal and Ranganathan, 2009; Rangaraju et al., 2010). Feynman Gate (FG): Among the existing 2×2 reversible gates, Feynman gate which is shown in Fig. 2 is the most important gate. It can be represented as Iv = (A, B) Ov= (P = A, Q = A⊕B), where, Iv and Ov are input and output vectors. Since it is a 2×2 gate, it has a quantum cost of 1 Thapliyal and Ranganathan (2009) and Saiful (2010). Feynman double Gate (F2G): Feynman double gate as a 3×3 reversible gate is shown in Fig. 3. It can be showed as: Iv = (A, B, C) , Ov = (P = A, Q = A⊕B, R = A⊕C) where, Iv and Ov are input and output vectors respectively. F2G gate is a Feynman gate with one more input and one more output which the control input „A‟ defines a second controlled NOT operation (Haghparast and Navi, 2008b). It has the quantum cost of 2. Copyright to IARJSET

DOI 10.17148/IARJSET.2016.3831

172

IARJSET

ISSN (Online) 2393-8021 ISSN (Print) 2394-1588

International Advanced Research Journal in Science, Engineering and Technology ISO 3297:2007 Certified Vol. 3, Issue 8, August 2016

Fig. 9: (a) 5*5 parity preserving reversible gate (P2RG) (b) P2RG as universal gate When input B= 1 and D= 0 then output Q performs NOR operation i.e. (A+C)‟. As it is known that NAND and NOR gates are universal gates so it can be concluded that it can be exploited to realize any arbitrary Boolean function. Truth table of this gate is shown in Table 1, where A, B, C, D and E are the inputs and P, Q, R, S and T are the outputs. It can be seen from the table that all the input and output vectors are uniquely related. The parity preserving property is promptly verified from the table by comparing the parity of the input to the parity of the output.

Fig.8 Modified IG Gate (MIG) IV. PROPOSED DESIGN A new 5*5 parity preserving reversible gate, P2RG is introduced in Fig.9 (a). • This gate is one through which means one of its inputs is also an output. • It is shown in Fig.9 (b) that Proposed gate is universal since it is able to perform NOR operation.

Copyright to IARJSET

DOI 10.17148/IARJSET.2016.3831

173

IARJSET

ISSN (Online) 2393-8021 ISSN (Print) 2394-1588

International Advanced Research Journal in Science, Engineering and Technology ISO 3297:2007 Certified Vol. 3, Issue 8, August 2016

A. Parity Preserving Half Adder/Subtract or The parity preserving half adder/subtractor is realized using one P2RG gate and one Fredkin gate as shown in Fig.10. Half adder and subtractor are the basic building block to design full adder and subtractor. We need two input i.e. A and B to design a half adder/subtractor. No previous carry or borrow is needed in this. So, this design has two inputs A and B and a control line Ctrl which will control mode of operation, i.e. when Ctrl is at logic 0, the circuit will act as half adder and when ctrl is at logic 1, the circuit will act a s half subtractor. It will give three constant inputs and four garbage bits g1 to g4. Boolean expressions to realize the functionality of half adder and half subtractor are given below:

Proposed circuit is optimized in terms of number of constant inputs and garbage outputs. Fig.11 shows the implementation of parity preserving full adder/ subtractor in which g1, g2, g3 and g4 are garbage outputs.

Sum/Difference = A ⊕ B Carry = AB Borrow = A‟B

Fig. 11: Parity Preserving Full Adder/Subtractor using P2RG gate C. Parity Preserving 16 -bit Parallel Adder/Subtractor

Fig. 10: Parity Preserving Half Adder/Subtractor using P2RG gate B. Parity Preserving Full Adder/Subtractor Many adder designs using reversible gates by several authors have been studied. The proposed design will work as adder as well as subtractor on a single unit. The parity preserving full adder/subtractor is realized using one P2RG gate and one Fredkin gate. In Fig.11, the circuit has three inputs A, B, Cin and a control line Ctrl which will control mode of operation. If Ctrl= 0, it will work as a full adder else it would function as a full subtractor. It has 2 constant inputs, C is set to 0 and E can be set to either 0 or 1. The basic Boolean expressions for sum/difference, carry and borrow are given below for full adder and subtractor: (Sum/Difference = (A ⊕ B ⊕ Cin)) (Carry = ((A ⊕ B).Cin) ⊕ AB)) (Borrow = ((A)‟.B) ⊕ (((A ⊕ B)‟).Cin)) Copyright to IARJSET

Fig. 12 Parity preserving 16 bit parallel Adder/ Subtractor using P2RG gate An n-bit parallel adder/subtractor will need a chain of (n1) full adders/subtractor and one half adder/subtractor. Therefore 16-bit parity preserving parallel adder/subtractor is designed by using one parity preserving half adder/subtractor (P2RG HAS) and fifteen parity preserving full adder/subtractor (P2RG FAS). It has two 16-bit numbers which are A0 to A15 and B0 to B15 as inputs and a control line ctrl which will control the mode of operation. When ctrl line is set at logic 0, the circuit will perform 16-bit addition operation and when ctrl line is set at logic 1, the circuit will perform 16-bit subtraction. The Carry/Borrow received after addition/ subtraction is represented by C1/B1 to C15/B15.Output carry/borrow of each block, i.e. C1/B1 to C15/B15 will be the third input for the next block. The outputs, Sum/Difference and Carry/Borrow are shown in the Fig.12 as S0/D0 to S15/D15 respectively. Fig.12 shows the parity preserving 16-bit parallel adder/subtractor.

DOI 10.17148/IARJSET.2016.3831

174

IARJSET

ISSN (Online) 2393-8021 ISSN (Print) 2394-1588

International Advanced Research Journal in Science, Engineering and Technology ISO 3297:2007 Certified Vol. 3, Issue 8, August 2016

V. RESULTS The entire architecture is modeled using Verilog. The coding is done on Xilinx ISE12.1 (xc6slx41-1ltqg144) at speed grade of -1. RTL Schematic view, Simulation and Timing report of 16 Bit Parallel Adder/Subtractor are shown in the following figures

Fig 15. Simulation result of Proposed 16 bit Adder/ Subtractor when ctrl=0 (it acts as Parallel Adder)

(a)

Fig 16. Timing report of Proposed 16 bit Parallel Adder/Subtractor VI. APPLICATIONS (b) Fig: 13 (a), (b) RTL Schematic of Proposed 16 bit parallel adder/subtractor

Reversible logic is one of the most vital issue at present time and it has different areas for its application, those are low power CMOS, quantum computing, nanotechnology, cryptography, optical computing, DNA computing, digital signal processing (DSP), quantum dot cellular automata, communication, computer graphics. It is not possible to realize quantum computing without implementation of reversible logic VII. CONCLUSION

In this study, we proposed a novel Parity Preserving Reversible gate. We also designed Parity Preserving HalfAdder/Subtractor circuit and a Parity Preserving reversible full-Adder/Subtractor circuit using P2RG gate. The proposed design can work as single unit that can acts as adder as well as subtractor depending upon our requirement. The proposed design offers less hardware complexity, less gate count, less garbage bits and constant Fig 14. Simulation Result of Proposed 16 bit Adder/ Subtractor when ctrl=1(it acts as a Parallel Subtractor) inputs. Copyright to IARJSET

DOI 10.17148/IARJSET.2016.3831

175

IARJSET

ISSN (Online) 2393-8021 ISSN (Print) 2394-1588

International Advanced Research Journal in Science, Engineering and Technology ISO 3297:2007 Certified Vol. 3, Issue 8, August 2016

VIII. FUTURE SCOPE In this paper we have worked on the Reversible logic gates on combinational circuits in future we can extend these to implement sequential circuits also. REFERENCES R. Landauer, “Irreversibility and heat generation in the computing process,” IBM journal of research and development, vol. 5, no. 3, pp. 183–191, 1961. [2] C. H. Bennett, “Logical reversibility of computation,” IBM journal of Research and Development, vol. 17, no. 6, pp. 525–532, 1973. [3] R. P. Feynman, “Quantum mechanical computers,” Foundations of physics, vol. 16, no. 6, pp. 507–531, 1986. [4] E. Fredkin and T. Toffoli, Conservative logic. Springer, 2002. [5] M. Islam, Z. Begum et al., “Reversible logic synthesis of fault tolerant carry skip bcd adder,” arXiv preprint arXiv: 1008.3288, 2010. [6] P. NG and M. Anandaraju, “Design and synthesis of fault tolerant full adder/subtractor using reversible logic gates.” [7] P. Garg and S. Saini, “A novel design of compact reversible sg gate and its applications,” in Communications and Information Technologies (ISCIT), 2014 14th International Symposium on. IEEE, 2014, pp. 400–403. [8] S. Saini and S. B. Mandalika, “A new bus coding technique to minimize crosstalk in vlsi bus,” in Electronics Computer Technology (ICECT), 2011 3rd International Conference on, vol. 1. IEEE, 2011, pp. 424–428. [9] USYD, “State Reduction,” http://www.ee.usyd.edu.au/tutorials/ digital tutorial/part3/st-red.htm, 2008, [Online; accessed 19-July2008]. [10] G. Paul, A. Chattopadhyay, and C. Chandak, “Designing parity preserving reversible circuits,” arXiv preprint arXiv: 1308.0840, 2013. [11] B. Parhami, “Fault-tolerant reversible circuits,” in Signals, Systems and Computers, 2006. ACSSC‟06. Fortieth Asilomar Conference on. IEEE, 2006, pp. 1726–1729. [12] P. Kaur and B. S. Dhaliwal, “Design of fault tolerant full adder/subtarctor using reversible gates,” in Computer Communication and Informatics (ICCCI), 2012 International Conference on. IEEE, 2012, [1]

BIOGRAPHIES A. Bhagyashree is pursuing her M.Tech in VLSI SYSTEM DESIGN at Vaagdevi College of Engineering, Warangal, Telangana, India. Babu Gundlapally is working as Associate Professor in Department of ECE at Vaagdevi College of Engineering, Warangal, Telangana, India. T. Sammaiah is working as Associate Professor in Department of ECE at Vaagdevi College of Engineering, Warangal, Telangana, India.

Copyright to IARJSET

DOI 10.17148/IARJSET.2016.3831

176

Loading...

Subtractor using a Novel Reversible - iarjset

IARJSET ISSN (Online) 2393-8021 ISSN (Print) 2394-1588 International Advanced Research Journal in Science, Engineering and Technology ISO 3297:2007 ...

702KB Sizes 0 Downloads 0 Views

Recommend Documents

Subtractor using a Novel Reversible Gate
significant aspect of this work is that it can work both as a full adder and a full subtractor by using one P2RG and Fre

A Novel Design and Implementation of Reversible Adder cum Subtractor
Peres gate is used as half adder in the design of multiplier using RACSG gate. III. DESIGN OF RACSG GATE: Figure 3: bloc

Design of Reversible Adder Subtractor Using Multifunction Reversible
Jan 2, 2016 - half subtractor, full adder, full subtractor, and switch controlled efficient reversible half and full add

Subtractor Using a Novel - Book Your Project
as full subtractor on a single unit. We need only a control gate to control the mode of operation for the addition / sub

subtractor circuits based on reversible gates - ijareeie
The reversible 4-bit full adder/ subtractor design unit is compared with conventional ripple carry adder, .... A four-bi

A New Design of Optical Reversible Adder and Subtractor Using MZI
(Naveen Raymond) is designed to implement Half adder and. Half subtractor, similarly a couple of NR Gates are used to re

Design of the Efficient Nanometric Reversible Subtractor Circuit
have inspected the design of reversible logic units, there is not much reported works on reversible subtractors. In this

An Improved Structure Of Reversible Adder And Subtractor - CiteSeerX
Fig.12 Proposed parity preserving reversible full-subtractor circuit. V. NUMERAL RESULT. A. Quantum cost-. 1) Quantum co

A Novel Design of SET-CMOS Half Subtractor and Full Subtractor
A Novel Design of SET-CMOS Half Subtractor and Full. Subtractor. A. Fathima Thuslim. Department of Electronics and Commu

Subtractor Subtractor Example: DIP-Switch Subtractor Example
Lecture 12 – Datapath Components. ▫ Subtractors. ▫ Two's Complement. ▫ Overflow. ▫ ALUs. ▫ Register Files. 2