A method for electromagnetic side channel security assessment

Through logic simulation and parasitic parameters extraction, simplified circuit model, combined with segmented linear current source and transient analysis, the electromagnetic traces are calculated, and the problems of slow speed and low accuracy of electromagnetic side channel safety evaluation in the existing technology are solved, and the silicon front The efficient electromagnetic side channel safety evaluation in the stage reduces the cost of later corrections.

CN118468766BActive Publication Date: 2024-12-06NANJING IC DESIGN SERVICE IND INNOVATION CENT CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410645809.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-05-23
Publication Date
2024-12-06
Estimated Expiration
2044-05-23

AI Technical Summary

Technical Problem

The prior art conducts electromagnetic side channel safety assessment in the post-silicon stage, with slow speed and low accuracy, and it is impossible to effectively detect the risk of electromagnetic side channel leakage in the chip design stage in advance, resulting in high correction costs.

Method used

Through logic simulation and parasitic parameter extraction, the circuit model is simplified, and the standard unit gate circuit is replaced with a segmented linear current source, combined with transient analysis simulation, electromagnetic tracks are calculated, and electromagnetic side channel safety evaluation is carried out to improve evaluation speed and accuracy.

Benefits of technology

It significantly improves the speed and accuracy of electromagnetic side channel safety evaluation, can detect risks in advance in the pre-silicon stage, reduce the cost of later corrections, and provide reliable safety evaluation results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118468766B_ABST
    Figure CN118468766B_ABST
Patent Text Reader

Abstract

A method for electromagnetic side channel security assessment includes the following steps: performing logic simulation on the gate-level netlist of a target circuit to obtain a simulation waveform VCD file; performing parasitic parameter extraction on the GDS file or DEF file of the target circuit to generate a parasitic parameter file in DSPF format; simplifying the parasitic parameter file in DSPF format in combination with the simulation waveform VCD file; performing transient analysis simulation on the simplified DSPF file; calculating the electromagnetic trace of the assumed probe position, and performing electromagnetic side channel security assessment based on the electromagnetic trace. The electromagnetic side channel security assessment method of the present application reduces the complexity of SPICE simulation and speeds up the simulation speed by simplifying the equivalent target circuit, increases the simulation excitation length, and increases the amount of input data for electromagnetic side channel security assessment to compensate for the precision error caused by the simplified circuit, thereby improving the accuracy and overall speed of security assessment.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of chip security detection, and in particular to a method for performing electromagnetic side channel security assessment of a chip in a pre-silicon stage. Background Art

[0002] Chip information security includes preventing risks such as unauthorized access, data leakage, tampering and destruction, and ensuring the security of chips during design, manufacturing, deployment and use. Chip information security is an important issue that has become increasingly prominent with the development of integrated circuit technology. With the acceleration of digital transformation, chips are widely used in various smart devices, from smartphones, computers to cars, industrial control systems, etc. These chips not only carry a large amount of personal and corporate sensitive information, but may also be related to national security. The Spectre and Meltdown security vulnerabilities exposed in 2018 have attracted widespread attention from the world. Since then, more and more chip security vulnerabilities have been discovered, and chip security has become increasingly critical.

[0003] The challenges facing chip security include, but are not limited to, side-channel attacks, hardware Trojan implantation, physical tampering, supply chain security vulnerabilities, and fault injection attacks. Among them, a side-channel attack is an attack method that exploits the physical implementation characteristics (such as time consumption, power consumption, electromagnetic radiation, etc.) leaked by the chip during operation. By analyzing these non-traditional "side channel" information, attackers can infer the internal behavior of the chip and obtain sensitive information, such as encryption keys. Side-channel attacks do not directly target the security of the encryption algorithm itself, but exploit the physical vulnerabilities of the chip to achieve the attack purpose. Therefore, side-channel attacks place higher requirements on the security of the chip.

