0% found this document useful (0 votes)
38 views8 pages

Design and FPGA Implementation of Asynchronous Counters Using Reversible Logic Gates

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
38 views8 pages

Design and FPGA Implementation of Asynchronous Counters Using Reversible Logic Gates

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 8

See discussions, stats, and author profiles for this publication at: https://www.researchgate.

net/publication/326058101

Design and FPGA Implementation of Asynchronous Counters using Reversible


Logic Gates

Conference Paper · June 2014

CITATIONS READS

0 1,476

1 author:

Harishnaik K P
ITI Limited
14 PUBLICATIONS 12 CITATIONS

SEE PROFILE

All content following this page was uploaded by Harishnaik K P on 29 June 2018.

The user has requested enhancement of the downloaded file.


Design and FPGA Implementation of Asynchronous Counters using
Reversible Logic Gates
Harish Naik KP1, G.Jyothi2, Dr.K.N.Murulidhara3, Dr.M.Z.Kurian4

PG Student, Dept of E&C, SSIT, Tumkur, India1


Asst Prof, Dept of E&C, SSIT, Tumkur, India2
HOD, Dept of E&C, PESCE, Mandya, India3
HOD, Dept of E&C, SSIT, Tumkur, India4
Email: [email protected]

Abstract—The basic reversible logic gates are used for reversible


operation and can be used for reversible sequential circuit II. LITERATURE SURVEY
designing. When we say reversible computing, we mean
Landauer [1] determined that the amount of energy
performing computation in such a way that any previous state of
the computation can always be reconstructed, given a description dissipated to erase each bit of information is at least kTln2
of the current state. In recent years, reversible logic has many (where k is the Boltzmann constant i.e. 3 *10^12 joule at
applications in quantum computing, DNA computing and room temperature) during any computation the intermediate
nanotechnology. This paper proposes the design& bits used to compute the final result are erased this erasure of
implementation of four bit asynchronous using reversible T bits is one of the main reason for the power dissipation.
flip-flop. The coding is done in Verilog HDL and simulated and
synthesized in Xilinx 13.1 and modelsim 6.3c.we have used
Virtex 5 FPGA for implementation. The area and power analysis
C. H. Bennett [2] in 1973 discovered that the power
is done using Cadence Tool. We hope this paper will initiate a dissipation in any device can be made zero or negligible if the
new area of research in the field of reversible sequential circuit. computation is done using reversible model. He proved his
theory with the help of the turing machine which is a
Index Terms—Reversible Logic, Reversible Logic Gate, symbolic model for computation introduced by Turing.
T Flip-Flop, Reversible Counters. Bennett also showed that the computations that are
performed on irreversible or classical machine can be
I. INTRODUCTION performed with same efficiency on the reversible machine.
Reduction of power dissipation remains one of the major Based on the above concept the research on the reversibility
goals in the VLSI circuit design for many years. R.Landauer was started in 1980's.
demonstrated in early 1960s, that irreversible hardware
computation results in energy dissipation due to the In the year 1994 Shor [3] did a remarkable research work in
information loss, regardless of its realization technique [2]. It creating an algorithm using reversibility for factorizing large
is proved that the loss of each one bit of information number with better efficiency when compared to the classical
dissipates at least KTln2 joules of energy (heat), where K is computing theory. After this the work on reversible
the Boltzmann’s constant and T is the absolute temperature
computing was started by more people in different fields such
at which operation is performed [2]. Reversible logic circuits
as nanotechnology, quantum computers and CMOS VLSI.
have theoretically zero internal power dissipation since they
do not lose information. Bennett showed that in order to
avoid KTln2 joules of energy dissipation in a circuit, it must Edward Fredkin and Tommaso Toffoli [4, 5] presented the
be built using reversible logic gates [3]. The applications of concept of reversibility and introduced new reversible gates
reversible logic are quantum computation [12], optical known as Fredkin and Toffoli reversible gates. These gates
computing [13], ultra low power CMOS design [14] and have zero power dissipation and are used as universal gates
nanotechnology [15]. in the reversible circuits..

