A side channel physical immune architecture and method based on anti-magnetic flushing and active white noise flattening
By using an active white noise power flattening core and a microarchitecture antimagnetic scouring controller, an adaptive compensation potential is generated to flatten the electromagnetic radiation spectrum. During shutdown, multiple rounds of polarity alternating scouring are performed, which solves the problem that existing technologies cannot effectively protect against the leakage of physical information of cryptographic operation chips and achieves full life cycle protection.
Patent Information
- Application Number
- CN202611592385.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-10-14
- Publication Date
- 2026-11-27
AI Technical Summary
Existing technologies cannot effectively achieve radiation spectrum flattening during operation, timing disturbance masking during switching, and anti-magnetic rewriting during downtime, making it difficult to protect the physical information channels leaked by cryptographic chips under attack.
An active white noise power flattening core and a microarchitecture antimagnetic scouring controller are employed. By generating an adaptive compensation potential that combines Gaussian white noise perturbation components with frequency domain residuals, electromagnetic radiation spectral density convergence is achieved. During shutdown or context switching, multiple rounds of polarity alternating scouring are performed to eliminate residual charge.
It achieves convergence of global electromagnetic radiation spectral density within a preset frequency band during operation, eliminates spectral correlation of operation type, eliminates electromagnetic fingerprints during transient working mode switching, and completely eliminates residual charge in microarchitecture storage media during shutdown to prevent data ghosting extraction.
Smart Images