[0004] In recent years, research on electromagnetic side channel attacks has become common. Without touching the victim chip, the attacker uses an electromagnetic signal probe to capture the electromagnetic signals radiated into space when the circuit is running, and infers sensitive information in the victim circuit. Faced with the challenges brought by electromagnetic side channel leakage, electromagnetic side channel security assessment of circuits has become one of the research directions of chip hardware security.

[0005] At present, the security assessment methods for electromagnetic side channels include: SPICE simulation, which can accurately simulate the scenarios and results of post-silicon testing, but due to the large scale of digital circuits and the long simulation time of electromagnetic side channels, SPICE simulation is too slow; some researchers estimate the electromagnetic radiation of chips during the design phase by setting radiation models to bypass SPICE simulation, but the radiation model is less accurate than simulation. Some practices also implement the circuit on FPGA and measure the leakage risk of the target circuit by testing the electromagnetic side channel leakage on FPGA, but there are obvious differences in the underlying structure between FPGA and ASIC circuits, and their test results may not truly reflect the security of the target circuit.

[0006] At present, the commonly used methods for electromagnetic side channel security assessment include: SPICE simulation, which can accurately simulate the scenarios and results of post-silicon testing, but due to the large scale of digital circuits and the long simulation time of electromagnetic side channels, SPICE simulation is too slow. Some researchers estimate the electromagnetic radiation of chips during the design phase by setting up radiation models to bypass SPICE simulation, but the radiation model is less accurate than simulation. Some practices also implement the circuit on FPGA and measure the leakage risk of the target circuit by testing the electromagnetic side channel leakage on FPGA, but there are obvious differences in the underlying structure between FPGA and ASIC circuits, and their test results may not truly reflect the security of the target circuit.

[0007] The above methods are all based on post-silicon testing. Through SPICE simulation, the scenarios and results of post-silicon testing can be accurately simulated. The premise of this method is that the chip has been manufactured. Therefore, the risk of electromagnetic side channel leakage is discovered during the test process, and the cost of correction is huge. If the electromagnetic side channel security assessment can be performed in the pre-silicon chip design stage, risks can be discovered in advance, which has significant economic benefits. Summary of the invention

[0008] In order to address the defects of the prior art, the purpose of this application is to provide an electromagnetic side channel security assessment method, which reduces the complexity of SPICE simulation and speeds up the simulation by simplifying the equivalent target circuit, and increases the simulation excitation length and the amount of input data for electromagnetic side channel security assessment to compensate for the precision error caused by the simplified circuit and improve the accuracy and overall speed of security assessment.

[0009] To achieve the above purpose, the present application also provides an electromagnetic side channel security assessment method, comprising the following steps:

[0010] Perform logic simulation on the target circuit gate-level netlist and obtain the simulation waveform VCD file;

[0011] Extract parasitic parameters from the GDS file or DEF file of the target circuit and generate a parasitic parameter file in DSPF format;

[0012] Combine the simulation waveform VCD file to simplify the parasitic parameter file in DSPF format;

[0013] Perform transient analysis simulation on the simplified DSPF file;

[0014] An electromagnetic trace of the assumed probe position is calculated, and an electromagnetic side channel security assessment is performed based on the electromagnetic trace.

[0015] Furthermore, the step of performing logic simulation on the gate-level netlist of the target circuit and obtaining the simulation waveform VCD file also includes:

[0016] The gate-level netlist after logic synthesis is used as the simulation input file, and multiple simulation stimulus test platforms with the same key but random plaintext are constructed;

[0017] Use logic simulation tools to perform logic simulation and generate multiple simulation waveform VCD files.

[0018] Furthermore, the step of extracting parasitic parameters from the GDS file or DEF file of the target circuit to generate a parasitic parameter file in DSPF format also includes:

[0019] When extracting parasitic parameters, only the parasitic resistance of the power supply network of the target circuit is extracted.

[0020] Furthermore, the step of simplifying the parasitic parameter file in DSPF format by combining the simulation waveform VCD file also includes:

[0021] Use piecewise linear equivalent current source to replace the sub-circuit of the standard unit gate in the parasitic parameter file in the DSPF format;

[0022] Furthermore, it also includes:

[0023] Perform dynamic power consumption analysis on the target circuit to obtain the dynamic power consumption current of each standard cell gate;

[0024] According to the dynamic power consumption current of each standard cell gate, an equivalent piecewise linear current source corresponding to each standard cell gate is calculated;

[0025] The standard unit gate subcircuit is replaced by a piecewise linear equivalent current source.

[0026] Furthermore, the step of performing dynamic power consumption analysis on the target circuit to obtain the dynamic power consumption current of each standard cell gate further includes: calculating the dynamic power consumption current corresponding to the standard cell gate using the following calculation method:

[0027] Iavg n,g (τ) = P n,g (τ) / V,

[0028] Among them, I avg n,g (τ) is the average dynamic power consumption current, g is the standard unit gate, n is the simulation waveform VCD file, P n,g (τ) is the dynamic power consumption in the τth cycle, and V is the operating voltage of the simulation circuit.

[0029] Furthermore, the step of calculating the equivalent piecewise linear current source corresponding to each standard cell gate according to the dynamic power consumption current of each standard cell gate further includes:

[0030] According to the dynamic power consumption current of each standard unit gate, a waveform of an equivalent piecewise linear current source varying with time is obtained, and an equivalent piecewise linear current source corresponding to each standard unit gate is obtained by calculation;

[0031] The waveform of the equivalent piecewise linear current source varying with time is expressed as:

[0032] I PWL n,g (t) = I avg n,g (τ0)+(I avg n,g (τ0+1)-I avg n,g (τ0))*(t-τ0*p) / p,

[0033] Among them, I PWL n,g (t) is the waveform of the equivalent piecewise linear current source changing with time, I avg n,g (τ0) is the dynamic power consumption current of the τ0th cycle, t is the simulation time, p is the clock cycle of the target circuit, τ0 = [t / p].

[0034] Furthermore, the step of performing transient analysis simulation on the simplified parasitic parameter file in DSPF format also includes: setting a probe on each parasitic resistor to collect the transient current on each parasitic resistor; and recording the transient current at a certain time in the simulation waveform VCD file.

[0035] Furthermore, the step of calculating the electromagnetic trace of the assumed probe position further comprises:

[0036] At any time, the parasitic resistance is regarded as a vector current element, and its direction is consistent with the direction of the parasitic resistance in the parasitic parameter file in DSPF format;

[0037] For an electromagnetic signal probe assumed to be in a fixed position, the magnetic induction intensity is calculated, the magnetic induction intensity stimulated by all parasitic resistances is summed up, the total magnetic induction intensity detected by the probe is obtained, and the trajectory of the electromagnetic signal changing over time is obtained.

[0038] To achieve the above-mentioned objectives, the present application also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor is used to execute the computer program stored in the memory to implement the steps of the electromagnetic side channel security assessment method as described above.

[0039] To achieve the above objectives, the present application also provides a computer-readable storage medium, in which a computer program is stored. The computer program is loaded and executed by a processor to implement the steps of the electromagnetic side channel security assessment method as described above.

[0040] The electromagnetic side channel security assessment method provided by this application for large-scale integrated circuits has the following beneficial effects compared with the prior art:

[0041] The present invention combines the flip state of logic simulation and the power consumption data in the process library to simplify the SPICE simulation netlist, which can improve the simulation speed; when the standard unit in the target circuit is replaced by a current source, a piecewise linear current source is used to reduce the calculation complexity of the SPICE simulation; when simplifying the parasitic parameter network, only the parasitic resistance of the power supply network is considered, which can further simplify the complexity of the circuit SPICE simulation and speed up the simulation speed.

[0042] Although the simulation results after multiple simplifications are quite different from the high-precision simulation results, they greatly improve the simulation speed. By increasing the number of simulation trajectories, the electromagnetic side channel security assessment can still be performed using the simplified simulation results and reliable assessment results can be obtained.

