FPGAImplementationof Synchronousand Asynchronous Counterusing Reversible Logic Gates
FPGAImplementationof Synchronousand Asynchronous Counterusing Reversible Logic Gates
on
Presented by
Harishnaik K.P
Contents
Introduction
Objective
Motivation
Problem statement
Solution
Methodology
Related work
System design
Hardware and software requirements
System implementation/ Simulation
Advantages
Applications
Conclusion/Future work
References
Introduction
Reversible Logic:
Reversible circuits are those circuits that do not erase
information.
Reversible circuits can generate a unique output vector
from each input vector, and vice versa.
In reversible circuits, there is a one-to-one mapping
between input and output vectors.
i1 O1
i2 O2 A gate with k inputs
i3 O3
Reversible and k outputs is
Gate called k*k gate.
iK-1 OK-1
iK OK
cont….
Equal number of input and output vectors.
One or more operation can implement in a single
unit is called Reversible Gate.
Reversible circuit should be designed using min
number of reversible logic gates.
The block diagram of classical XOR and reversible
XOR gate is as shown in figures.
Reversible logic definitions
Parameters for determining the complexity and
performance of circuits
1. The number of Reversible gates (N):
2. The number of constant inputs (CI):
3. The number of garbage outputs (GO):
4. Quantum cost (QC):
Objective
R.Landauer[1] has shown that for every bit of information
lost in irreversible logic, generates kTln2 joules of heat
energy.
Whenever a logic operation is performed, the computer
erases information. All these operations are irreversible
dissipating a lot of heat.
As Moore's law continues to hold, processing power
doubles every 18 months.
Cont..
Bennett[2] showed that zero power dissipation in logic
circuits is possible only if a circuit is composed of
reversible logic gates.
Reversible logic operation do not erase(lose) information
and dissipate less heat.
Reversible logic is likely to be in demand in high speed
power circuits.
Reversible circuits are high interest in low power CMOS
design etc..
Motivation
Reversible circuits dissipate less power than irreversible
circuits.
Reversible circuits can be used as a part of irreversible
computing devices to allow low-power design using
current technologies like CMOS.
Problem statement
Information loss = Energy loss
The loss of information is associated with laws of
physics requiring that one bit of information lost
dissipates k T ln 2 of energy,
where k is Boltzmann’s constant .
and T is the temperature of the system.
Solution to the problem
Solution = Reversibility
Interest in reversible computation arises
from the desire to reduce heat dissipation,
thereby allowing:
higher densities.
higher speed.
less power dissipation.
Methodology
Specification
Block Diagram
Logic Design
Verilog
Simulation
Synthesis
Implementation
Physical Dumping
Physical Testing
Related work
R.Landauer [1] showed the amount of energy dissipated for
every irreversible bit operation is given by KTln2.
Bennett showed that KTln2 energy dissipation would not
occur, if a computation is carried out in a reversible way[2].
Edward Fredkin and Tommaso Toffoli introduced new
reversible gates known as Fredkin and Toffoli gates[4,5].
Peres [6] introduced a new gates known as peres gate.
Prashanth R Yelekar designed sayem gate used for sequential
circuits[9].
cont..
H Ranganathan were first invented the D-latch, JK
latch etc [7,8].
first people to introduce the reversible logic to
sequential circuits in 2011[8].
Reversible sequential circuit can be constructed by
replacing flip-flops and gates of traditional design by
their reversible counter parts[9].
All the above works presents reversible design of
latches, flip-flops and counters[8,9,10].
System design
Design Constraints for Reversible Logic Circuits:
I. Avoid leading output signals of gates to more than
one input( Fan-out).
II. Should have minimum quantum cost.
III. Use minimum number of garbage outputs.
IV. Use minimum number of constant inputs.
V. Use minimum logic depth or gate levels.
VI. Use minimum number of reversible gates.
Basic reversible logic gates
Feynman Gate:
The input vector is I (A, B) and
The output vector is O (P, Q).
The outputs are defined by P=A, Q=A xor B.
Quantum cost of a Feynman gate is 1.
A B P Q +
0 0 0 0
A P=A
Feynman 0 1 0 1
Gate
B Q=A B 1 0 1 1
A B
1 1 1 0
Basic reversible logic gates(contd.)
AB C P QR
Fredkin Gate:
0 0 0 0 0 0
The input vector is I (A, B, C) and
the output vector is O (P, Q, R). 0 0 1 0 0 1
0 QT
1 QT+
T-FF with SVS gate:
Used to toggle the o/p
when i/p high & retains the
o/p when i/p is low.
realization of T-ff has only
One gate i.e SVS gate.
T flip flop design No of gates Garbage Constant
outputs inputs
Existing [11](using 3 3 2
SG and FG gate)
Proposed 1 2 1
Design(using SVS
gate)
Existing [16] 15 12 11
Existing [13] 19 20 8
Proposed design 7 8 7
Existing [16] 17 18 18
Proposed design 9 12 10
Improvement 1.88 1.5 1.8
factor w.r.t [16]
Proposed 4-bit Synchronous down Counter:
Existing [16] 16 16 17
Proposed 7 12 8
design
Improvement 2.28 1.33 2.12
factor w.r.t [16]
FPGA TOP MODULE IMPLEMENTATION:
Cadence power & area analysis:
Instance Cells Leakage(Power(nW)) Dynamic(Power(nW)) Total(Power(nW))
Power analysis
Instance Cells Cell Area
down_counter_async 24 91
up_counter_async 27 94
up_down_counter_async 27 102
up_counter_sync 26 95
down_counter_sync 30 100
Area analysis
Advantages
Less power dissipation.
Low power circuits.
High speed.
High performance.
High energy efficiency.
Increases portability of device.
Less delay.
Applications
Low power CMOS.
Quantum computing.
Nanotechnology.
Optical computing.
Signal processing (DSP).
DNA computing.
Computer graphics.
Communication.
Conclusion/Future work
Reversible logic is very important for low power design.
Most of the attempts on reversible logic design concentrate
on reversible combinational logic design.
Only a few attempts were made on reversible sequential
circuit design.
This project has proposed the designs 0f reversible
synchronous and asynchronous counter using reversible T
Flip-flop.
The designs of T-FF and counters are compared with
existing design for 3 parameter and found the
improvement over existing design by factor of 1 to 3.
cont…
The implemented counters power and area is also
calculated by using cadence tool and they all have
low power designs.
The proposed counters designs have applications
in building reversible processor, reversible jonshan
& ring counter etc.
The design can further be extended to develop
efficient reversible counters and reversible
sequential circuit as a future work.
References
1. landauer .r, “irreversibility and heat generation in the computing process”, ibm j. research and
development, pp. 183-191, 1961.
2. bennett c.h., “logical reversibility of computation”, ibm j.research and development, pp. 525-532,
1973.
3. p. shor, “algorithms for quantum computation: discrete log and factoring”, proc. 35th annual symp.
on found. of computer science (1994), ieee computer society, los alamitos, 124-34.
4. t. toffoli., “reversible computing”, tech memo mit/lcs/tm-151, mit lab for computer science (1980).
5. e. fredkin and t. toffoli, “conservative logic”, int. j. theor. phys., vol. 21, no. 3/4, pp.219 -253 1982.
6. a. peres, “reversible logic and quantum computers”, physical review a, vol. 32, pp. 3266-3276, 1985.
7. h thapliyal and n ranganathan, “design of efficient reversible binary subtractors based on a new
reversible gate”, ieee proceedings of the computer society annual symposium on vlsi, pp. 229-234
(2009).
8. h thapliyal and n ranganathan, “design of reversible latches optimized for quantum cost, delay and
garbage outputs”, proceedings of twenty third international conferences on vlsi design, pp. 235-
240(2010).
9. sujata s. chiwande and prashanth r. yelekar, “design of sequential circuit using reversible logic”, ieee-
international conference advances in engineering, science and management (icaesm -2012)
march30, 31, 2012.
10. m. l. chuang and c.y. wang, “synthesis of reversible sequential elements”, acm journal of engineering
technologies in computing systems (jetc), vol. 3, no. 4, 2008.
11. a.v.ananthalakshmi, g.f.sudha , “design of 4-bit reversible shift registers, wseas transactions
on circuits and systems”, issue 12, volume 12, december 2013.
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.
13. sujata s. chiwande , shilpa s. katre, sushmita s. dalvi; jyoti c kolte, “performance analysis of
sequential circuits using reversible logic”, international journal of engineering science and
innovative technology (ijesit), volume 2, issue 1, january 2013.
14. tehniat banu, manjunath kounte, “performance analysis of irreversible and reversible
counter”, edition on reconfigurable computing - embedded, fpga based, vlsi and asic designs,
june 2013.
15. majid haghparast, mohammad samadi gharajeh, “design of a nanometric reversible 4-bit
binary counter with parallel load”, australian journal of basic and applied sciences, 5(7): 63-71,
2011.
16. v. rajmohan, dr. v. ranganathan, “design of counters using reversible logic”, ©2011 ieee
17. himanshu thapliyal and m.b srinivas, “a beginning in the reversible logic synthesis of sequential
circuits”, @2005 ieee.
18. sks har,v. kamakoti, “efficient building blocks for reversible sequential circuit design”, ©2006
ieee.
19. j. e. rice, “a new look at reversible memory elements”,@2006 ieee,
20. abu sadat md. sayem, masashi ueda, “optimization of reversible sequential circuits”, journal of
computing, volume 2, issue 6, june 2010.
ANY QUERIES…??