This paper is organized as follows. Section II presents the Peres [6] introduced a new gate known as peres gate. Peres
literature survey. Section III presents the basic definitions gate is also a 3*3 gate but it is not a universal gate like the
pertaining to reversible logic. Section IV discusses the Fredkin and Toffoli gate. Even though this gate is not
reversible logic gates. Section V discusses the universal gate it is widely used in many applications because
implementation part. Section VI discusses the testing and it has less quantum cost when compared to the universal gate.
results part. Section VII gives the comparative analysis. VIII The quantum cost of the Peres gate is 4.
applications and Section IX conclude/future work of the
paper. H Thalpliyal and N Ranganathan [7] invented a reversible
gate known as TR gate. The main objective of introducing
this reversible gate was to reduce the garbage output in a

International Conference on Information & Communication Engineering (ICICE-2014)


ISBN: 978-3-643-24819-08, Bangalore, 29th June, 2014
reversible circuit. Using the combination of Fredkin and III. BASIC DEFINITIONS PERTAINING TO
Feynman gate a new gate known as Sayem gate was REVERSIBLE LOGIC
developed by Sujata S. Chiwande Prashanth R. Yelekar [9]
sayem gate is a 4*4 reversible gate and is used in designing A. Reversible function
sequential reversible circuits. The multiple output Boolean function F(x1, x2,..., xn) of n
Boolean variable is called reversible if:
H Thapliyal and N Ranganathan [8] were the first people to
introduce the reversible logic to sequential circuits. They 1. The number of outputs is equal to the number of inputs.
were successful in implementing sequential circuit such as 2. Any output pattern has a unique pre-image.
D-latch, JK latch, T latch and SR latch using Fredkin and
Feynman gate. After this more research has been done on In other words, the reversible functions are those that
sequential circuits using reversible gates. perform permutations of the set of input vectors.
B. Reversible Logic Gate
A.V.Ananthalakshmi, G.F.Sudha [11] proposed a new 4x4
A reversible gate is a logical cell that has the N number of
reversible gate and it is being used to realize the D-latch and
inputs and N number of outputs with a one-to-one mapping
D-flip-flop in the reversible domain. The transistor between the input and output vector. For the logical cell to be
representation of the proposed reversible D-flip-flop is reversible the following two conditions are not permitted.
implemented using adiabatic logic. The proposed D-flip-flop
can generate both the outputs Q and Q’. Md. Selim Al 1. Direct fan-outs from the reversible gates.
Mamun, B. K. Karmaker [12] presented a research work on 2. Feedback from a gate output directly to its input.
the design and synthesis of sequential circuits and flip-flops
that are available in digital arena; and describes a new
The block diagram of irreversible XOR gate and reversible
synthesis design of reversible counter that is optimized in XOR gate is as shown in fig 1.
terms of quantum cost, delay and garbage outputs compared
to the existing designs. They proposed a new model of
reversible T flip-flop in designing reversible counter.

Sujata S. Chiwande , Shilpa S. Katre, Sushmita S. Dalvi; (a)


Jyoti C Kolte[13] presented the introduction of basics
reversible logic gates used for reversible operation & one of
the applications as Synchronous counter. In this paper, they
proposed comparison of synchronous & asynchronous
counter using Sayem reversible gate. (b)
Fig 1(a) Irreversible XOR gate (b) Reversible XOR gate
Tehniat Banu, Manjunath Kounte [14] in recent years, there C. The number of Reversible gates (N)
is a remarkable paradigm shift in computation effiency due to
This refers to the number of reversible gates used in circuit.
information lossless computation performed by the reversible
gates. The reversible logic means performing computation in D. The number of constant inputs (CI)
such a way that using the output the input can be constructed This refers to the number of inputs that are to be maintained
and the erasure of intermediate data and energy dissipation is constant at either 0 or 1 in order to synthesize the given
eliminated. The power dissipation, a major problem due to logical function.
scalability in the VLSI devices has been addressed by using
E. The number of garbage outputs (GO)
reversible logic.
This refers to the number of unused outputs present in a
reversible circuit. One cannot avoid the garbage outputs as
V. Rajmohan, Dr. V. Ranganathan [16] they proposed a
these are very essential to achieve reversibility.
reversible T-Flip-flop. Design of reversible asynchronous
and synchronous counters is also proposed in their paper. F. Quantum cost (QC)
The key contribution of their paper is the reversible This refers to the cost of the circuit in terms of the cost of a
realization of 4-bit Asynchronous and synchronous counters primitive gate. It is calculated by knowing the number of
by using proposed reversible gates and the existing one. The primitive reversible logic gates (1*1 or 2*2) required to
proposed counter designs have the applications in building realize the circuit.
reversible ALU, reversible processor etc.
G. Flexibility
And this paper proposes a concept on efficient and This refers to the universality of a reversible logic gate in
optimized reversible sequential circuit design of realizing more functions.
asynchronous and synchronous counters.