[0043] Other features and advantages of the present application will be set forth in the following description, and in part will become apparent from the description, or may be understood by practicing the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] The accompanying drawings are used to provide a further understanding of the present application and constitute a part of the specification. Together with the embodiments of the present application, they are used to explain the present application and do not constitute a limitation of the present application. In the accompanying drawings:

[0045] Figure 1 is a flow chart of an electromagnetic side channel security assessment method according to an embodiment of the present application;

[0046] Figure 2 is a schematic diagram of an equivalent process of a piecewise linear current source according to an embodiment of the present application;

[0047] Figure 3 is a circuit diagram consisting of two inverters according to an embodiment of the present application;

[0048] Figure 4 for Figure 3 The circuit diagram after the circuit is simplified and equivalent;

[0049] Figure 5 Schematic diagram of the structure of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION

[0050] The preferred embodiments of the present application are described below in conjunction with the accompanying drawings. It should be understood that the preferred embodiments described herein are only used to illustrate and explain the present application and are not used to limit the present application.

[0051] The embodiments of the present application will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present application are shown in the accompanying drawings, it should be understood that the present application can be implemented in various forms and should not be construed as being limited to the embodiments described herein. Instead, these embodiments are provided to provide a more thorough and complete understanding of the present application. It should be understood that the drawings and embodiments of the present application are only for exemplary purposes and are not intended to limit the scope of protection of the present application.

[0052] The term "including" and its variations used herein are open inclusions, i.e., "including but not limited to". The term "based on" means "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". The relevant definitions of other terms will be given in the following description.

[0053] It should be noted that the concepts of “first”, “second”, etc. may be mentioned in this application and are only used to distinguish different devices, components or parts, and are not used to limit the order or interdependence of the functions performed by these devices, components or parts.

[0054] It should be noted that the modifications of "one" and "plurality" mentioned in this application are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more". "Plurality" should be understood as two or more.

[0055] It should be noted that the Test Bench that may be mentioned in this application is a virtual test platform used to simulate the input stimulus and output verification of the actual environment. The design can be analyzed and verified at the software level on the Test Bench.

[0056] Example 1

[0057] In an embodiment of the present application, a logic simulation tool, a circuit simulation tool, and a circuit parasitic parameter extraction tool are integrated together through an automated script to form an electromagnetic side channel security assessment method based on dynamic simulation, and based on the idea of ​​circuit equivalent simplification, the complexity of circuit simulation is reduced and the simulation speed is improved.

[0058] Figure 1 The electromagnetic side channel security assessment method according to the embodiment of the present application is shown in the flowchart below. Figure 1 , the electromagnetic side channel security assessment method of this application is described in detail.

[0059] First, in step 101, logic simulation is performed on the gate-level netlist of the target circuit to be evaluated, and a simulation waveform VCD file is obtained.

[0060] The gate-level netlist is a text file used to describe the connection relationship between circuit elements and is also an important part of circuit design.

[0061] In the embodiment of the present application, a logic simulation tool is used to perform logic simulation on the gate-level netlist of the target circuit being evaluated, and the simulation outputs a simulation waveform VCD file of the waveform changes.

[0062] Taking the AES-128 encryption circuit as an example, the process of obtaining the simulation waveform VCD file includes:

[0063] Use the gate-level netlist after logic synthesis as the simulation input file, and build N simulation stimulus test platforms (Test Bench) with the same key but random plaintext;

[0064] Use the commercial logic simulation tool Modelsim (or other similar simulation tools) to perform logic simulation;

[0065] After the simulation is completed, N simulation waveform VCD files are generated;

[0066] The simulation waveform VCD file records the logic level changes of the pins of all standard unit gates in the AES-128 netlist at various times of simulation. Due to the high speed of subsequent simulation, N can be set to a larger value, such as 2000 or more.

[0067] In step 102, parasitic parameters are extracted from the GDS file or DEF file of the target circuit being evaluated to generate a parasitic parameter file in DSPF format.

[0068] In the embodiment of the present application, commercial software for extracting circuit parasitic parameters may be used to extract parasitic parameters from a GDS file or a DEF file of a target circuit.

