Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Abstract
To implement reversible computation, estimate its cost, and to judge its limits, it is formalized in terms of
gate-level circuits. For example, the inverter (logic gate) (NOT) gate is reversible because it can be undone.
The exclusive or (XOR) gate is irreversible because its inputs cannot be unambiguously reconstructed from
an output value. However, a reversible version of the XOR gate – the controlled NOT gate (CNOT) – can be
defined by preserving one of the inputs. The three-input variant of the CNOT gate is called the Toffoli gate.
It preserves two of its inputs a, b and replaces the third c by c. (a . b). With c=0, this gives the AND function,
and with a\cdot b=1 this gives the NOT function. Thus, the Toffoli gate is universal and can implement
any reversible Boolean function (given enough zero-initialized ancillary bits). More generally, reversible
gates have the same number of inputs and outputs. A reversible circuit connects reversible gates without
fanouts and loops. Therefore, such circuits contain equal numbers of input and output wires, each going
through an entire circuit.
Reversible logic circuits were first motivated in the 1960s by theoretical considerations of zero-energy
computation as well as practical improvement of bit-manipulation transforms in cryptography and computer
graphics. Since the 1980s, reversible circuits have attracted interest as components of quantum algorithms,
and more recently in photonic and nano-computing technologies, where some switching devices offer no
signal gain. Surveys of reversible circuits, their construction and optimization as well as recent research
challenges are available.
Introduction to Reversible Circuits gate is called the Toffoli gate. It preserves two of its inputs
a, b and replaces the third c by c. (a . b). With c=0, this
To implement reversible computation, estimate its cost, gives the AND function, and with a\cdot b=1 this gives the
and to judge its limits, it is formalized in terms of gate- NOT function. Thus, the Toffoli gate is universal and can
level circuits. For example, the inverter (logic gate) (NOT) implement any reversible Boolean function (given enough
gate is reversible because it can be undone. The exclusive zero-initialized ancillary bits). More generally, reversible
or (XOR) gate is irreversible because its inputs cannot gates have the same numbers of inputs and outputs. A
be unambiguously reconstructed from an output value. reversible circuit connects reversible gates without fanouts
However, a reversible version of the XOR gate – the and loops. Therefore, such circuits contain equal numbers
controlled NOT gate (CNOT) – can be defined by preserving of input and output wires, each going through an entire
one of the inputs. The three-input variant of the CNOT circuit.
Corresponding Author: Ramesh Chandra Panda, School of Mechanical Engineering, Lingayas University, Faridabad, India.
E-mail Id: ramesh.panda@gnauniversity.edu.in
Orcid Id: https://orcid.org/0000-0002-0801-7961
How to cite this article: Sudhaka AB, Panda RC. Single Precision Reconfigurable Floating-Point Multiplier Using Reversible Logic. J
Adv Res Electro Engi Tech 2017; 5(1&2): 1-7.
Copyright (c) 2018 Journal of Advanced Research in Electronics Engineering and Technology (ISSN: 2456-1428)
Sudhaka AB et al.
J. Adv. Res. Electro. Engi. Tech. 2017; 5(1&2) 2
Reversible logic circuits were first motivated in the 1960s • The input vector can always be reconstructed from
by theoretical considerations of zero-energy computation the output vector.
as well as practical improvement of bit-manipulation
transforms in cryptography and computer graphics. Since Toffoli and Fredkin discovered reversible logic in the late 70s
the 1980s, reversible circuits have attracted interest as and early 80s. Any reversible logic gate can be characterized
components of quantum algorithms, and more recently by its number of inputs and outputs. A m*n gate has m
in photonic and nano-computing technologies, where inputs and n outputs. There are several 2*2 reversible
some switching devices offer no signal gain. Surveys of gates and all of them are linear. A gate is said to be linear
reversible circuits, their construction and optimization as when all its outputs are linear functions of input variables.
well as recent research challenges are available.
Implementation of Full-Adder Design Using
Fundamentals of Reversible Logic Reversible Gates
Landauer’s research in the early 1960s demonstrated The most conventional way to synthesize a logic circuit
that irreversible hardware computation, regardless of its is CMOS implementation. Reversible circuits can also be
realization technique, results in energy dissipation due to constructed using CMOS. The power consumption of logic
the information loss. It is proved that the loss of each one circuit implemented in CMOS of reversible circuit is not
bit of information dissipates at least KTln2 joules of energy guaranteed to be less than that of conventional circuit
(heat), where K=1.38×10−23m2kg−2K−1 (joules Kelvin−1) is the (non-reversible). The reason behind this is that the power
Boltzmann’s constant and T is the absolute temperature saved by the reversible property of a circuit is very less
at which operation is performed. Reversible logic circuits compared to the power consumption by any CMOS design.
(or gates) are information lossless. Hence, reversible logic Thus, to make use of this power saved due to reversibility,
circuits have theoretically zero internal power dissipation. In we need to have a technology which implements logic
1973, Bennett proved that to avoid KTln2 joules of energy circuits that would consume much less power compared to
dissipation in a circuit, it must be built using reversible current CMOS technology. CMOS technology can be used
logic gates. for functional testing and for comparing area and delay.
A circuit is said to be reversible if the input vector can be Three full adders can be constructed using different
uniquely determined from the output vector and there is a combinations of basic reversible gates, i.e., Toffoli, Fredkin
one-to-one correspondence between its input and output and Feynman gates.
assignments, i.e., not only the outputs can be uniquely
determined from the inputs but also the inputs can be • Two Toffoli gates and two Feynman gates give two
recovered from the outputs. Thus, the number of inputs garbage outputs.
and outputs in reversible logic circuits (gates) are equal. • Three Feynman gates and one Fredkin gate give two
Such circuits (gates) allow the reproduction of the inputs garbage outputs.
from observed outputs and we can recover the inputs • Five Fredkin gates give five garbage outputs.
from the outputs. The full adder which has been discussed further is made
Reversible circuits are circuits (gates) in which: using three Feynman gates and one Fredkin gate, which
has minimum area and complexity in comparison to above
• The number of input bits of a given reversible circuit three full adders as shown in Fig. 1. It has minimum number
is equal to the number of output bits. For example, of garbage outputs as compared to any other reversible
if a circuit with input vector is of length 5, then the full adder that produces two garbage outputs. The full
output vector length should be 5. adder output produces the same output (1, 0) for the three
• There should be one-to-one mapping between input distinct input combinations (0, 0, 1), (0, 1, 0) and (1, 0, 0).
and output vectors. No two or more than two input Therefore, to separate all the repeated values of outputs
vectors give the same output vector. S and Cout we need at least two garbage outputs.
A Feynman
B Gate
G1
Feynman Fr edkin
Gate Cout
Gat e
G2
C in
Feynman
0 Gate
Sum
Figure 1.Full Adder Using Three Feynman Gates and One Fredkin Gate
ISSN: 2456-1428
Sudhaka AB et al.
3 J. Adv. Res. Electro. Engi. Tech. 2017; 5(1&2)
Floating-Point Multiplication Algorithm real numbers in binary format; the IEEE 754 standard
presents two different floating-point formats, binary
Floating-point numbers are one possible way of representing interchange format and decimal interchange format.
Figure 2.1Flow Chart Describing the Single Precision Floating-point Multiplication Algorithm
ISSN: 2456-1428
Sudhaka AB et al.
J. Adv. Res. Electro. Engi. Tech. 2017; 5(1&2) 4
ISSN: 2456-1428
Sudhaka AB et al.
5 J. Adv. Res. Electro. Engi. Tech. 2017; 5(1&2)
Full Adder Using FTRG Gate input. Any arbitrary Boolean function can be implemented
by using FTRG, so it is called as universal gate. The proposed
A New 5×5 fault-tolerant reversible Gate, FTRG, is shown in gate is parity preserving. This can be verified by comparing
Fig. 2. This gate is not a one-through gate. From the truth the parity of the input to the parity of the output that is A
table, it can be observed that every output is having unique B C D E and P Q R S T. A full-adder can be realized
input. Input can be recovered from output or output from using FTRG as shown in Fig. 10.
ISSN: 2456-1428
Sudhaka AB et al.
J. Adv. Res. Electro. Engi. Tech. 2017; 5(1&2) 6
Figure 14.Methodology
Table 15
Conventional DKG Peres Fredkin FTRG TSG
Area (LUTS) 4357 4750 4395 4420 4403 4378
Speed (MHz) 16.6 18.77 16.47 23.46 16.584 16.668
Power (mW) 0.412 0.047 0.081 0.040 0.110 0.114
Methodology for Testing the Effects on implementing basic multipliers but not the floating-
point multipliers with reversible computing. In this project
The methodology for testing the effects of using reversible work, a floating-point single precision multiplier will be
logic in the given floating-point multiplier is best explained designed with Verilog and implemented on the FPGA.
through a flow chart: It can be concluded that the floating-point multiplier
shows significant improvement in terms of power and
Results improvements in certain cases in terms of area and speed,
The area and speed (delay) information can be noted from when implemented using reversible logic.
the synthesis report generated by the Xilinx synthesis tool. References
Power analysis is done using the Xilinx XPower tool.
1. Landuer R. Irreversibility and heat generation in the
Clearly, of the various implementations, the floating-point computing process. J. Res. Develop. 1961; 5: 183.
unit with reversible logic in almost all the chosen cases has 2. Bennet CH. Logical reversibility of computation. IBM
performed better in terms of power. However, there can J. Res. Dev. 1973; 6: 525.
be variations in area and speed since reversible logic uses 3. Shende VV, Markov IL, Bullock SS. Synthesis of quantum
more regular logic to satisfy and implement the reversible logic circuits. IEEE Trans. Comput.-Aided Des. Integr.
logic principles in the design. One more point to note is Circuits Syst. 2006; 25: 1000.
that this analysis is done on the FPGA platform that uses 4. Haghparast M, Jassbi SJ, Navi K et al. Design of a
LUTs and flip-flops. novel reversible multiplier circuit using HNG gate in
Conclusion nanotechnology. World Appl. Sci. 2008; 1(3): 974.
5. Landuer R. Irreversibility and heat generation in the
Floating-point implementation on FPGAs has been the computing process. J. Res. Develop. 1961; 5: 183.
interest of many researchers. Multiplier implemented 6. Bennet CH. Logical reversibility of computation. IBM
with the reversible logic can be conveniently modeled in J. Res. Dev.1973; 6: 525.
Verilog and tested on a FPGA. A lot of work has been done 7. Shende VV, Markov IL, Bullock SS. Synthesis of quantum
ISSN: 2456-1428
Sudhaka AB et al.
7 J. Adv. Res. Electro. Engi. Tech. 2017; 5(1&2)
logic circuits. IEEE Trans. Comput.-Aided Des. Integr. 12. Kerntopf P. A new heuristic algorithm for reversible logic
Circuits Syst. 2006; 25: 1000. synthesis. In Proceedings of the IEEE Design Automation
8. Haghparast M, Jassbi SJ, Navi K et al. Design of a Conference 2004; 834.
novel reversible multiplier circuit using HNG gate in 13. Fredkin E, Toffoli T. Conservative logic. Int. 1. Theor.
nanotechnology. World Appl. Sci. 2008; 1(3): 974. Phys. 1982; 21(3-4): 219-53.
9. Haghparast M, Navi K. A novel reversible full adder 14. Thaplyal H, Srinivas MB. Novel reversible multiplier
circuit for nanotechnology based systems. J. Applied architecture using reversible TSG gate. IEEE Int. Conf
Sci. 2007; 7: 3995. Computer Systems and Applications 2006; 100.
10. Toffoli T. Reversible computing. In Automata, Languages
and Programming. Springer-Verlag 1980; 632-44. Date of Submission: 2018-1-20
11. Sinha HP, Sayal N. Design of fault tolerant reversible Date of Acceptance: 2018-2-27
multiplier. IJSEE 2012; 1.
ISSN: 2456-1428