International Conference on Information & Communication Engineering (ICICE-2014)


ISBN: 978-3-643-24819-08, Bangalore, 29th June, 2014
H. Gate Level
This refers to the number of levels in the circuit which are
required to realize the given logic functions.
I. Hardware Complexity
This refers to the total number of logic operation in a circuit.
Means the total number of AND, OR and EXOR operation in
a circuit.
J. Design constraints for Reversible Logic circuits Fig 4 Block Diagram of Proposed T Flip-Flop
In the design of any reversible logic circuits the following
points must be considered to achieve an optimized circuit.
i. Fan-out is not permitted.
ii. Minimum quantum cost.
iii. Garbage outputs must be minimum.
iv. Constant inputs must be minimum.
v. Minimum number of logic depth or gate levels.
vi. Minimum delay.

Fig 5 Reversible Positive Edge Triggered T Flip-Flop


IV. REVERSIBLE LOGIC GATES

A. B. Design of Reversible Asynchronous Counters


A reversible logic gate has equal number of input and output
terminals and there is one to one mapping between them.
Again we can say, gate is reversible if we can determine input A counter, by function, is a sequential circuit consisting a set
vector from output vector and vice-versa. Reversible gate of flip flops connected in a suitable manner to count the
should practically loose very little amount of energy. Fan-out sequence of the input pulse presented to it in digital form. In
is not allowed in reversible circuits however fan-out can be a asynchronous counters, the output transition of one flip flop
achieved using additional gates. In this paper we have serves as a source for triggering other flip flops [22].
discussed basic reversible gates like Feynman gate, Fredkin
gate, Toffoli gate, Peres gate and Sayem gate. Which we have a. Proposed 4-bit Reversible Asynchronous up Counter
used in implementing reversible sequential circuits.
The reversible design of the 4-bit asynchronous up counter is
shown in fig 6. At the output of each reversible T flip flop, the
A P=A Feynman gate is used for the complemented Q output with
Feynman the input B=1, these complemented Q outputs of each T flip
gate Q=A xor B flop trigger the subsequent T flip flop and the reversible
B
design performs the up counter design [22].
Fig 2 Feynman gate

Fig 3 SVS gate

V. REVERSIBLE SEQUENTIAL CIRCUITS IMPLEMENTATION

A. T Flip-flop using SVS gate

A flip flop is a bi-stable multivibrator. A flip flop has only


two states. In this section we propose the realization of T flip
flop using reversible SVS gate. The reversible design is
shown in fig 5. And corresponding block diagram is shown Fig 6 Proposed 4-bit Reversible Asynchronous up Counter
in fig 4. The reversible realization of T flip flop has one
constant input and it produces the garbage outputs [22].

International Conference on Information & Communication Engineering (ICICE-2014)


ISBN: 978-3-643-24819-08, Bangalore, 29th June, 2014
b. Proposed 4-bit Reversible Asynchronous down Counter VI. TESTING AND RESULTS

The reversible design of the 4-bit asynchronous up counter is In the following sections, simulation results and FPGA
shown in fig 7. At the output of each reversible T flip flop, the implementation results using Chipscope pro analyzer of T
Feynman gate is used for the complemented Q output with flip-flop and Synchronous and Asynchronous counters are
the input B=0, these complemented Q outputs of each T flip shown.
flop trigger the subsequent T flip flop and the reversible
design performs the up counter design [22].
A. Proposed Reversible T Flip-flop using SVS gate