[0069] GDS file is the most commonly used graphic data description language file format in integrated circuit layout design. The imported GDS file can be directly applied to thermal and electromagnetic analysis.

[0070] DEF (design exchange format) files describe the precise placement and wiring information of all physical elements in a specific design in integrated circuit design, and provide the physical characteristics and rules of the unit. DEF files use these rules to determine the actual location and interconnection relationship of the unit on the chip.

[0071] In an embodiment of the present application, when extracting parasitic parameters, the extraction software used is configured to extract only the parasitic resistance of the power supply network of the target circuit, ignoring the parasitic capacitance and other line networks, which is one of the key factors to speed up subsequent simulation; when outputting the results, specify to export a parasitic parameter file in DSPF format with the physical location of the parasitic resistance.

[0072] DSPF format file is a file format used to display data. It is a data format widely used in the computer field by IBM (International Business Machines Corporation).

[0073] Taking the AES-128 encryption dedicated circuit as an example, the gate-level netlist generates a DEF file (or GDS file) after physical back-end processes such as layout, optimization, clock tree synthesis, and routing. Using Cadence QRC software, specify the parasitic resistance of the power network and export the parasitic parameter file in DSPF format with the physical position of the parasitic resistance.

[0074] In step 103, the DSPF file is simplified in combination with the simulation waveform VCD file.

[0075] SPICE tools can directly use parasitic parameter files in DSPF format for circuit simulation, but the scale of the target circuit is limited. Especially for large-scale digital circuit design, it is difficult for SPICE tools to complete the simulation in a reasonable time. Therefore, it is particularly important to simplify the parasitic parameter files in DSPF format to be simulated. The simplification method is to replace the sub-circuit of the standard unit in the parasitic parameter file in DSPF format with a piecewise linear equivalent current source.

[0076] In the embodiment of the present application, the method for calculating the equivalent current source is as follows:

[0077] According to the simulation waveform VCD file obtained in step 101, a dynamic power consumption analysis is performed on the target circuit by using commercial power consumption analysis software (such as PrimeTime PTPX) to obtain the dynamic power consumption of each standard cell gate.

[0078] For the standard unit gate g, in the simulation waveform VCD file n, the dynamic power consumption of the τth cycle is recorded as P n,g (τ), the corresponding average dynamic power consumption current is:

[0079] I avg n,g (τ) = P n,g (τ) / V,

[0080] Where V is the operating voltage of the simulation circuit (avg is the abbreviation of average), g is the standard unit gate, and n is the simulation waveform VCD file.

[0081] The waveform of the equivalent piecewise linear (PWL) current source changing with time t is expressed as:

[0082] I PWL n,g (t) = I avg n,g (τ0)+(I avg n,g (τ0+1)-I avg n,g (τ0))*(t-τ0*p) / p,

[0083] Where t is the simulation time, p is the clock cycle of the target circuit, (Note: is the floor symbol).

[0084] Figure 2 Schematic diagram of an equivalent process of a piecewise linear current source according to an embodiment of the present application, as shown in Figure 2 As shown, the horizontal axis is the simulation time t, the vertical axis is the current value of the equivalent piecewise linear current source, the dotted line represents the average current in each clock cycle, and the solid line is the current waveform of the current source. For example, in cycle 2, that is, between time 2p and 3p, the average current is I avg (2); In cycle 3, that is, between time 3p and 4p, the average current is I avg (3), the waveform of the equivalent piecewise linear current source in period 2 is I avg (2) to I avg (3) The straight line.

[0085] Replace the standard cell gate subcircuit in the parasitic parameter file in DSPF format with the above-mentioned piecewise linear current source, ignore the interconnection of the data pins of the subcircuit, and only connect the current source to VDD and GND. Add a constant voltage source to the power pin on the top layer, and the output voltage is the working voltage V.

