20240122123147FPGA-Supported HDL Approach To Implement Reversible Logic Gate-Based ALU - Pdf.crdownload
20240122123147FPGA-Supported HDL Approach To Implement Reversible Logic Gate-Based ALU - Pdf.crdownload
2023 11th International Conference on Internet of Everything, Microwave Engineering, Communication and Networks (IEMECON) | 978-1-6654-7512-9/23/$31.00 ©2023 IEEE | DOI: 10.1109/IEMECON56962.2023.10092307
Abstract— This manuscript banks on the design of produces three different outputs: smaller, more robust, and
reversible gates and implementation of an Arithmetic comparable to devices used in analog-based applications.
Logic Unit – 16 bit (ALU) utilizing Verilog with Xilinx
Although there might be uses for reversible computing in
ISE 14.7, Spartan 6 FPGA kit. The same functionality is transaction processing and computer security, its primary
compared with a basic logic gate-based ALU. Reversible long-term advantages will be realized in fields that desire
gates can produce a distinct output vector from each input high levels of energy effectiveness and significant
vector, and the opposite is also possible. Circuits with performance with speed [3,4].
irreversible gates suffer from data erosion. Power loss
results from a circuit's loss of data. In conclusion, gates
II. GATES WITH REVERSIBLE LOGIC OVER
with reversible logic are preferable over irreversible
IRREVERSIBLE COUNTERPARTS
counterparts. A library of reversible gates, comprising of
AND, OR, NAND, NOR, and XOR, using Verification Researchers have recently looked into several reversible
Logic Hardware Description Language (HDL) is logic gates and all solutions. Process enhancements
developed, which in turn contributes to the designing of ultimately come to an end. Energy use will grow
arithmetic and combinational logic like full adder, decoder unaffordable. Problems with heat dispersion will worsen. A
(2:4), decoder (3:8), multiplier, full subtractor, and traditional computer uses a lot of electricity—electron
comparator. processes in bulk. To perform a single logical process,
several electrons were employed.
Keywords—Verilog, Xilinx ISE, Toffoli Gates, FPGA
Spartan 6. III. METHODOLOGICAL ANALYSIS
With FPGA Spartan 6 and XILINX ISE version 14.7,
I. INTRODUCTION applications like complete adders and multiplexers are
implemented. A piece of software developed by Xilinx for
Modern computers squander a lot of power and storage the synthesis and evaluation of HDL designs is called Xilinx
space. Every instant, they discard millions of bits. These are ISE. The developer can use this tool to synthesize their
built on irreversible logic units, which have been designs, run time analyses, look at RTL diagrams, design
acknowledged for a significant period to be essentially responses to various stimuli, and work with the coder to
wasteful energy-wise. The optimum solutions are hence establish the intended device. A hardware kit called Spartan
reversible gates. Losses are kept to a minimum in circuits 6 FGPA is utilized to put developer designs into practice.
with reversible gates. The number of inputs and outputs in Utilizing VHDL and Verilog HDL, this kit is simple to use
these circuits will be identical, and the vectors of inputs and and can implement any complicated circuit [5].
outputs will be mapped one to one [1]. Examples of such
gates are Fredkin, Toffoli, Interaction, and Switch. Steps to follow in descending order:-
A full adder is a digital arithmetic logic circuitry that
1) A folder is created in a particular drive, and then the
accumulates n input bits along with a carry. Adder circuits
are included in a wide range of processing devices, not same is located as we enter the XILINX suite.
simply ALU-related tasks, to calculate various increment or 2) The new project will have a Spartan 6 with XC6SLX4
decrement calculations, addresses, and others. A device and TQG144 as the device and package and the language
designated as a multiplexer has numerous inputs but just one selected as Verilog.
output. After selecting one from the many analog and digital 3) The appropriate HDL code is written and simulated as
inputs, the detected inputs are then forwarded a single line behavioral in the new module.
[2]. A combinational logic circuit such as a binary decoder 4) Synthesis is done by forcing the inputs, henceforth
translates binary data from n number of inputs to a maximum generating the program file.
of 2n distinct outputs. In analogue decoders, the decoders are 5) The latter is configured, and the outputs are checked
utilized in the analog-to-digital transformation process. on the FPGA kit.
A full subtractor deducts n input bits while taking borrow
into account. They are employed in digital electronics IV. HDL SIMULATED REVERSIBLE LOGIC GATES
applications and calculations involving mathematical
operations. A combinational circuit identified as The reversible Toffoli logic generates the library, which
"Comparator-Comparator" analyzes n input bits and includes the Toffoli-based basic and universal gates.
Authorized licensed use limited to: VIT University- Chennai Campus. Downloaded on May 27,2023 at 08:54:54 UTC from IEEE Xplore. Restrictions apply.
According to elementary physics, each time a bit of data is
obliterated, energy should therefore be lost in a proportion
equal to kT ln 2 per bit purged, where k is the Boltzmann
constant and T is the absolute temperature (in Kelvin).
Because data erasure causes inevitable energy losses,
although all other energy loss techniques were removed from
any NAND-based circuit, the circuit would still lose energy
when it was in operation. The energy expenditures caused by (a)
logical irreversibility in NAND-based logic circuits
nowadays are eclipsed by other loss sources. The energy
losses caused only by information wiping, resulting from
employing irreversible logic gates, will eventually become
the main contributor as these other loss causes are subdued.
The difficulties of extracting this undesirable surplus heat
from deep inside the irreversible circuitry will now prevent
further downsizing of technology nodes if nothing is
(b)
considered today.
Execution of Libraries for the different logics: Toffoli-
based Basic (AND, OR), Universal Gates (NAND, NOR ),
and CNOT. The inputs are considered as A, B, and C for
every case [6-8]. Considering the library for all the gates
implemented by the Toffoli gates, also known as the
Controlled Controlled NOT gate (CCNOT), which is both
reversible and universal, as shown in Fig. 1(a). Reversibility
leads to no data loss, which finally contributes to no loss of (c)
power. Here the TRUE values of A and B will lead to the
flipping of C. Since A and B are still present and can be used
to reassemble C, this gate is reversible. Furthermore, since
we can convert this gate into a NAND gate, it is universal, as
depicted in Fig. 1(b). In building every plausible circuit, one
NAND is sufficient. But even with just one Toffoli gate, we
can effectively construct NOT, AND, and XOR. The NOT
specific case of NAND should be
acknowledged.Fig.1(c),(d),(e) shows the Toffoli NOT,
(d)
Toffoli AND, and Toffoli XOR, and Fig. 2(a), (b), (c), (d),
(e), and (f) displays the waveform simulated in Xilinx ISE
14.7 and further synthesized in FPGA Spartan 6.
(e)
(a) (b)
(f)
(c) (d) Fig.2. Simulated Waveforms for (a) Toffoli AND; (b)
CNOT; (c) Toffoli OR; (d) Toffoli NAND; (e) Toffoli
NOR; (f) Toffoli XOR
Authorized licensed use limited to: VIT University- Chennai Campus. Downloaded on May 27,2023 at 08:54:54 UTC from IEEE Xplore. Restrictions apply.
Therefore, the study of graphs and GNR used as connections
could be a further study of this research.
(c)
(d)
(e)
Fig.4. shows the logic diagram for a regular
Fig.3. Simulated Waveforms for (a) 2:4 Decoder; (b) 3:8 Decoder; (c) irreversible gate-based ALU capable of performing about
Full Adder; (d) Multiplexer; (e) Full Subtractor 16 instructions, such as the comparison as well as the basic
gate-related operations, i.e.:- AND, OR, NOT, and the
Scientists have recently looked into various reversible
universal gate based such as the NAND, NOR. We
nature logic gates and associated equivalents. Our solution
utilize 3*3 Toffoli gates in a 3×3 matrix. NOT
has the benefits of being deployed at the gate level and
gates cascade the reversible and function generator
having basic, straightforward logic that is simple to build.
and controlled unit to create the bidirectional Arithmetic
The circuits are created with the fewest possible gates. While
Logical Unit with the lowest possible expense, depicted in
we implemented using 2-3 (least) no of gates, such as 1 TR
Fig.5.. Additionally, cascading can be employed to
gate, 1 Feynman, and 1 BJN gate, the current comparator
construct the ALU units that can reverse any number of
designs utilize more no. of gates, including 8 to 9 TR gates in
bits, as shown in Fig.5. The ALU, in reversible mode
comparison. As indicated in the reference, full subtractors
undertake activities in the range of A7 to A0 and B7 to B0
and adders are created using nine gates, making the design
for A and B respectively.
challenging for simulation and coding. Three gates have
been simplified and integrated into our unique ways.
Authorized licensed use limited to: VIT University- Chennai Campus. Downloaded on May 27,2023 at 08:54:54 UTC from IEEE Xplore. Restrictions apply.
the same is "High." "Cin" and "Cout" denote the carry-in and
borrow-out, respectively, for the proposed circuit
VII. CONCLUSION
Authorized licensed use limited to: VIT University- Chennai Campus. Downloaded on May 27,2023 at 08:54:54 UTC from IEEE Xplore. Restrictions apply.
REFERENCES
[1] Shende, V. V., & Markov, I. L. (2008). On the CNOT-cost of
TOFFOLI gates. arXiv preprint arXiv:0803.2316.
[2] Bradley, Robert W., Martin Buck, and Baojun Wang. "Recognizing
and engineering digital-like logic gates and switches in gene
regulatory networks." Current opinion in microbiology 33 (2016): 74-
82.
[3] Geiger, Randall L., Phillip E. Allen, and Noel R. Strader. "VLSI
design techniques for analog and digital circuits." (1990): 612.
[4] Fan J, Ye X, Kim J, Archambeault B, Orlandi A. Signal integrity
design for high-speed digital circuits: Progress and directions. IEEE
Transactions on Electromagnetic Compatibility. 2010 Apr
1;52(2):392-400.
[5] Rose, Jonathan, Jason Luu, Chi Wai Yu, Opal Densmore, Jeffrey
Goeders, Andrew Somerville, Kenneth B. Kent, Peter Jamieson, and
Jason Anderson. "The VTR project: architecture and CAD for FPGAs
from verilog to routing." In Proceedings of the ACM/SIGDA
international symposium on Field Programmable Gate Arrays, pp.
77-86. 2012.
[6] Miller DM, Wille R, Sasanian Z. Elementary quantum gate
realizations for multiple-control Toffoli gates. In2011 41st IEEE
International Symposium on Multiple-Valued Logic 2011 May 23
(pp. 288-293). IEEE.
[7] Mičuda, M., Michal Sedlak, Ivo Straka, Martina Miková, M. Dušek,
M. Ježek, and J. Fiurášek. "Efficient experimental estimation of
fidelity of linear optical quantum Toffoli gate." Physical Review
Letters 111, no. 16 (2013): 160407.
[8] Thapliyal, and Vinod, A.P. "Design of Reversible Sequential
Elements with Feasibility of Transistor Implementation", IEEE
International Symposium on Circuits and Systems, 2007, DOI:
10.1109/ISCAS.2007.378815, pp.625-628.
Authorized licensed use limited to: VIT University- Chennai Campus. Downloaded on May 27,2023 at 08:54:54 UTC from IEEE Xplore. Restrictions apply.