Fig 9 Simulation result of Proposed Reversible T flip-flop using SVS gate

Fig 7 Proposed 4-bit Reversible Asynchronous down Counter B. Proposed Design of Reversible Asynchronous Counters

c. Proposed 4-bit Reversible Asynchronous up/down Counter a. Proposed 4-bit Reversible Asynchronous up Counter

The implementation of reversible asynchronous Up/Down


Counter is shown in Fig 8. The Up/Down operation of this
reversible circuits is controlled by the control input UP/DOWN.
For UP operation, the control input should be 1 and for down
operation, the control input should be 0 [22].

Fig10 Simulation result of Proposed Reversible Asynchronous up Counter

Fig 8 Proposed 4-bit Reversible Asynchronous Up/down counter

International Conference on Information & Communication Engineering (ICICE-2014)


ISBN: 978-3-643-24819-08, Bangalore, 29th June, 2014
c. 4-bit Reversible Asynchronous up/down Counter

Fig 11 Output results of Reversible Synchronous up Counter on FPGA using


Chipscope pro analyzer.

b. Proposed 4-bit Reversible Asynchronous down Counter


Fig 14 Simulation result of Proposed Reversible Asynchronous up/down
counters

Fig 12 Simulation result of Proposed Reversible Asynchronous down


Counter
Fig 15 Output results of Proposed Reversible Asynchronous up/down
counter on FPGA using Chipscope pro analyzer.

VII. COMPARATIVE ANALYSIS

Table I Comparative result analysis of different counter

Proposed design No of Garbage Constant


(counters) Gate outputs inputs

Async up 7 8 7

Fig 13 Output results of Proposed Reversible Asynchronous down Async down 7 8 7


Counter on FPGA using Chipscope pro analyzer.

Async up/down 7 8 7

International Conference on Information & Communication Engineering (ICICE-2014)


ISBN: 978-3-643-24819-08, Bangalore, 29th June, 2014
designs. The counters designs have applications in building
reversible processor, reversible Johnson & ring counter,
Table II Cadence tool power analysis building reversible ALU, reversible processor.
Instance Cells Leakage Dynamic Total The design can further be extended to develop efficient
reversible counters and reversible sequential circuits.
(counter) Power Power Power
(nW) (nW) (nW) ACKNOWLEDGMENT
Async 24 17.61 2125.0 2142.6
We would like to express our sincere thanks to the
down anonymous reviewers for their critical suggestions which
Async 27 17.72 2825.9 2843.6 helped in improving the manuscript and also we express our
gratitude to our respective faculty and our parents for
up supporting this work.
Async 27 20.29 3969.6 3989.9
REFERENCES
up/down
[1] Landauer .R, “Irreversibility and heat generation in the computing
process”, IBM J. Research and Development,Vol.5, Issue 3, July 1961.

Table III Cadence tool area analysis [2] Bennett C.H., “Logical reversibility of Computation”, IBM J.Research
Instance Cells Cell Area and Development,Vol.14, Issuse 6, Nov 1973.

(Counter)
[3] P. Shor, “Algorithms for quantum computation: discrete log and
Async down 24 91 factoring”, Proc. 35th Annual Symp. On Found. Of Computer Science ,
IEEE Computer Society, Los Alamitos, 1994.
Async up 27 94
[4] T. Toffoli., “Reversible Computing”, Tech memo MIT/LCS/TM-151,
Async up/down 27 102 MIT Lab for Computer Science . 1980.

[5] E. Fredkin and T. Toffoli, “Conservative logic”, Int. J. Theor. Phys., vol.
21, 1982.
VIII. APPLICATIONS
[6] A. Peres, “Reversible Logic and Quantum Computers”, Physical Review
A, vol. 32, 1985.
Reversible computing may have applications in computer
security and transaction processing, but the main long-term
[7] H Thapliyal and N Ranganathan, “Design of Efficient Reversible Binary
benefit will be felt very well in those areas which require high Subtractors Based on a New Reversible Gate”, IEEE Proceedings of the
energy efficiency, speed and performance .it include the area Computer Society Annual Symposium on VLSI, 2009.
like
 Low power CMOS. [8] H Thapliyal and N Ranganathan, “Design of Reversible Latches
