Design and Implementation of Combinational Circuits Using Reversible Logic On FPGA SPARTAN 3E
Design and Implementation of Combinational Circuits Using Reversible Logic On FPGA SPARTAN 3E
INDIA
Abstract—Reversible logic is the emerging field for research circuits. Reversible Logic finds its own application in
in present era. The aim of this paper is to design and synthesize Quantum computing, Nano- technology, Optical computing,
a Programmable array Logic (PAL) and Programmable Logic Computer graphics and Low Power VLSI. Ralf Launduer
array (PLA) using reversible logic with minimum quantum [1] told that heat dissipation in irreversible circuits is not
cost. The PAL is a Programmable Logic device which consists because of the process involved in the operation, but it is
of programmable AND Gates and fixed OR gates array. The
due to the bits that were erased during the logical
PLA is the PLD which contains programmable AND array and
programmable OR array. The PLDs are the combinational computation process. He demonstrated Launder’s principle
circuits mainly used to realize Boolean functions on our which describes the lower theoretical limit of heat
interest. An n input and k output Boolean function f (a1, a2, dissipation in logical computation. Launder’s principle
a3, …., an) (referred as (n, k)) is said to be logically reversible states that losing a single information bit in the circuit
if and only if, the number of inputs are equal to the number of causes the smallest amount of heat in the computation which
outputs i.e., ‘n’ equals ‘k’ and the input pattern maps uniquely is equal to KTln2 joules where K is Boltzmann constant
maps the output pattern. The reversible logic must run both (approximately 1.38×10-23 J/K), T is Temperature and ln2 is
forward and backward in such a way that the inputs can also natural algorithm of 2 (approximately 0.69315). The amount
be retrieved from outputs. There are many reversible logic
of heat dissipated in simple circuits is very small but it
gates in literature like NOT gate, Feynman Gate (CNOT gate),
Double Feynman Gate, Peres Gate, TR gate, Seynman Gate becomes large in the complex circuits. It is necessary to
and many more. Fan-out and Feed-back are not allowed in notice that there is a direct relationship between the number
Logical Reversibility. To overcome the Fan out limitation, the of information bits erased to the amount of heat dissipated
signals from required output lines are duplicated to desired in the circuit. Later in 1973 C. H. Bennett [2] described that
lines using additional reversible combinational circuits. the Power dissipation due to the bit loss can be overcome if
Reversible Logic owns its applications in various fields which each and every computation in circuit was carried out in
include Quantum Computing, Optical Computing, Nano- reversible manner. Quantum networks are designed of
technology, Computer Graphics, low power VLSI etc., quantum logic gates. As each gate perform a unitary
Reversible logic is gaining its own importance in recent years
operation, KTln2 Joules energy dissipation wouldn’t occur
largely due to its property of low power consumption and low
heat dissipation. In this paper, the design of PAL and PLA if the computation is carried out in reversible manner. He
which has less heat dissipation and low power consumption is argued that for zero heat dissipation, the computation must
proposed. The designed circuits are analyzed in terms of be done in reversible manner. But if reversible logic is
quantum cost, garbage outputs and number of gates. The utilized to do logical computation, the heat dissipation will
Circuit has been designed and simulated using Xilinx software be less than KTln2 for one information bit in contrast to
and implemented on FPGA SPARTAN – 3E. Launder. Thus computation done in reversible manner
doesn’t require erasing of bits.
KEYWORDS: PAL, PLA, PLDS, Quantum Cost, Reversible Gates,
Garbage Outputs, Number of gates.
II.CONCEPT
thermodynamics which preserves the information bits 1. NOT GATE: The NOT GATE is the simple Reversible
without getting erased and guarantees that no heat is Logic gate. It is 1×1 Reversible Logic Gate with the quantum
dissipated. Certain limitations are to be considered when cost zero. The Not gate simply shifts the complementary of the
designing circuits based on reversible logic (i) Fan out is not input to output as shown in the figure2. It is the basic primitive
permitted in reversible logic and (ii) Feedback is also not gate which may involve in construction of reversible logic
permitted in reversible logic. In Reversible logic using gate, thus owing its own importance in determining the
outputs we can obtain full knowledge of inputs. To quantum cost of designed Reversible logic gate.
overcome the Fan-out limitation, by using additional
reversible combinational circuits, the output lines are
duplicated into required number of lines that are required to
drive the inputs of consecutive device. Similarly for Feed-
back limitation delay elements are used. Reversible logic Fig. 2 NOT Gate and its Truth Table
conserves information. 2. FEYNMAN GATE (FG): Feynman gate [4] is a 2×2
Some cost metrics [5][4] like Garbage outputs, Number reversible gate as shown in below figure3. The Feynman gate
of gates, Quantum cost, constant inputs are used to estimate is also called as CNOT gate i.e., controlled NOT gate. The
the performance of reversible circuits. Garbage outputs are Feynman gate is used to duplicate of the required outputs since
the extra outputs which help to make inputs and outputs Fan-out is not allowed in reversible logic gates. The Quantum
equal in order to maintain reversibility. They are kept alone Cost of FG is 1. This is also the primitive gate owing its
without performing any operations. Number of gates count importance in determining quantum cost metric.
is not a good metric since more number of gates can be
taken together to form a new gate. Quantum Cost is the
number of elementary or primitive gates needed to
implement a reversible logic gate. It is nothing but the
number of reversible gates (1×1 or 2×2) required to
construct the circuit. The quantum cost plays an important
role in logical reversibility. If the quantum cost is more, Fig. 3 Feynman Gate and its Truth Table
then the area of the circuit increases, thereby increasing the 3. DOUBLE FEYNMAN GATE (F2G): Double Feynman Gate
propagation delay. But quantum cost doesn’t impact heat [4] is a 3×3 reversible gate. The outputs P, Q, R are defined as
dissipation. Delay is one of the important cost metrics. A the functions of inputs as shown in the figure4. The quantum
Reversible circuit design can be modeled as a sequence of cost of F2G is 2. This gate can also be used for duplicating
discrete time slices and depth is summation of total time outputs.
slices. In Digital Electronics the binary decoder is a
combinational logic circuit that converts the binary integer
value to the associated output pattern. Various proposals are
given to design of combinational and sequential circuits in
the undergoing research.
In this paper the design of Programmable Array Logic
(PAL) and Programmable Logic array (PLA) using
reversible logic with minimum Quantum cost is proposed
and these circuits are implemented on FPGA SPARTAN – Fig.4 Double Feynman Gate and its Truth Table
3E. 4. TOFFOLI GATE (TG): Toffoli Gate [8] is 3×3 reversible
gate. The outputs P, Q, R are defined as the functions of inputs
III. REVERSIBLE LOGIC GATES as shown in the below figure5. The Quantum Cost of TG is 4.
The reversible logic gate consists of same number of
inputs and outputs as shown in the figure1. The basic
Reversible Logic Gates present in the literature are briefed
below. The gates that are suitable for the design with optimum
quantum cost can be selected.
7. TR GATE: TR Gate [5] is a 3×3 reversible gate. The outputs In reversible PLDs structure, the fuses are replaced with a
P, Q, R are defined as functions of inputs as shown in the reversible fuse which is made of reversible Feynman gate and
below figure8. The quantum cost of TRG gate is given by 4. fredkin gate as shown in the below figure10 (a). The Feynman
reversible gate acts as a duplicating circuit. It duplicates the
output line into two output lines out of which one output line
drives the next circuit and the other drives the second input of
2×1 reversible multiplexer. The first input of reversible
multiplexer is grounded so that when the enable signal ‘E’ is
low it acts as an ‘off’ switch. The reversible multiplexer is
made of Fredkin gate as shown in the below figure10 (b).
fixed connection and the ‘Q’ output of CNOT drives the input impedance value is not driven to OR gate which effects the
of OR gate. operation of OR gate. The fuses left without programming
drives the value zero to the reversible OR gate which doesn’t
affect the operation of OR gate. Contrast to OR gate, for AND
gate the left out inputs are driven with HIGH signal so that the
operation of AND gate is not affected.
The circuit diagram of a Programmable Logic Array
constructed using reversible logic to program Boolean
equations Eqn (1), Eqn (2), Eqn (3) is shown in the above
figure12. In PLA both the AND gate array and OR gate arrays
are programmable. Hence reversible fuses are used to program
the AND gate array and OR gate array of the device as shown
in the figure12.
Similarly the circuit diagram of a Generic Array Logic
constructed using reversible logic to program Boolean
equations Eqn(1), Eqn(2), Eqn(3) is shown in the below
figure13. In GAL the outputs are also programmable along
with the AND gate array and OR gate array. Hence it differs
from PLA. Therefore reversible fuses are used to program the
device as shown in the figure13.
The OR Gates and AND gates used in PLDs are made of The equations Eqn 1 to Eqn 3 are implemented using
Reversible logic. The ‘n’ input OR gate consists of ‘n’ number reversible PAL. The RTL schematic and simulated output for
of inputs. If any inputs are kept ideal without use they are to be Eqn1 to Eqn3 implemented using reversible PLA is shown in
driven with ground (binary value ‘0’) so that the high the figure14 and figure17 respectively.
The simulated output will be same for all the three devices,
which gives clear assistance that the circuits are operating with
genuine performance.
Fig 15 RTL Schematic of PLA implementing Boolean algebraic equations
Eqn(1) to Eqn(3)