[0086] Figure 3A circuit diagram composed of two inverters according to an embodiment of the present application. Figure 4 is Figure 3 a schematic diagram of the circuit after simplifying and equivalently transforming the circuit, as Figure 3 and 4 shown. The simplified circuit will only contain three elements: a voltage source, a resistor, and a piecewise linear current source. Additionally, when extracting parasitic parameters, the ground capacitance of the power network can be added to make the simplified circuit closer to the actual physical situation, but this will sacrifice the subsequent simulation speed.

[0087] In step 104, transient analysis simulation is performed on the simplified DSPF - formatted parasitic parameter file.

[0088] In an embodiment of the present application, a SPICE tool (such as ALPS of HuaDa九天) is used to perform transient analysis simulation on the simplified DSPF - formatted parasitic parameter file. During the simulation, probes are set on each parasitic resistor to collect the transient current on each parasitic resistor. The sampling time points can be set to 5 evenly - distributed time points within each clock cycle, or can be appropriately increased or decreased according to the actual circuit scale. For resistor r, the transient current at time t in the simulation waveform VCD file n is denoted as in,r(t).

[0089] In step 105, the electromagnetic signal trajectory at the assumed probe position is calculated.

[0090] In an embodiment of the present application, the electromagnetic trace at the assumed probe position is calculated according to the electromagnetic radiation calculation principle. For example, according to the Biot - Savart law, given the position of the current element, the magnetic induction intensity excited at any position in space can be calculated. Therefore, at any time t, the parasitic resistor r is regarded as a vector current element in,r(t), and its direction is the same as the direction of the parasitic resistor r in the DSPF - formatted parasitic parameter file. For the electromagnetic signal probe at the assumed fixed position, the magnetic induction intensity Bn,r(t) can be calculated. Summing up the magnetic induction intensities excited by all parasitic resistors, the total magnetic induction intensity Bn(t) detected by the probe can be obtained, where n ∈ Z and 0 < n < N - 1. For each Bn(t), we call it a trajectory of the electromagnetic signal changing with time (electromagnetic trace). N electromagnetic traces can be calculated from N VCD files.

[0091] In step 106, electromagnetic side - channel security assessment is performed based on the electromagnetic trace data.

[0092] In an embodiment of the present application, electromagnetic side - channel security assessment is performed based on the N electromagnetic trace data calculated in step 105.

[0093] In an embodiment of the present application, common analog attacks, TVLA analysis, etc. can be used as the assessment methods.

[0094] Example 2

[0095] In an embodiment of the present application, an electronic device is also provided. Figure 5 is a schematic diagram of the structure of an electronic device according to an embodiment of the present application, such as Figure 5 As shown, the electronic device of the present application includes a processor 501 and a memory 502, wherein:

[0096] The memory 502 stores a computer program, and when the computer program is read and executed by the processor 501, the computer program executes the steps in the embodiment of the electromagnetic side channel security assessment method as described above.

[0097] Example 3

[0098] In an embodiment of the present application, a computer-readable storage medium is further provided, in which a computer program is stored, wherein the computer program is configured to execute the steps in the electromagnetic side channel security assessment method embodiment described above when running.

[0099] In this embodiment, the above-mentioned computer-readable storage medium may include but is not limited to: a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk, and other media that can store computer programs.

[0100] Those skilled in the art can understand that the above description is only a preferred embodiment of the present application and is not intended to limit the present application. Although the present application is described in detail with reference to the aforementioned embodiments, those skilled in the art can still modify the technical solutions recorded in the aforementioned embodiments or replace some of the technical features therein by equivalents. Any modification, equivalent replacement, improvement, etc. made within the spirit and principles of the present application shall be included in the protection scope of the present application.

Claims