Optimized for Quantum Cost, Delay and Garbage Outputs”, Proceedings
 Quantum computer. of Twenty Third International Conferences on VLSI Design, 2010.
 Nanotechnology.
 Optical computing. [9] Sujata S. Chiwande and Prashanth R. Yelekar, “Design of sequential
 DNA computing. circuit using reversible logic”, IEEE-International Conference Advances
in Engineering, Science and Management (ICAESM -2012) March30,
 Computer graphics. 31, 2012.
 Communication. [10] M. L. Chuang and C.Y. Wang, “Synthesis of reversible sequential
 Design of low power arithmetic and data path for elements”, ACM journal of Engineering Technologies in Computing
digital signal processing (DSP). Systems (JETC), vol. 3, no. 4, 2008.

 Field Programmable Gate Arrays (FPGAs) in CMOS


[11] A.V.Ananthalakshmi, G.F.Sudha , Design of 4-Bit Reversible Shift
technology. Registers, Wseas Transactions on Circuits and Systems, Issue 12, Volume
12, December 2013.

IX. CONLUSION AND FUTURE SCOPE [12] Md. Selim Al Mamun, B. K. Karmaker, “Design of Reversible Counter”,
International Journal of Advanced Computer Science and Applications
(IJACSA), Vol. 5, No. 1, 2014.
Reversible logic is very important for low power design.
Most of the attempts on reversible logic design concentrate [13] Sujata S. Chiwande , Shilpa S. Katre, Sushmita S. Dalvi; Jyoti C Kolte,
on reversible combinational logic design. Only a few “Performance Analysis of Sequential Circuits using reversible logic”,
International Journal of Engineering Science and Innovative Technology
attempts were made on reversible sequential circuit design. (IJESIT), Volume 2, Issue 1, January 2013.
This project has designs of reversible asynchronous counter
using reversible T Flip-flop. [14] Tehniat Banu, Manjunath Kounte, “Performance Analysis of Irreversible
The implemented counters power and area is also and Reversible Counter”, Edition on Reconfigurable Computing -
calculated using Cadence tool and they all have low power Embedded, FPGA based, VLSI and ASIC Designs, June 2013.

International Conference on Information & Communication Engineering (ICICE-2014)


ISBN: 978-3-643-24819-08, Bangalore, 29th June, 2014
[15] Majid Haghparast, 2Mohammad Samadi Gharajeh, “Design of a
Nanometric Reversible 4-Bit Binary Counter with Parallel Load”,
Australian Journal of Basic and Applied Sciences, 2011.

[16] V. Rajmohan, Dr. V. Ranganathan, “Design of Counters Using


Reversible Logic”,IEEE 3rd International Conference of Electronics
computer Technology (ICECT), Vol.5. 2011.

[17] Himanshu Thapliyal and M.B Srinivas, “A Beginning in the Reversible


Logic Synthesis of Sequential Circuits”, Proceeding of Militarry and
Aerospace Programming Logic Devices International Conferences.2005.

[18] SKS Har,V. Kamakoti, “Efficient Building Blocks for Reversible


Sequential Circuit Design”, IEEE 49th International Midwest Symposium
on Circuits and Systems, Vol.1,2006.

[19] J. E. Rice, “A New Look at Reversible Memory Elements”,Proceeding of


IEEE International Symposium on Circuits and Systems,Lethbridge
univ.,Alta, May 2006.

[20] Abu Sadat Md. Sayem, Masashi Ueda, “Optimization of reversible


sequential Circuits”, Journal of Computing, Vol 2, Issue 6, june 2010.

[21] KP, Harish Naik, G. Jyothi, K. N. Murulidhara, and M. Z. Kurian. "A


Survey on Synchronous and Asynchronous Counters using Reversible
Logic Gates."International Journal of Advanced Research in Electrical,
Electronics and Instrumentation Engineering (IJAREEIE),Vol.2, Issuse
3. Feb 2014..

International Conference on Information & Communication Engineering (ICICE-2014)


ISBN: 978-3-643-24819-08, Bangalore, 29th June, 2014

View publication stats

You might also like