Journal of Systems Engineering and Electronics (ISSN NO: 1671-1793) Volume 34 ISSUE 11 2024
Design of Low Power, Area Efficient 4-bit
Magnitude Comparator Using GDI logic
1st Aditya Manjunatha 2nd Shrinidhi Udupa 3rd Dr B S Kariyappa
Electronics and Communication Electronics and Communication Electronics and Communication
RV College of Engineering RV College of Engineering RV College of Engineering
Bengaluru, India Bengaluru, India Bengaluru, India
adityamanjunatha100@gmail.com udupashrinidhi2003@gmail.com kariyappabs@rvce.edu.in
Abstract—This paper introduces a distinct design for the 4-bit One way to reduce the power consumption is by using a dif-
Magnitude Comparator, which is used to compare two binary ferent arrangement of the transistors which will give the same
numbers for arithmetic and logical operations in a processor. functionality but with reduced power [2]. Gate Diffusion Input
The GDI logic technique employed in the proposed design
ensures low power consumption and efficient area utilization. (GDI) is one of those methods. Decreasing voltage can be
The algorithm of the GDI logic involves 2’s complement addition, an efficient means of lowering power consumption[3][4]. The
facilitating comparison and subtraction of inputs. Depending size of an integrated circuit (IC) is directly proportional to the
on the remainder, it determines the relationship between the number of transistors it contains. Comparator is widely used
inputs. The 4-bit Magnitude Comparator designed using con- in CPU, Microcontroller, Combinational and communication
ventional CMOS technique comprises 166 transistors. However,
in the proposed design, the transistor count is reduced to 62, systems [5]. The size of an integrated circuit (IC) is directly
resulting in decreased power consumption and area utilization. proportional to the number of transistors it contains. As the
Post-layout analysis reveals approximately 11.60% reduction in number of transistors increases, the physical area of the IC
power consumption and approximately 13.95% reduction in area generally increases as well, assuming that the transistor density
utilization with GDI logic compared to conventional logic through remains unchanged.
comprehensive simulations and performance evaluations, this
paper demonstrates the tangible benefits of adopting GDI logic
in the design of essential arithmetic and logical units within
processors. By reducing power consumption and area utilization II. CONVENTIONAL CMOS DESIGN OF 4- BIT COMPARATOR
while maintaining performance metrics, the proposed design
paves the way for more energy-efficient and compact computing The conventional algorithm of an N-bit comparator oper-
systems
Index Terms—Magnitude Comparator, GDI logic, Low Power, ates by comparing two numbers beginning from the most
Area Utilization significant bit (MSB). When comparing the MSB of two
numbers, if one is greater than the other, it can be inferred
I. I NTRODUCTION that one number is greater overall. If the MSBs are equal,
the comparison proceeds to the next higher bit, repeating the
process [6]. This method entails comparing the bits from MSB
A comparator is a device that evaluates two numbers, to least significant bit (LSB). These comparisons adhere to
usually holding one constant while the other changes. The specific conditions outlined in equations (1), (2), and (3). By
power consumption by the comparator will affect the device starting with the MSB, the algorithm effectively reduces the
performance. The power consumed is classified mainly into number of comparisons needed, as a significant difference at
two types namely static and dynamic. To minimize power any higher bit immediately determines the result, bypassing the
dissipation in VLSI design, several strategies can be employed. need to compare the remaining lower bits [7][8]. Additionally,
Reducing the supply voltage is an effective approach, poten- this method leverages a hierarchical decision-making process,
tially cutting power consumption by a factor of four with where each bit comparison provides a progressively narrower
a two-fold reduction in voltage, though performance may range of potential outcomes, ensuring an efficient and struc-
be impacted unless threshold voltage is scaled accordingly tured approach to determining the overall relationship between
[1]. Additionally, lowering physical capacitance is crucial, as the two numbers. This structured comparison ensures that the
dynamic power consumption depends on the capacitance being algorithm operates with a clear and logical flow, minimizing
switched. Furthermore, optimization across multiple design computational complexity and enhancing performance, espe-
process levels from system and algorithmic to circuit and cially for larger bit-width numbers where the benefits of early
layout can enhance low power VLSI design. termination of comparisons become more pronounced.
PAGE N0: 19
Journal of Systems Engineering and Electronics (ISSN NO: 1671-1793) Volume 34 ISSUE 11 2024
AeqB = (A3 ⊙ B3)(A2 ⊙ B2)(A1 ⊙ B1)(A0 ⊙ B0) (1)
(1)
AgtB = (A3 ⊙ B3)(A2 ⊙ B2)(A1 ⊙ B1)A0B0′
+(A3 ⊙ B3)(A2 ⊙ B2)A1B1′ + (A3 ⊙ B3)A2B2′
+A3B3′
(2)
AltB = (A3 ⊙ B3)(A2 ⊙ B2)(A1 ⊙ B1)A0′ B0
+(A3 ⊙ B3)(A2 ⊙ B2)A1′ B1 + (A3 ⊙ B3)A2′ B2
+A3′ B3
(3)
Fig. 1. Conventional design of 4-bit comparator
TABLE I
T RUTH TABLE FOR 4- BIT MAGNITUDE COMPARATOR
Comparing Inputs Output
A3, B3 A2, B2 A1, B1 A0, B0 A>B A<B A=B
A3 > B3 X X X H L L
A3 < B3 X X X L H L
A3 = B3 A2 > B2 X X H L L
A3 = B3 A2 < B2 X X L H L
A3 = B3 A2 = B2 A1 > B1 X H L L
A3 = B3 A2 = B2 A1 < B1 X L H L
A3 = B3 A2 = B2 A1 = B1 A0 > B0 H L L
A3 = B3 A2 = B2 A1 = B1 A0 < B0 L H L
A3 = B3 A2 = B2 A1 = B1 A0 = B0 L L H
H = High Voltage Level, L = Low Voltage Level, X = Don’t Care
Fig. 2. Output waveform of conventional 4-bit comparator
The truth table presented in Table 1 for the 4-bit comparator
delineates the specific conditions for the outputs corresponding III. GDI DESIGN OF 4- BIT COMPARATOR
to A > B, A < B, and A = B. High voltage level (H) and
low voltage level (L) are employed to signify the output
states. The comparator initiates the evaluation with the most The Gate Diffusion Input (GDI) technique in VLSI design
significant bits (A3, B3) and proceeds sequentially to the introduces a unique approach to logic gate construction by
least significant bits (A0, B0). For instance, when A3 > B3, using three inputs instead of two, differentiating it from
the output A > B is set to high (H), while A < B and A = B standard CMOS inverters [10]. In a GDI cell, when the gate
are set to low (L), regardless of the values of the subsequent input is at a logic low (0), the PMOS transistor is activated,
bits (indicated by X, denoting ”don’t care”). Conversely, if connecting the output to the source of the PMOS transistor,
A3 = B3, the comparison continues with the next significant while the NMOS transistor remains off. Similarly, when
bits (A2, B2), and this process persists until all bits have the gate input is at a logic high (1), the NMOS transistor
been evaluated. This method ensures a precise determination is activated, connecting the output to the source of the
of whether A is greater than, less than, or equal to B[9]. NMOS transistor, and the PMOS transistor is off. This input
configuration enables the implementation of different logic
functions [10][3]. The flexibility of the GDI technique allows
The Figure 1 illustrates the schematic of a four-bit magni- for the efficient realization of logic gates by appropriate input
tude comparator. Figure 2 presents the timing diagram for a connections and adding necessary inverters at the output [11].
four-bit magnitude comparator, illustrating the transitions and
interactions of the comparator’s outputs over a range of input The algorithm of the GDI logic design uses 2’s complement
conditions. The waveforms depict the states of the input bits addition. One input is compared with the other and then
(A3 to A0 and B3 to B0) and the corresponding outputs (A¿B, the difference is calculated[12]. If the remainder is positive,
A=B, and A¡B) over time. then A is bigger than B. If the remainder is negative, then
A is smaller than B. If the remainder is zero, then A equals
PAGE N0: 20
Journal of Systems Engineering and Electronics (ISSN NO: 1671-1793) Volume 34 ISSUE 11 2024
B [13]. Compared to conventional CMOS logic, GDI cells in-depth analysis of these results, discussing power con-
can implement various logic functions utilizing only two sumption, area utilization, performance metrics, and practical
transistors. This translates to a reduced circuit footprint and implications.
potentially lower manufacturing costs. Additionally, GDI
logic typically shows lower power consumption because of A. Power Usage Analysis
its efficient use of transistors, making it especially appealing The power consumption metrics were extracted through
for battery-powered applications. Figure 3 represents the both prelayout and postlayout simulations across different sup-
circuit schematic of the 4-bit comparator using a full adder plies of voltage ranges from 0V to 1.4V. During the prelayout
with GDI logic. Figure 4 represents the design of a full adder phase, it reports on Table 2 that the GDI design has immense
using GDI logic [14] which reduces the transistor count to RMS power reduction at low voltage supplies, though there
10. is a minor increase in middle-range voltage supplies due to
fewer transistor counts. Consequently, this trend shows that the
low-power design of the GDI logic is particularly favorable
under low-voltage conditions, since that would make it all
the more suitable for energy-sensitive applications such as
portable and/or battery-operated devices. Pre-Layout Analysis
vs. Post-Layout: Figure 5 shows the comparative graph for
the prelayout power consumption, while Figure 6 presents the
postlayout power results at 0.8V, pointing out the continuing
power advantage of the GDI design. Such a postlayout analysis
presents an 11.60These results are further strengthened by
simulations using the OpenROAD tool with the 7nm ASAP7
technology node to ensure realistic assessment and scalability
for advanced VLSI implementations.
B. Die Area and Transistor Count
The proposed GDI comparator architecture reduces one
of the keys to high-density integrated circuit area utilization
by 13.95% Table 3 summarizes the comparison of all these
areas for CMOS and GDI-based designs. In addition, the
Fig. 3. GDI design of 4-bit comparator
GDI logic circuit consists of only 62 transistors compared
to the 166 transistors in a conventional CMOS comparator,
thereby making it more compact. This minimum transistor
count helps not only in area reduction but also reduces the
manufacturing cost and thermal effects, which becomes very
important in high-density VLSI systems where dissipation of
heat is difficult.
The Figure 7 represents the physical layout of an integrated
circuit designed using the Open ROAD VLSI tool. The layout
includes various metal layers, vias, and transistor structures.
The red, blue, and green lines denote different metal layers
used for interconnections, with vias shown as the small
rectangles connecting these layers. The overall structure is
compact, indicating efficient use of space and adherence to
design rules. The scale bar in the bottom left corner, marked
in nanometers, shows the design’s dimensions, illustrating the
Fig. 4. GDI design of full adder
small scale typical of modern integrated circuits. This layout
represents a critical block of the IC, optimized for performance
and area within the constraints of the design specifications.
IV. R ESULTS C. Performance Measures
While the GDI design has focused on the optimization of
The proposed 4-bit magnitude comparator using Gate Dif- power and area, some marginal speed trade-off does result
fusion Input (GDI) logic shows substantial improvements in from such a simplified structure. The time slack for GDI logic
power efficiency and area reduction compared to conventional is slightly less when compared to the slack time of a CMOS
CMOS-based designs. The following subsections provide an design, standing at 450.5 ns versus 471.81 ns, respectively.
PAGE N0: 21
Journal of Systems Engineering and Electronics (ISSN NO: 1671-1793) Volume 34 ISSUE 11 2024
In this regard, it will turn out to be pretty minor trade-offs
in speed, considering those areas where power consumption
and compactness are more important than maximal processing
speed. These latter great power and area advantages outweigh
the marginal speed difference of GDI, therefore; it is a
practical choice for applications where efficiency is more
valuable than speed, such as embedded systems and portable
electronics.
D. Practical Advantages and Application Scope
In particular, the proposed GDI-based comparator design
is beneficial in this environment where power efficiency,
compactness, and thermal management are required. Due to
area and power reduction, it is highly recommended in battery-
powered applications and for environments where stringent
power budgets are required.
Fig. 5. Graph for the pre layout simulation
1) Portable Devices: GDI comparators are hence appropri-
ate for portable electronics, as that uses less power and area.
The lesser the power used; the longer the battery life, which is
one of the most critical factors for customer satisfaction with
portable electronics.
2) Wearable and IoT Applications: GDI design enables
small form factor and best energy efficiency in IoT and
wearable applications, due to the higher density of integrated
circuits that can fit within the limited space. The phenomenon
of low power feed kp reduces thermal generation, which in
turn furthers the case for compact and enclosed spaces, as
with wearable devices.
3) Edge Devices Data Processing Units: It requires low-
power, compact components to process data efficiently with
limited energy. GDI-based comparators can improve perfor-
mance within an edge device, which is suitable for real-time
processing without any power availability.
TABLE II
TABLE REPRESENTING COMPARISON OF POWER IN P RE LAYOUT
Supply Voltage, Vdd (V) Conventional design RMS Power (in micro watt) GDI logic design RMS Power (in micro watt)
0 0 0 Fig. 6. Graph for the post layout simulation for the two designs
0.2 0.76 0.5269
0.4 7.692 9.262
0.6 4.336 6.53
0.8 9.534 14.07
1.0 17.106 8.866
1.2 28.819 15.42
TABLE III
C OMPARISON ON THE TWO DESIGNS BASED ON DIFFERENT PARAMETERS
Parameters Conventional [5] GDI logic
Area Utilization (1µm2 ) 43% 37%
Slack (in ns) 471.81 450.5
Number of transistors count 166 62
CONCLUSION
The 4-bit Magnitude Comparator built using the conven- Fig. 7. The physical layout for the proposed design using OpenROAD tool
tional CMOS technique consists of 166 transistors. However,
PAGE N0: 22
Journal of Systems Engineering and Electronics (ISSN NO: 1671-1793) Volume 34 ISSUE 11 2024
in the proposed design, the transistor count has been reduced to [14] Kandasamy, Nehru & Ahmad, Firdous & Reddy, Shasikanth & Babu,
62, which represents a decrease of approximately 62.65%. This M. & Telagam, Nagarjuna & Somanaidu, Utlapalli. (2018). Performance
Analysis of 4-Bit MAC Unit using Hybrid GDI &Transmission Gate
reduction also leads to lower power consumption and a smaller based Adder and Multiplier Circuits in 180 nm & 90 nm Technology.
area. The power is reduced by approximately 11.60% in the Microprocessors and Microsystems. 59. 10.1016/j.micpro.2018.03.003.
GDI logic compared to the conventional value in post layout.
The area utilization is reduced by approximately 13.95% in
GDI logic compared to conventional logic in post layout
analysis. While GDI logic often features simpler circuitry
compared to more sophisticated CMOS designs, it’s important
to note that the streamlined approach may sacrifice some level
of flexibility in certain scenarios. The GDI based logic can be
used in circuit design for its advantages in reducing power
consumption and area making it suitable for applications such
as arithmetic circuits, memory cells, and power management.
It enables efficient implementation of basic logic gates, mul-
tiplexers, flip-flops, and ADC/DAC circuits.
R EFERENCES
[1] D. N. Mukherjee, S. Panda and B. Maji, ”Design of low power 12-bit
magnitude comparator,” 2017 Devices for Integrated Circuit (DevIC),
Kalyani, India, 2017.
[2] Morgenshtein, Arkadiy, Alexander Fish, and Israel A. Wagner. ”Gate-
diffusion input (GDI): a power-efficient method for digital combinatorial
circuits.” IEEE transactions on very large scale integration (VLSI)
systems 10.5 (2002).
[3] Kumar, Dinesh, and Manoj Kumar. ”Design of low power two bit mag-
nitude comparator using adiabatic logic.” Intelligent Signal Processing
and Communication Systems (ISPACS), 2016 International Symposium
on. IEEE, 2016 .
[4] A. Lahariya and A. Gupta, ”Design of Low power and high speed
dynamic latch comparator using 180 nm technology,” 2015 International
Conference on Signal Processing, Computing and Control (ISPCC),
Waknaghat, India, 2015.
[5] Lu Chen, Bingxue Shi and Chun Lu, ”A robust high-speed and low-
power CMOS current comparator circuit,” IEEE APCCAS 2000. 2000
IEEE Asia-Pacific Conference on Circuits and Systems. Electronic
Communication Systems. (Cat. No.00EX394), Tianjin, China, 2000
[6] P. Singh and P. K. Jain, ”Design and Analysis of Low Power, High
Speed 4 - Bit Magnitude Comparator,” 2018 International Conference
on Recent Innovations in Electrical, Electronics & Communication
Engineering (ICRIEECE), Bhubaneswar, India, 2018.
[7] Joo-Young Kim and Hoi-Jun Yoo, ”Bitwise Competition Logic for
compact digital comparator,” 2007 IEEE Asian Solid-State Circuits
Conference, Jeju, Korea (South), 2007.
[8] S. Deb and S. Chaudhury, ”High-speed comparator architectures for fast
binary comparison,” 2012 Third International Conference on Emerging
Applications of Information Technology, Kolkata, India, 2012.
[9] Mukherjee, Dwip & Panda, Saradindu & Maji, Bansibadan. (2018).
Performance Evaluation of Digital Comparator Using Different Logic
Styles. IETE Journal of Research
[10] Sucharitha, D. et al. GDI logic based design of hamming- code encoder
and decoder for error free data communication. 2019 3rdInternational
Conference on Computing Methodologies and Communication (IC-
CMC); 2019 Mar 27-29; Erode, India. USA: IEEE; 2019.
[11] Kandasamy N, Mohan Kumar N, Telagam N, Ahmad F, Mishra G. Anal-
ysis of self checking and self resetting logic in CLA and CSA circuits
using gate diffusion input technique. 2019 International Conference on
Smart Systems and Inventive Technology (ICSSIT); 2019 Nov 27-29;
Tirunelveli, India. USA: IEEE; 2019.
[12] Yarlagadda, Syamala & Kaza, Srilakshmi & N, Somasekhar. (2013).
Design of Low Power CMOS Logic Circuits Using Gate Diffusion Input
(GDI) Technique. International Journal of VLSI Design & Communica-
tion Systems
[13] G. Prajpat, A. Joshi, A. Jain, K. Verma and S. K. Jaiswal, ”Design
of Low Power and High Speed 4-Bit Comparator Using Transmission
Gate,” 2013 International Conference on Machine Intelligence and
Research Advancement, Katra, India, 2013.
PAGE N0: 23