Figure CN123184976A_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of integrated circuit hardware security technology, and in particular designs a side-channel physical immunity architecture and method based on anti-magnetic erosion and active white noise flattening. Background Technology
[0002] With the maturation of differential power analysis and electromagnetic analysis attack techniques, the transient power consumption traces and near-field electromagnetic radiation leaked by cryptographic chips during operation have become the main physical information channels for attackers to reconstruct keys. Simultaneously, at the end of the chip's lifespan, during power outages, or context switches, the residual polarization charges and hysteresis memory effects in its microarchitecture storage media (cache, branch prediction units, etc.) constitute a "data ghosting" channel that can be extracted by physical probes. Existing technologies mainly suffer from the following three types of bottlenecks: The first type of existing technology (targeted sniper target one): the industry-standard open-loop fixed gain white noise injection side-channel protection architecture. This type of scheme masks power consumption characteristics by superimposing a fixed intensity white noise signal onto the power supply network, which is a publicly available basic side-channel protection implementation. Its essential defects are: (1) Open-loop fixed gain, no frequency domain sensing capability - the noise injection intensity and spectrum shape are fixed once before leaving the factory, and it is impossible to sense the frequency domain fluctuations of the transient rate of change of load current and the real-time radiation spectrum density. The compensation is insufficient on the sub-band where leakage energy is concentrated, and the power is wasted on the calm sub-band, resulting in low injection efficiency; (2) The first derivative in the frequency domain is not constrained - there are still spectral peaks and valleys related to the operation type in the composite spectrum. Higher-order differential electromagnetic analysis (DEMA) can recover the correlation from the residual spectrum fluctuations through statistical averaging. The protection strength fails rapidly as the attack order increases; (3) There is a zero modulation time window - the noise modulation fails briefly in the transient window such as mode switching and interruption response. The physical probe can collect single pulse peaks to achieve trajectory alignment.
[0003] The second category of existing technologies (targeted attack two): the industry-standard memory unit context zeroing mechanism (standard watchdog erasure). This type of solution erases the cache and branch prediction state by writing all 0s or all 1s in a single round when exiting a security domain, which is a publicly available security isolation foundation implementation. Its essential defects are: (1) Single-round polarity coverage cannot eliminate the residual polarization of the medium - the charge traps and polarization biases formed by the memory cells (such as floating memory nodes and cross-coupled inverting nodes) after long-term writing of historical data will not be reduced to zero due to single-round flipping. The physical probe can still measure the distinguishable residual polarization bias and reconstruct the historical data; (2) No thermal residual annihilation mechanism - the transient charge released during the flipping process is dissipated disorderly in the chip, forming an observable local thermal residual signal; (3) Incomplete coverage of the flushing target - usually only the cache tag and data field are covered, and there is a lack of erasure capability for the microarchitectural state traces in the branch prediction history buffer and out-of-order execution retention station; (4) There is a lack of physical-level thorough flushing timing at the end of the chip life cycle or when it is shut down, and it cannot be guaranteed that the residual charge will converge exponentially to below the thermal noise fluctuation floor within a finite time.
[0004] In summary, the existing technology lacks a bottom-up, purely hardware-closed-loop side-channel physical immunity architecture that simultaneously achieves "radiation spectrum flattening during operation, timing disturbance masking during switching, and anti-magnetic rewriting annihilation during downtime". Summary of the Invention
[0005] To address the aforementioned technical problems, this invention proposes a side-channel physical immune system based on anti-magnetic scour and active white noise flattening. The system comprises: an active white noise power flattening core (101), configured to superimpose a simulated chaotic waveform with a pseudo-random perturbation mask sequence amplitude during operation to generate a Gaussian white noise perturbation component, which is then combined with the frequency domain residual to generate an adaptive compensation potential to drive the injection of compensation current to converge the electromagnetic radiation spectral density; and a microarchitecture anti-magnetic scour controller (102), configured to output an isolation confirmation upon receiving a termination request, and to continuously force the enable bus back-voltage blocking signal or invalidate the ready token to maintain back-voltage isolation until a residual charge neutralization indication is detected. The active white noise power flattening core (101) and the microarchitecture anti-magnetic scour controller (102) are electrically connected via a hardware interlocked gating network to collaboratively achieve radiation spectral flattening during operation and anti-magnetic physical isolation during shutdown.
[0006] Preferably, the system further includes a transient electromagnetic sensing and power spectrum curvature estimation unit (105), which converts the transient calculation current of the protected execution core into a voltage domain spectrum signal, calculates the spectral density estimate and the first-order difference quotient of adjacent sub-bands for each sub-band, and outputs the curvature error gradient to the active white noise power flattening core (101).
[0007] Preferably, the system further includes a pseudo-random Gaussian charge compensation injection array (106), which activates a unit current element according to the adaptive compensation potential weighting, and injects the compensation current into at least one of the core bias power supply rail, the dummy load branch, or the on-chip dummy compensation node.
[0008] Preferably, the system further includes a cache and branch prediction memory array (109) deployed in the protected target domain, which performs a multi-round polarity alternating flushing of “multi-round random data write-through → complement flip → zero potential clamping” under the control of the microarchitecture antimagnetic flushing controller (102).
[0009] Preferably, the system further includes a thermal residual signal annihilation potential well (103) that provides a controlled low-resistance discharge path for transient charges released by the storage medium flipping, and outputs a residual charge neutralization indication when the residual bias voltage difference is lower than a preset critical value.
[0010] Preferably, the system further includes a signal-to-noise ratio self-test and online measurement module (104) for online monitoring of the system side channel leakage entropy, and for re-triggering the compensation iteration of the active white noise power flattening kernel (101) when the information entropy exceeds the limit.
[0011] Preferably, the system limits the maximum permissible curvature of the frequency domain envelope to ≤1.85dB / MHz, and the lower limit of the effective compensation power ratio is 0.15~0.40.
[0012] Preferably, the cache and branch prediction storage array (109) physically covers the underlying first-level cache, second-level cache, branch prediction history buffer and out-of-order execution reserve station.
[0013] This invention also proposes a side-channel physical immunity method based on antimagnetic scouring and active white noise flattening, characterized by the following discrete causal steps: noise injection flattening step: injecting compensation current into the power supply network based on the radiation spectrum curvature; online spectrum monitoring step: monitoring radiation leakage entropy online and re-triggering compensation when exceeding the limit; microarchitecture thorough flushing step: performing multiple rounds of polarity alternating flushing until residual charge is neutralized during shutdown or context switching.
[0014] Preferably, the microarchitecture flushing step satisfies the antimagnetic rewriting timing sequence of "multiple rounds of random data write-through → two's complement flip → zero potential clamping" to eliminate the charge trap memory effect.
[0015] Preferably, the microarchitecture thorough flushing step aims to flush the underlying first-level cache, second-level cache, branch prediction history buffer, and out-of-order execution reserve.
[0016] Preferably, in the noise injection flattening step, the transient electromagnetic sensing and power spectrum curvature estimation unit (105) calculates the spectral density and first-order difference quotient of each sub-band, and generates an adaptive compensation potential according to the frequency domain residual.
[0017] Preferably, in the microarchitecture thorough flushing step, the residual bias voltage difference of a single physical bit is determined to be lower than the critical value of Boltzmann thermal noise fluctuation substrate anchoring by the thermal residual signal annihilation potential well (103).
[0018] The method of this invention has the following technical advantages: (1) Resistance to Differential Power Analysis (DPA) and Higher-Order Electromagnetic Analysis (DEMA): Compared to the first target (open-loop fixed-gain white noise injection architecture), this invention uses real-time estimation of transient power spectrum curvature to construct closed-loop adaptive flattening: the compensated power spectrum is dynamically generated by the frequency domain residual, and the first-order differential quotient norm of the composite spectrum in the analysis frequency band is strictly suppressed below the convergence limit by the hardware comparator pipeline, so the spectrum shape no longer retains operation-related fluctuations, and higher-order statistical attacks lose the available spectrum shape features; at the same time, the injection efficiency ratio is constrained by the lower limit, avoiding the power waste of "over-injection of calm subbands and under-injection of leaky subbands" in the fixed-gain scheme; the coverage invariant is forced to be always open in hardware to eliminate the zero modulation window and block single-pulse spike acquisition-type alignment attacks. This is an essential topological difference of "open-loop → closed-loop, fixed-gain → curvature adaptive", and any circumvention design that simply adds noise to cover up power consumption falls within the scope of the closed-loop residual compensation of this invention.
[0019] (2) Eliminate data remnant extraction after shutdown: Compared with the second target (watchdog-style single-round zeroing mechanism), this invention adopts a multi-round orthogonal polarity alternating flushing sequence in combination with thermal residual signal annihilation potential well 103 to ensure that the algebraic sum of the positive and negative phase injection mode vectors is zero, so that the first-order component of the medium polarization bias cancels each other out round by round, and the equivalent amplitude of the residual charge converges and is suppressed exponentially with the flushing duration, and is finally suppressed to below the critical threshold anchored by the Boltzmann thermal noise fluctuation base. The physical probe cannot distinguish the correlation between the final state and the historical data in a statistical sense. Moreover, the flushing target completely covers the first-level cache, the second-level cache, the branch prediction historical buffer and the out-of-order execution retention station, eliminating the avoidance space of the second target scheme of "wiping the label but not the trace".
[0020] (3) Full hardware closed loop, no software dependency: The entire life cycle of perception-compensation-isolation-flushing-neutralization-release is completed autonomously by the on-chip dedicated sequential control logic array within discrete clock steps, without relying on software intervention. The protection timing itself does not introduce an attack surface that can be observed or tampered with by software. Attached Figure Description Figure 1 For architecture manifold; Figure 2This is a schematic diagram of the convergent functional of the power spectral density; Figure 3 Timing control diagram for preventing magnetic erasure; Figure 4 This is a flowchart of the flattening method.
[0021] The reference numerals in the accompanying drawings of this invention refer to the following: Reference Numeral Name Attribute Level 100 Side-channel Physical Immune Architecture System Assembly System Assembly 101 Active White Noise Power Flattening Core First-Level Subsystem 102 Microarchitecture Antimagnetic Erosion Controller First-Level Subsystem 103 Thermal Residual Signal Annihilation Potential Well First-Level Subsystem 104 Signal-to-Noise Ratio Self-Test and Online Measurement Module First-Level Subsystem 105 Transient Electromagnetic Sensing and Power Spectrum Curvature Estimation Unit First-Level Subsystem 106 Pseudo-Random Gaussian Charge Compensation Injection Array First-Level Subsystem 107 Lifetime End and Context Switching Detector First-Level Subsystem 108 Orthogonal Alternating Polarization Pattern Generator First-Level Subsystem 109 Cache and Branch Prediction Storage Array First-Level Subsystem (Protected Target Domain) 201 Transient Calculation Current Sampling Signal Flow Signal Flow 202 Emission Spectrum Measurement Sampling Signal Flow (Environmental Self-Test Feedback Branch) Signal Flow 203 Spectrum Curvature Error Gradient Signal Flow Signal Flow 204 Adaptive Compensation Potential Signal Flow Signal Flow 205 White Noise Superposition Compensation Power Flow Signal Flow 206 Termination token flush control bus signal flow (bus) 207 Multiphase flush enable signal flow 208 Alternating polarization flip write signal flow 209 Residual charge discharge and neutralization detection feedback loop signal flow (feedback loop) Detailed Implementation
[0022] The technical problem to be solved by this invention is to provide a side-channel physical immunity architecture and method that achieves power consumption / electromagnetic radiation flattening and shutdown antimagnetic rewriting from the bottom up, so that the global electromagnetic radiation spectral density during operation converges to a constant functional envelope with strict upper bound within a preset analysis frequency band, eliminating the correlation between spectral shape and operation type; at the same time, structured timing perturbations are inserted during transient operating mode switching to eliminate periodic electromagnetic fingerprints; in addition, during shutdown and context switching, the residual charge in the microarchitecture storage medium converges exponentially to the thermal noise fluctuation substrate through multiple rounds of polarity alternation within a finite causal step, completely eliminating data ghosting extraction.
[0023] The system provided by this invention comprises three collaborative physical immune defenses: an active white noise power flattening core 101 and a microarchitecture antimagnetic erosion controller 102. Online monitoring is implemented through a closed loop consisting of a thermal residual signal annihilation potential well 103 and a signal-to-noise ratio self-test and online measurement module 104. The system further includes: a transient electromagnetic sensing and power spectrum curvature estimation unit 105, a pseudo-random Gaussian charge compensation injection array 106, a lifetime end and context switching detector 107, an orthogonal alternating polarization pattern generator 108, and a cache and branch prediction storage array 109 serving as the protected target domain.
[0024] The specific embodiments of the present invention will be described in detail below with reference to the accompanying drawings.
[0025] Figure 1 This is a manifold diagram of the architecture of a side-channel physical immunity architecture system assembly 100 according to an embodiment of the present invention. Figure 2 This is a schematic diagram of the power spectral density convergence functional, illustrating the closed-loop determination process of the actual composite emission spectral density converging to the constant functional envelope after dynamic envelope tracking, frequency domain residual extraction and zero clamping, white noise superposition to synthesize the compensation spectrum, and inverse compensation current injection. The determination node is composed of a flatness determination comparator (the first-order difference quotient norm does not exceed the convergence limit) and the lower limit of the injection efficiency ratio. If convergence is not achieved, iterative gain refeedback is performed, and the envelope level is locked after convergence.
[0026] This invention proposes a side-channel physical immune system based on anti-magnetic erosion and active white noise flattening, comprising: An active white noise power flattening core 101 is configured to superimpose the simulated chaotic waveform with the pseudo-random perturbation mask sequence amplitude during operation to generate a Gaussian white noise perturbation component, and merge it with the frequency domain residual to generate an adaptive compensation potential to drive the injection compensation current to converge the electromagnetic radiation spectral density; and a microarchitecture antimagnetic scour controller 102 is configured to output an isolation confirmation after receiving a termination request, and to continuously force the enable bus back-voltage blocking signal or invalidate the ready token to maintain back-voltage isolation until the residual charge neutralization indication is detected to be valid; the active white noise power flattening core 101 and the microarchitecture antimagnetic scour controller 102 are electrically connected via a hardware interlocking gating network to collaboratively achieve radiation spectral flattening during operation and antimagnetic physical isolation during shutdown.
[0027] The active white noise power flattening kernel 101 is configured to generate Gaussian white noise perturbation components by superimposing the simulated chaotic waveform with the pseudo-random perturbation mask sequence amplitude during operation, and then merge it with the frequency domain residual to generate an adaptive compensation potential to drive the injection compensation current to converge the electromagnetic radiation spectral density. It contains two coupled channels: the first is a dynamic power flattening controller channel, consisting of a maximum value holding register group (which performs supremum operation on the spectral density of each sub-band of the analysis frequency band within discrete clock steps and superimposes programmable margin to generate a dynamic envelope tracking level), a multi-bit wide subtractor array, zero-clamp sign gating (the output is blocked by the sign bit when the residual is negative, ensuring that only power deficit is compensated and no overcompensation is generated), and an iterative gain damping register; the second is an active white noise generator channel, which is formed by superimposing a pseudo-random perturbation mask array consisting of an analog chaotic circuit (a switched capacitor iterative mapping structure generates a continuous-time chaotic reference waveform) and an XOR feedback shift chain—the chaotic waveform and the mask sequence are superimposed at the transconductance summation node to generate a Gaussian white noise perturbation component with a statistical mean of zero and an impulse autocorrelation characteristic. The two channels merge at the summation node to form an adaptive compensation potential (signal flow 204), which drives the pseudo-random Gaussian charge compensation injection array 106 via signal flow 204.
[0028] Specifically, the active white noise power flattening core 101 and the microarchitecture antimagnetic scour controller 102 are electrically connected via a hardware interlocking gating network to collaboratively achieve radiation spectrum flattening during operation and physical isolation against magnetic scour during shutdown. The system limits the maximum allowable curvature of the frequency domain envelope to ≤1.85dB / MHz, and the lower limit of the effective compensation power ratio is 0.15~0.40.
[0029] The microarchitecture antimagnetic scour controller 102 is configured to output an isolation confirmation upon receiving a termination request, and to continuously force the enable bus back-voltage blocking signal or invalidate the ready token to maintain back-voltage isolation until a residual charge neutralization indication is subsequently detected. It consists of a dedicated sequential control logic array (round counter, phase sequence decoder, conditional jump decision table, and interlocking gating matrix); the interlocking gating matrix uses a NAND gate network to achieve an absolute back-voltage isolation invariant—outputting an isolation confirmation on the next clock cycle after the termination request is valid, and continuously forcibly invalidating the ready token until the neutralization determination of the thermal residual signal annihilation potential well 103 is passed; the round counter has a hardware upper limit to ensure limited-step activity for antimagnetic scour.
[0030] Specifically, the controller 102 sequentially performs reverse voltage isolation, establishes the potential well discharge channel, and drives the orthogonal alternating polarization pattern generator 108 to perform multiple rounds of polarity alternating flushing on the cache and branch prediction memory array 109 via the signal flow 208, which involves "multiple rounds of random data write-through → complement flip → zero potential clamping". The flipped transient charge is introduced into the thermal residual signal annihilation potential well 103 through the residual charge discharge and neutralization detection feedback loop 209, and is unidirectionally absorbed by its dissipation impedance network and adsorption capacitor array until the neutralization determination is passed and the ready token is released.
[0031] The system also includes a thermal residual signal annihilation potential well 103, a signal-to-noise ratio self-test and online measurement module 104, a transient electromagnetic sensing and power spectrum curvature estimation unit 105, a pseudo-random Gaussian charge compensation injection array 106, a lifetime end and context switching detector 107, an orthogonal alternating polarization pattern generator 108, and a cache and branch prediction storage array 109.
[0032] The thermal residual signal annihilation potential well 103 provides a controlled low-resistance discharge path for transient charges released during storage medium flip-flops, and outputs a residual charge neutralization indication when the residual bias voltage difference is below a preset critical value. It consists of a switchable dissipative impedance network, an isolation adsorption capacitor array, an adiabatic discharge switch tree, and a neutralization judgment comparator. It exhibits unidirectional energy adsorption characteristics—providing a low-resistance discharge path for transient charges released during storage medium flip-flops and high-resistance isolation for steady-state operating charges. The equivalent conductance of its discharge impedance network is calibrated by a damping constant, constituting a controlled absorption term in the residual charge decay equation. The input carries the multiphase control token of the controller 102, and the output is connected to the bit lines of each storage cell via a multiplexer tree, driving the charge flow to the discharge impedance entity.
[0033] Specifically, the transient charge from the flipping event is fed into the thermal residual signal annihilation potential well 103 via the residual charge discharge and neutralization detection feedback loop 209. It is unidirectionally absorbed by the dissipation impedance network and adsorption capacitor array until the neutralization determination is passed, at which point a ready token is released. 103 and 104 jointly determine that: the total residual amplitude is below the threshold criterion, and for any single physical bit in the array, the residual bias voltage difference after forward and reverse write-through converges to below the critical value anchored by the Boltzmann thermal noise fluctuation substrate.
[0034] The signal-to-noise ratio self-test and online measurement module 104 is used to monitor the system side-channel leakage entropy online and re-trigger the compensation iteration of the active white noise power flattening kernel 101 when the information entropy exceeds the limit. It consists of an entropy compression counting array and an indistinguishable metric threshold comparator. The system side-channel leakage is monitored and measured online via the emission spectrum measurement sampling signal stream 202. The entropy compression counting array inputs the power quantization value of each sub-band into the entropy compression counting array to calculate the information entropy; the indistinguishable metric threshold comparator compares the calculated information entropy with the preset leakage entropy threshold to form a causal determination that "the total power consumption and electromagnetic radiation information entropy are maintained below the indistinguishable metric threshold".
[0035] Specifically, 104 inputs the power quantization value of each sub-band into the entropy compression counting array, calculates the information entropy and compares it with the indistinguishable measurement threshold to form a causal judgment that "the total power consumption and electromagnetic radiation information entropy are maintained below the indistinguishable measurement threshold"; if the entropy is lower than the threshold (indicating that the identifiable structure reappears in the spectrum), T2 is retried; otherwise, it returns to continuous monitoring.
[0036] The transient electromagnetic sensing and power spectrum curvature estimation unit 105 is used to convert the transient calculation current of the protected execution core into a voltage domain spectrum signal, and calculate the spectral density estimate and the first-order difference quotient of adjacent sub-bands one by one, outputting the curvature error gradient to the active white noise power flattening core 101. Its built-in electromagnetic sensing conversion front end (wideband current mirror sensing structure and near-field inductive coupling structure) converts the transient calculation current of the protected host execution core (via signal flow 201) into a voltage domain spectrum signal; internally, a programmable bandpass filter register group divides the generalization analysis frequency band (100MHz to 6GHz engineering nominal range) into several sub-bands, and a parallel comparator pipeline calculates the spectral density estimate and the first-order difference quotient of adjacent sub-bands one by one, outputting the spectral curvature error gradient (signal flow 203) and the emission spectrum measure (signal flow 202) in real time. The input of this unit is physically bound to the charge displacement caused by the transistor switch, and the output directly drives the downstream compensation decision, possessing a clear physical anchoring characteristic.
[0037] Specifically, the analog differential sensing element within 105 extracts the sign and amplitude of the load current change rate, controls the turn-on slope of the unit current element in the charge pump array 106, and makes the injected current waveform and the leakage current waveform approximately out of phase superimposed in the time domain. At the same time, white noise compensation power flow (signal flow 205) is injected into the dummy load branch of the core bias power supply rail. The spectrum of 105 is collected and combined through signal flow 202, and the first-order differential quotient norm and injection efficiency ratio are remeasured.
[0038] The pseudo-random Gaussian charge compensation injection array 106, by weighting the unit current elements according to the adaptive compensation potential, injects compensation current into at least one of the core bias power supply rail, dummy load branch, or on-chip dummy compensation node. It consists of a dummy switch tube charge pump array weighted by the unit current element and a multiplexed switch tree, and injects compensation current (signal flow 205) into the dummy load branch of the core bias power supply rail by weighting the unit current element according to the compensation potential codeword. The injection path is physically isolated from the functional signal path, only changing the charge distribution of the power supply network without affecting any functional logic.
[0039] Specifically, the analog differential sensing element within chip 105 extracts the sign and amplitude of the load current change rate, controls the turn-on slope of the unit current element in the charge pump array 106, and makes the injected current waveform and the leakage current waveform approximately out of phase superimposed in the time domain. Simultaneously, white noise compensation power flow (signal flow 205) is injected into the dummy load branch of the core bias power rail. The unit current element is then turned on according to the adaptive compensation potential weighting, injecting compensation current into at least one of the core bias power rail, the dummy load branch, or the on-chip dummy compensation node.
[0040] The lifecycle end and context switch detector 107, composed of a level edge detector and privilege level change capture logic, identifies pre-shutdown sequences, context switches, and privilege preemption events, and sends a trigger token to the microarchitecture antimagnetic flush controller 102 via the termination token flush control bus 206. This detector is used to trigger the microarchitecture antimagnetic flush controller 102 to perform multiple rounds of polarity alternating flushes on the cache and branch prediction memory array 109 at the end of the chip's lifecycle, during power-off shutdown, or at the moment of a context switch.
[0041] The orthogonal alternating polarization pattern generator 108 consists of an orthogonal Barker codeword read-only memory, a pseudo-random number source, and a polarity inversion multiplexer. It generates pairs of orthogonal forward / reverse polarization patterns (signal stream 208) in rounds. Its internal parity check accumulator ensures that the algebraic sum of the injected pattern vectors in all rounds is zero (paired forward and reverse, symmetric in even rounds). This generator writes the alternating polarization inversion signal stream 208 to the cache and branch prediction memory array 109, outputting the forward polarization state and the reverse conjugate phase pattern, performing random data write-through and two's complement inversion.
[0042] Specifically, for each round: First, signal stream 208 writes the positively polarized state of the global random data to 109 (pseudo-random number source and orthogonal mode vector are selected bit by bit, word lines are fully scanned, write enable is fully enabled, covering the first-level cache, second-level cache, branch prediction history buffer, and reserved station entries), and the transient current of the flip is guided to 103 via the bit line; then 108 generates an inverse conjugate phase pattern and performs a two's complement flip, and the dipole moment is reversed and neutralized by discharge and introduced into 103. After the round reaches the upper limit, 108 activates the pseudo-random whitening confusion phase and writes the randomized final state adsorption filling that is independent of the historical data statistics to 109.
[0043] The cache and branch prediction memory array 109 is deployed in the protected target domain, physically covering the underlying L1 cache, L2 cache, branch prediction history buffer, and out-of-order execution reserve. Under the control of the microarchitecture anti-magnetic flushing controller 102, it performs multiple rounds of polarity alternating flushing, consisting of "multiple rounds of random data write-through → two's complement flip → zero-potential clamping". During the flushing, word lines are fully scanned and write enable is enabled across the entire domain, covering the L1 cache, L2 cache, branch prediction history buffer (including saturation counter entries), and out-of-order execution reserve (including ready bit, data field, and tag field).
[0044] Specifically, for each round: First, signal flow 208 writes the positive polarization state of the global random data to 109 (pseudo-random number source and orthogonal mode vector are selected bit by bit, word lines are fully scanned, write enable is fully enabled, covering the first-level cache, second-level cache, branch prediction history buffer, and reserved station entries), and the transient current of the flip is guided to 103 through the bit line; then 108 generates the reverse conjugate phase pattern and performs the two's complement flip, and the dipole moment reverse neutralization discharge is introduced into 103. After the round reaches the upper limit, 108 activates the pseudo-random whitening confusion phase and writes the randomized final state adsorption filling independent of the historical data statistics to 109; then 102 issues a zero-clamp token, and the multiplexer tree of 109 shorts all bit lines to the zero potential discharge impedance, performs zero potential clamping, and the residual charge is unidirectionally absorbed by 103.
[0045] The causal partial order within the system assembly 100 is as follows: The transient electromagnetic sensing and power spectrum curvature estimation unit 105 performs non-intrusive tapping on the transient calculation current of the protected execution core via the transient current sensing channel 201, and outputs the curvature error gradient, which is then fed into the active white noise power flattening core 101 via the spectrum curvature error channel 202; the active white noise power flattening core 101 generates an adaptive compensation potential, which drives the pseudo-random Gaussian charge compensation injection array 106 to inject compensation current into the core bias power supply rail, dummy load branch, or on-chip dummy compensation node via the compensation potential channel 203; the microarchitecture antimagnetic scour controller 102 receives the termination request via the termination request channel 204, outputs isolation confirmation, and continuously forces the termination via the reverse voltage blocking channel 205 until the residual charge neutralization indication is detected to be valid. Enable bus reverse voltage blocking signal or invalidate ready token; thermal residual signal annihilation potential well 103 detects transient charge released by storage medium flip through residual charge sensing channel 206, and outputs residual charge neutralization indication through neutralization indication channel 207 when the residual bias voltage difference is lower than the preset critical value; signal-to-noise ratio self-test and online measurement module 104 monitors system side channel leakage entropy online through leakage entropy measurement channel 208, and re-triggers active white noise power flattening core 101 for compensation iteration through compensation re-trigger channel 209 when information entropy exceeds the limit; cache and branch prediction memory array 109, under the control of microarchitecture antimagnetic scouring controller 102, performs multi-round polarity alternating scouring through scouring control channel 210, which is "multi-round random data write-through → complement flip → zero potential clamping".
[0046] Figure 3 To prevent magnetic erasure timing control, a finite state machine is used to show the complete causal partial order from termination token trigger (causal step T0), back pressure isolation establishment (T1), potential well adiabatic venting channel establishment (T2), multiple rounds of alternation between forward random write-through phase and reverse complement flip phase (T3~T4, backflow when the number of rounds does not reach the upper limit), random whitening and zero potential clamping final state (T5), potential well neutralization determination (T6) to ready release (T7), and to indicate the backoff branch for adding alternating rounds when the neutralization determination fails, to ensure finite step activity.
[0047] This invention also proposes a side-channel physical immunity method based on anti-magnetic erosion and active white noise flattening, comprising the following discrete causal steps: Noise injection flattening step: Inject compensation current into the power supply network based on the radiation spectrum curvature; Online spectrum monitoring steps: Monitor radiation leakage entropy online and re-trigger compensation when limits are exceeded; Microarchitecture thorough flushing steps: Perform multiple rounds of polarity alternating flushing during shutdown or context switching until residual charge is neutralized.
[0048] Figure 4The flowchart of the flattening method shows the step-by-step process of spectral energy sensing (T0), calculation of spectral density and first-order gradient of each sub-band (T1), gradient over-limit judgment (T2), forced multiphase adaptive injection or baseline coverage branch (T3 / T4), envelope level update and compensation potential generation (T5), anti-phase compensation current injection (T6), flatness retest (T7), compliance judgment and gain lock (T8 / T9), as well as the entropy measurement monitoring and re-triggering closed loop of the signal-to-noise ratio self-test and online measurement module 104.
[0049] The noise injection flattening step specifically includes: T0 (Spectral Energy Sensing Beat): The execution of the kernel dense state lookup table operation causes a transient current step; the current mirror sensing front end of 105 collects this current component through signal flow 201 to complete the electromagnetic sensing conversion.
[0050] T1 (Subband Spectrum Estimation Phase): The 105 filter register group outputs the spectral density estimates for each subband, and the parallel comparator pipeline calculates the first-order difference quotients of adjacent subbands. Decision criteria: If the maximum first-order gradient does not exceed the decision threshold, proceed to T4 to maintain baseline coverage; if a leakage spike occurs in a certain subband due to key-related table lookup in this phase, and the gradient exceeds the limit, the comparator sets the "forced multiphase adaptive injection" mode flag.
[0051] T2 (gradient distribution beat): 105 uses the underflattening difference vector of each subband as the curvature error gradient, and sends it to the active white noise power flattening kernel 101 via signal stream 203.
[0052] T3 (Envelope Update Beat): The 101 maximum value holding register group performs supremum operation and adds margin to update the dynamic envelope tracking level; the subtractor array calculates the residuals subband by subband, and zero clamping gating blocks negative residuals, retaining only the positive residuals of power deficit subbands.
[0053] T4 (Compensation Potential Synthesis Beat): The Gaussian white noise disturbance component output by the active white noise generator channel is synthesized with the residual component at the summation node to form a compensation spectrum; the output weighted codeword is sent to 106 via signal stream 204.
[0054] T5 (Inverting Compensation Current Injection Beat): The analog differential sensing element within 105 extracts the sign and amplitude of the load current change rate, controls the turn-on slope of the unit current element of the 106 charge pump array, so that the injected current waveform and the leakage current waveform form an approximately inverted superposition in the time domain, and simultaneously injects white noise compensation power flow (signal flow 205) into the dummy load branch of the core bias power supply rail.
[0055] T6 (Mode Switching Disturbance Beat): If this beat happens to coincide with the working mode switching edge (frequency domain switching, voltage domain switching, or sleep / wake-up), the system inserts a structured clock jitter with pseudo-random sequence modulation into the system master clock signal distribution path by a programmable delay chain array, and inserts an asymmetric delay potential well with unequal positive and negative edge delays to disrupt the periodic electromagnetic fingerprint of the switching event; during the injection period, the covering invariant is ensured by an OR gate enable network to keep the white noise modulator constantly on, without the appearance of a zero modulation window.
[0056] T7 (Flatness Retest): 105 signals are collected and combined 202 times via the signal stream to retest the first-order difference quotient norm and injection efficiency ratio. Judgment criteria: If the first-order difference quotient norm still exceeds the convergence limit or the injection efficiency ratio is lower than the lower limit, return to T2 iteration (the iteration gain is limited by the damping register; because the envelope level is monotonically constrained by the maximum capability of the injection array, the iteration converges within a finite number of iterations); this embodiment assumes that the standard is met after two rounds of iteration.
[0057] T8 (Gain Lock Step): 101 locks the current compensation gain codeword and enters steady-state tracking mode, tracking only the slowly changing envelope level with small steps.
[0058] The online spectrum monitoring steps specifically include: T9 (Entropy Measurement Monitoring): 104 inputs the power quantization value of each sub-band into the entropy compression counting array, calculates the information entropy and compares it with the indistinguishable measurement threshold to form a causal judgment that "total power consumption and electromagnetic radiation information entropy are maintained below the indistinguishable measurement threshold"; if the entropy is lower than the threshold (indicating that the identifiable structure reappears in the spectrum), T2 is retried; otherwise, it returns to continuous monitoring.
[0059] Closed-loop verification: T0~T9 form a causal continuous partial-order closed loop. The state transition judgment formulas for any step (gradient limit violation judgment, flatness compliance judgment, entropy limit violation judgment) all have two clear exits, one true and one false, and all exits have subsequent steps with no dangling branches.
[0060] The microarchitecture thorough flushing process specifically includes: K0 (Termination Trigger): 107 detects a pre-shutdown sequence or privilege level preemption switching request, and sets the termination token via signal stream 206; 102 accordingly calibrates the total flushing duration according to the array depth and loads the round counter.
[0061] K1 (Freeze and Backpressure Isolation Pace): The hardware backpressure logic of 102 pulls down the enable bits of all downstream decoding units, freezes the data write-back channels of the branch prediction history buffer and each level of cache, locks external bus access to establish an isolation wall, and outputs isolation confirmation; the interlock gating matrix synchronization forces the ready token to be invalid.
[0062] K2 (Discharge Channel Establishment): The adiabatic discharge switch tree of 103 is closed by the residual charge discharge and neutralization detection feedback loop 209, and the bit line discharge path is connected to the dissipation impedance network and adsorption capacitor array.
[0063] K3~K4 (orthogonal multi-round alternating flushing phase, repeated until the maximum number of rounds is reached): For each round: First, the positive polarization state is written through the global random data from 108 to 109 via signal flow 208 (pseudo-random number source and orthogonal mode vector are selected bit by bit, word lines are fully scanned, write enable is fully enabled, covering the first-level cache, second-level cache, branch prediction history buffer, and reserved station entries), and the flipping transient current is guided to 103 via the bit line; then 108 generates an inverse conjugate phase pattern and performs complement flipping, and the dipole moment is reversed and neutralized by discharge and introduced into 103. Positive and negative pairs, even-numbered rounds are symmetrical, ensuring that the algebraic sum of the polarity mode vectors in all rounds is zero, and the first-order component of the dielectric polarization bias cancels out in round by round; the flushing target is decoded in a cascaded order of first-level cache → second-level cache → branch prediction history buffer → reserved station.
[0064] K5 (Random Whitening and Zero Potential Clamping): After the round reaches the upper limit, 108 activates the pseudo-random whitening confusion phase and writes the randomized final state adsorption filling independent of historical data statistics to 109; then 102 issues a zero clamping token, and the multiplexer tree of 109 shorts all bit lines to the zero potential discharge impedance to perform zero potential clamping, and the residual charge is unidirectionally absorbed by 103.
[0065] K6 (Neutralization Decision Step): Joint decision by 103 and 104: The total residual amplitude is lower than the threshold criterion, and for any single physical bit in the array, the residual bias voltage difference after forward and reverse write-through converges to below the critical value anchored by the Boltzmann thermal noise fluctuation basis—this dynamic threshold is jointly anchored by the output of the on-chip temperature sensing element (bandgap reference type) and the capacitance ratio calibration circuit, and is decided by the comparator within discrete clock steps. If the decision fails and the round counter has not reached the hardware limit, return to K3 to add an alternating round (limited step activity guarantee); if it passes, execute K7.
[0066] K7 (Ready to Release Pulse): 102 generates a single-pulse setter, resets the stored state vector to a Gaussian pseudo-random number, clears the isolation flag, cuts off the 103 discharge channel and locks the charge residual, issues a release completion token and a ready token, and transfers execution rights to subsequent tasks. In a shutdown scenario, this token drives the system into a safe power-off sequence; in a context switching scenario, the new context loading is based on this.
[0067] Closed-loop verification: K0→K1→K2→(K3) K4) → K5 → K6 → (K6 → K3 backtracking branch | K6 → K7 release branch) → K7 constitutes a strict causal partial order. Any decision step is a closed loop. The flushing process will inevitably end within a finite distance and there is no self-locking hanging path.
[0068] Microarchitecture engineering parameter convergence range and physical implementation interface declaration The microarchitecture timing topology, algebraic manifold decision model, and hardware interlocking circuit disclosed in this invention have been fully and sufficiently disclosed. This embodiment provides a theoretical simulation model based on the current process node, and its physical measured measurements, such as the microscopic waveforms, energy consumption curves, and aging acceleration data, are results that can be expected by those skilled in the art based on the theoretical model of this invention. This invention is not limited to a specific process node and reserves corresponding physical interfaces for future potential divisional applications or infringement litigation. The following formalized measurement parameters and convergence intervals constitute the optimal range for engineering implementation of this invention: (1) Comparison of measured spectral density of silicon after DPA / EMA attack resistance (comparison of near-field electromagnetic radiation spectrum acquisition before / after planarization). (2) Physical transistor-level waveforms of the active white noise generator (time-domain / frequency-domain measured waveforms of the simulated chaotic circuit and mask superposition node). (3) Microscopic measurement data of residual charge after the storage cell is flushed (microscopic measurement curve of residual polarization voltage after multiple rounds of polarity alternation flushing).
[0069] Generalized engineering nominal parameter ranges (all are engineering reference ranges and abstract physical symbols, not bound to specific process nodes or specific chip post-silicon fixed values): Formal measurement parameters' physical meaning and test characterization interface: typical nominal value range / constraints Electromagnetic radiation spectral density functional space integral electromagnetic near-field radiation spectral density analysis frequency band: 100MHz~6GHz The spectral flatness convergence limit and the maximum permissible curvature of the frequency domain envelope are ≤1.85 dB / MHz. The injection efficiency ratio is limited to the effective compensation power ratio, with a lower limit of 0.15~0.40%. The dielectric charge dissipation constant and the residual charge dissipation rate of the storage node are 1.2 × 10⁻⁶. 7 ~4.8×10 7 s -1 Alternating scouring cycles, orthogonal multi-cycle scouring, basic cycle number ≥ 4 cycles, and even number of cycles, symmetrical structure. The residual voltage safety margin for the thermal fluctuation narrowing coefficient is 0.05~0.25. The total flushing time for the entire antimagnetic flushing process is 16 to 64 discrete machine cycles.
[0070] It will be apparent to those skilled in the art that the embodiments of the present invention are not limited to the details of the exemplary embodiments described above, and that the embodiments of the present invention can be implemented in other specific forms without departing from the spirit or essential characteristics of the embodiments of the present invention. Therefore, the embodiments should be considered exemplary and non-limiting in all respects, and the scope of the embodiments of the present invention is defined by the appended claims rather than the foregoing description. Therefore, all variations falling within the meaning and scope of equivalents of the claims are intended to be encompassed within the embodiments of the present invention. No reference numerals in the claims should be construed as limiting the scope of the claims. Furthermore, it is clear that the word "comprising" does not exclude other units or steps, and the singular does not exclude the plural. Multiple units, modules, or devices recited in the system, apparatus, or terminal claims may also be implemented by the same unit, module, or device through software or hardware. The terms "first," "second," etc., are used to indicate names and do not indicate any particular order.
[0071] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the embodiments of the present invention and are not intended to limit them. Although the embodiments of the present invention have been described in detail with reference to the above preferred embodiments, those skilled in the art should understand that modifications or equivalent substitutions to the technical solutions of the embodiments of the present invention should not depart from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A side-channel physical immune system based on anti-magnetic erosion and active white noise flattening, characterized in that, include: The active white noise power flattening kernel (101) is configured to generate Gaussian white noise perturbation components by superimposing the simulated chaotic waveform with the pseudo-random perturbation mask sequence during operation, and merge with the frequency domain residual to generate an adaptive compensation potential to drive the injected compensation current to converge the electromagnetic radiation spectral density. The microarchitecture antimagnetic scour controller (102) is configured to output an isolation confirmation upon receiving a termination request, and to continuously force the enable bus back-voltage blocking signal or invalidate the ready token to maintain back-voltage isolation until a residual charge neutralization indication is subsequently detected. The active white noise power flattening core (101) and the microarchitecture antimagnetic scour controller (102) are electrically connected via a hardware interlocked gating network to collaboratively achieve radiation spectrum flattening during operation and antimagnetic physical isolation during shutdown.
2. The system according to claim 1, characterized in that, The system also includes a transient electromagnetic sensing and power spectrum curvature estimation unit (105), which converts the transient calculation current of the protected execution core into a voltage domain spectrum signal, calculates the spectral density estimate and the first-order difference quotient of adjacent sub-bands for each sub-band, and outputs the curvature error gradient to the active white noise power flattening core (101).
3. The system according to claim 1, characterized in that, The system also includes a pseudo-random Gaussian charge compensation injection array (106), which activates a unit current element according to the adaptive compensation potential and injects the compensation current into at least one of the core bias power supply rail, the dummy load branch, or the on-chip dummy compensation node.
4. The system according to claim 1, characterized in that, The system also includes a cache and branch prediction memory array (109) deployed in the protected target domain, which performs a multi-round polarity alternating flushing of "multi-round random data write-through → two's complement flip → zero potential clamping" under the control of the microarchitecture antimagnetic flushing controller (102).
5. The system according to claim 1, characterized in that, The system also includes a thermal residual signal annihilation potential well (103), which provides a controlled low-resistance discharge path for transient charges released by the storage medium flipping, and outputs a residual charge neutralization indication when the residual bias voltage difference is lower than a preset critical value.
6. The system according to claim 1, characterized in that, The system also includes a signal-to-noise ratio self-test and online measurement module (104) for online monitoring of the system side channel leakage entropy, and for re-triggering the compensation iteration of the active white noise power flattening kernel (101) when the information entropy exceeds the limit.
7. The system according to claim 2, characterized in that, The system limits the maximum permissible curvature of the frequency domain envelope to ≤1.85dB / MHz, and the lower limit of the effective compensation power ratio is 0.15~0.
40.
8. The system according to claim 4, characterized in that, The cache and branch prediction storage array (109) physically covers the underlying first-level cache, second-level cache, branch prediction history buffer and out-of-order execution reserve station.
9. A side-channel physical immunization method based on anti-magnetic erosion and active white noise flattening, characterized in that, The discrete causal steps include: noise injection flattening step: injecting compensation current into the power supply network based on the radiation spectrum curvature; Online spectrum monitoring steps: Monitor radiation leakage entropy online and re-trigger compensation when limits are exceeded; Microarchitecture thorough flushing steps: Perform multiple rounds of polarity alternating flushing during shutdown or context switching until residual charge is neutralized.
10. The method according to claim 9, characterized in that, The microarchitecture thoroughly flushing process satisfies the antimagnetic rewriting timing sequence of "multiple rounds of random data write-through → two's complement flip → zero potential clamping" to eliminate the charge trap memory effect.
11. The method according to claim 10, characterized in that, The microarchitecture thorough flushing step targets the underlying physical layers of the first-level cache, second-level cache, branch prediction history buffer, and out-of-order execution reserve.
12. The method according to claim 9, characterized in that, In the noise injection flattening step, the transient electromagnetic sensing and power spectrum curvature estimation unit (105) calculates the spectral density and first-order difference quotient of each sub-band, and generates an adaptive compensation potential according to the frequency domain residual.
13. The method according to claim 9, characterized in that, In the microarchitecture thorough flushing step, the residual bias voltage difference of a single physical bit is determined to be lower than the critical value of Boltzmann thermal noise fluctuation substrate anchoring by the thermal residual signal annihilation potential well (103).