1. A method for electromagnetic side channel security assessment, The following steps are involved: Perform logic simulation on the target circuit gate-level netlist and obtain the simulation waveform VCD file; Extract parasitic parameters from the GDS file or DEF file of the target circuit and generate a parasitic parameter file in DSPF format; Combine the simulation waveform VCD file to simplify the parasitic parameter file in DSPF format; Perform transient analysis simulation on the simplified DSPF file; calculating an electromagnetic trace of the assumed probe position and performing an electromagnetic side channel security assessment based on the electromagnetic trace; Perform dynamic power consumption analysis on the target circuit to obtain the dynamic power consumption current of each standard cell gate; According to the dynamic power consumption current of each standard cell gate, an equivalent piecewise linear current source corresponding to each standard cell gate is calculated; Use piecewise linear equivalent current sources to replace standard unit gate subcircuits; The step of calculating the equivalent piecewise linear current source corresponding to each standard cell gate according to the dynamic power consumption current of each standard cell gate also includes: According to the dynamic power consumption current of each standard unit gate, a waveform of an equivalent piecewise linear current source varying with time is obtained, and an equivalent piecewise linear current source corresponding to each standard unit gate is obtained by calculation; The waveform of the equivalent piecewise linear current source varying with time is expressed as: I PWL n,g (t)=I avg n,g (t 0 )+(I avg n,g (t 0 +1)-I avg n,g (t 0 ))*(t-τ 0 *p) / p, Among them, I PWL n,g (t) is the waveform of the equivalent piecewise linear current source changing with time, I avg n,g (τ 0 ) is the τth 0 The dynamic power consumption current of a cycle, t is the simulation time, p is the clock cycle of the target circuit, 2. The electromagnetic side channel security assessment method according to claim 1, It is characterized in that The step of performing logic simulation on the gate-level netlist of the target circuit and obtaining the simulation waveform VCD file also includes: The gate-level netlist after logic synthesis is used as the simulation input file, and multiple simulation stimulus test platforms with the same key but random plaintext are constructed; Use logic simulation tools to perform logic simulation and generate multiple simulation waveform VCD files.

3. The electromagnetic side channel security assessment method according to claim 1, It is characterized in that The step of extracting parasitic parameters from the GDS file or DEF file of the target circuit to generate a parasitic parameter file in DSPF format also includes: When extracting parasitic parameters, only the parasitic resistance of the power supply network of the target circuit is extracted.

4. The electromagnetic side channel security assessment method according to claim 1, It is characterized in that The step of simplifying the parasitic parameter file in DSPF format by combining the simulation waveform VCD file also includes: The subcircuit of the standard unit gate in the parasitic parameter file in the DSPF format is replaced by a piecewise linear equivalent current source.

5. The electromagnetic side channel security assessment method according to claim 1, It is characterized in that The step of performing dynamic power consumption analysis on the target circuit to obtain the dynamic power consumption current of each standard cell gate also includes: calculating the dynamic power consumption current corresponding to the standard cell gate using the following calculation method: I avg n,g (τ)=P n,g (t) / V, Among them, I avg n,g (τ) is the average dynamic power consumption current, g is the standard unit gate, n is the simulation waveform VCD file, P n,g (τ) is the dynamic power consumption in the τth cycle, and V is the operating voltage of the simulation circuit.

6. The electromagnetic side channel security assessment method according to claim 1, It is characterized in that The step of performing transient analysis simulation on the simplified parasitic parameter file in DSPF format also includes: setting a probe on each parasitic resistor to collect the transient current on each parasitic resistor; and recording the transient current at a certain time in the simulation waveform VCD file.

7. The electromagnetic side channel security assessment method according to claim 1, It is characterized in that The step of calculating the electromagnetic trace of the assumed probe position also includes: At any time, the parasitic resistance is regarded as a vector current element, and its direction is consistent with the direction of the parasitic resistance in the parasitic parameter file in DSPF format; For an electromagnetic signal probe assumed to be in a fixed position, the magnetic induction intensity is calculated, the magnetic induction intensity stimulated by all parasitic resistances is summed up, the total magnetic induction intensity detected by the probe is obtained, and the trajectory of the electromagnetic signal changing over time is obtained.

8. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, It is characterized in that The processor is used to execute the computer program stored in the memory to implement the steps of the electromagnetic side channel security assessment method described in any one of claims 1-7.

9. A computer-readable storage medium, It is characterized in that The storage medium stores a computer program, which is loaded and executed by a processor to implement the steps of the electromagnetic side channel security assessment method according to any one of claims 1 to 7.