PUF-Keyed Authenticated Encryption for Delta-Sigma Wireless Sensors:An Open SKY130 Attack-and-Defence Study
Nithin Purushothama1, Pramoda S R2, Runpeng Gao3, Santosh H. Mokashi4 and Madhav K Pathak1
1Indian Institute of Technology (IIT) Gandhinagar, Gujarat, India · [email protected], [email protected]
2Visvesvaraya Technological University (VTU), India · [email protected]
3Oregon State University, Corvallis, OR, USA · [email protected]
4PES University, Bangalore, India · [email protected]
ISSCC 2027 Code-a-Chip notebook
Team
|
This work is licensed under Apache 2.0
Paper (PDF): PUF-Keyed Authenticated In-Modulator Encryption for Delta-Sigma Sensors in Open-Source SKY130
How to run this notebook
Running it. Select Open in Colab and then Runtime → Run all; no installation, GPU, key or upload is needed. The setup cell of Section VII-A installs ngspice, the SKY130 PDK, Yosys, KLayout, Magic, netgen, OpenROAD and Icarus Verilog in about 1–2 min, and the whole run takes about 17–18 min on the two cores of a free runtime (16.0 min in the published run with the tools installed, by section in the table below). All outputs are saved, so the notebook can also be read without running it. Every number is computed in the session by about 13,820 lines of Python that the cells below write; only runs too long for one session are shown from recorded runs of the same code, marked recorded where they appear and re-run by a switch set before Run all (PUF_MODE, PEX_LIVE, ROUTE_BLOCK, CLOCK_GATING_LIVE, CHIP_LIVE, ROUTE_COMPILED, LONG_RUN). The README’s How to run and its appendix give every switch and script with its run time, the time of each section and of the slowest cells, the tool versions, local installation and the notation.
Run time of the published run, by section
|
Two cores, tools installed; the setup is counted in Section VII, and Sections I to IV, XIII and XIV run no code.
Reading it. The notebook is laid out as a journal paper: each section opens with its question, and each study gives its theory and prediction, its setup, a Next cell note, the cell with its captioned figure, and its key insights. A ten-minute reading takes the Abstract (below), the proposed design (Section I-C), the threat model (Table 3), both architectures (Fig. 14), the verdicts (Table 21), the replica attack (Fig. 51), the SRAM-PUF key sizing (Fig. 55), the cost (Fig. 74) and the conclusions (Section XV). The interactive parts are six explorers whose menus respond at once without running anything (Fig. 52, Fig. 56, Fig. 78, Fig. 62, Fig. 37, Fig. 71), the web explorer of Section XIII, the Colab form of the mixed-level settings (Section XII-A) and 14 interactive figures (values on hover, drag to zoom).
Google Colab Link: https://drive.google.com/file/d/1GClVclCStTcOkyGB1W2Hqe_oer5_KY1A/view?usp=sharing
Abstract
In-modulator encryption XORs each output bit of a delta-sigma modulator with a keystream, so that a sensor encrypts its readings without a decimator. The secure delta-sigma modulator (S-DSM) of Yasar et al. [1] does so with a stored 16-bit key, a linear keystream without a nonce and unauthenticated frames. This work keeps its front end and bit-level XOR and adds four ideas new to in-modulator encryption: a 128-bit key regenerated at every power-up from static random-access memory (SRAM) cells used as a physically unclonable function (PUF); the keystream and a 32-bit message authentication code of every frame from one Grain-128a core; a chip nonce hashed from 64 power-up reads of the same cells; and a one-time enrolment at −40 and 85 °C. Both designs are evaluated with open-source tools, from post-layout SKY130 simulations at 45 process, voltage and temperature (PVT) conditions to a bit-level model that reproduces the measurements of [1]. Analog differences between chips cannot replace a key: a replica attack breaks all 360 simulated chip pairs. At the fast-nMOS corners some cells reverse their preferred state with temperature (27.8 % bit errors at 85 °C), and only the two-temperature enrolment keeps the key failure rate below 10⁻⁶ at every corner. The S-DSM fails 11 of 15 attacks; with that enrolment the proposal stops all 15 (10 resisted, 5 detected). Power analysis, outside the threat model, finds key-dependent leakage in both designs, in the proposal only while the key is loaded. Its keystream block takes 9,869 gate equivalents and 64.3 µW at 10 MHz in SKY130, with the best figure of merit (2.21, against 5.09 for Trivium and 14.1 for the S-DSM), and the security subsystem passes DRC and LVS as one 1.035 mm² layout. A key-generator compiler and a mixed-level simulation of the complete sensor at 24 settings confirm the models.
Index Terms-Delta-sigma modulator, in-modulator encryption, authenticated encryption, physical-layer security, physically unclonable function (PUF), SRAM PUF, fuzzy extractor, BCH code, Grain-128a, message authentication, stream cipher, Berlekamp-Massey, SKY130, mixed-level simulation, open-source EDA.
Contents
- I. Introduction: A. Application and motivation: secure sensing for biomanufacturing; B. Research questions; C. Proposal: what prior work leaves open and what this work adds; D. Methodology and organisation
- II. Background: A. Delta-sigma modulation: an oversampling 1-bit converter; B. Stream ciphers: XOR with a keystream; C. Message authentication and freshness: encryption does not provide integrity; D. Physically unclonable functions and fuzzy extractors; E. The secure delta-sigma modulator of [1]
- III. Prior work: A. Cryptographic engines; B. Physical-layer and analog-domain security; C. In-modulator encryption: the S-DSM [1]; D. Silicon PUFs and key generators; E. Attacks that shape the threat model; F. Research gap
- IV. Proposed work: A. Threat model; B. The proposed architecture; C. The new ideas: where each fits, what it solves and how
- V. A bit-level model of the link: A. Operating point, settings and seeds; B. Keystreams: the original 16-bit LFSR and Grain-128a; C. Front end, second-order 1-bit delta-sigma modulator and receiver filters; D. SRAM PUF, BCH fuzzy extractor and key derivation; E. Attack tools; F. One frame through the link, with an optional attack; G. The 15 attacks and their verdicts; H. A reference frame
- VI. Consistency check against the measurements of [1]: A. Two channels, same key, same input (Fig. 4(c) of [1]); B. Transmitted bits behind the energy table (Fig. 4(b) of [1]); C. Runs, results and interpretation
- VII. Circuit-level simulation in SKY130: A. Simulation setup; B. The StrongARM comparator; C. The SRAM-PUF cell; D. Post-layout extraction; E. The model with SKY130 parameters; F. Process, voltage and temperature corners; G. Ageing of the SRAM-PUF cell (recorded, assumed BTI law)
- VIII. From transistor to system: accuracy, power and security: A. Accuracy: comparator noise and offset; B. Security of the original design: comparator noise and offset; C. Power: the comparator in the sensor’s power budget; D. The modulator’s own non-idealities: integrator noise and OTA gain; E. Security of the original design: integrator capacitor mismatch; F. Security of the proposed design: from SRAM-PUF cell to key; G. The circuit-to-system map
- IX. Security evaluation: A. Attack evaluation: 15 attacks on both designs; B. PUF reliability: probability of key failure per power-up; C. Parameter sweeps: security boundaries of both designs; D. Side-channel exposure: a leakage test on the register-level power model
- X. Implementation cost on SKY130: A. The designs and their RTL; B. Verification and synthesis; C. Place and route and sign-off of the low-power block of the proposed design; D. Gate-level power of every design; E. A figure of merit, transmitted bits and average power; F. Power breakdown of the chip of [1], with each security block; G. Complete system power: the proposed design against [1] under the same conditions; H. Side-channel exposure of the placed netlists
- XI. From specification to hardware: a key-generator compiler: A. Steps 1 and 2: specification and design-space search; B. Step 3: Verilog generation, synthesis and selection; C. Step 4: RTL verification of the generated decoder; D. Step 5: place and route; E. Step 6: the complete area
- XII. Full-chain mixed-level simulation of the complete sensor: A. Settings; B. Step 1, transistor level: the SRAM-PUF array powers up; C. Step 2, RTL: the key is reconstructed in hardware; D. Step 3, transistor level in the loop: two chips’ modulators; E. Step 4, RTL: encryption and MAC; F. Step 5: the server, an eavesdropper and the replica attacker; G. Step 6, transistor level: the replica attack over 30,000 clocks; H. The complete sensor in one figure; I. Summary of the run
- XIII. The interactive explorer
- XIV. Comparison with prior work: A. How to read the table; B. A note on technology; C. What the comparison shows
- XV. Conclusion, limitations and future work: A. Security of the original design; B. Security and cost of the proposed link; C. Influence of the circuit non-idealities; D. Specification-driven key generation and consistency across levels; E. Implications beyond this design; F. Limitations; G. Future work
- Appendix: Source, licence and reuse
- Acknowledgment
- References
- About the Authors
I. Introduction
Wireless sensors increasingly feed control loops and therapies: capsules floating in a bioreactor report the glucose concentration and cell density of a culture to a closed control loop [1], and a worn glucose sensor informs the next insulin dose. The readings reveal a manufacturer’s process or a person’s health, and a forged, altered or replayed reading makes the loop act on false data, at the cost of a batch or of a patient’s safety. Every reading must therefore be encrypted and authenticated, at a power that the sensor can afford.
The power available is small. The front end of the sensor of [1], modulator included, dissipates about 1.35 mW; an on-chip Trivium stream cipher [5] would add 220 µW, and a conventional design must also decimate the modulator output into words before encrypting them [1]. Yasar et al. [1] avoid both costs by encrypting the bits of the delta-sigma modulator itself, for 24 µW. This work examines whether such in-modulator encryption protects the readings against a realistic attacker, and proposes a design that does so without giving up its advantages. Subsection A states the application, its threats, the requirements and the proposed design; B, the four research questions; C, the gaps prior work leaves and what this work adds for each; and D, the method and organisation.
A. Application and motivation: secure sensing for biomanufacturing
Biomanufacturing uses living cells in large bioreactors to produce pharmaceutical ingredients, food ingredients and bio-based materials, and the culture conditions set the yield of the process [1]. Offline samples and large fixed probes both risk contaminating the culture, and a fixed probe observes only one location. Yasar et al. [1] instead place a multimodal electrochemical sensor in a capsule that floats inside the bioreactor. It reports wirelessly, so that a closed control loop observes the entire vessel in real time. The chip (65 nm CMOS, 1.2 V) is a potentiostat front end with three measurement modes:
- cyclic voltammetry (CV), to find the redox potential of a reaction;
- amperometry, to measure the glucose concentration (demonstrated from 1.5 to 5.6 mM, coefficient of determination R² = 0.9981), the nutrient the culture consumes;
- electrochemical impedance spectroscopy (EIS, up to 100 kHz), to measure the E. coli cell density (4.0 × 10⁷ to 2.4 × 10⁹ cells/mL), the growth of the culture.
A low-noise transimpedance amplifier (TIA) with four gain settings (3.30 kΩ to 3.06 MΩ) provides 140.55 dB of dynamic range and 9.48 pA rms of input-referred noise over 100 kHz, and a second-order 1-bit continuous-time delta-sigma modulator clocked at 10 MHz digitises the current.
The same three techniques underlie continuous glucose monitors, sweat and blood sensing, neural and implant monitoring, point-of-care diagnostics, water testing and battery health estimation; the secure link studied here applies to any such sensor whose current is digitised by a delta-sigma modulator and sent by radio.
Because the readings drive the control loop, their confidentiality and integrity are essential [1]: an eavesdropper learns the confidential state of the process, and a man-in-the-middle who alters packets makes the loop act on false data, from reduced yield to a lost batch or a health hazard. Integrity includes freshness: a replayed frame is an old reading accepted as new, hiding any change since it was sent. A captured capsule should not reveal the key it shares with the receiver.
Fig. 1 shows where these threats act: on the open radio link the attacker can listen and inject forged, replayed or altered frames, and can also choose what the sensor measures or obtain a chip.

Fig. 1. Application context and threats. Left: stirred-tank bioreactor with floating sensor capsules. Right: uplink of the encrypted ΔΣ bitstream to the receiver and the process-control server; orange: the attacker, who listens to the uplink and injects frames. Bottom: one capsule magnified (counter, reference and working electrodes CE, RE, WE; potentiostat and transimpedance amplifier (TIA); secure delta-sigma modulator (S-DSM); radio).
A standard cipher conflicts with the capsule’s budget [1]: Trivium alone would add about a sixth to the front-end power, before its decimator is counted. The application therefore needs confidential, authenticated and fresh readings, under a key that a captured chip does not reveal, for a few per cent of the sensor’s power.
These needs are six requirements, against which Section III judges prior work and Section XIV compares the designs:
Table 1: Requirements of a secure sensor link, R1 to R6, and the reason for each
|
The proposed design keeps the front end of [1] and its exclusive-OR (XOR) encryption of each modulator bit, with no decimator, and adds four ideas new to in-modulator encryption:
- a 128-bit key that is never stored, regenerated at every power-up from the chip’s own static random-access memory (SRAM) cells used as a physically unclonable function (PUF);
- the keystream and a message authentication code (MAC) of every frame from one Grain-128a core;
- a chip nonce, hashed from power-up reads of the same cells, in every initialisation vector;
- a one-time enrolment at −40 and 85 °C.
Both designs face the same 15 attacks, from transistor-level SKY130 circuits to the system, and the proposed design’s cost is measured, all with open-source tools. Section II-E describes the encryption of [1], Section IV the proposed design.
B. Research questions
The evaluation in [1] covers an eavesdropper with a replica chip and two cryptanalyses (a zero input; the same key with the same message) on measured 65 nm silicon, without process corners or temperature. Four features are not tested there: the 16-bit key is stored on the chip; the LFSR keystream is linear; without a nonce it repeats after every power-up; and without authentication or a counter, forged, altered and replayed frames are accepted. This work addresses four questions with open-source tools and the SkyWater SKY130 process design kit (PDK):
- How secure is the S-DSM against a realistic attacker, who may also search the key space, learn keystream bits, obtain a chip or transmit on the link? This needs a bit-level model of the link consistent with the measurements of [1] (Sections V and VI) and every attack run on it (Section IX).
- Can the stored key be eliminated and every frame authenticated, without changing the analog front end, and at what cost? The PUF key is corrected by a Bose-Chaudhuri-Hocquenghem (BCH) code and hashed; Grain-128a [6] replaces the LFSR and supplies the MAC, with a frame counter, a session nonce from the receiver and the chip nonce (Section II-C; design in Section IV, security in Section IX, cost in Section X).
- Do circuit non-idealities change these answers? Comparator noise and offset and SRAM-cell noise and temperature dependence vary with process, supply voltage and temperature (PVT); they may degrade accuracy, protect the original design or make the PUF key unreliable. This needs the circuits at block level (Section VII) and their effect at system level (Section VIII).
- Can the key generator be derived from a specification, and do the models hold together? A key-generator compiler turns the reliability specification into RTL verified against the model (Section XI), and one mixed-level simulation of the complete sensor checks the abstractions behind the system-level results (Section XII).
Section XV answers the four questions quantitatively.
C. Proposal: what prior work leaves open and what this work adds
The S-DSM of [1], and the prior work that Section III reviews, leave a secure low-power sensor link open on five counts. This work answers each: the first four with ideas new to in-modulator encryption, the fifth with an evaluation that no prior work of this kind provides.
- The key. Gap: the S-DSM’s stored 16-bit key falls to exhaustive search and, held in non-volatile memory as this work assumes, to an attacker with a chip (Section II-E); silicon PUF key generators avoid a stored key but have not keyed a sensor link. Proposal: a 128-bit key that is never stored, regenerated at every power-up from the chip’s own SRAM array through a BCH fuzzy extractor and a hash, and held only in volatile registers (Section IV).
- The keystream and the frame. Gap: the linear 16-bit LFSR keystream falls to Berlekamp-Massey from 32 keystream bits, and unauthenticated frames let forged, altered or replayed frames through. Proposal: the keystream and a 32-bit MAC of every frame from one Grain-128a core at the modulator’s bit rate, with the front end, the modulator and the bit-level XOR of [1] unchanged.
- Freshness. Gap: without a nonce the keystream repeats after every power-up. Proposal: a chip nonce, hashed from 64 power-up reads of the same SRAM cells, in every initialisation vector beside the receiver’s session nonce and a frame counter, so that a replayed session nonce repeats a keystream only on a 31-bit hash collision.
- Temperature. Gap (found in this work): at the fast-nMOS corners up to 26 % of the SRAM cells reverse their preferred state at 85 °C, so a 25 °C enrolment cannot meet the key-failure target at every corner (Sections VII-F and VIII-F). Proposal: a one-time enrolment at −40 and 85 °C that keeps only the cells stable and equal at both temperatures, sized from the simulated cells (a BCH code that corrects up to t = 17 flipped cells, t being its correction limit).
- The evaluation. Gap: [1] evaluates two attacks at one condition, and no prior evaluation of such a link is open and executable. Proposal: both designs evaluated from transistor to system in one reproducible notebook, with open-source tools only: a model consistent with the measurements of [1] (48.2 % and 50.0 % of bits differ between two channels, against 49.8 % and 50.05 % measured; Section VI); circuit parameters from extracted SKY130 layouts of a StrongARM comparator at 45 PVT conditions and a 6T SRAM cell at 15 (Section VII); their effect on accuracy, power and security (Section VIII); 15 attacks, with a leakage test of where each design exposes its key to power analysis (Sections IX-D and X-H); RTL verified against published test vectors, placed and routed in SKY130 in one low-power form for every compared design and ranked by a proposed figure of merit that scales no number (Section X); a key-generator compiler from a reliability and secrecy specification to a routed decoder verified bit for bit against the model (Section XI); and one simulation of the complete sensor across abstraction levels, from transistor-level cells and comparators to the receiver’s MAC check (Section XII).
Summary of results. The original design fails 11 of the 15 attacks; the proposed design resists 10 and detects 5 with the two-temperature enrolment (9 and 5 at the working setting t = 45, where the helper data leave too few secret bits, A11). The analog circuits do not secure the original design: comparator noise protects it only from 197× its worst PVT value, at 7.5 dB of signal-to-noise-and-distortion ratio (SNDR). The extracted SRAM cell has about one third of the assumed noise-to-mismatch ratio (0.0225 against 0.06); a 600-cell code enrolled at 25 °C needs t = 39 for the $10^{-6}$ key-failure target where the secrecy budget allows at most t = 35, and no searched code meets it at all five corners with a 25 °C enrolment; the two-temperature enrolment does, with t = 17.
Every number is recomputed in one Colab session, except those of the recorded runs, which their switches or scripts re-run (How to run this notebook).
D. Methodology and organisation
The proposed design is evaluated along three lines (Fig. 2): security against the 15 attacks, circuit-to-system behaviour across PVT, and implementation cost, with open-source tools throughout.

Fig. 2. Evaluation method. Rows: the three lines of evaluation (security, circuit to system, implementation cost); boxes: the four open-source steps of each line in order (arrows), with the quantities and tools of each step.
The rest of this notebook is organised as follows. Section II introduces the four concepts behind both the weaknesses and the remedies: delta-sigma modulation, keystream predictability, authentication and freshness, and PUF key generation. Section III reviews prior work, and Section IV defines the threat model and the proposed architecture. Section V presents a bit-level model of both designs, and Section VI checks it against the measurements of [1]. Section VII simulates the StrongARM comparator and the 6T SRAM cell in SKY130 from extracted layouts, and Section VIII carries the results to the accuracy, power and security of the sensor. Section IX evaluates both designs against the 15 attacks, Section X their implementation cost, and Section XI the key-generator compiler. Section XII simulates the complete sensor at mixed level. Section XIII presents the interactive explorer, Section XIV compares this work with prior work, and Section XV concludes.
II. Background
Section I traced the weaknesses of the S-DSM to a stored short key, a linear keystream without a nonce and unauthenticated frames. This section explains why each of them matters and what removes it. Subsection A shows how the delta-sigma (ΔΣ) modulator produces the bits the S-DSM encrypts, and why encrypting them is cheap; B, what makes a keystream secure and the two attacks that recover the S-DSM’s; C, why encryption does not prevent forgery, and what does; D, how a PUF with a fuzzy extractor derives a key from the chip’s own transistors; and E, the S-DSM of [1], with the assumptions this work makes where [1] is silent.
A. Delta-sigma modulation: an oversampling 1-bit converter
In the sensor of [1], a second-order 1-bit continuous-time ΔΣ modulator digitises the current of the transimpedance amplifier, and the S-DSM encrypts and transmits its output bits. The same modulator is the analog core of this work (Sections V, VII, VIII and XII); this subsection gives the properties those sections rely on.
The modulator digitises a slowly varying signal with a 1-bit quantiser clocked much faster than the signal: in [1], a clock rate $f_\mathrm{s}$ = 10 MHz against a signal bandwidth $f_\mathrm{B}$ = 100 kHz, an oversampling ratio $\mathrm{OSR} = f_\mathrm{s}/(2 f_\mathrm{B}) = 50$, or one output reading per 50 bits. Feedback makes the bits average to the input. An integrator accumulates the difference between the input $u$ and the fed-back output bit $v = \pm 1$ (the transmitted bit is $y \in \{0, 1\}$, with $v = 2y - 1$), and the comparator outputs +1 when the integrator is high, which pulls it back down, and −1 when it is low. The second-order loop of the model (Section V) is, at clock $k$, with integrator states $x_1$ and $x_2$, $$x_1[k] = x_1[k-1] + \tfrac{1}{2}\,(u[k] - v[k-1]), \quad x_2[k] = x_2[k-1] + \tfrac{1}{2}\,(x_1[k] - v[k-1]), \quad v[k] = \begin{cases} +1 & x_2[k] \ge 0 \\ -1 & \text{otherwise,} \end{cases}$$ to which Section V adds leakage, noise, offset and dither. Because the integrators stay bounded, the long-run average of $v$ equals that of $u$: the density of ones follows the input. Fig. 3 shows the loop clock by clock, with the mean of 50 consecutive output bits against the input $u$.
The loop also shapes the quantisation noise. With the quantiser written as $v = \kappa x_2 + e$, where $\kappa$ is its gain and the large rounding error $e$ is treated as additive noise, the noise and signal transfer functions (NTF and STF) are, in the z-transform variable $z$ and with denominator $D(z)$, $$\mathrm{NTF}(z) = \frac{(1 - z^{-1})^2}{D(z)}, \quad \mathrm{STF}(z) = \frac{\kappa/4}{D(z)}, \quad D(z) = 1 + \left(\tfrac{3\kappa}{4} - 2\right) z^{-1} + \left(1 - \tfrac{\kappa}{2}\right) z^{-2}.$$ At low frequency $D \approx D(1) = \kappa/4$, so that the input passes with unit gain and $\mathrm{NTF} \approx (4/\kappa)(1 - z^{-1})^2$, whose magnitude at frequency $f$, $(4/\kappa)\,(2 \sin(\pi f/f_\mathrm{s}))^2$, grows as $f^2$ (40 dB per decade) for any $\kappa$. The quantisation noise is thus pushed above the band, where the receiver’s decimation filter removes it, leaving a high-resolution reading at $f_\mathrm{s}/\mathrm{OSR}$ = 200 kHz. The model predicts the slope of the shaped noise but not its level, which scales with $1/\kappa$, since the gain of a 1-bit quantiser is not defined. It thus predicts, and Fig. 3 and Fig. 4 test, a signal tone on a low floor inside 0–100 kHz, noise rising at 40 dB per decade (|NTF| ∝ f², power ∝ f⁴) above the band, and bits that toggle often while their 50-bit mean tracks the input.

Fig. 3. Second-order 1-bit ΔΣ modulator of the model. Top: block diagram. Bottom, against clock cycle: input $u$, the mean of 50 consecutive output bits and one output sample per OSR = 50 clocks; integrator states $x_1$ and $x_2$; fed-back bits $v = \pm 1$. Recorded animation (python dev/assets/make_assets.py dsm).

Fig. 4. Spectrum of the modulator bit stream for a 20 kHz input: power per bin against frequency, as the fast-Fourier-transform (FFT) length N grows from 1,024 to 65,536 points (Welch estimate, Blackman-Harris window, all length-N segments of a 600,000-bit run). Shading: 0–100 kHz signal band; dashed orange: 40 dB/decade slope. Recorded animation (python dev/assets/make_assets.py noise_shaping).
Key insights. The modulator’s bits carry the reading only in their average, and its quantisation noise lies outside the signal band: the two properties that let the S-DSM encrypt the raw bits.
- In Fig. 3 the output bits toggle every few clocks, yet their 50-bit mean follows the input. In Fig. 4 the noise rises along the +40 dB/decade line above the band, where the 20 kHz tone stands out from a low floor; the longer the FFT, the lower the in-band floor reads, because the noise power is spread over more bins.
- Cost: encrypting the raw bits one by one needs one XOR gate per bit and no decimation filter on the sensor, the low cost of the S-DSM.
- Security: each bit depends on the input history, circuit noise and every earlier decision, which [1] relies on against a replica chip (tested in Sections VIII and IX); the bit density still carries the input, so the bits must be encrypted.
B. Stream ciphers: XOR with a keystream
The S-DSM encrypts the modulator bits with a stream cipher.
1) Encryption by XOR: The transmitter sends C = D ⊕ K, with D the data bit and K a keystream bit generated from a secret key k; the receiver computes C ⊕ K = D. Fig. 5 follows this bit by bit, also for an attacker who XORs with a guessed keystream K̂. If K is unpredictable, C reveals nothing about D: all the security rests on the keystream.
2) Two requirements: (a) The keystream must be unpredictable without the key, even after some of it has been seen. (b) It must never be reused: two frames 1 and 2 under the same keystream give $C_1 \oplus C_2 = D_1 \oplus D_2$, whatever the key. A stream cipher therefore takes a public initialisation vector (IV), different for each frame, as well as the key.
3) The linear feedback shift register (LFSR): A shift register of length $L$ whose new bit is the XOR of a few of its bits (the taps); with well-chosen taps it cycles through all $2^L - 1$ non-zero states and outputs a long, balanced, random-looking sequence from a few gates. The S-DSM uses a 16-bit LFSR (taps 0, 2, 3 and 5) whose initial state is the key: $2^{16} - 1 = 65{,}535$ possible keys.
4) Attack 1: exhaustive key search: With a few known plaintext bits (a fixed field of the frame), the attacker tests every key until the keystream matches: at $R$ keys per second, $65{,}535/R$ seconds for a 16-bit key, $2^{128}/R$ for a 128-bit key. Fig. 7 compares the two times for the rate of one laptop core.
5) Attack 2: Berlekamp-Massey: The linear complexity L(n) of a sequence is the length of the shortest LFSR that generates its first n bits; the Berlekamp-Massey algorithm [3] finds that LFSR from the bits alone. For an LFSR of length L, 2L observed bits recover the register: 32 bits for the S-DSM, after which every future bit is known. For a random sequence L(n) grows as about n/2 without bound; Fig. 6 contrasts the two cases.
6) Nonlinear stream ciphers: Trivium [5] (80-bit key) uses three shift registers with nonlinear (AND) feedback. Grain-128a [6], used in the proposed design, combines a 128-bit LFSR with a 128-bit nonlinear feedback shift register, a 128-bit key and a 96-bit IV, through a nonlinear output function, so Berlekamp-Massey does not converge; the published fast correlation attacks [18], [19] need far more keystream bits than one frame (Section III-E).
This predicts that, for the LFSR, L(n) stops at 16 and a register rebuilt from 32 bits predicts every later bit, whereas for Grain-128a L(n) follows n/2 and prediction is at chance (50 %); and that a 16-bit key falls to exhaustive search in a fraction of a millisecond on one core, whereas a 128-bit search is infeasible.

Fig. 5. Stream encryption by XOR at the receiver and at an attacker without the key, for 24 bits of one model frame. Rows: transmitter (D, Grain-128a keystream K, C = D ⊕ K), receiver (K, C ⊕ K) and attacker (guessed keystream K̂, C ⊕ K̂); colours as in the legend. Recorded animation (python dev/assets/make_assets.py xor_stream_cipher).

Fig. 6. Berlekamp-Massey analysis of the S-DSM's LFSR and of Grain-128a. Top: the 16-bit LFSR (taps 0, 2, 3, 5 outlined in blue; its power-up state is the key). Bottom: linear complexity L(n) against the number n of keystream bits observed (legend); dot: n = 32. Recorded animation (python dev/assets/make_assets.py lfsr_vs_grain).

Fig. 7. Exhaustive key search time on one laptop core at 6.6 × 10⁸ keys/s, the rate measured when the animation was recorded, on a logarithmic time axis. Orange bar: the 16-bit key of the S-DSM; blue bar: all 2¹²⁸ keys of the proposed design. Recorded animation (python dev/assets/make_assets.py brute_force).
Key insights. The XOR hides the data from anyone without the keystream; what fails in the S-DSM is the 16-bit LFSR that generates the keystream, in both ways the analysis above predicts.
- With a guessed key, the attacker’s decryption is wrong on 50.4 % of the 107,400 bits of a frame, while the receiver makes no errors (Fig. 5).
- In Fig. 6 the LFSR’s linear complexity stops at 16, and Berlekamp-Massey rebuilds the register from 32 bits and predicts the next 1,000 bits with 100 % accuracy; over 160 bits, Grain-128a’s L(n) tracks n/2, and the rebuilt register predicts the next 1,000 bits with 52 % accuracy.
- The exhaustive search (Fig. 7) reaches the model’s key 0xC3A5 after 50,085 of 65,535 values, in 76 µs; the whole 16-bit space takes about 0.1 ms, whereas all 2¹²⁸ keys would take 5.1 × 10²⁹ s, about 1.2 × 10¹² times the age of the universe.
- A few known plaintext bits, provided by any fixed frame field, break the keystream in two ways (attacks A2 and A3 of Section IX). A 128-bit nonlinear cipher resists both, but encryption alone still lets an attacker alter or invent frames.
C. Message authentication and freshness: encryption does not provide integrity
A forged reading is as harmful as a stolen one (Section I).
1) Encryption is malleable: for any bit pattern Δ, (C ⊕ Δ) ⊕ K = D ⊕ Δ: inverting a bit of C inverts the same bit of D, without the key. With the key or the keystream (subsection B), the attacker can encrypt a fabricated reading.
2) Message authentication code (MAC): A short tag $\tau$ computed from the message and the key; the receiver recomputes it and rejects a frame whose tag differs. Without the key, a $b$-bit tag is guessed with probability $2^{-b}$ per attempt, $2^{-32}$ in the proposed design. Grain-128a has a built-in MAC [6]: in its authenticated mode it generates two bits per data bit, one to encrypt and one to update the tag.
3) Freshness: the frame counter: A MAC does not stop replay of an old, valid frame, so each frame carries a 32-bit counter c, and the receiver accepts only a counter larger than the last accepted one.
4) The nonce and the IV: A nonce (“number used once”) need not be secret, only never repeated under a key. Requirement (b) of subsection B forbids two frames with the same keystream, so the cipher starts from the key and an IV built from three fields:
- N, the session nonce: a fresh random 32-bit value that the receiver sends in clear at the start of each session;
- c, the frame counter of item 3, different for every frame of a session;
- $N_\mathrm{c}$, the chip nonce: 31 bits that the chip hashes from 64 power-up reads of its own SRAM array, whose noisy cells differ at every power-up (one read is insufficiently noisy; Section VIII-F). An attacker can replay an old $N$, which travels in clear, and the counter restarts with each session, so without $N_\mathrm{c}$ the old keystream would repeat (attack A15); with it, a repeat needs a chance collision of its 31 bits (about 2⁻³¹ per pair of sessions), provided the 64 reads are independent and limited by thermal noise.
The IV is $1 \,\Vert\, N \,\Vert\, c \,\Vert\, N_\mathrm{c}$ ($\Vert$: concatenation; the leading 1 selects the authenticated mode; 1 + 32 + 32 + 31 = 96 bits). Fig. 8 shows the IV (b), the uplink frame (a) and the downlink that delivers $N$ (c). The S-DSM of [1] has no IV: its LFSR starts from the stored key alone.
The analysis above predicts that a frame with a changed payload, counter or encrypted chip ID fails the MAC check, except with probability $2^{-32}$, and that a frame from an earlier session or with an old counter is rejected.

Fig. 8. Frame format of the proposed design. (a) Uplink frame in transmission order, field widths in bits; blue: encrypted fields (not to scale); lower bracket: fields the 32-bit tag authenticates. (b) Per-frame IV, $1 \,\Vert\, N \,\Vert\, \mathrm{ctr} \,\Vert\, N_\mathrm{c}$ (session nonce $N$, frame counter ctr, chip nonce $N_\mathrm{c}$; $\Vert$: concatenation), and the Grain-128a output streams. (c) Downlink at session start: receiver nonce $N$ and helper data $h$.
Key insights.
- The mechanisms cost the link little (Fig. 8): 96 bits per frame (32-bit counter, 32-bit field for the 31-bit chip nonce, 32-bit tag, against a 107,400-bit payload) and, once per session on the downlink, 482 bits at the working setting t = 45 (subsection D; the 32-bit nonce and 450-bit helper data; Sections VIII-F and XI size other helper data). Section IX runs the attacks that test them.
- The S-DSM has no MAC, counter or nonce, so its receiver cannot tell a genuine frame from a forged or replayed one. In the proposed design the protection costs one extra Grain-128a output bit per data bit; all of it depends on the key, whose origin subsection D explains.
D. Physically unclonable functions and fuzzy extractors
A key held on the chip (assumed here to be non-volatile memory; Subsection E) can be read by an attacker who obtains the chip, and copied into every chip of the design.
1) The SRAM cell at power-up: A 6T SRAM cell is two cross-coupled inverters (nodes Q and Q̄) and two access transistors. When the supply $V_\mathrm{DD}$ ramps up with the access transistors off, random mismatch (mainly threshold voltage) gives one inverter the advantage, and the cell settles to 0 or 1 [13].
2) Physically unclonable function (PUF): Mismatch is random between chips, fixed for a chip and stored nowhere, so the power-up pattern of n cells is a fingerprint w: different chips differ in about half of their cells, and the same chip nearly reproduces its pattern. Fig. 9 illustrates both: power-up transients of three cells, and the fingerprints of two chips over repeated power-ups.
3) Noise makes some cells unstable: With mismatch spread $\sigma_\mathrm{m}$ and thermal-noise spread $\sigma_\mathrm{n}$ at the decision, cells with small mismatch resolve differently between power-ups; their fraction grows with $s = \sigma_\mathrm{n}/\sigma_\mathrm{m}$, and the cells that differ from the enrolled pattern grow with the distance from the enrolment temperature, partly through $s$ and partly through cells whose preferred state shifts with temperature.
4) Fuzzy extractor [4]: The key must be reproduced bit for bit, so a Bose-Chaudhuri-Hocquenghem (BCH) code over the Galois field GF(2¹⁰) that corrects up to t errors removes the noise.
- Enrolment (once, at test): w is read; its syndrome h, a set of parity checks of w, is stored at the receiver as public helper data; the key is k = Hash(w), the first 128 bits of SHA-256 in the model.
- Reconstruction (every power-up): the chip reads w′ = w ⊕ e, with e the pattern of flipped cells, and receives h; by linearity, syndrome(w′) combined with h is the syndrome of e alone, which the decoder finds if it has at most t ones, restoring w = w′ ⊕ e and k = Hash(w). Fig. 10 walks through these stages on a 600-cell grid, with a counterfeit chip given the same helper data.
5) Key failure: Reconstruction fails when more than $t$ cells flip; for independent flips with probability $p$ per cell and $j$ flipped cells, $P(\text{key fails}) = \sum_{j>t} \binom{n}{j} p^j (1 - p)^{n-j}$, to be kept below $10^{-6}$ over the operating temperature range. Fig. 11 applies this sum to one chip enrolled at 25 °C, from 0 to 85 °C.
6) Helper-data leakage: A BCH syndrome over $\mathrm{GF}(2^{10})$ reveals 10 bits per correctable error, $10t$ bits about $w$. For a nearly uniform 128-bit key, $n H_\infty - 10t \ge 128 + 2 \log_2(1/\epsilon) = 192$ bits for a key within statistical distance $\epsilon = 2^{-32}$ of uniform (Section VII-E), with $H_\infty$ the min-entropy (worst-case unpredictability) of one cell in bits.
This predicts that two chips differ in about 50 % of their cells; that a genuine power-up has a few to a few tens of flips, fewer than t, and recovers the key; that a counterfeit given the same helper data has about n/2 errors and fails; and that flips, and P(key fails), rise steeply with temperature.

Fig. 9. SRAM power-up fingerprints of two chips. Top: 6T cell (word line off) and ngspice transients of the storage nodes q and q̄ in three cells as $V_\mathrm{DD}$ ramps. Bottom: 600-cell fingerprints of chips A and B (cell model fitted to SKY130 simulation) at five power-ups, three at 25 °C and two at 85 °C; orange: cells differing from power-up 1. Recorded animation (python dev/assets/make_assets.py sram_puf_powerup).

Fig. 10. Fuzzy-extractor enrolment and key reconstruction on a genuine and a counterfeit chip (cell model fitted to SKY130 simulation, noise-to-mismatch ratio at 25 °C $s_{25} = 0.0225$; BCH code, $t = 45$). Four stages, each a 600-cell grid: (1) enrolment, (2) a genuine power-up, (3) its decoding, (4) a counterfeit chip with the same helper data; colours as in the legend. Recorded animation (python dev/assets/make_assets.py fuzzy_extractor).

Fig. 11. Key failure against temperature, chip enrolled at 25 °C (one noisy enrolment read, chip seed 7, t = 45, temperature law of the earlier noise-only sizing of one chip, Section VII-E). Left: distribution of the number j of flipped cells per power-up; dashed: t. Right: P(j > t) against temperature, 0 to 85 °C (values below 10⁻²⁰ not drawn); dashed: 10⁻⁶ target. Recorded animation (python dev/assets/make_assets.py key_failure_temperature).
Key insights. The SRAM array behaves as a key source must: its pattern is unique to the chip, reproducible enough to be corrected, useless to a copy, and least reliable far from its enrolment temperature, which sets the size of the code.
- Unique to the chip. The two modelled chips of Fig. 9 differ in 53 % of their cells, close to the 50 % expected from independent mismatch; the transients show how a cell settles (Section VII-C gives the statistics).
- Reproducible within the code’s reach. The same chip differs from its first power-up in 4 to 12 cells at 25 °C and 8 to 14 at 85 °C, far fewer than the t = 45 the code corrects. In Fig. 10 a genuine power-up at 37 °C has 13 flipped cells, all corrected, and recovers the key (the reference frame Fig. 17 shows 27 flips at the same temperature because it uses the model’s assumed, about 2.7 times noisier cell, $s_{25} = 0.06$, $t = 40$).
- Useless to a copy. The counterfeit chip given the same helper data has 318 errors (53 %), about n/2 and seven times what the code corrects, and derives a different key: the helper data reconstruct the key only on the chip that produced them.
- Least reliable far from enrolment. In Fig. 11 the mean number of flipped cells rises to 27.0 and $P(j > 45)$ to 1.5 × 10⁻⁵ at 85 °C for this one chip, above the 10⁻⁶ target: the code must be sized for the worst temperature of the range, not for room temperature. This chip’s temperature law $s(T)$ is anchored to the simulated post-layout error rates at −40, 25 and 85 °C; the cell model’s linear law underestimates the 85 °C error rate (1.75 % against 3.14 % for the extracted cell). Section VII-E sizes the code over 1,000 modelled chips.
- An unpowered chip holds no key to read out (provided the array and key registers have no read or scan path after test; A7), and a cloned design does not share it. The cost is the error-correcting code, whose size t depends on s and on temperature: hence the SKY130 simulation of s (Section VII) and the code sized for the worst corner (Sections VIII and XI).
E. The secure delta-sigma modulator of [1]
Yasar et al. [1] encrypt at the output of the data converter itself. In their secure delta-sigma modulator (S-DSM), each output bit of the modulator of Subsection A is XORed with one bit of the keystream of a 16-bit linear-feedback shift register (LFSR), whose key is shared with the receiver; the receiver applies the same keystream and filters the recovered bits into readings. According to [1], dither injected at the comparator further reduces the predictability of the bitstream, and two channels that encrypt the same input with the same key disagree on about 50 % of their bits, so that an eavesdropper with a replica chip cannot predict the keystream. The security function costs 24 µW, 1.8 % of the chip power without security (the overhead measure of [1]), and because the bits are sent without decimation, the wireless energy for the same information stays up to 2.67× below that of its decimate-then-Trivium baseline at an oversampling ratio of 30 [1].

Fig. 12. Signal chain and key path of the two designs. (a) S-DSM [1]: a 16-bit key held on the chip seeds a 16-bit LFSR; no message authentication code (MAC) tag. (b) Proposal: no key in non-volatile memory (NVM); a 128-bit key regenerated from static random-access memory (SRAM) cells (600 in the system simulations) at every power-up keys Grain-128a, which adds a 32-bit MAC tag to every frame.
Fig. 12 contrasts where the key lives. [1] does not describe how the key is stored; this work assumes non-volatile on-chip memory (fuses, one-time-programmable memory or flash), on which only the key-extraction attack A7 depends. Nor does [1] state whether its LFSR restarts from the key in every frame; the model assumes so, and the verdicts of the multi-frame saturation attack (A6) and of keystream reuse across sessions (A15) rest on it. Three of the original design’s 11 failures (A6, A7, A15) therefore depend on assumptions that [1] does not state. If the key were instead loaded at power-up from a host, it would still sit in a register while the chip runs, be shared by every chip given it, and fall to brute force (A2) and Berlekamp-Massey (A3) from eavesdropping alone, so that the original design would fail 10 rather than 11 of the 15 attacks.
These concepts state the requirements precisely: a modulator bit that is cheap to encrypt, a keystream that is neither short nor linear nor repeated, frames that are authenticated and fresh, and a key that is never stored. Section III asks which prior approach meets them within a sensor’s power budget, and what remains open.
III. Prior work
This section asks what prior work has done to secure a low-power sensor link, and what it leaves open, judging each line of work against the requirements R1 to R6 of Section I-A. Subsections A to D review cryptographic engines, physical-layer and analog-domain security, the in-modulator encryption of [1], and silicon PUFs and key generators; E draws from published attacks the capabilities an attacker should be granted; and F states the gap.
A. Cryptographic engines
Cryptographic engines realise a standard, well-analysed cipher or protocol as a dedicated low-power circuit. Intel’s NanoAES [8] implements the Advanced Encryption Standard (AES-128) in 2,090 gates (22 nm), reaching 289 Gbps/W near threshold and 170 µW at 340 mV. SIMON 32/64 block-cipher engines [10] need as few as 548 gates. A full Datagram Transport Layer Security (DTLS) 1.3 engine with elliptic-curve key exchange [9] secures an Internet-of-Things (IoT) link for 44 µJ per handshake and 0.89 nJ/byte (65 nm). All three are measured chips (22 nm [8], 14 nm [10], 65 nm [9]), and [1] reports 220 µW for a Trivium stream cipher [5] next to its sensor, against 24 µW for the S-DSM. The AES and DTLS engines meet R3 with 128-bit keys, and the protocol engine also R5; SIMON 32/64, with a 64-bit key, falls short of R3.
As built, however, these engines encrypt words, so the sensor decimates first (R2), forfeiting the wireless-energy advantage of sending the bits; run as keystream generators (a block cipher in counter mode) they could encrypt the bits directly. Each keeps its key, or the credentials it derives session keys from, inside the chip, to be provisioned and protected (R4). Next to the front end, a cipher such as the 220 µW Trivium of [1] is a large overhead (R1).
B. Physical-layer and analog-domain security
These approaches draw security from the physics of the link or of the converter rather than from a digital cipher alone [2]. Bit-level frequency hopping counters selective jamming of Bluetooth Low Energy (BLE)-type links, demonstrated in a fabricated transmitter [11]. Physical-layer key generation derives a shared key from the reciprocal fading of the radio channel itself, demonstrated on commodity 802.11 radios [32]. Compressed-sensing encryption, reviewed in [2], uses the secret sensing matrix as the key and encrypts during acquisition at little added cost; [33] formalises it for low-complexity sensor nodes, concludes that it is not perfectly secure but gives some security at almost no cost, and applies it to electrocardiogram, image and speech signals. At the converter itself, S²ADC [12] shows that, without protection, the supply current of a successive-approximation analog-to-digital converter (ADC) reveals its output bits to a neural-network attack with more than 99 % bit-wise accuracy (except the least significant bit), and proposes a countermeasure.
Frequency hopping, however, costs 10.9 mW (R1) and still relies on encryption for confidentiality. Compressed-sensing encryption is a linear encoding and therefore not perfectly secret (R3) [2], [33], and a channel-based key accrues only as fast as the radio channel varies [32]. None of these approaches authenticates frames (R5) or removes the stored key (R4).
C. In-modulator encryption: the S-DSM [1]
The S-DSM carries the analog-domain line of B into the ΔΣ modulator (Section II-E). It is demonstrated in a 65 nm sensor chip, whose two-channel measurements, wireless-energy comparison and power breakdown Sections VI and X reuse. It costs 24 µW, 1.8 % of the chip power (R1), and its wireless energy is up to 2.67× lower than that of decimate-then-encrypt at an oversampling ratio (OSR) of 30 (R2). Among the works reviewed here, it is the only design that meets R1 and R2 together, and this work therefore retains its architecture.
It leaves the other requirements open: a linear keystream recovered from 32 bits and a 16-bit key open to exhaustive search (R3); a stored key shared by every chip programmed with it (R4); no authentication or freshness (R5); and an evaluation of two cryptanalyses (R6).
D. Silicon PUFs and key generators
PUFs and the key generators built on them derive the key from random manufacturing variation, so that no secret is stored (Section II-D). SRAM power-up states identify chips and supply randomness without added circuits [13]; fuzzy extractors [4] turn a noisy PUF into a key with an error-correcting code. PUFKY [14] combines a ring-oscillator PUF, a BCH syndrome secure sketch and an entropy accumulator into a complete 128-bit key generator with a failure rate below 10⁻⁹ (FPGA), and [26] implements a helper-data key extractor for SRAM PUFs with concatenated repetition and linear codes on FPGAs, the code structure that the compiler of Section XI generates. SRAM PUFs age, and writing the inverse of the power-up pattern back into the array counters it [30]. Circuit PUFs reach 0.19 pJ/b with stabilisation by burn-in and dark-bit masking [15], and 1.02 fJ/b with a 3.2 % native bit-error rate in a fully synthesisable cell [16]. Volatile PUF keys resist invasive probing better than fuse-based storage [15]. A wearable security engine combines the electrocardiogram (ECG), heart-rate variability and an SRAM PUF for authentication and key generation at 4 µW [17]. Sensor PUFs [20] make the response depend on both the sensed quantity and the chip’s variation, which authenticates the measurement. The key generators [14], [17] meet R3, and all these works address R4 (no stored secret and, under the PUF assumption, no clone).
None of these works, however, encrypts or authenticates a sensor link (R2, R5) or is evaluated against attacks on one (R6).
E. Attacks that shape the threat model
Attacks on real devices and on the ciphers themselves show which capabilities an attacker should be granted. Wireless medical devices have been attacked in practice: software-radio attacks on an implantable cardioverter defibrillator replay captured commands that change its therapy [37], and attacks on a commercial glucose-monitoring and insulin-delivery system range from eavesdropping to forged commands [38] (R5). Keys held in non-volatile memory can be read out by an attacker who holds the chip, for example from the protected flash memory of a microcontroller by optical fault injection [34], and SRAM can retain data at low temperature [22] (R4); even an SRAM PUF has been cloned in the laboratory [21], and the public helper data of some key generators can be manipulated to learn the key [23], [24]. LFSR-based keystreams fall to correlation attacks [35], [36] and, when purely linear, to Berlekamp-Massey [3] (R3). Even Grain-128a has published full-round fast correlation attacks: that of [18] needs 2¹¹³·⁸ keystream bits and 2¹¹⁵·⁴ time, and the vectorial fast correlation attack of [19] lowers the data to 2¹⁰⁶·³ bits. Both are far from practical and beyond one frame, but below the nominal 2¹²⁸ level; [18] breaks only the mode without authentication, since in the authenticated mode only every second pre-output bit is observable as keystream.
For this work, a realistic attacker listens, chooses the sensor’s input, learns some keystream bits, obtains a chip and transmits; Section IV turns these capabilities into the threat model.
F. Research gap
Each line of work solves part of the problem, and the parts do not combine by simple addition:
- Cipher engines (A) give a strong 128-bit cipher and, as a protocol engine, authenticated frames (R3, R5), but work on decimated words (R2), keep their key on the chip, and cost, like the Trivium of [1], about nine times the S-DSM’s power (R1).
- The S-DSM (C) is the only design reviewed that encrypts the modulator bits directly at a few per cent of the chip’s power (R1, R2), but its 16-bit LFSR, its stored key and its unauthenticated frames leave R3 to R5 open.
- PUF key generators (D) remove the stored key (R4), and some deliver 128-bit keys (R3), but none is connected to a sensor link, so none encrypts or authenticates frames (R2, R5).
- Physical-layer and analog-domain techniques (B) lower the cost of particular protections or block particular attacks, but give neither a strong cipher nor authenticated frames.
- The published attacks (E) show that an attacker who listens, chooses the input, holds a chip or transmits must be assumed; no sensor-link evaluation reviewed considers all of these at once in a form others can re-run (R6).
The gap is the combination: a stored-key-free, authenticated, cryptographically strong link that still encrypts the modulator bits at microwatt cost, evaluated openly against that attacker (Table 2):
Table 2: Requirements R1 to R6 and the prior works that meet them
|
Key insights.
- No reviewed design gives a sensor link, within tens of microwatts, all of R1 to R5 at once, and no prior evaluation of such a link is open and executable against a realistic attacker (R6).
- This work keeps the S-DSM’s architecture [1] (R2), replaces the stored key by an SRAM-PUF key through a BCH fuzzy extractor [4], [13], [14] (R4) and the LFSR by Grain-128a [6] (R3), uses its authenticated mode with a counter and two nonces (R5), and evaluates both designs in one reproducible notebook (R6).
- This work meets R1 at a few per cent of the chip’s power, above the S-DSM: with its SKY130 gate-level power (Section X) added, unscaled, to the measured 65 nm power of the chip of [1], the keystream block takes 4.5 % of the chip’s power against 1.7 % for the S-DSM.
Since a security claim holds only against a stated attacker, Section IV first fixes what the attacker knows and can do, then the architecture that answers each capability.
IV. Proposed work
Filling the gap of Section III raises two questions: against which attacker must a delta-sigma sensor link be secure? And what must be added to the S-DSM of [1] to withstand that attacker? Subsection A states what the attacker knows and can do, so that every attack follows from a stated capability; B derives an architecture that closes every attack of Table 3 while keeping the S-DSM’s front end, modulator and one-XOR-per-bit encryption; and C explains each of the four new ideas.
A. Threat model
The threat model of [1] assumes an eavesdropper who knows the design, owns a replica chip and chooses its inputs, but has no physical access to the deployed sensor or its key; it excludes invasive attacks and denial of service such as jamming, which the controlled bioreactor would detect, and assumes that the symmetric key is shared securely in advance. This work keeps this adversary and extends its capabilities step by step, as a deployed product would meet them, under five assumptions:
- The attacker knows the design (Kerckhoffs’s principle): the circuits, the LFSR taps, Grain-128a, the BCH code, the frame format and the chip ID, which is not secret. Only the key is secret: the 16-bit LFSR seed, or the 128-bit key $k$ derived from the SRAM fingerprint.
- The receiver, its key database and enrolment are trusted (enrolment: Section II-D).
- Out of scope: jamming and other denial of service; and, by assumption, invasive, fault-injection and side-channel attacks on a powered chip (probing the SRAM or the key register in use, power or electromagnetic analysis of the cipher and of the BCH decoder, whose run time depends on the number of errors, fault attacks on Grain), and the physical cloning [21] or remanence read-out [22] of an SRAM fingerprint. Reading the memory of an unpowered chip and building a counterfeit are in scope.
- No read-out path after test. Enrolment reads the SRAM fingerprint $w$ out of the chip once; this path, and any read or scan path of the array and the key registers, is disabled before deployment, for example by a one-time-programmable fuse, which holds no secret. An attacker who re-opened it would obtain $w$ and hence $k$. The verdicts A7 and A9 rest on this assumption.
- Full power-down before every array read. Every read of the SRAM array, at power-up and for each of the 64 reads of the chip nonce, starts from a supply discharged long and deep enough that no cell keeps its previous state; a short or shallow dip would reproduce the previous state, so that consecutive nonce reads would repeat each other. This is a requirement on the array’s power switch, which is not simulated (Section VII-C), and control of the deployed chip’s supply is not among the capabilities below.
Within these assumptions the attacker has five capabilities (Fig. 13), ordered roughly from weakest to strongest; an attacker at one level may use the levels before it.
- C1: listen to the radio. The attacker records every transmitted frame and the public downlink (helper data and nonce). Unless stated otherwise, the attacker does not know the plaintext $D$.
- C2: choose the sensor input. The attacker sets what the sensor measures (for example by spiking the culture), so the attacker knows the input but not the bits $D$ the modulator makes of it, which also depend on the circuit’s noise and mismatch.
- C3: learn a few keystream bits. The attacker learns a short run of keystream bits $K$ (64 in the model), for example from a known part of a frame.
- C4: hold the chip. The attacker obtains a sensor chip: the attacker can read its non-volatile memory, or build a counterfeit that claims a genuine chip’s identity.
- C5: transmit on the link. The attacker is a man in the middle: the attacker can suppress, replace, replay or alter frames on the uplink, and the helper data and the session nonce on the downlink.
Table 3 derives the attacks from the capabilities. An attack succeeds if the attacker reads the data (confidentiality), makes the receiver accept chosen or altered data (authenticity, integrity) or an old frame (freshness), or learns about the data or the key (key secrecy). Of the attacks marked [1], [1] evaluates A4 and A5 and names A1 and A8.
Table 3: The 15 attacks, in the order of the verdict table of Section IX-A: the capability each one needs, what the attacker does, and what success means
|
Attacks A10 to A12 exist only for the proposed design, which alone has helper data; on the original design they are not applicable. The parameters and thresholds are the model’s attacker settings (Section V).

Fig. 13. Attacker capabilities and the attacks they enable. Left: the capabilities C1 (weakest) to C5 (strongest), numbered 1 to 5, as bars of increasing length and shade. Right: the attacks each capability enables, A1 to A15 as in Table 3 (* from [1]; A15 also needs capabilities 1 and 2).
Key insights. The four attacks of [1] (A1, A4, A5, A8) need only listening, a chosen input and forgery. The eleven added ones apply these capabilities, plus holding the chip and learning keystream bits, to the short stored key, the linear repeated keystream and the unauthenticated frames, and to the proposed design’s public data (A10 to A12, A15). They target confidentiality (A1 to A6, A15), key secrecy (A7, A11, A12), authenticity (A8, A9), integrity (A14), freshness (A13) and availability (A10). Six of the original design’s 11 failures need an attacker who holds the chip or transmits on the link, beyond the eavesdropper of [1] (Section IX).
B. The proposed architecture
The proposed design removes the three weaknesses of the original design (a stored, short key, a linear keystream, no frame authentication) with standard building blocks of Section II (Fig. 14). Notation:
- $D$: the modulator bits; $K$: the keystream; $C = D \oplus K$: the transmitted bits;
- $w$: the chip’s 600-bit SRAM fingerprint at enrolment; $w'$: the noisy fingerprint read at a later power-up; $e = w \oplus w'$: the flipped cells;
- $t$: the number of flipped cells the BCH code corrects; $h$: the public helper data (the BCH syndrome of $w$, $10t$ bits);
- $k = \mathrm{hash}(w)$: the 128-bit key; $N$: the 32-bit session nonce; ctr: the 32-bit frame counter; IV: Grain-128a’s 96-bit initialisation vector; tag: the 32-bit MAC.

Fig. 14. Original design and proposal. (a) Original design [1]: front end, second-order continuous-time ΔΣ modulator, and LFSR-16 encryption with the stored 16-bit key (orange). (b) Proposal: the same front end and modulator (simplified), key generation, encryption and authentication (blue), and the receiver; Grain-128a drawn like the LFSR-16 of (a): its 128-bit NFSR with nonlinear feedback $g$ and its 128-bit LFSR with linear feedback $f$ (ten cells sketched each; the LFSR bit that also enters $g$ not drawn) and the output function (⊕; unlabelled, $h$ being the helper data), whose keystream $K$ drives the XOR and the MAC; $N_\mathrm{c}$: hash of 64 raw reads w′ and the session index; inset in the receiver: the frame format, field lengths in bits (tinted: encrypted). Dashed: public downlink of $N$ and $h$ at session start. S2D: single-ended-to-differential buffer; symbols as in the list above; tag′: tag recomputed by the receiver.
The blocks are listed below in the order a bit traverses them; their parameters come from [1] (front end), the Grain-128a specification [6] and the SKY130 simulations of Section VII.
- Front end and ΔΣ modulator (unchanged from [1]). The TIA converts the electrode current into a voltage, the single-ended-to-differential (S2D) buffer halves it, and the second-order 1-bit continuous-time modulator, clocked at 10 MHz, produces the bits $D$ (Fig. 14(a): class-AB counter-electrode driver, two-stage Miller TIA with feedback resistance $R_\mathrm{F}$ = 3.30 kΩ to 3.06 MΩ, StrongARM comparator, dither ladder and 1-bit digital-to-analog converter). Its accuracy is taken from [1] (65 nm) and checked with SKY130 parameters in Section VIII. Defends against: in the original design, A4 to A6 were to be stopped by circuit noise and mismatch and by the ×0.5 buffer, which keeps a railed TIA within the modulator’s stable range; with the modelled dither these defences fail against an attacker who scans every window, trims the replica and repeats frames (Section IX-A).
- Key generation at power-up: SRAM PUF, fuzzy extractor and hash. At every power-up, 600 SRAM cells settle to the fingerprint $w'$; the BCH decoder, given the helper data $h$ from the receiver, restores $w$, and the hash turns it into $k$ (Section II-D). No secret is held in on-chip non-volatile memory [4], [13], [14]: the key exists only in volatile registers while the chip is powered. The system simulations use t = 45 with a 25 °C enrolment as a working setting, although with 600 cells no code then meets both the 10⁻⁶ key-failure target and the 192-bit secrecy budget (Section VII-E). The enrolment at −40 and 85 °C meets both with t = 17 (935 cells, 600 kept; Section VIII-F); Section XI compiles it into a verified, routed decoder with a SHA-256 hash (a lightweight hash such as the SPONGENT-128 of [14] would be several times smaller). The two-temperature enrolment adds to $h$ a public mask of the kept cells (935 bits); such pointer-type helper data is open to manipulation oracles [23], so the mask must be hashed with $w$ into $k$ [24], making any change yield a key that the MAC rejects (this binding is not modelled; the attacks of Section IX use the 25 °C enrolment, whose helper data is the syndrome alone). Defends against: A2 (128-bit key), A7 (no key in memory), A9 and A10 (a counterfeit’s fingerprint or a corrupted $h$ gives a wrong key, which the ID and MAC checks detect), A11 (at t = 45 only 94 secret bits remain at the 95 % lower bound of the min-entropy, against 192, so A11 succeeds; the two-temperature enrolment, with 284–352 secret bits, resists it) and A12 (the syndrome construction and the hash make the accept/reject answers the same for any fingerprint with the same noise).
- Keystream: Grain-128a [6]. Its 128-bit LFSR and 128-bit nonlinear register are loaded with $k$ and the IV and clocked 256 times to initialise; in authenticated mode (first IV bit 1) the first 64 pre-output bits load the MAC’s accumulator and shift register, then the even pre-output bits form $K$ and the odd bits drive the MAC (published test vectors reproduced in Section V-B). Its bit-serial datapath matches the modulator’s one bit per clock without buffering, unlike the block-oriented NIST lightweight standard Ascon; its successor Grain-128AEADv2 [25], with a 64-bit tag, would fit the same datapath (neither alternative is synthesised here). Defends against: A3 (its linear complexity grows with the output length; Section II-B) and A2.
- Counter, nonces, MAC and framer. Each frame carries a 32-bit counter and the chip’s 31-bit nonce $N_\mathrm{c}$ in clear, and the IV is $1 \,\Vert\, N \,\Vert\, \mathrm{ctr} \,\Vert\, N_\mathrm{c}$. Without non-volatile memory the counter does not survive a power cycle, so the IV’s uniqueness under a replayed $N$ rests on the cell noise: the array must be stable enough for the key and noisy enough for the nonce. One read is not enough (9.3 bits of collision entropy for the median chip at the typical corner tt, 25 °C, and 1.1 bits for the 1st-percentile chip at the fast-nMOS, slow-pMOS corner fs, −40 °C), so $N_\mathrm{c}$ is 31 bits of the hash of 64 raw reads $w'$ and a volatile session index, which give that chip 68 bits (Section VIII-F). A replayed $N$ thus repeats a keystream only on a 31-bit collision, provided that the reads are independent and limited by thermal noise, which assumption 5 and an on-chip health test (Section VIII-F) must ensure. The 32-bit MAC covers the counter, the encrypted chip ID and every payload bit of $C$ (encrypt-then-MAC); $N_\mathrm{c}$ enters through the IV. A forged tag passes with probability 2⁻³² per attempt; at about 93 frames per second a day of continuous attempts succeeds with probability about 2 × 10⁻³, so the receiver must limit the rejected frames per chip (or use a 64-bit tag, as Grain-128AEADv2 does). The counter wraps after 2³² frames, about 1.5 years of continuous operation, when the chip must be re-enrolled or the session renewed. The frame format is the inset of Fig. 14(b). Defends against: A8 and A14 (a valid tag needs $k$), A13 (old counter), A15 (chip-nonce collision only), and A4 to A6 (no two frames of a session share a keystream).
- Receiver. For each frame it finds the sync word, checks that the counter is fresh, recomputes the tag, decrypts and checks the chip ID, and only if all three checks pass hands $D = C \oplus K$ to the decimation filters (a cascaded integrator-comb (CIC) decimator and a compensating finite-impulse-response (FIR) filter). Defends against: every frame attack, by turning a forgery, replay, counterfeit or tampered key into a rejected frame (ATTACK DETECTED) instead of false data.
The session protocol runs in six steps:
- Enrolment (one-time, at test, trusted): $w$ is read (at 25 °C in the system simulations; at −40 and 85 °C, with the cell mask added to $h$, in the final key generator); $h = \mathrm{syndrome}(w)$ and $k = \mathrm{hash}(w)$ are stored at the receiver with the chip ID. The chip keeps nothing.
- Power-up: the chip reads its noisy fingerprint $w'$ (= $w'_1$), power-cycles the array 63 more times for the reads $w'_2$ to $w'_{64}$ and derives its chip nonce $N_\mathrm{c} = \mathrm{hash}(w'_1 \,\Vert \cdots \Vert\, w'_{64} \,\Vert\, \text{session index})$, truncated to 31 bits.
- Downlink: the receiver sends $N$ and $h$, public and unauthenticated.
- Key reconstruction: the chip decodes $e$ from $\mathrm{syndrome}(w') \oplus h$, restores $w = w' \oplus e$ and computes $k = \mathrm{hash}(w)$.
- Each frame: ctr ← ctr + 1; Grain-128a is initialised with $k$ and $\mathrm{IV} = 1 \,\Vert\, N \,\Vert\, \mathrm{ctr} \,\Vert\, N_\mathrm{c}$; the chip ID and the bits $D$ are encrypted, the tag over (ctr, encrypted ID, $C$) appended, and the frame sent.
- Reception: the receiver rebuilds the IV from its $N$ and the frame’s ctr and $N_\mathrm{c}$ and runs the three checks of block 5.

Fig. 15. Proposed system in the interactive explorer of Section XIII (recorded snapshot at t = 37, SNDR 59.8 dB). Top: the sensor chip, from the electrode current to the frame builder, with the key path below it; bottom: the receiver and, at the right, the attacker's view of the channel.
Fig. 15 shows the signal of every block at once: the key restored after correction, the frame verified, decrypted and filtered back into the sensor signal, and an attacker’s keystream from a guessed key agreeing with the true one on only about 50 % of the bits.
Key insights. Every one of the 15 attacks meets at least one block designed to stop it, and most meet two (Section IX-A runs them all; four of the proposed design’s verdicts hold by design, not by simulation). The costs, quantified later, are a new failure mode, a key that the PUF fails to regenerate when more than $t$ cells flip (Sections VIII-F, IX-B, XI); a digital block, whose area and gate-level power come from the SKY130 implementation (Section X), plus the key generator, whose area is synthesised in Section XI but whose power and energy are not costed; and a session-start downlink for $N$ and $h$ and 64 power-up reads for the chip nonce.
C. The new ideas: where each fits, what it solves and how
The proposed design adds an SRAM array and changes only the digital part of the chip: the front end, the modulator and the one-XOR-per-bit encryption before decimation, which give [1] its energy advantage, are kept. Four ideas are new to in-modulator encryption (Fig. 14(b)).
1) A key that is never stored. Where: at power-up, between the SRAM array and Grain-128a (block 2). What it solves: the extraction of a stored key from a captured chip (A7), a key shared by every chip of the design, and the exhaustive search (A2) of a 16-bit key. How: the 600 SRAM cells power up to a fingerprint $w'$ that is unique to the chip; the BCH decoder, given the public helper data $h$ from the receiver, corrects the flipped cells to recover the enrolled fingerprint $w$, and a hash turns $w$ into the 128-bit key $k$, which exists only in volatile registers while the chip is powered.
2) Keystream and authentication from one Grain-128a core. Where: in place of the 16-bit LFSR of [1], at the modulator’s bit rate (blocks 3 and 4). What it solves: the linear keystream that Berlekamp-Massey recovers (A3), and the unauthenticated frames through which forged, altered and replayed frames reach the server (spoofing A8, replay A13). How: Grain-128a, keyed with $k$ and the initialisation vector IV, produces both the keystream $K$, XORed with each modulator bit, and a 32-bit MAC tag over the counter, the encrypted chip ID and every payload bit (encrypt-then-MAC); the receiver discards any frame whose tag or counter fails.
3) A chip nonce from the same cells. Where: at power-up, from the SRAM array into every IV (block 4). What it solves: the reuse of a keystream across sessions when a session nonce $N$ is replayed (A15), since the counter does not survive a power cycle. How: 64 power-up reads of the array and a volatile session index are hashed into a 31-bit chip nonce $N_\mathrm{c}$, so that the IV, $1 \,\Vert\, N \,\Vert\, \mathrm{ctr} \,\Vert\, N_\mathrm{c}$, repeats only on a 31-bit collision; the cell noise that the key must tolerate is what supplies the nonce.
4) A one-time enrolment at two temperatures. Where: once, at test (session step 1). What it solves: key failures at the fast-nMOS corners, where cells reverse their preferred state with temperature, so that with a 25 °C enrolment no code meets both the $10^{-6}$ key-failure target and the secrecy budget. How: the fingerprint is read at −40 and 85 °C and only the cells stable and equal at both temperatures are kept (935 cells, 600 kept, the cell mask added to $h$); a BCH code correcting $t$ = 17 flipped cells then meets the target with 284–352 secret bits.
The receiver sends only public data, $h$ and $N$, and no key is stored on the chip or sent. Sections IX and X evaluate their security and cost.
Section V turns both designs into a bit-level model of the link, so that every attack of Table 3 can be run on each.
V. A bit-level model of the link
Section IV defined both designs and the 15 attacks; a verdict requires an executable model of them. This section asks what each design transmits, bit by bit, and what an attacker can compute from it. The consistency check against [1], the system studies and the 15 attacks run on this model, and the RTL of Section X is verified against it bit for bit. The model must be exact to the bit because an attack on a stream cipher can hinge on a single bit: Berlekamp-Massey recovers a 16-bit LFSR from 32 correct keystream bits and returns a wrong register when one of them is wrong. It therefore computes every bit explicitly: the modulator’s decisions, the LFSR and Grain-128a keystreams, the PUF fingerprint and its BCH correction, the frame and the receiver’s checks, for the designs and the attacker of Section IV in the notation of Section II. The model is behavioural and cycle-accurate, with one step per modulator clock and every digital signal at its true bit width. The analog blocks are difference equations with Gaussian noise; the digital blocks are implemented exactly from their specifications. With the bit-serial loops compiled (numba), one frame, including key reconstruction, keystream, MAC and receiver, takes about 0.02 s on one core of the development machine. The circuit parameters start at the values of [1] or at stated assumptions, which Section VII replaces by SKY130 simulation.
Subsections A to H build the link one block per code cell. A fixes the operating point of [1] and collects every setting of both designs in one place, so that each later experiment changes a named setting and nothing else. B implements both keystream generators bit for bit and verifies Grain-128a against its specification. C models the analog chain that produces the modulator’s output bits $D$, with the non-idealities that make two chips or channels differ (noise, offset, mismatch, dither), and the receiver’s filters. D models how the proposed design regenerates its 128-bit key at every power-up, how often this fails and how much secrecy the public helper data leaves. E implements the attacker’s tools, shared by the attacks of Subsection G and the studies of Section VIII. F joins the blocks into one function, simulate(), which runs a complete frame from the sensor current to the server’s reading, so that any attack acts at its true point in the link. G defines, for each attack of the threat model (Section IV), the attacker’s actions and the test that decides success; Section IX runs them. H runs one frame of the proposed design without attack as the first end-to-end test and introduces the signal view of the later frame-level figures.
A. Operating point, settings and seeds
The modulator runs at the clock frequency $f_\mathrm{s}$ = 10 MHz with the oversampling ratio OSR = 50, so the receiver delivers one reading per 50 bits, at $f_\mathrm{s}/\mathrm{OSR}$ = 200 kHz, for a signal bandwidth of 100 kHz. A frame holds $N_\mathrm{out} = 2148$ readings (a 2,048-point FFT plus 100 for the filters to settle), that is $N = 2148 \times 50 = 107{,}400$ modulator clocks. Analog quantities are normalised to the modulator’s full scale (FS), half the supply voltage $V_\mathrm{DD}$ ($V_\mathrm{DD}/2$ = 0.6 V), so that the modulator input $u$ lies in $[-1, +1]$; the integrator states $x_1$, $x_2$ and the comparator’s noise and offset are in the same FS units (“$x_2$ units”).
DEFAULTS holds every setting of both designs, listed below with its source; any of them can be overridden for a single call (for example simulate(temp=85)). Section VII replaces the assumed circuit values by SKY130 values. ATK_DEF holds the attacker’s parameters (Subsection G).
Table 4: Default settings of the bit-level model and the source of each value
|
Every random quantity has its own stream of rng_for(seed) (the PCG64 generator of numpy), so equal settings give identical bits. The master seed 2026 drives the modulator’s noise; the other streams use fixed offsets (PUF reading at power-up +17, channel bits +5, session nonce +71, a man in the middle’s payload flips +77, each attack its own, Subsection G). Quantities that describe a chip rather than a run have chip seeds: the PUF’s mismatch (chip_seed = 7), its enrolment reading (chip_seed × 7919 + 1) and the two dither LFSRs (0x1D2B and 0x7A31). A second chip or channel changes its chip seeds and never reuses a stream.
B. Keystreams: the original 16-bit LFSR and Grain-128a
The model implements the two generators, the authenticated mode of Grain-128a and the IV of the proposed design:
1) LFSR of [1]: A 16-bit Fibonacci register with the maximal-length feedback polynomial x¹⁶ + x¹⁴ + x¹³ + x¹¹ + 1 (taps at bits 0, 2, 3 and 5 of a right-shifting register), restarted from the stored key (an all-zero key is replaced by 1). Every keystream bit is a fixed linear function of the 16 key bits, so the keystream has linear complexity L = 16 and period 2¹⁶ − 1 = 65,535 bits; its first 16 output bits are the key itself. The attacks do not depend on the choice of primitive polynomial.
2) Grain-128a [6]: A 128-bit LFSR and a 128-bit nonlinear feedback shift register (NFSR) are loaded, the NFSR with the key $k$ and the LFSR with the 96-bit initialisation vector (IV) followed by 31 ones and one zero, and clocked 256 times with the pre-output bit fed back. Afterwards each clock produces one pre-output bit $y$, a nonlinear function (with AND terms) of both registers, so the linear complexity grows with the length and Berlekamp-Massey finds no short register.
3) Authenticated mode (first IV bit $\mathrm{IV}_0 = 1$): The first 64 pre-output bits initialise a 32-bit accumulator $A$ ($y_0, \ldots, y_{31}$) and a 32-bit shift register $R$ ($y_{32}, \ldots, y_{63}$). Afterwards the even bits $y_{64}, y_{66}, \ldots$ form the keystream $K$ and the odd bits are shifted into $R$, one per message bit; for each message bit 1, $A$ is XORed with $R$ before the shift. The 32-bit tag is $A$ after a final padding bit 1, that is $A \oplus R$.
4) IV of the proposed design: IV = 1 ‖ session nonce (32 bits, sent by the receiver) ‖ frame counter (32 bits) ‖ chip nonce $N_\mathrm{c}$ (31 bits, from the hash of 64 raw power-up reads; Section IV-B). Every frame of a session thus has its own keystream, and a replayed session nonce repeats one only on a chance collision of $N_\mathrm{c}$ (about 2⁻³¹ per pair of sessions, Section VIII-F). The MAC covers the counter, the encrypted chip ID and every encrypted modulator bit (encrypt-then-MAC). With the counter and MAC off (a setting of Section IX), the IV is all zero and every power-up reuses the same keystream.
The implementation is checked against the four published test vectors of Grain-128a (Table 3 and Appendix A of [6]), which give 22 values: the first 320 pre-output bits of all four and, for the two vectors in authenticated mode, the initial accumulator and register, the first 128 keystream bits, the first 128 MAC-stream bits and the tags of five messages (of 0, 1, 1, 20 and 41 bits). Each is compared bit for bit with the published hexadecimal value. The pass criterion is 22 of 22; any mismatch stops the notebook (assert).
| published test-vector values reproduced | 22/22 |
Key insights. The result panel reports 22/22: the implementation reproduces every published test-vector value of Grain-128a, in both the plain and the authenticated mode. The cipher of the proposed design is Grain-128a as specified, not an approximation of it, so the verdicts of Section IX rest on the specified cipher.
C. Front end, second-order 1-bit delta-sigma modulator and receiver filters
The chain is modelled clock by clock; at modulator clock $k$:
1) Front end: The sensor current $i[k]$ passes the transimpedance amplifier (TIA), $v_\mathrm{TIA} = \mathrm{clip}(V_\mathrm{CM} + i\,R_\mathrm{TIA},\ 0,\ V_\mathrm{DD})$, which saturates at the rails, and the single-ended-to-differential (S2D) buffer, $u = 0.5\,(v_\mathrm{TIA} - V_\mathrm{CM})/(V_\mathrm{DD}/2)$, so that $\lvert u\rvert \le 0.5$ even when the TIA saturates. An input-referred difference between two channels or chips (analog mismatch) is a constant δ added to the input $u$ of one of them.
2) Loop: A discrete-time second-order loop of the same order as the continuous-time loop of [1]. With the fed-back value $v[k] = 2y[k-1] - 1 = \pm 1$ ($y[k-1]$: the comparator’s decision in the previous clock, item 4), $$x_1[k] = p\,x_1[k-1] + g_1\big(u[k] - v[k]\big) + \sigma_i\,n_i[k], \qquad x_2[k] = p\,x_2[k-1] + g_2\big(x_1[k] - v[k]\big),$$ where $x_1$, $x_2$ are the integrator states (both start at 0, and $y[-1] = 1$); $g_1 = g_2 = 1/2$ the integrator gains (capacitor ratios), each multiplied by $(1 + e)$ for a per-chip relative error $e$; $p = A/(1 + A)$ the leak of an integrator with amplifier DC gain $A$ (1 by default, an ideal integrator); and $n_i$ unit Gaussian noise. When either state exceeds $\pm x_\mathrm{lim}$, both are clipped, and the fraction of clipped clocks is recorded.
3) Dither: Two 16-bit LFSRs of the key LFSR’s polynomial, seeded per channel, give the bits $b_1$, $b_2$ and the dither $d = a_\mathrm{d}(b_1 - b_2) \in \{-0.022, 0, +0.022\}$. As in [1] (“a slight chance for a bit flip at each sampling output without disrupting the underlying signal”), it acts at the comparator, whose input becomes $q = x_2(1 + d) + d$; the alternative dither_at='feedback' scales the fed-back value, $v = \pm(1 + d)$ with the previous clock’s dither, and Section VI compares the two placements.
4) Comparator: $y[k] = 1$ if $q + V_\mathrm{os} + \sigma_\mathrm{c}\,n_\mathrm{c}[k] \ge 0$, else 0, with the offset $V_\mathrm{os}$ and input-referred noise $\sigma_\mathrm{c}$ in $x_2$ units and unit Gaussian noise $n_\mathrm{c}$; the output bit is $D[k] = y[k]$.
5) Receiver filters and SNDR: The receiver maps the bits to ±1 and decimates them by OSR = 50 with a third-order cascaded integrator-comb (CIC) filter (three running sums, one sample kept in 50, three first differences, division by 50³), followed by a 31-tap FIR filter that compensates the CIC’s droop (frequency sampling of the inverse CIC response at 513 points, flat up to $0.4\,f_\mathrm{s}/\mathrm{OSR}$ = 80 kHz and zero above, Hamming window, unit DC gain). The SNDR is measured on the last 2,048 readings: mean removed, four-term Blackman-Harris window, power within ±4 bins of the tone over the power of all other bins from bin 4 to bin 1,023 (bins 0 to 3, including DC, excluded).
Two channels differ only through the modelled effects: noise and dither seeds, input mismatch δ, comparator offset and capacitor errors. Limits: excess loop delay is not modelled; clock jitter, flicker noise and input-stage distortion are off by default (jitter_ps, flicker_fc, hd_a2, hd_a3), and Section VIII switches them on once, for the spectra of the end-to-end frame.
D. SRAM PUF, BCH fuzzy extractor and key derivation
The key path is modelled in five steps:
1) Cell model: Each of the $n = 600$ cells has a fixed mismatch $m_i \sim \mathcal{N}(\mu, 1)$, drawn once per chip; $\mu = \Phi^{-1}(b)$ sets the bias $b$, the probability that a cell favours 1 ($\Phi$: the standard normal distribution function). At every power-up the cell reads 1 when $m_i + s(T)\,\nu_i > 0$, with fresh unit Gaussian noise $\nu_i$ and the noise-to-mismatch ratio $s(T) = s_{25}\,(1 + a\,\lvert T - 25\,{}^\circ\mathrm{C}\rvert)$ at temperature $T$ ($s_{25}$: its value at 25 °C; $a$: its temperature coefficient). The cell therefore differs from its enrolled bit $w_i$ with probability $p_i = \Phi(-m_i/s(T))$ if $w_i = 1$ and $\Phi(m_i/s(T))$ if $w_i = 0$. Ageing adds $0.03\sqrt{\mathrm{years}}\,r_i$ to $m_i$, with a fixed unit Gaussian drift $r_i$ per cell.
2) Enrolment (once, at test, 25 °C): The helper data $h$ is the syndrome of the fingerprint $w$ (the syndrome construction of [4]): the $t$ odd syndromes $S_1, S_3, \ldots, S_{2t-1}$, $S_j = \sum_i w_i\,\alpha^{ij}$ ($\alpha$ a primitive element of the field), of a binary BCH code over $\mathrm{GF}(2^{10})$ (primitive polynomial $x^{10} + x^3 + 1$) shortened from 1,023 to 600 bits, so $h$ has $10t$ bits. The key is the first 128 bits of SHA-256($w$).
3) Reconstruction (every power-up): Because the syndrome is linear, the noisy reading $w' = w \oplus e$, with the error pattern $e$ (one bit $e_i$ per cell, 1 where the cell flipped), gives $\mathrm{syndrome}(w') \oplus h = \mathrm{syndrome}(e)$. The decoder derives the even syndromes ($S_{2j} = S_j^2$), finds the error-locator polynomial with Berlekamp-Massey over $\mathrm{GF}(2^{10})$ and its roots with a Chien search over the 600 positions, and declares failure if the locator has degree L > t or fewer than L roots there. When $e$ has at most $t$ ones it is found exactly, and $w = w' \oplus e$ gives the same key.
4) Key failure: The key fails when more than $t$ cells flip. With independent $p_i$ the number of flips is Poisson-binomial; a recursion over the 600 cells gives $P(\sum_i e_i > t)$ exactly, accurate down to about $10^{-300}$, and the whole distribution, which the later sections use.
5) Residual secrecy: The public helper data reveals at most $10t$ bits of $w$. With the min-entropy $H_\infty = -\log_2 \max(b, 1 - b)$ per cell, at least $\lfloor 600\,H_\infty - 10t \rfloor$ bits remain secret at the point estimate of the bias; the verdict of Section IX uses the 95 % lower bound of the min-entropy and requires 192 bits (the 128-bit key plus the hash margin of Section VII-E for a key within statistical distance ε = 2⁻³² of uniform).
The assumed cells of Subsection A (unbiased, $t = 40$) leave 200 secret bits; Section VII fits $s_{25}$, $a$ and $b$ to SKY130 Monte Carlo and sizes t.
E. Attack tools
The attacker has four tools:
1) Exhaustive key search: The 16-bit key of [1] has 65,535 non-zero values. The chip ID is a known plaintext encrypted by the first 16 keystream bits, so the search returns the first seed whose first 16 output bits match. Against a 128-bit key the search is infeasible.
2) Berlekamp-Massey [3]: The Berlekamp-Massey (BM) algorithm finds the shortest LFSR that generates a bit sequence; its length is the linear complexity L(n) of the first n bits. Any 2L consecutive correct bits of an L-bit LFSR determine the register, so 32 correct bits recover the 16-bit LFSR, which then predicts every later bit and, run backwards, every earlier one. For a random or nonlinear sequence L(n) grows as about n/2 and predictions are right only by chance; the attack reports the fraction of predicted bits that are correct.
3) Windowed replica attack: The attacker forms the keystream estimate $\hat{K} = C \oplus \hat{D}$ from the transmitted (encrypted) bits $C$ and the bits $\hat{D}$ of a replica chip of the same design at the same input; $\hat{K}$ is correct wherever $\hat{D} = D$. BM succeeds with certainty on a window without error, so the attack draws 80 windows of 64 bits at random start positions, from clock 200 to clock N − 777 (N: the run length, capped at 30,000). A window yields the key when its register predicts the next 512 true keystream bits with more than 99 % accuracy (a test with the true keystream, which can only favour the attacker). The attack succeeds when one window does; the earliest such window is extended over the frame. If the replica disagrees with the victim on a fraction ε of the bits, independently, a 64-bit window is clean with probability $(1 - \epsilon)^{64}$, and $80\,(1 - \epsilon)^{64}$ of the 80 windows yield the key on average: about 29 at ε = 1/64, 3 at ε = 5 % and 0.1 at ε = 10 %. This predicts that the attack succeeds in about 95 % of frames at ε = 5 % and in fewer than one in ten only beyond ε ≈ 10 %; bursty disagreements leave more clean windows, so this is a lower bound on the attacker’s success.
4) Helper-data manipulation oracle: The attacker adds to $h$ the syndrome of an error pattern of its choice and observes whether the chip still reconstructs its key; each query is a fresh power-up, with error weights cycling from 1 to t + 10. Because the syndrome is linear, each answer depends only on the chosen and the power-up error patterns, not on $w$: a twin chip with a random fingerprint, its own helper data and the same power-up errors gives the same answers by construction, which the 200 queries confirm numerically. (The answers reveal reliability information; in the cell model, which cells are unstable does not depend on their enrolled values.)
F. One frame through the link, with an optional attack
simulate() runs the link block by block:
1) Transmitter: Sensor current → TIA → buffer → modulator (Subsection C), giving D.
2) Key and keystream: Original design: the stored 16-bit key seeds the LFSR. Proposal: the PUF, enrolled once at 25 °C, is read at the operating temperature, corrected with the helper data and hashed into the key; the hash of this reading and 63 further power-up reads gives the chip nonce $N_\mathrm{c}$, and Grain-128a runs with IV = 1 ‖ nonce ‖ counter ‖ $N_\mathrm{c}$. The flipped cells, $\sum_i p_i$, the key-failure probability and the residual secrecy are recorded. The first 16 keystream bits encrypt the chip ID and the following N bits encrypt D. For the original design, the encrypted chip-ID field and the restart of the LFSR from the stored key in every frame are assumptions that [1] does not state (Sections II-E and IX-A).
3) Framing (Fig. 8): Proposal: preamble (32 bits, alternating 1 and 0) ‖ sync word 0xB5E3 (16) ‖ counter in clear (32) ‖ chip nonce in clear (32, one bit unused) ‖ encrypted chip ID (16) ‖ C = D ⊕ K (107,400) ‖ MAC tag (32). The original design’s frame has no counter and no tag.
4) Channel: 200 random bits precede the frame; an optional bit-error rate and an optional man in the middle who flips payload bits (header, counter and ID intact) can be set.
5) Receiver: It searches for the 48-bit preamble and sync word, recomputes the tag with its own key and nonce and checks that the counter exceeds the last one accepted. It then decrypts the chip ID and the payload and filters $D_\mathrm{rx} = C_\mathrm{rx} \oplus K_\mathrm{rx}$ (received bits $C_\mathrm{rx}$, its own keystream $K_\mathrm{rx}$) into readings (Subsection C). A frame is accepted when the ID decrypts correctly and, with the MAC on, the tag matches and the counter is fresh; for a sine input, the SNDR of the readings is computed.
6) Diagnostics: The fraction of ones in D and its longest run of equal bits (used by the saturation attack), and BM on the first 64 keystream bits predicting the next 1,000 (a probe of the keystream’s linearity).
An attack acts at the sensor input, on the chip (a counterfeit), on the helper-data downlink, on the radio channel, or only in the attacker’s processing of the recorded frame; simulate(attack=...) applies it there and passes the frame to the verdict test of Subsection G.
G. The 15 attacks and their verdicts
An attack succeeds with DATA BREACHED (the attacker’s keystream estimate agrees with the true keystream on more than 99 % of the bits it is used for, so the data can be read), FAKE DATA ACCEPTED (the receiver accepts a frame that the attacker forged, cloned, replayed or altered), INFORMATION LEAKS (two ciphertexts or the oracle’s answers reveal information about the data or the fingerprint) or KEY WEAKENED (fewer than 192 secret fingerprint bits remain, Subsection D). It fails with DATA SAFE, ATTACK DETECTED (the receiver rejects the frame) or NOT APPLICABLE (the design has no such block).
Table 5 lists what the attacker does in each attack, with three rules. (i) When a key-recovery attack ends with a register (Berlekamp-Massey, replica and saturation attacks), it is extended forward from the end of its window and, for an LFSR, backward to the start of the frame; the keystream agreement is scored from the first bit the attacker did not already know. If no window yields the key, the attacker keeps the raw estimate, scored over the second half of the frame. (ii) Against the proposed design, BM cannot extend Grain-128a. A replica or constant guess that already agrees with the keystream on more than 97 % of the bits exposes only the frame in which it was made; it counts as a breach only when the counter and MAC are off, because only then does the next frame reuse the keystream. (iii) Each attack draws its random quantities from its own seed offset (for example seed + 2 and + 3 for the replica’s noise and windows, seed + 12 for the second channel, seed + 23 for the saturation windows, seed + 31 and + 33 for the forged frame and the guessed key), and the replica and second channel have their own dither seeds.
Table 5: The 15 attacks as implemented in the model (* from [1]: A4, A5 evaluated there, A1, A8 named)
|

Fig. 16. Known-input replica attack on the original design with an ideal (top) and a real replica (bottom). Rows, for 32 bits of one frame under a known DC input: victim's bits $D$, replica's bits $D_\mathrm{r}$ (orange: differing bits) and keystream estimate $\hat{K} = C \oplus D_\mathrm{r}$. Right: linear complexity L(n) of K̂; dashed: n/2. Recorded animation (python dev/assets/make_assets.py replica_attack, SKY130-derived settings).
Fig. 16 illustrates what the replica attack exploits (Sections VIII and IX compute the verdicts). With an ideal replica, $C \oplus D_\mathrm{r}$ is the keystream: L(n) stops at 16 and Berlekamp-Massey predicts the following bits 100 % right. A replica with a 0.1 % FS input offset and its own dither and noise disagrees with the victim on 49 % of the bits (recorded animation); in the window shown L(n) grows as n/2, and none of 80 random windows yields the key. The two chips, however, agree in runs, and a scan of every window, with the replica’s input trimmed, finds a clean stretch and the key (Section IX-A, A4).
H. A reference frame
Without attack the link should be transparent: the receiver finds the frame, the ID decrypts, the MAC verifies and the decrypted bits equal the modulator bits, so the SNDR is the modulator’s own. The expected number of PUF cells that differ at 37 °C from the 25 °C enrolment, $\sum_i p_i$, should lie below $t = 40$, so that the key is regenerated; with the assumed cell noise the margin is moderate, and a power-up with more than t flips has a non-zero probability.
The frame runs on the behavioural model with the DEFAULTS of Subsection A (assumed circuit parameters, before Section VII): proposed design, the test sine, one frame, 37 °C. Fig. 17 tests the transparency in two ways: panel (a) traces $D$, $K$, $C$, $D_\mathrm{rx}$ and $D \oplus D_\mathrm{rx}$ bit by bit, and panel (b) compares the server reading with the modulator input.
| chip ID check | passed |
| MAC | verified |
| decrypted bits equal to the modulator bits | all |
| recovered SNDR | 60.3 dB |
| PUF cells flipped at this power-up | 27 of t = 40 correctable, all corrected |
| expected flips at this temperature (sum of pi) | 26.6 |
| P(key fails) at this temperature | 1.1e-04 |

Fig. 17. Reference frame of the proposed design without attack (behavioural model, 37 °C). (a) Bits over 48 clocks, each row 0 (lower) or 1: $D$, $K$ (red), $C = D \oplus K$, decrypted $D_\mathrm{rx}$, and $D \oplus D_\mathrm{rx}$ (blue). (b) Modulator input $u$ (grey; delayed and scaled to the receiver filters) and server reading (black); below: their difference.
Key insights. The result panel reports: chip ID check passed; MAC verified; all decrypted bits equal to the modulator bits; recovered SNDR 60.3 dB; 27 PUF cells flipped at this power-up, all corrected (t = 40); expected flips $\sum_i p_i = 26.6$; key-failure probability $1.1 \times 10^{-4}$ at 37 °C. In Fig. 17, $D \oplus D_\mathrm{rx}$ is 0 on all 107,400 bits (panel (a), last row), and the server’s reading follows the modulator input; panel (b) gives the residual error in % of full scale with its rms and the fitted delay and gain of the receiver filters. All predictions are confirmed: the blocks that the proposed design adds (PUF, fuzzy extractor, Grain-128a, MAC) do not change the accuracy, which the modulator alone sets. The flips use two thirds of the correction capability, and the key-failure probability is far above the $10^{-6}$ target of Section II-D. The code must therefore be sized from the actual cell statistics: Section VII obtains them from SKY130 simulation and sizes t, and Section VIII evaluates the result across PVT.
Section VI checks the model against the bit disagreement between two channels (Fig. 4(c) of [1]) and the energy table of [1] (Fig. 4(b)) before any attack is evaluated.
VI. Consistency check against the measurements of [1]
The model of Section V computes every bit of both designs, but it was built from specifications, not from the chip. Before any attack is evaluated on it, this section asks whether it reproduces what the chip of [1] was measured to do. Every later verdict is computed on this model. [1] argues the security of the original design from the measured disagreement between two channels of its chip, and the energy comparison rests on the energy table of [1]; if the model did not reproduce the channel disagreement, the attacks of Section IX that rest on analog decorrelation could not be trusted.
The check uses the modulator and receiver of Section V-C with the DEFAULTS of Section V-A, before any SKY130 parameter. It identifies the modelled effect that makes two model channels disagree, not the effect at work in the chip of [1]. Subsection A reproduces the measurement of [1] in which two channels encrypt the same input with the same key (Fig. 4(c) of [1]) and identifies the modelled effect that makes their outputs differ; Subsection B checks what the energy table of [1] (Fig. 4(b)) rests on, without any radio number; Subsection C runs both experiments and compares them with [1].
A. Two channels, same key, same input (Fig. 4(c) of [1])
The chip of [1] has two nominally identical channels that deliberately differ only in their dither sequence. With the same key, their ciphertext bits differ in 50.05 % of positions for a zero input and in 49.8 % for the same message; [1] relies on the dither and the bitstream’s activity to conceal the keystream. Five relations determine what the model can show about this measurement:
1) The measured quantity: With the same keystream $K$ and the ciphertext bits $C_1$, $C_2$ and modulator bits $D_1$, $D_2$ of channels 1 and 2, $C_1 \oplus C_2 = (D_1 \oplus K) \oplus (D_2 \oplus K) = D_1 \oplus D_2$: the fraction of differing ciphertext bits is that of the modulator bits, 0 % for identical modulators and 50 % for independent ones.
2) Perturbations at the quantiser are suppressed: Dither and comparator noise act at the comparator: they change a decision only when the second integrator’s state $x_2$ lies within the perturbation of the threshold, and the loop corrects it as it corrects quantisation error (noise shaping).
3) Perturbations ahead of the integrators are not: An input-referred difference δ between the channels (analog mismatch, added to the modulator input $u$ of channel 2) and the first integrator’s thermal noise $\sigma_\mathrm{i}$ are integrated twice before the quantiser and are not shaped. A constant δ acts at every clock, so the trajectories diverge until the decision sequences shift and the bits decorrelate.
4) A zero input does not discriminate: With $u = 0$ the loop idles in a short repetitive pattern whose phase is set by the first decisions and the smallest perturbation, so two channels disagree on about half of their bits whatever the cause.
5) The independence value: Two fully decorrelated channels give independent bits, each a one with probability $(1 + u)/2$; they differ with probability $(1 - u^2)/2$ per clock, $(1 - A^2/2)/2$ on average for a sine of amplitude $A$: about 48.4 % for the test signal ($A$ ≈ 0.25 FS) and 50 % for a zero input. This is an expected value for independent channels, not a bound: anticorrelated channels can exceed it.
The analysis therefore predicts these fractions of differing bits. (i) Zero input: about 50 % for every combination of effects. (ii) Same message: at most a few per cent from dither and comparator noise alone; at the independence value of item 5 once mismatch is present, for any mismatch above a small threshold; from integrator noise, an intermediate value that this first-order argument does not predict.
The runs use the behavioural model of Section V-C (dsm2) with DEFAULTS, dither at the comparator, comparator noise $\sigma_\mathrm{c} = 10^{-3}$ in every run, and two inputs: zero ($u = 0$) and the same message (the test sine through the TIA and buffer); Table 6 lists the other settings.
Table 6: Settings of the consistency check against the measurements of [1]
|
B. Transmitted bits behind the energy table (Fig. 4(b) of [1])
The energy table of [1] compares the S-DSM with a conventional design, a decimating ADC followed by the Trivium cipher [5], sending the same information (20 Nyquist samples). The bits each design sends per reading (Nyquist sample) are set by the architecture alone:
- S-DSM: one encrypted bit per modulator clock, OSR (the oversampling ratio) bits per reading.
- ADC + Trivium: 16-bit words at SR/NR times the Nyquist rate (SR: the decimated output rate; NR: the Nyquist rate), 16 × SR/NR bits per reading.
If the energies of [1] are set by the bits transmitted, as [1] states, the ratio of its two energies equals the ratio of the bits, 16 × (SR/NR) / OSR, whatever the radio. The bit ratio should therefore equal the energy ratio of [1] in all four configurations, to the rounding of the table of [1].
The check uses the four configurations of Fig. 4(b) of [1] (OSR 50 and 30, each with SR/NR = 4.5 and 5); its metric is the largest relative difference between the bit ratio and the energy ratio reported in [1] over the four. Radio and security power do not enter, since no radio is designed in this work.
C. Runs, results and interpretation
The first code cell below defines both experiments; the second runs them, compares them with [1] and draws Fig. 18.
| zero input | model 50.0 % of bits differ · measured in [1] 50.05 % |
| same message | model 48.2 % of bits differ · measured in [1] 49.8 % |
| SNDR | 60.3 dB with dither at the comparator, 39.5 dB in the feedback |
| The two channels differ by | Zero input | Same message |
|---|---|---|
| dither, thermal noise, 0.10 % mismatch | 50.0 % | 48.2 % |
| dither, thermal noise, no mismatch | 53.6 % | 26.6 % |
| dither, no noise, 0.10 % mismatch | 49.8 % | 48.5 % |
| dither, no noise, no mismatch | 50.3 % | 4.8 % |
| no dither, thermal noise, 0.10 % mismatch | 50.0 % | 48.4 % |
| no dither, thermal noise, no mismatch | 54.6 % | 26.2 % |
| no dither, no noise, 0.10 % mismatch | 50.1 % | 48.2 % |
| no dither, no noise, no mismatch | 49.9 % | 0.3 % |
| feedback dither, thermal noise, 0.10 % mismatch | 47.9 % | 47.2 % |
| analog mismatch (0.10 % FS, ahead of the quantiser) | 48.2 % |
| first-integrator thermal noise | 26.2 % |
| dither at the comparator | 4.8 % |
| none of the three (comparator noise only) | 0.3 % |
| independent channels, analytic: mean of (1 − u²)/2 | 48.4 % for the test sine (amplitude 0.249 FS); 50.0 % for the zero input |
| input mismatch 0 % FS | 24.7 % (range 23.9–26.6 %) |
| input mismatch 0.003 % FS | 45.7 % (range 45.5–45.9 %) |
| input mismatch 0.01 % FS | 48.3 % (range 47.4–48.7 %) |
| input mismatch 0.03 % FS | 48.5 % (range 48.2–48.9 %) |
| input mismatch 0.1 % FS | 48.3 % (range 48.1–48.6 %) |
| input mismatch 0.3 % FS | 48.4 % (range 48.3–48.6 %) |
| amplitude for which independence gives the measured 49.8 % | 0.089 FS |
| largest difference between the bit ratio and [1]'s energy ratio | 0.18 % over all 4 rows |
| bits per reading at OSR 50 | S-DSM 50; decimating ADC with Trivium 72–80 (16-bit words at 4.5–5× Nyquist) |
| OSR | SR/NR | Bits per reading, ADC + Trivium | Bits per reading, S-DSM | Bit ratio | Energy ratio reported in [1] |
|---|---|---|---|---|---|
| 50 | 4.5 | 72 | 50 | 1.440 | 1.442 |
| 50 | 5 | 80 | 50 | 1.600 | 1.601 |
| 30 | 4.5 | 72 | 30 | 2.400 | 2.404 |
| 30 | 5 | 80 | 30 | 2.667 | 2.671 |
![Fig. 18. Model against the channel measurement and the energy table of [1].](/puf/output_74_7.png)
Fig. 18. Model against the channel measurement and the energy table of [1]. (a) Same-message test: running fraction of differing bits between two channels with the same input and key, with dither at the comparator and the effects in the legend; dotted: measured in [1]. (b) The ADC with Trivium relative to the S-DSM in the four configurations of Fig. 4(b) of [1]: energy ratio reported in [1] (hatched) and ratio of transmitted bits (solid, labelled); no radio number used.
Key insights.
-
Agreement with Fig. 4(c) of [1] (first result panel, Table 7). With all effects on, the model gives 50.0 % of bits differing for the zero input (measured 50.05 %) and 48.2 % for the same message (measured 49.8 %, 1.6 percentage points higher). For the zero input, all nine rows of Table 7 give 47.9–54.6 %, within 5 percentage points of 50 %, including the row with no dither, integrator noise or mismatch (49.9 %): prediction (i) holds, and the zero-input test cannot distinguish the effects.
-
Same message, decomposed (second result panel, Fig. 18(a)). Mismatch alone gives 48.2 %; adding noise or dither changes this by at most 0.3 percentage points (48.2–48.5 %). Integrator noise without mismatch gives 26.2 % (26.6 % with dither), dither alone 4.8 % and comparator noise alone 0.3 %. Over time, the two runs with mismatch reach about 47–48 % within the first thousand clocks and end at 48.2 % and 48.5 %; integrator noise without mismatch rises more slowly, to about 21 % at the thousandth clock, then stays within 21–30 % and ends at 26.6 %; dither alone stays below about 16 % after the first 100 clocks and settles near 5 %. Prediction (ii) holds for the effects at the quantiser and for mismatch; integrator noise alone reaches about half the independence value.
-
Mismatch sweep (third result panel). The independence value for the test sine (amplitude 0.249 FS) is 48.4 %. Without mismatch the four seed sets give 24.7 % on average (23.9–26.6 %); 0.003 % FS gives 45.7 %; from 0.01 % FS upwards every value lies within 47.4–48.9 % (means 48.3–48.5 %), whatever δ is. As prediction (ii) states, above about 0.01 % FS the result does not depend on the assumed mismatch: the 48.2 % of the first result panel is the independence value, not a fitted value. The measured 49.8 % would be the independence value for a sine of amplitude 0.089 FS.
-
Transmitted bits (fourth result panel, Table 8, Fig. 18(b)). At OSR 50 the S-DSM sends 50 bits per reading and the ADC with Trivium 72 or 80; at OSR 30, 30 against 72 or 80. The bit ratios, 1.44, 1.60, 2.40 and 2.67, agree with the energy ratios of [1] within 0.18 %, inside the rounding of its table, as predicted. This confirms the bit counts behind the energy table of [1], not a measurement: Section X compares the proposed design by its transmitted bits, set by the architecture, and claims no radio energy of its own (Section X-E uses the radio of [1] only as a labelled example).
-
A consistency check, not a validation. No parameter is fitted (δ is assumed, and the result does not depend on it), but neither comparison discriminates between models: the zero input gives about 50 % for any effect, and the same-message value saturates at the independence value, confirming that the channels decorrelate, not how strongly. The 1.6-point gap could be explained by a smaller test amplitude in [1], which [1] does not state; a deficiency of the model cannot be excluded.
-
With the dither as modelled, the model needs a further effect to reach the measured disagreement. [1] attributes the disagreement of its channels to the dither, and its chip measurements are the stronger evidence. The model’s dither is simplified (a discrete-time loop without excess loop delay, the ladder ratio of 0.978 to 1.022 read as ±0.022 of full scale at the comparator input), and the loop corrects most of the decisions it changes. This is a statement about the model, not about the chip of [1]: the security of [1] is not attributed to mismatch rather than dither; the channel offset is only the model’s means of reproducing the measured decorrelation. Section IX-C sweeps the dither amplitude: in the model, only $a_\mathrm{d} \ge 0.2$ protects at every replica offset (one seed per grid point). Dither in the feedback (first result panel, last row of Table 7), with all effects on, gives 47.9 % (zero input) and 47.2 % (same message), no more than mismatch already gives, but lowers the modulator’s SNDR from 60.3 dB (dither at the comparator) to 39.5 dB; this 21 dB loss is consistent with the choice of [1] to dither at the comparator.
-
Consequence for the security evaluation. Full decorrelation does not protect the original design against the same-key test: the fraction of differing bits settles at $(1 - A^2/2)/2$ and reveals the amplitude of the reading (A5, Section IX-A). The resistance to the replica attack depends on how strongly the victim’s and replica’s bits decorrelate, through dither and analog differences together, which Section VIII sweeps; key search, Berlekamp-Massey and frame forgery do not depend on it.
The check runs on assumed circuit parameters. Section VII simulates at transistor level the two circuits whose non-idealities decide the security, the modulator’s comparator and the PUF’s SRAM cell, and their values replace the assumptions.
VII. Circuit-level simulation in SKY130
Some settings of the model describe circuits rather than algorithms: the comparator’s input-referred noise and offset and the SRAM cell’s noise-to-mismatch ratio, temperature coefficient and bias, so far illustrative, with a placeholder code strength t = 40. This section asks which values these settings take in a real process, with SKY130 transistor-level models, as schematics, as extracted layouts and across process, voltage and temperature (PVT). The security of both designs rests on them: analog differences between two chips decide whether their bits agree (Section VI), and the PUF’s noise-to-mismatch ratio sets how many fingerprint bits flip at each power-up, hence the code strength, the key-failure probability and the remaining secret bits.
Each circuit is simulated in ngspice with the PDK’s device, noise and mismatch models, first as a schematic, then as an extracted layout. Subsection A fixes the tool set. B measures the StrongARM comparator’s input-referred noise $\sigma_\mathrm{n}$, offset spread $\sigma_\mathrm{os}$ and energy per decision. C measures how reliably a 6T SRAM cell powers up to the same value at three temperatures, as the cell model’s noise-to-mismatch ratio $s_{25}$ at 25 °C, temperature coefficient $a$ and bias $P(1)$, the probability of powering up to 1. D extracts both cells, finds whether the layout changes these values, and checks that the results do not depend on the simulator’s time step or tolerance. E replaces the model’s illustrative settings with the post-layout values and sizes the BCH code. F measures, on recorded grids, how both cells change across PVT and why: the comparator’s dynamic and leakage energy over 45 conditions, the SRAM errors split into noise and reproducible flips by a closed-form law, the rotation of the latch’s mismatch at the ff and fs corners, and the effect of the supply ramp. G estimates, with an assumed ageing law (the PDK has none), how ten years of NBTI change the cell’s error rate.
Role of the circuits. The StrongARM latch and the 6T SRAM cell are standard topologies; Section VIII carries their values to the complete sensor.
A. Simulation setup
All circuits are simulated with ngspice 41 on the SkyWater SKY130 open PDK (open_pdks build 1689ac3f): the 1.8 V devices sky130_fd_pr__nfet_01v8 and pfet_01v8, the typical (tt) corner unless stated otherwise, and the PDK’s mismatch models. The layouts of Section VII-D are drawn with KLayout 0.30 (Python API), checked and extracted with Magic 8.3 and netgen 1.5. The digital blocks of Sections X, XI and XII use Yosys 0.69 on the sky130_fd_sc_hd standard cells, OpenROAD and Icarus Verilog, all with pinned versions; ngspice uses the HSPICE-compatible parameter handling the SKY130 libraries require. Every extraction stops with an error instead of producing a number when its data are missing or out of range (a failed ngspice command, an empty or truncated output file, a sample time outside the waveform, a power-up that ends before its stop time, a cell or comparator that never resolves).
Every SPICE testbench is also drawn as an xschem schematic with the PDK’s symbols: the comparator’s transient and energy (Fig. 20), noise (Fig. 22) and offset (Fig. 24) testbenches, the SRAM cell’s power-up (Fig. 27), flip-mechanism (Fig. 42) and ageing (Fig. 44) testbenches, and the mixed-level modulator of Section XII (Fig. 81). The netlist xschem writes from each schematic equals the simulated netlist element by element, and the transient testbench simulated from it takes the same six decisions.
/home/runner/work/_temp/cac_work| Python | 3.11.15 |
| ngspice | ngspice-41 |
| Yosys | Yosys 0.69 |
| KLayout (Python) | 0.30.12 |
| Magic | 8.3.465 |
| netgen | Netgen 1.5.272 |
| OpenROAD | 2.0-12381-g01bba3695 |
| Icarus Verilog | 13.0 |
| SKY130 (open_pdks via ciel) | 1689ac3f2dc7 |
| ciel | 3.0.0 |
| numpy | 2.4.6 |
| scipy | 1.17.1 |
| numba | 0.68.0 |
| matplotlib | 3.11.2 |
B. The StrongARM comparator
The quantiser, clocked at 10 MHz [1], is a StrongARM latch [7] (Fig. 19). While the clock φ is low, the reset devices M8–M11 precharge the internal nodes $d_\mathrm{p}$, $d_\mathrm{n}$ and the outputs $\mathrm{out}_\mathrm{p}$, $\mathrm{out}_\mathrm{n}$ to the supply voltage $V_\mathrm{DD}$. When φ rises, the tail M7 turns on and the input pair M1/M2 discharges $d_\mathrm{p}$ and $d_\mathrm{n}$, of capacitance $C_\mathrm{P}$, with currents $I_\mathrm{D} \pm g_m \Delta V_\mathrm{in}/2$ ($\Delta V_\mathrm{in}$: the differential input; $I_\mathrm{D}$, $g_m$: drain current and transconductance of each input device) for an integration time $T_\mathrm{int}$, until the nodes have fallen by about a threshold voltage $V_\mathrm{TH}$ and the cross-coupled latch M3–M6 turns on and regenerates the difference to the rails, as $v_0\,e^{t/\tau}$ with $\tau \approx C_\mathrm{out}/g_{m,\mathrm{latch}}$ ($v_0$: the difference when regeneration starts; $t$: the time since then; $\tau$: the regeneration time constant; $C_\mathrm{out}$: the output-node capacitance; $g_{m,\mathrm{latch}}$: the transconductance of a latch device). For these device sizes $\tau$ = 36 ps (the slope of the simulated decision delay against $\ln \Delta V_\mathrm{in}$), so even a 10 µV input reaches half-swing 0.62 ns after the clock edge, far inside the 50 ns half-period: metastability does not limit this comparator, and its accuracy is set by noise and offset alone. Two inverters load both outputs equally ahead of the NOR SR latch, which holds the decision q through the reset phase.
During integration each input device adds channel noise of one-sided power spectral density $S_i = 4kT\gamma g_m$ to its node ($k$: Boltzmann’s constant, $T$: absolute temperature, $\gamma$: channel-noise factor, 2/3 for a long-channel device). The signal deposits a charge $g_m \Delta V_\mathrm{in} T_\mathrm{int}$ and the noise a charge whose variance grows with $T_\mathrm{int}$; referred to the input with $T_\mathrm{int} \approx C_\mathrm{P} V_\mathrm{TH}/I_\mathrm{D}$, this gives the first-order result [7]
$$\sigma_\mathrm{n}^2 \approx \frac{4kT\gamma}{g_m T_\mathrm{int}} = \frac{kT}{C_\mathrm{P}} \cdot \frac{4\gamma\,(I_\mathrm{D}/g_m)}{V_\mathrm{TH}},$$
the kT/C noise of the integrating node scaled by a bias factor, which rises as $\sqrt{T}$. With $C_\mathrm{P}$ of a few femtofarads ($\sqrt{kT/C_\mathrm{P}}$ = 0.91 mV at 5 fF and 300 K), $I_\mathrm{D}/g_m$ ≈ 0.1 V and $V_\mathrm{TH}$ ≈ 0.5 V, the factor is about 0.5. The latch adds noise only after the integration gain $g_m T_\mathrm{int}/C_\mathrm{P}$, so its share is small. The analysis above therefore predicts $\sigma_\mathrm{n}$ between a few tenths of a millivolt and about 1 mV, almost all of it from the input pair. For these devices the PDK’s model gives $\gamma$ near 2 rather than 2/3, and $V_\mathrm{TH}$ with body effect is about 0.9 V. Gaussian noise makes the probability of deciding 1 a probit curve, $P(q = 1) = \Phi((\Delta V_\mathrm{in} - \mu)/\sigma_\mathrm{n})$ ($\Phi$: standard normal distribution function, $\mu$: systematic offset), whose fit to many decisions measures $\sigma_\mathrm{n}$ and $\mu$. Only white channel noise is included: the input pair’s 1/f noise (corner near 22 MHz; about 95 µV rms over the 10 Hz–100 kHz band) changes little within a clock period and acts as a slowly varying offset of about a sixth of $\sigma_\mathrm{n}$ and 2 % of $\sigma_\mathrm{os}$.
By Pelgrom’s law a device’s threshold varies with $\sigma(V_\mathrm{T}) = A/\sqrt{WL}$, a pair’s difference with $\sqrt{2}\,A/\sqrt{WL}$ ($A$: process constant; $W$, $L$: width and length). The input pair’s mismatch appears directly at the input and the latch’s is divided by the integration gain, so the input devices are drawn long (W/L = 4/0.5 µm, WL = 2 µm²): with the PDK’s nMOS coefficient $A$ = 3.356 mV·µm, $\sigma(V_\mathrm{T})$ = 2.4 mV per device and $\sqrt{2} \times 2.4$ = 3.4 mV for the pair. The PDK also varies the subthreshold offset and oxide thickness, and the latch adds its share, so the analysis above predicts $\sigma_\mathrm{os}$ of the order of 4–5 mV, an order of magnitude above the noise: a constant of each chip, Gaussian over chips, to first order independent of temperature. The energy per decision is $C_\mathrm{sw} V_\mathrm{DD}^2$ ($C_\mathrm{sw}$: the capacitance charged per cycle). Model units: the model decides $y = 1$ (its comparator output bit, with $x_2$ the second integrator’s state) when $x_2 + \text{offset} + \sigma\,\mathcal{N}(0, 1) \ge 0$ ($\sigma$: the comparator noise) (Section V-C), with $x_2 = 1$ mapped to $V_\mathrm{unit} = V_\mathrm{DD}/4$ = 0.45 V differential at 1.8 V, which keeps the second integrator within the swing of a 1.8 V OTA when $x_2$ clips at $\pm 2.5$ (±0.56 V on each output around 0.9 V). Hence the model’s comparator noise is $\sigma_\mathrm{n}/V_\mathrm{unit}$, and the per-chip offset has standard deviation $\sigma_\mathrm{os}/V_\mathrm{unit}$.
The comparator is simulated live at transistor level, as the schematic netlist of Fig. 19: SKY130 tt, 27 °C, $V_\mathrm{DD}$ = 1.8 V, input common mode 0.9 V, an ideal 10 MHz clock with 100 ps edges. Device sizes (W/L in µm): input pair M1/M2 4/0.5, tail M7 2/0.15, latch nMOS M3/M4 1/0.15 and pMOS M5/M6 2/0.15, reset devices M8–M11 1/0.15, followed by inverter buffers and the NOR SR latch on a separate supply, measured apart from the core. Every transistor carries the junction areas and perimeters of a single-finger layout with 0.29 µm of diffusion (without them the models contain no junction capacitance); the schematic assumes 1 fF of wiring on $d_\mathrm{p}$, $d_\mathrm{n}$, $\mathrm{out}_\mathrm{p}$ and $\mathrm{out}_\mathrm{n}$ (Section VII-D replaces it with the extracted values) and a 5 fF load on each output of the SR latch. Breakpoints hold the time step at 20 ps around every rising clock edge, because a larger step during regeneration can place the latch on the wrong side. The measurements are set up as follows:
- Transient. Six decisions without mismatch or noise (Fig. 20).
- Noise. (Fig. 22) ngspice’s transient analysis contains no device noise, so it is injected in three steps: (i) a noiseless transient at $\Delta V_\mathrm{in}$ = +0.5 mV records the terminal voltages of the 11 core transistors on a 20 ps grid around the third rising edge (the first cycle is not in periodic steady state); (ii) at each grid point, a copy of each device biased at those voltages gives the PDK’s channel thermal-noise PSD from one
.noiseanalysis at 1 GHz, where the 1/f noise is a few per cent of the thermal noise, averaged over the two devices of each symmetric pair; (iii) each core transistor receives an independent drain–source noise current with samples of variance $S/(2 \cdot 20\ \mathrm{ps})$ ($S$: that device’s noise PSD), linearly interpolated, from 0.2 ns before to 0.5 ns after each rising edge. On a test RC circuit driven by its resistor’s $4kT/R$ noise (resistance $R$, capacitance $C$) through the same sources, the rms node voltage is 0.874 ± 0.044 of $\sqrt{kT/C}$ for $RC$ = 35 ps and 0.950 ± 0.044 for $RC$ = 150 ps at this grid (0.939 and 0.977 at a 10 ps grid): if the decision nodes behaved like these, $\sigma_\mathrm{n}$ would be underestimated by about 5–13 %; refining the grid to 10 and 5 ps raised $\sigma_\mathrm{n}$ by 1 and 2 %, within its standard error (both checks at tt and 27 °C). A pilot (9 inputs within ±2 mV, 20 decisions each) estimates $\sigma_\mathrm{n}$; the main run applies eleven inputs over ±2.5 times that estimate, 100 decisions each (1,100 in all, independent noise per decision, one comparator per netlist, inputs shuffled), and the probit curve is fitted by maximum likelihood, with standard errors from the likelihood’s curvature. Two further runs inject the noise of the input pair only (40 decisions per input) and of the latch, tail and reset devices only (eleven inputs within ±0.4 mV, 30 decisions each); independent sources add in power, so their variances should sum to $\sigma_\mathrm{n}^2$. The first-order formula takes $g_m$, $I_\mathrm{D}$, $C_\mathrm{P}$ (from the discharge slope of $d_\mathrm{p}$) and $T_\mathrm{int}$ (until the latch nMOS turns on) of the input device from a noiseless transient, with $\gamma$ = 2/3 and with the PDK’s $\gamma$. - Offset. (Fig. 24) 96 Monte Carlo comparators with the PDK’s mismatch on the threshold voltage, oxide thickness and subthreshold offset of every device (4 per netlist, one mismatch seed per netlist, noise off). Each finds its threshold with a successive-approximation search of ideal behavioural elements inside the transient: 16 steps, the first 16 mV and each 1.8 times smaller than the last (the final step 2.4 µV); a ratio below 2 makes the search redundant, so a wrong early decision is corrected, and limits it to ±36 mV. Fig. 25 shows the offset distribution (a) and the search for four instances (b).
- Energy. With the transient testbench of Fig. 20, the supply charge over one clock period with an input of ±1 mV alternating, so that the output toggles in every cycle (the worst case), for the core, the buffers and SR latch, and the clock; the first cycle is discarded.
- Statistics. All seeds are fixed; $\sigma_\mathrm{n}$ is known to about ±5 % (one standard error) and $\sigma_\mathrm{os}$ to −12 %/+17 % (95 % interval from 96 samples).

Fig. 19. SKY130 StrongARM comparator as simulated, W/L in µm next to each device. φ: clock; M1/M2: input pair; M3–M6: cross-coupled latch; M7: tail; M8–M11: reset devices. The two inverters and the NOR SR latch that follow $\mathrm{out}_\mathrm{n}$ and $\mathrm{out}_\mathrm{p}$ and hold the decision q are not drawn.

Fig. 20. Transient and energy testbench of the StrongARM comparator in xschem 3.4.4 (SKY130 symbols of the PDK; export of xschem). (a) Testbench: supplies $V_\mathrm{DD}$ and $V_\mathrm{DDD}$, clock φ (PULSE), differential PWL input of the six decisions, comparator x1, loads $C_\mathrm{L}$, time-step helpers and the NGSPICE block (model library, temperature, analysis). (b) Comparator x1: core M1–M11 with wiring capacitances $C_\mathrm{w}$, output buffers and NOR SR latch; W/L in µm; labels: bodies and net names.
Transient operation
The schematic of Fig. 19 runs first at the conditions above, without mismatch or injected noise, through six consecutive decisions with $\Delta V_\mathrm{in}$ = +1, −1, +0.2, −0.2, +20 and −20 mV: small and large inputs of both signs, one per clock cycle. The metric is the latched decision q of each cycle.
| ΔVin → q | +1 mV → 1, -1 mV → 0, +0.2 mV → 1, -0.2 mV → 0, +20 mV → 1, -20 mV → 0 |
| all decisions correct | yes |
| run time | 0.7 s |
Fig. 21. StrongARM comparator transient (schematic; tt, 27 °C, 1.8 V, 10 MHz; no mismatch or noise). (a) Clock and (b) latched output q for six decisions, labelled with input $\Delta V_\mathrm{in}$ and decision; dotted: rising clock edges. (c)–(f) The +0.2 mV decision after the clock edge: (c) clock and tail node, (d) integration nodes, (e) latch outputs, (f) SR-latch outputs.
All six decisions are correct, including the ±0.2 mV inputs, less than half the input-referred noise simulated below (Fig. 21; result panel). Each decision appears at q within a nanosecond of the rising clock edge and is held through the reset phase, so the feedback DAC sees a stable bit. In the detailed cycle (Fig. 21(c)–(f)), the tail node discharges when the clock rises, $d_\mathrm{p}$ and $d_\mathrm{n}$ discharge at rates set by the input, and the latch outputs separate once they have fallen by about one threshold voltage. Integration, regeneration and latching thus complete well within the 50 ns evaluation phase, so the accuracy is limited by noise and offset, which the next two cells measure.

Fig. 22. Noise testbench of the StrongARM comparator in xschem (SKY130 symbols). (a) Testbench: supplies, clock, the stepped PWL input, comparator x1 without SR latch, the breakpoint helpers and the NGSPICE block. (b) Comparator x1 with the drain-source noise current $\mathrm{Bn}_k$ of each core device $k$ (labels: the device's drain and source nets); the noise samples are written per run by the cell below.
| input-referred noise σn | 0.560 mV |
| noise of the input pair M1/M2 alone | 0.516 ± 0.043 mV, 94 % of the noise power |
| noise of the latch, tail and reset devices alone | 0.128 ± 0.013 mV; both parts in quadrature 0.532 mV |
| first-order kT/C estimate, this run's operating point | 0.41 mV with γ = 2/3, 0.70 mV with the PDK's γ = 1.95 (gm = 0.46 mS, Tint = 144 ps, CP = 4.8 fF) |
| energy per decision | 186 fJ = 1.86 µW at 10 MHz |
Fig. 23. StrongARM comparator input-referred noise and its sources (schematic; tt, 27 °C). Probability of deciding q = 1 against the differential input $\Delta V_\mathrm{in}$, from transient simulations with the PDK's channel noise injected into every device (circles, 100 decisions per input; bars: Wilson 95 % binomial intervals), into the input pair only (squares) and into the latch, tail and reset devices only (triangles), each with its maximum-likelihood probit fit $\Phi((\Delta V_\mathrm{in} - \mu)/\sigma)$, with $\Phi$ the standard normal distribution, $\mu$ the fitted offset and $\sigma$ the fitted input-referred noise (solid, dashed, dotted; legend: decisions per input, $\sigma$ ± one standard error).
The simulated decisions follow the Gaussian curve across the whole input range (Fig. 23); the probit fit gives $\sigma_\mathrm{n}$ = 0.560 mV, inside the predicted range and below the $\sqrt{kT/C_\mathrm{P}}$ of a 5 fF node. The noise comes from the input pair: with only M1/M2 noisy, $\sigma$ = 0.516 ± 0.043 mV, 94 % of the noise power; with only the latch, tail and reset devices noisy, 0.128 ± 0.013 mV, a curve four times steeper. In quadrature the two give 0.532 mV, within one standard error of $\sigma_\mathrm{n}$, as predicted. At the simulated operating point ($g_m$ = 0.46 mS, $T_\mathrm{int}$ = 144 ps, $C_\mathrm{P}$ = 4.8 fF), the first-order formula gives 0.41 mV with $\gamma$ = 2/3 and 0.70 mV with the PDK’s $\gamma$ = 1.95, which bracket the input pair’s 0.516 mV. The comparator requires 186 fJ per decision, 1.86 µW at 10 MHz, or $C_\mathrm{sw} = E/V_\mathrm{DD}^2$ ≈ 57 fF ($E$: the energy per decision) charged per cycle.
The comparator’s noise is thus the kT/C noise of its integrating nodes, set by the input pair’s channel noise during the integration; the latch adds a few per cent. The first-order formula, with a constant $g_m$ and a sharp end of the integration at $T_\mathrm{int}$, places it within a factor of 1.4 either way; lowering it would take a larger node capacitance or a longer integration, at the cost of energy and speed. Inside a second-order loop, noise at the quantiser is shaped like quantisation noise, so a value of this size is not expected to limit the modulator’s SNDR; Section VIII-A tests this, and Section VIII-C evaluates the comparator’s share of the power.

Fig. 24. Offset Monte Carlo testbench of the StrongARM comparator in xschem (SKY130 symbols), one of the four instances of a netlist: comparator x1 without SR latch (PDK mismatch, tt_mm), the successive-approximation loop (gate and step sources, integrator $C_\mathrm{int}$ charged by $B_\mathrm{int}$, input sources $V_\mathrm{CM} \pm V(vd)/2$) and the NGSPICE block.
| offset σos | 4.34 mV over 96 Monte Carlo instances |
| mapped to the model | comp_noise = 1.24e-03 (illustrative value 1e-3); offset ~ N(0, 9.64e-03) in x2 units |
| comparator run time | 80 s |
Fig. 25. StrongARM comparator offset Monte Carlo (schematic; tt, 27 °C; 96 SKY130 mismatch instances). (a) Probability density of the input-referred offset $V_\mathrm{os}$ (bars) and fitted Gaussian (line). (b) Input $\Delta V_\mathrm{in}$ applied in each clock cycle by the successive-approximation offset search, for four instances.
Key insights. Over the 96 Monte Carlo comparators, $\sigma_\mathrm{os}$ = 4.34 mV (Fig. 25(a)), within the predicted 4–5 mV and above the 3.4 mV of the input pair’s threshold term alone; panel (b) shows the search converging to each instance’s threshold. The offset is 7.8 times the noise: the non-ideality fixed per chip is the larger. In model units the comparator noise is 0.560 mV / 0.45 V = $1.24 \times 10^{-3}$ (illustrative value $10^{-3}$), and each chip’s offset is drawn from $\mathcal{N}(0,\ 9.64 \times 10^{-3})$ in units of $x_2$; both numbers are small fractions of the integrator’s range, so neither is expected to affect the resolution (Section VIII-A). The offset is one of the analog differences between two chips, but it acts at the quantiser, where the loop suppresses perturbations (Section VI); Section VIII-B quantifies the difference it produces between a victim and a replica. Section VII-D repeats both measurements on the extracted layout.
C. The SRAM-PUF cell
The cell model’s three settings ($s_{25}$, $a$, $P(1)$) follow from a race between the two inverters at power-up. With the word line at 0, both storage nodes q and q̄ start at 0 V and rise with $V_\mathrm{DD}$ (Fig. 26). Once the loop gain of the cross-coupled inverters exceeds one, any difference between q and q̄ grows exponentially and the cell falls to one side [13], decided by a mismatch voltage $\Delta V_{\mathrm{m},i}$, fixed for cell $i$ (the threshold mismatch of its two pull-down and two pull-up transistors), plus a noise voltage $v_\mathrm{n}$, new at every power-up (the thermal noise of the same devices at the moment of decision). The cell powers up to 1 when $\Delta V_{\mathrm{m},i} + v_\mathrm{n} > 0$; dividing by the mismatch spread $\sigma_\mathrm{m}$ over cells gives the cell model of Section V-D, $m_i + s\,n > 0$, with the normalised mismatch $m_i \sim \mathcal{N}(\mu, 1)$ of mean $\mu$ (the bias), fresh $n \sim \mathcal{N}(0, 1)$ and the noise-to-mismatch ratio $s = \sigma_\mathrm{v}/\sigma_\mathrm{m}$ ($\sigma_\mathrm{v}$: rms noise voltage). A cell returns 1 with probability $p_i = \Phi(m_i/s)$, so only the few cells with $\lvert m_i\rvert \lesssim s$ are unstable.
A cell disagrees with the enrolment power-up with probability $2p_i(1 - p_i)$; averaged over $m \sim \mathcal{N}(0, 1)$ for $s \ll 1$, the bit error rate (BER) is proportional to the noise-to-mismatch ratio,
$$\mathrm{BER} \approx \frac{\sqrt{2}}{\pi}\, s \approx 0.45\, s.$$
With the PDK’s mismatch coefficients the pull-down nMOS (W/L = 0.64/0.15 µm) has $\sigma(V_\mathrm{T})$ = 10.8 mV and the minimum-size pull-up pMOS about 23 mV, so $\sigma_\mathrm{m}$ is a few tens of millivolts, while the noise on a storage node of capacitance $C$ of about 2 fF is of the order of $\sqrt{kT/C}$ = 1.4 mV at 25 °C. The analysis above therefore predicts $s$ of the order of a few hundredths, well below the illustrative $s_{25} = 0.06$, a BER of about 1 % at 25 °C, and $P(1) = \Phi(\mu) = 0.5$ for a symmetric cell. If only the thermal noise changed with temperature, $s$ would grow as $\sqrt{T}$, by only 10 % from 25 to 85 °C (about 0.0016 per °C), and the BER would fall at −40 °C. Temperature also shifts the threshold voltages and the supply at which the cell resolves, and with them the relative weight of the nMOS and pMOS mismatch, so a cell’s preferred value can change in either direction; the model represents both effects by $s(T) = s_{25}\,(1 + a\,\lvert T - 25\,{}^\circ\mathrm{C}\rvert)$, symmetric about the 25 °C enrolment. The second prediction is conditional: if the BER rises on both sides of 25 °C and the fitted $a$ is much larger than 0.0016 per °C, the change of the mismatch weights, not kT, governs the temperature behaviour (Section VII-F).
The simulations are set up as follows:
- Level and circuit. Transistor level, the schematic netlist of Fig. 26, SKY130 1.8 V devices at tt with the PDK’s mismatch models. Pull-down W/L = 0.64/0.15 µm, pull-up and access 0.42/0.15 µm: a cell ratio of 1.5 for read stability and a minimum-width pull-up for writeability, as in a memory cell; minimum sizes maximise the mismatch, the source of a PUF’s identity. Junction areas as in Section VII-B.
- Stimulus. (Fig. 27(a)) $V_\mathrm{DD}$ ramps linearly from 0 to 1.8 V in 1 µs with every node at 0 V; the word line stays at 0, and the bit lines and the n-well follow $V_\mathrm{DD}$. The power-up value is the sign of $q - \bar{q}$ when the transient stops (0.8, 0.6 and 0.5 µs at −40, 25 and 85 °C); the smallest $\lvert q - \bar{q}\rvert$ over all runs checks that no cell is read unresolved (99.9 % of the supply in the recorded post-layout run). The maximum time step is 0.5 ns below 25 °C, 1 ns from 25 °C up to 85 °C and 2 ns at 85 °C; on 200 noiseless cells these steps give the same bits as a 0.1 ns reference, whereas larger steps reversed up to 9 % of the noiseless power-ups.
- Mismatch. One netlist holds 64 cells, each transistor with its own draw from the PDK’s mismatch model under a fixed seed, so every cell is reproducible.
- Noise. ngspice transients contain no device noise, so each storage node receives a white noise current (Fig. 27(b); envelope testbench in Fig. 27(c)): a unit Gaussian sample-and-hold source with a new sample every 5 ns (white up to 100 MHz, at least six times the storage node’s bandwidth at the decision), scaled by the PDK’s channel-noise PSD of the nominal cell held at its metastable point (q shorted to q̄; half of it to each node), from
.noiseanalyses at 10 MHz, where the spectrum is white, at every supply from 0.05 to 1.8 V in 50 mV steps and at each temperature. The envelope is interpolated against $V_\mathrm{DD}$, so the noise follows the ramp; the mismatch is identical at every power-up and temperature. Only thermal noise is modelled (no 1/f, random-telegraph or supply noise), so the simulated $s$ is likely to underestimate that of silicon; the PDK’s mismatch in its denominator is not verified against silicon either. - Temperatures and metric. 25 °C (the enrolment temperature), 85 °C (the upper end of the 0–85 °C range) and −40 °C (a cold extreme below it; 0 °C is interpolated piecewise-linearly between −40 and 25 °C where needed, Sections VII-E and VIII-F). The enrolment is the first power-up at 25 °C; the BER is the fraction of all later power-ups that differ from it; a cell is unstable if its value changes between power-ups at that temperature.
- Fits. (i) A maximum-likelihood fit of $s_{25}$, $a$ and $\mu$ to the counts of ones of all cells at all temperatures, each cell’s latent mismatch integrated out numerically (Fig. 29). (ii) A BER-matched fit, used for the model because the error rate is what the fuzzy extractor sees: $s_{25}$ and $a$ by weighted least squares of the model’s $\mathrm{BER}(T)$, computed exactly from the bivariate normal distribution of the enrolment and a later power-up, against the simulated $\mathrm{BER}(T)$, weighted by its bootstrap standard error, and μ from the bias at 25 °C; intervals by bootstrap over cells (200 resamples).
- Recorded and live runs. The power-up waveforms are simulated live. A Monte Carlo that resolves error rates of about 1 % takes about 40 minutes on two cores, so the runs of the schematic and the extracted cell (1,024 cells × 8 power-ups × 3 temperatures each) are recorded;
PUF_MODE = "full"re-runs both live, andPEX_LIVE = Truere-runs the first 128 cells × 5 power-ups of the extracted cell (about 105 s), bit-identical to the record. Recorded power-ups at 125 °C, outside the range, are not used.

Fig. 26. SKY130 6T SRAM-PUF cell as simulated, W/L in µm next to each device. $\mathrm{PU}_\mathrm{a}$/$\mathrm{PD}_\mathrm{a}$ and $\mathrm{PU}_\mathrm{b}$/$\mathrm{PD}_\mathrm{b}$: pull-up and pull-down devices of the inverters that drive q and q̄; $\mathrm{PG}_\mathrm{a}$, $\mathrm{PG}_\mathrm{b}$: pass gates to the bit lines. During power-up, WL = 0 and the bit lines follow $V_\mathrm{DD}$.

Fig. 27. SRAM-PUF testbenches in xschem (SKY130 symbols). (a) Power-up Monte Carlo: supply ramp, word line, temperature selectors $\mathrm{sel}_k$ and envelope source env, cells X0 … X(N−1) with bit lines on $V_\mathrm{DD}$, NGSPICE block. (b) The cell: 6T devices with W/L in µm and the two noise currents into q and q̄. (c) Noise envelope: the noiseless cell with q and q̄ shorted (node m), the test current $I_\mathrm{ac}$ and the operating-point, AC and noise analyses.
Fig. 28. SRAM-PUF cell power-up waveforms (schematic, 25 °C, with noise) of two of the four simulated cells: (a) one that settles to 1 and (b) one that settles to 0 (panel titles: cell and final bit). $V_\mathrm{DD}$ (grey) ramps to 1.8 V in 1 µs; storage nodes q (solid) and q̄ (dashed).
In all four simulated cells (Fig. 28 shows two), q and q̄ first rise together with the supply, because both inverters are still too weak to amplify their difference; well before $V_\mathrm{DD}$ reaches 1.8 V, the nodes separate: one follows $V_\mathrm{DD}$, the other returns to ground. The race is decided at a low supply, where the devices are close to their threshold, so the final supply value is not expected to affect the decision (not simulated), whereas the ramp rate and the threshold voltages, which change with temperature and process, do (Section VII-F).
| Temperature | Cells powering up to 1 | Bit-error rate vs enrolment | Unstable cells |
|---|---|---|---|
| −40 °C | 49.7 % | 1.34 % | 19 |
| 25 °C | 49.6 % | 0.91 % | 25 |
| 85 °C | 49.7 % | 2.31 % | 37 |

Fig. 29. SRAM-PUF cell power-up statistics (schematic; recorded run, 1,024 cells × 8 power-ups). Fraction of cells against the number of ones k in R = 8 power-ups at (a) −40 °C, (b) 25 °C and (c) 85 °C: SKY130 Monte Carlo (bars) and maximum-likelihood-fitted cell model (dots), without error bars; cells with 0 < k < R are unstable.
Over the 1,024 cells of the recorded run (Table 9), 49.6–49.7 % power up to 1 at every temperature, within the sampling error of ±1.6 % of 50 %: no measurable bias. Against the 25 °C enrolment, the bit-error rate is 0.91 % at 25 °C, as predicted (about 1 %), and rises on both sides: 1.34 % at −40 °C and 2.31 % at 85 °C. The unstable cells rise at 85 °C (37 of 1,024, against 25 at 25 °C) but fall at −40 °C (19), so part of the −40 °C error rate comes from cells stable at −40 °C with the value opposite to their enrolment (5 cells, 40 of the 110 errors). In Fig. 29, almost all cells return the same value in every power-up ($k = 0$ or 8), and the fitted model reproduces these two outer bins. In the middle bins (1 to 13 cells each) it agrees at 25 °C (about 27 unstable cells predicted, 25 simulated) and at 85 °C within counting scatter (about 49 against 37), but at −40 °C it predicts more than twice as many as simulated (about 50 against 19): a systematic deviation of the symmetric temperature law.
The rise of the BER at −40 °C is evidence against the noise-only picture (thermal noise falls with temperature), but not decisive: the −40 °C rate exceeds the 25 °C rate by 1.9 standard errors of the difference paired over the same cells (one-sided p ≈ 0.03, two-sided p ≈ 0.05). It is consistent with cells that change their preferred value away from the enrolment temperature, which the counted reproducible flips of Section VII-F show more clearly. For the key, the error rate at the temperature extremes, not at 25 °C, sizes the code.
| schematic cell, fitted to the Monte Carlo above (recorded full run, 1,024 cells) | s25 = 0.0205 ± 0.0045, a = 0.0228, P(1) = 0.496 (the model's parameters are fitted to the post-layout run of Section VII-D) |
| assumed before simulation | s25 = 0.06, a = 0.008: the simulated SKY130 cell has a 2.9 times smaller noise-to-mismatch ratio |

Fig. 30. SRAM-PUF cell bit-error rate against temperature (schematic, recorded run; enrolment: one power-up at 25 °C). Circles: SKY130 Monte Carlo (bars: 95 % bootstrap intervals over cells). Lines: the cell model $s(T) = s_{25}\,(1 + a\,|T - 25\,{}^\circ\mathrm{C}|)$ with maximum-likelihood (solid), BER-matched (dashed) and the parameters assumed before the SKY130 simulations (dash-dotted). Shaded: outside the specified 0–85 °C range.
The BER-matched fit gives $s_{25}$ = 0.0205 ± 0.0045, $a$ = 0.0228 per °C and $P(1)$ = 0.496 for the schematic cell; BER ≈ 0.45·$s_{25}$ then predicts 0.92 % at 25 °C, against 0.91 % simulated. In Fig. 30, the BER-matched model lies above the simulation at −40 °C (1.74 % against 1.34 %) and below it at 85 °C (1.68 % against 2.31 %), inside the 95 % intervals of the simulation (0.81–1.98 % and 1.57–3.11 %) but at opposite ends. The maximum-likelihood model shows the same pattern (1.57 % at −40 °C, 1.53 % at 85 °C); the illustrative model lies well above the simulation everywhere (2.70 % at 25 °C).
Limitations: ageing (Subsection G) and data remanence (not simulated). Ageing: negative-bias temperature instability (NBTI) weakens the pMOS that holds a cell’s power-up value, so the error rate grows over the lifetime [30]; Subsection G and Section VIII-F treat it, and the key-failure probabilities of Sections VII-E and XI are those of a fresh chip. Data remanence: an SRAM cell keeps its content for a while after the supply is removed [13], whereas every simulated power-up starts with all nodes at 0 V. This is an assumption about the power-down (assumption 5 of Section IV-A): before each read the array’s supply must stay off long and low enough for every cell to lose its state (requirements that grow at low temperature [22]), enforced by a minimum off-time or an active discharge.
Key insights.
- The temperature coefficient is about 14 times the 0.0016 per °C of the kT dependence alone, and the BER rises below 25 °C, so both conditions of the prediction hold: the change of the mismatch weights, not kT, appears to govern the temperature behaviour. The noise-to-mismatch ratio is 2.9 times smaller than the illustrative $s_{25} = 0.06$.
- The law $s(T)$ is symmetric about 25 °C, whereas the simulated cell flips less often at −40 °C than at 85 °C, so a noise-only law with one coefficient cannot follow both −40 and 85 °C and underestimates the end of the range that sizes the code. The excess at 85 °C is mainly reproducible flips, cells whose mismatch changes sign with temperature and which then power up to the opposite value every time (counted in Section VII-F). For the extracted cell the underestimate lies outside the 95 % interval of the simulation (2.20–4.11 %), so Section VII-E sizes the code from the simulated error rates, not from the law.
- For the 600-cell fingerprint, s ≈ 0.02 gives about 5 flipped bits per power-up at 25 °C and about 14 at 85 °C, which a code with t of a few tens corrects. The standard error of $s_{25}$ is 22 % of its value and the simulated noise is thermal only, so Section VII-E also checks the code against $s_{25} = 0.06$.
D. Post-layout extraction
The layout adds wiring capacitance to every node, coupling between nodes, and, wherever the two halves of a differential circuit differ, an asymmetry that acts in the same direction on every chip. Expected effects:
- Comparator noise and offset are set during the integration phase, through the capacitance $C_\mathrm{P}$ of $d_\mathrm{p}$ and $d_\mathrm{n}$ ($\sigma_\mathrm{n}^2 \propto kT/C_\mathrm{P}$, and $T_\mathrm{int} \propto C_\mathrm{P}$). If the extracted $C_\mathrm{P}$ matches the 1 fF of wiring the schematic assumed, neither should change beyond its statistical error.
- Systematic offset. A capacitance difference $\Delta C$ between the two sides of the latch makes one side regenerate faster and shifts the switching point of every chip by the same amount. In a mirror-symmetric layout the only asymmetry left is where the cross-coupling wires cross the axis, so a systematic offset far below $\sigma_\mathrm{os}$ is expected.
- Energy. Every added wiring capacitance $C_\mathrm{w}$ that switches each cycle costs $C_\mathrm{w} V_\mathrm{DD}^2$ = 3.2 fJ per fF at 1.8 V; the schematic had no clock wiring, so the clock energy should rise.
- SRAM-PUF bias. If q and q̄ carry different capacitances, the lighter node rises faster and every cell leans towards the same value: P(1) ≠ 0.5, a lower min-entropy per cell and more similar fingerprints. A point-symmetric cell, whose two halves are the same shapes rotated by 180°, should give equal capacitances and P(1) = 0.5 within the sampling error.
- SRAM-PUF noise and mismatch. The extra node capacitance changes the noise and the race slightly; $s_{25}$ should stay within its statistical interval, while the few cells whose mismatch is smaller than the change may take a different noiseless value.
Each cell passes through five steps:
1) Drawing: The cells are drawn as code with the KLayout Python API on the SKY130 layers, with the schematics’ device sizes. The SRAM cell is point-symmetric: half A (inverter A, pass gate A, node q) is rotated by 180° to form half B, and each inverter’s gate poly runs out to a contact under the opposite storage node, so the cross-couple needs no crossing wires (logic design rules, not the foundry’s denser SRAM rules). The comparator core (M1–M11) is mirror-symmetric about its vertical axis, with the tail M7 on the axis and the clock routed up both sides; only the cross-couple cannot be mirrored, so its two li1 routes cross the axis at different heights.
2) Design-rule check (DRC): Magic checks the layout against the PDK’s full rule deck.
3) Extraction: Magic extracts the devices with their drawn junctions and every parasitic capacitance (area, fringe and coupling, no lower threshold). Wire resistance is not extracted: the longest internal route, the comparator’s li1 cross-couple, is about 10 squares (about 130 Ω at 12.8 Ω/□, plus contacts of the order of 100 Ω each), and with the about 1.3 fF it drives its RC is below 1 ps, far below τ = 36 ps.
4) Layout versus schematic (LVS): netgen compares the extracted netlist with the schematic, with the PDK’s setup file.
5) Mapping onto the schematic: The extracted devices and nets are renamed onto the schematic’s, so the PDK draws the same mismatch and the testbenches inject the same noise: every comparison is paired over an identical population. The comparator’s buffers and SR latch remain at schematic level.
The post-layout simulations use the settings and seeds of Sections VII-B and C. The SRAM Monte Carlo and the comparator’s noise, offset and energy are recorded; PEX_LIVE = True re-runs them live (comparator about 50 s). Drawing, DRC, extraction, LVS and the waveform comparison of Fig. 35 always run live.
| layout (KLayout 0.30.12, Python API) | 2.21 × 5.50 µm, 6 transistors, point-symmetric |
| DRC (Magic, full SKY130 rule deck) | 0 violations |
| LVS (netgen, against the schematic) | circuits match uniquely: 6 devices, 8 nets |
| extracted wiring capacitance on q / qb | 0.973 / 0.973 fF, of which 0.209 fF couples q to qb |
| run time | 1 s |
netgen LVS report:
Netlists match uniquely.
Final result: Circuits match uniquely.
Magic extraction, transistors:
X0 vss qb q vss sky130_fd_pr__nfet_01v8 ad=0.1856 pd=1.86 as=0.09735 ps=0.97 w=0.64 l=0.15
X1 qb q vdd vdd sky130_fd_pr__pfet_01v8 ad=0.126 pd=1.44 as=0.1218 ps=1.42 w=0.42 l=0.15
X2 qb q vss vss sky130_fd_pr__nfet_01v8 ad=0.09735 pd=0.97 as=0.1856 ps=1.86 w=0.64 l=0.15
X3 blb wlb qb vss sky130_fd_pr__nfet_01v8 ad=0.1218 pd=1.42 as=0.09735 ps=0.97 w=0.42 l=0.15
X4 vdd qb q vdd sky130_fd_pr__pfet_01v8 ad=0.1218 pd=1.42 as=0.126 ps=1.44 w=0.42 l=0.15
X5 q wla bl vss sky130_fd_pr__nfet_01v8 ad=0.09735 pd=0.97 as=0.1218 ps=1.42 w=0.42 l=0.15

Fig. 31. SRAM-PUF cell layout and extracted capacitance. (a) SKY130 6T cell: half A (bottom left) and the same shapes rotated by 180° (top right); layers as in the legend, pins labelled. (b) Extracted wiring capacitance of the storage nodes q (solid) and q̄ (hatched), by the net it couples to.
The SRAM-PUF cell measures 2.21 × 5.50 µm with 6 transistors; Magic finds 0 DRC violations, and netgen reports that the circuits match uniquely (6 devices, 8 nets). The extracted wiring capacitance is 0.973 fF on both q and q̄, of which 0.209 fF couples the two nodes (Fig. 31(b)): the two storage nodes are loaded identically, as the point symmetry intends.
| Temperature | P(1): schematic | post-layout | BER: schematic | post-layout | Unstable: sch. | post | Same majority bit |
|---|---|---|---|---|---|---|---|
| −40 °C | 49.2 % | 48.6 % | 1.56 % | 2.50 % | 2 | 3 | 99.2 % |
| 25 °C | 48.8 % | 47.3 % | 0.98 % | 1.17 % | 2 | 2 | 98.4 % |
| 85 °C | 47.8 % | 46.9 % | 4.53 % | 3.91 % | 2 | 0 | 99.2 % |
| noise / mismatch s25 | 0.0205 → 0.0225 (post-layout 95 % interval 0.0148–0.0340) |
| temperature coefficient a | 0.023 → 0.021 |
| P(1) | 0.496 → 0.493 |
| noiseless power-up value unchanged by the layout | 97.9 % of 1,024 cells |
| used from here on | the post-layout values (recorded full run) |
| post-layout run of this session against the recorded one (same 128 cells, 5 power-ups, 3 temperatures) | not re-run (PEX_LIVE = False): the recorded run is shown |

Fig. 32. SRAM-PUF cell bit-error rate before and after layout (enrolment: one power-up at 25 °C). Open markers: recorded runs of 1,024 cells × 8 power-ups, schematic (grey) and extracted layout (blue), with 95 % bootstrap intervals over cells. Filled markers: the same 128 cells × 5 power-ups, paired (post-layout recorded unless PEX_LIVE = True). Series offset in temperature for legibility.
On the same 128 cells, power-ups and noise draws (Table 10; post-layout recorded unless PEX_LIVE = True), the fraction of ones changes by at most 1.5 percentage points (46.9–48.6 % after layout against 47.8–49.2 % before), and 98.4–99.2 % of the cells keep their majority value at every temperature. The bit-error rates differ by a few errors per temperature (at 25 °C, 1.17 % against 0.98 %, or 6 against 5 errors in 512 comparisons), within the sampling scatter of 128 cells (Fig. 32), so the conclusion rests on the 1,024-cell runs.
In the 1,024-cell runs, the fit changes from $s_{25} = 0.0205$ to 0.0225 (post-layout 95 % interval 0.0148–0.0340, which contains the schematic value), a from 0.023 to 0.021 and P(1) from 0.496 to 0.493: as predicted for a symmetric cell, the layout introduces no measurable bias (the change of $P(1)$ is far below the ±1.6 % sampling error of 1,024 cells) and no significant change in noise ($s_{25}$ moves by 10 %, well inside its interval). 97.9 % of the cells keep their noiseless power-up value; the other 2.1 % are presumably those with the smallest mismatch (not analysed cell by cell).
The post-layout BER is 0.99 % at 25 °C, against 0.45·$s_{25}$ = 1.01 % from the theory of Section VII-C, and 1.37 and 3.14 % at −40 and 85 °C, against 1.34 and 2.31 % for the schematic. The 95 % intervals overlap at every temperature, and at −40 and 25 °C the paired difference over the same 1,024 cells is far from significant (|z| < 0.5). At 85 °C, the temperature that sizes the code, the post-layout rate is 0.83 percentage points higher (95 % interval 2.20–4.11 %): 2.2 standard errors paired over the same cells (p ≈ 0.03), whereas the paired comparison on 128 cells goes the other way (3.91 % after layout against 4.53 % before, Table 10). A layout effect at 85 °C can therefore not be excluded, and the code is sized from the post-layout run, which includes the wiring and has the higher rate.
Behind each point of Fig. 32 lie individual power-ups, which the menus below show cell by cell for the same 128 cells (recorded runs). The menus choose the temperature and one of the five power-ups. Panel (a) maps the 128 cells of the schematic run and panel (b) the same cells of the extracted layout, one square per cell: light grey for 0, grey for 1, orange where the cell differs from its 25 °C enrolment (the first power-up at 25 °C), a dot where its value varies between the five power-ups, and a red ring around the cells whose majority value over the five power-ups the layout changed. The card gives, for both, the cells at 1, the cells that differ from the enrolment and the unstable cells, the cells with the same majority value, and the bit-error rates of the full 1,024-cell runs at that temperature.

| setting | 85 °C, power-up 1 of 5, the same 128 cells and noise draws in both |
| cells that power up to 1, schematic / layout | 61 / 60 of 128 |
| cells that differ from the enrolment (power-up 1 at 25 °C), schematic / layout | 6 / 5 |
| unstable cells at 85 °C, schematic / layout | 2 / 0 |
| same majority value over the 5 power-ups at 85 °C | 127 of 128 cells (99.2 %) |
| full recorded runs at 85 °C (1,024 cells × 8 power-ups): bit-error rate, schematic → layout | 2.31 % → 3.14 % |
| source | recorded runs of the post-layout Monte Carlo (PEX_LIVE re-runs these 128 cells) and of the schematic Monte Carlo on the same cells |
| layout (KLayout 0.30.12) | 11.8 × 6.05 µm, 11 transistors (M1–M11), mirror-symmetric |
| DRC (Magic, full SKY130 rule deck) | 0 violations |
| LVS (netgen, against the schematic) | circuits match uniquely: 11 devices, 10 nets |
| extracted capacitance dp / dn | 0.989 / 0.989 fF (schematic assumed 1 fF) |
| extracted capacitance outp / outn | 1.332 / 1.339 fF: the one asymmetry, from the cross-couple |
| run time | 1 s |
netgen LVS report:
Netlists match uniquely.
Final result: Circuits match uniquely.
internal nets inferred from the extraction: {'a_n1064_952#': 'dp', 'a_84_480#': 'dn', 'a_n884_322#': 'tail'}

Fig. 33. StrongARM comparator layout and extracted capacitance. (a) SKY130 core, mirror-symmetric about x = 0; from the bottom: ground rail and taps, tail M7, input pair M1/M2, latch nMOS M3/M4, and in the n-well the latch pMOS M5/M6 and reset devices M8–M11. (b) Wiring capacitance of the internal nodes, extracted (solid) and assumed in the schematic (hatched; none for the tail).
The comparator core measures 11.8 × 6.05 µm with 11 transistors (M1–M11); DRC finds 0 violations and LVS reports that the circuits match uniquely (11 devices, 10 nets). The integrating nodes carry 0.989 fF each ($d_\mathrm{p}$ and $d_\mathrm{n}$), within 1.1 % of the 1 fF the schematic assumed. The outputs carry 1.332 and 1.339 fF ($\mathrm{out}_\mathrm{p}$, $\mathrm{out}_\mathrm{n}$): about a third more than assumed, and the layout’s only asymmetry, 7 aF, from the cross-coupling route across the axis (Fig. 33). This predicts no change of $\sigma_\mathrm{n}$ or $\sigma_\mathrm{os}$, a slightly slower regeneration, of no consequence with 50 ns to decide, and a small systematic offset from the 7 aF imbalance; Fig. 34 tests this on the same mismatch draws and noise.
| StrongARM comparator | Schematic | Post-layout | Change |
|---|---|---|---|
| input-referred noise σn | 0.560 ± 0.028 mV | 0.575 ± 0.028 mV | +2.7 % |
| systematic offset μ (noise fit) | -0.058 ± 0.030 mV | +0.066 ± 0.030 mV | +0.124 mV |
| offset σos (96 Monte Carlo instances) | 4.34 mV | 4.37 mV | +0.6 % |
| mean offset of the same 96 instances | -0.068 mV | +0.027 mV | +0.095 ± 0.010 mV (paired) |
| energy per decision: core | 104 fJ | 105 fJ | +0.9 % |
| energy per decision: clock | 23 fJ | 35 fJ | +49.1 % |
| energy per decision: total | 186 fJ | 199 fJ | +7.0 % |
model setting comp_noise | 1.245e-03 | 1.279e-03 | +2.7 % |

Fig. 34. StrongARM comparator before and after layout (tt, 27 °C, 1.8 V), same mismatch draws and noise (post-layout recorded unless PEX_LIVE = True). (a) Probability of deciding 1 against $\Delta V_\mathrm{in}$, schematic (circles) and post-layout (squares), with probit fits. (b) Offset of each of the 96 instances after layout against before; dashed: no change; box: $\sigma_\mathrm{os}$ and the paired mean shift.
Key insights. With the same mismatch draws and noise (Table 11; post-layout recorded unless PEX_LIVE = True), the comparator behaves as predicted:
- Noise (Fig. 34(a)): $\sigma_\mathrm{n}$ = 0.560 ± 0.028 mV before and 0.575 ± 0.028 mV after layout (+2.7 %). Both netlists lie on one curve; the change, 0.015 mV, is about half of one standard error, so the layout does not change the noise measurably. The model’s comparator noise becomes $1.279 \times 10^{-3}$ (schematic $1.245 \times 10^{-3}$).
- Offset: $\sigma_\mathrm{os}$ = 4.34 mV before and 4.37 mV after (+0.6 %); the 96 instances keep their offsets almost exactly (Fig. 34(b), points on the diagonal). Their mean offset moves from −0.068 to +0.027 mV, a paired shift of +0.095 ± 0.010 mV, consistent with the +0.124 mV shift of $\mu$ in the noise fit (each ±0.030 mV): the systematic offset of the cross-coupling asymmetry, resolved because the comparison is paired, is 2.2 % of $\sigma_\mathrm{os}$.
- Energy: the core is unchanged (104 → 105 fJ, +0.9 %), but the clock energy rises from 23 to 35 fJ (+49.1 %), because the extracted clock wiring adds a few femtofarads. The total rises from 186 to 199 fJ per decision (+7.0 %).
The only effect of practical consequence is the clock energy. The post-layout values are adopted in Section VII-E, because a fabricated circuit includes its wiring.
Schematic against post-layout waveforms
Both cells are simulated again at transistor level, before and after extraction, on identical stimuli. Comparator: the six-decision transient of Fig. 21, repeated on the extracted netlist. SRAM-PUF cell: the four power-ups of Fig. 28 at 25 °C, repeated on the extracted cell with the same mismatch draws and noise sequence (the post-layout noise envelope at 25 °C). The metrics are the comparator’s decisions and internal waveforms of the +0.2 mV cycle, and each SRAM cell’s final value and the supply voltage at which it resolves ($\lvert q - \bar{q}\rvert$ first exceeding $V_\mathrm{DD}/2$).
| comparator decisions (6 inputs, ±0.2 to ±20 mV) | identical |
| SRAM cells: same final value | 4 of 4 |
| run time | 26 s |
Fig. 35. Waveforms before and after layout: schematic (grey) and extracted layout (colour), same inputs, mismatch and noise. (a) Comparator integration nodes and (b) latch outputs in the +0.2 mV decision, after the clock edge. (c) q − q̄ of four SRAM cells against the ramping supply at 25 °C (schematic dashed). (d) Supply voltage at which each cell resolves (hatched: schematic).
Key insights. The comparator takes the same six decisions after extraction (result panel). In the +0.2 mV cycle (Fig. 35(a), (b)), the extracted integration nodes and latch outputs follow the schematic waveforms closely, with a small delay from the added wiring capacitance. The four SRAM cells settle to the same values (Fig. 35(c)), and the supply at which each resolves changes little (Fig. 35(d)). The parasitics therefore change no decision and no power-up value, consistent with the statistical comparison above.
Numerical convergence of the transistor-level results
A transient simulation has converged when a smaller time step and a tighter error tolerance leave its result unchanged. Both cells turn analog trajectories into binary outcomes, a comparator decision and the value a cell powers up to, so the test is exact: with the same seeds, only an outcome within the numerical error of the threshold could change, and no decision and no bit should change. The settings of every run are the largest steps that agree with finer references (for the SRAM cell, a 0.1 ns step and tolerances down to reltol = $10^{-4}$; for the comparator, 5, 10 and 20 ps steps around the clock edge); this cell repeats the check on the extracted netlists.
The check runs live at transistor level on the extracted netlists of this subsection, at tt and 1.8 V. Comparator: 300 decisions, 60 at each of five inputs over ±2 $\sigma_\mathrm{n}$, with the seeded channel noise of Section VII-B, at the standard settings (a 5 ns step limit between clock edges, 20 ps steps around each edge, ngspice’s default tolerances) and with both steps halved and reltol = $10^{-4}$. SRAM cell: 64 cells, two noisy power-ups each at 25 °C with the cell’s noise envelope, at the standard step limit of 1 ns and with 0.5 ns and reltol = $10^{-4}$.
| comparator, post-layout: decisions that change | 0 of 300 (60 at each of 5 inputs over ±2 σn, the same noise) |
| σn of these decisions (probit) | 0.549 ± 0.051 mV at the run's settings; 0.549 ± 0.051 mV with the finer settings |
| SRAM cell, post-layout: power-up bits that change | 0 of 128 (64 cells × 2 power-ups, 25 °C, the same noise and mismatch) |
| for scale: cells that the noise changes between the two power-ups | 1 of 64 |
| run time | 51 s |
Key insights. As predicted, no decision and no bit changes: the 300 comparator decisions and the 128 power-up bits are identical at both settings, so the probit gives the same $\sigma_\mathrm{n}$ at both, 0.549 ± 0.051 mV (consistent with the 0.575 mV of the full measurement), while the noise alone changes 1 of the 64 cells between two power-ups of the same chip. The outcomes reported in this section are therefore set by the circuit’s noise and mismatch, not by the simulator’s settings. The check covers tt and 1.8 V, the comparator at 27 °C and the SRAM cell at 25 °C; the step limits of the other temperatures (0.5 ns at −40 °C, 2 ns from 85 °C) come from the same comparison.

Fig. 36. Layouts in KLayout's renderer, with the SKY130 layer colours and stipples of the PDK's sky130A.lyp (legend: layers; scale bars: 2 µm). (a) 6T SRAM-PUF cell, half A at the bottom left and its copy rotated by 180° at the top right. (b) StrongARM core, devices placed as in Fig. 33(a).
Fig. 36 shows what DRC, LVS and extraction check numerically: two complete, symmetric layouts on the standard SKY130 layers, with the symmetry on which the matching argument rests. Fig. 37 shows the same cells layer by layer, with zoom and pan.

Fig. 37. Interactive layout viewer for the SRAM-PUF cell and the StrongARM comparator (KLayout renderer, SKY130 layer colours), precomputed: menus for the cell, the layer set, the labels and the zoom. Default view: the SRAM-PUF cell, all layers.
E. The model with SKY130 parameters
Five of the model’s illustrative settings are replaced: the comparator noise $\sigma_\mathrm{n} / V_\mathrm{unit}$ (Section VII-B); $s_{25}$, a and P(1) of the cell model (Section VII-C); and the front-end noise lumped at the first integrator. The front end itself is not simulated: as in Section V-A, the input-referred 9.48 pA rms measured in [1] in a 100 kHz band is taken through the transimpedance gain $R_\mathrm{TIA}$ and the buffer, normalised to full scale, spread as white noise over the 5 MHz Nyquist band of one clock (a factor √(5 MHz/100 kHz)) and multiplied by the first integrator’s gain $g_1 = 0.5$, because the model adds it at that integrator’s output.
The BCH code is sized from the simulated PUF parameters. The key is reconstructed if at most t of the n = 600 fingerprint cells flip at a power-up, t being the number of errors the BCH code corrects. At temperature T, cell $j$ of a chip disagrees with its enrolled value with probability $p_j(T)$; the number of flipped cells $N$ is Poisson-binomial, and the key-failure probability $P_\mathrm{fail}(t, T) = P(N > t)$ is computed exactly. The design rule is $P_\mathrm{fail} < 10^{-6}$ at every temperature from 0 to 85 °C.
The linear law $s(T) = s_{25}\,(1 + a\,\lvert T - 25\,{}^\circ\mathrm{C}\rvert)$ of Section VII-C underestimates the 85 °C error rate of the extracted cell (1.75 % against 3.14 % simulated). A noise-only model anchored to each simulated error rate removes that bias but misses that part of the 85 °C errors are reproducible flips, the same cells wrong at every hot power-up (Section VII-F). A chip with F fixed flips fails almost surely when F > t, so failures concentrate on the chips with many flips, which a single chip with one enrolment read does not show. The code is therefore sized with a two-component cell model over a chip population. Cell $j$ has power-up noise of rms $s(T)$ and the mismatch $m_j(T) = \mu + m_{0,j} \cos\theta(T) + m_{\perp,j} \sin\theta(T)$, with $m_0$, $m_\perp$ independent standard normal and $\mu$ the bias, so that a rotation θ reverses the sign of a fixed fraction θ/π of the cells. $s(T)$ follows from the disagreement between repeated power-ups at $T$, $\theta(T)$ from the error rate against the 25 °C enrolment, with opposite signs below and above 25 °C (a monotonic change of the nMOS/pMOS mismatch weight). Both are piecewise linear with a knot at 25 °C, so the worst case over 0–85 °C lies at 0, 25 or 85 °C. Each simulated chip draws its own cells and its own enrolment read; the result is the fraction of chips that meet 10⁻⁶ and the 99th percentile of the t they require.
The helper data is $10t$ public bits, so $n H_\infty - 10t$ bits remain secret, $H_\infty$ being the min-entropy per cell (Section V-D, with the bias $b = P(1)$). Because $P(1)$ is estimated from finitely many cells, $H_{\infty}$ is bounded from below by the one-sided 95 % Clopper–Pearson upper bound on max(P(1), 1 − P(1)), that is, 0.5 by the symmetry of the cell plus a margin for the observed bias and its sampling error; the budget is reported from this bound to the point estimate. By the leftover-hash lemma, a 128-bit key within statistical distance ε of uniform requires $128 + 2\log_2(1/\epsilon)$ bits of min-entropy from a universal hash family: with ε = 2⁻³², 192 secret bits, not 128. SHA-256 is not a universal family, so applying the margin to it is a heuristic (random-oracle) assumption, as in common PUF practice; a provable bound would need a seeded universal hash before SHA-256. Spatial correlation between cells, which would lower the entropy, is not modelled.
With P(1) = 0.493 from 1,024 cells, the analysis above predicts a lower bound on $H_{\infty}$ near 0.91 bit (point estimate 0.979), so that 600 cells hold about 545–588 bits and the 192-bit requirement allows t ≈ 35 at the lower bound. At 85 °C the simulated error rate of 3.14 % gives 18.8 flipped cells on average; if about half of them are fixed flips, the spread between chips is that of the flip count, and the 99th-percentile chip should need t ≈ 40, more than the secrecy bound allows.
The sizing runs the behavioural model with the post-layout values of Section VII-D (for the PUF, the recorded 1,024-cell run), schematic values alongside. The population is 1,000 Monte Carlo chips of 600 cells, each enrolled by one simulated noisy read at 25 °C; $s(T)$ comes from the mean disagreement between the 28 pairs of power-ups at each of −40, 25 and 85 °C of the recorded run, θ(T) from its error rates (1.37 %, 0.99 % and 3.14 %). The 85 °C error rate carries a 95 % bootstrap interval over cells (2.20–4.11 %), at whose ends the population is also evaluated, so the required t is an interval. For comparison, a noise-only model of one chip anchored to the same error rates, the linear law and the schematic values are sized by the same criterion, and a robustness check uses $s_{25} = 0.06$, because the simulated noise is thermal only. The later sections keep t = 45, the largest t that leaves 128 secret bits at the point estimate.
| Setting | Before | Schematic | Post-layout (used) | Source |
|---|---|---|---|---|
comp_noise | 0.001 | 0.001245 | 0.001279 | StrongARM noise of the extracted layout (Section VII-D), σn / (VDD/4) |
int_noise | 9e-06 | 8.99e-06 | 8.99e-06 | paper's 9.48 pA, referred to the modulator input (1.80e-5 FS) and multiplied by g1 = 0.5 at the first integrator's output |
puf_sigma | 0.06 | 0.02048 | 0.02253 | SRAM-PUF Monte Carlo of the extracted cell (Section VII-D), noise / mismatch at 25 °C |
puf_tc | 0.008 | 0.02283 | 0.02051 | the same Monte Carlo, temperature fit |
puf_bias | 0.5 | 0.4965 | 0.4928 | the same Monte Carlo, fraction of cells powering up to 1 |
bch_t | 40 | 46 | 45 | the code of the behavioural simulations: the largest t that leaves 128 secret bits at the point estimate of P(1) (the card below gives its reliability and its secret budget) |
| simulated bit-error rate, −40 °C, 25 °C, 85 °C | 1.37 %, 0.99 %, 3.14 % (85 °C: 95 % interval 2.20–4.11 %) |
| two-component cell model at 85 °C | noise s = 0.035 (from repeated power-ups), rotation θ = 4.9°: θ/π = 2.7 % of the cells change sign (reproducible flips counted in the recorded bits: 1.5 %) |
| t required for P(key fails) < 10−6 over 0–85 °C: median, 99th percentile of the chips | 29, 39 (99th percentile 33–46 over the 85 °C interval) |
| chips meeting 10−6 at t = 45 | 100.0 % (98.9 % to 100.0 % over the 85 °C interval) |
| for comparison: noise-only model of one chip (the earlier method); linear law | t = 48; t = 32 (the law gives 1.75 % at 85 °C, against 3.14 % simulated) |
| min-entropy per cell, P(1) = 0.493 from 1,024 cells: 95 % lower bound – point estimate | 0.908–0.979 bit |
| secret bits left after publishing h at t = 45 | 94–137 (need ≥ 192 = 128 + 2 log2(1/ε), ε = 2−32) |
| largest t that leaves 192 secret bits at the lower bound | t = 35 |
| the same sizing from the schematic values (noise-only, one chip) | t = 41 required; 128 secret bits at the point estimate up to t = 46 |
| verdict | neither limit met over the 85 °C interval: with 600 cells and a 25 °C enrolment, reliability needs t ≥ 46 and secrecy allows t ≤ 35; t = 45 is kept for the behavioural simulations, and Sections VIII-F and XI size the final key generator |
| BCH strength needed (linear law, this chip) | t = 60, which leaves no secret bits (need ≥ 192) |
Key insights. In Table 12, the comparator noise becomes 1.279 × 10⁻³ (from 10⁻³), the PUF’s noise-to-mismatch ratio 0.02253 (from 0.06), its temperature coefficient 0.02051 (from 0.008) and its bias 0.4928 (from 0.5); the front-end noise, 0.899 × 10⁻⁵ at the first integrator’s output (1.80 × 10⁻⁵ referred to the modulator input), is essentially the value already used (0.9 × 10⁻⁵).
- Cell model at 85 °C. The lower noise-to-mismatch ratio of the SKY130 cell does not carry over to the hot error rate, 3.2 times that at 25 °C. The repeated power-ups give a noise of s = 0.035; the rest of the error rate is a rotation θ = 4.9°, so θ/π = 2.7 % of the cells change sign. The recorded bits count 1.5 % reproducible flips (cells wrong in all eight hot power-ups), about half of the 3.14 %, as the prediction assumed; the remaining sign changes are expected to lie near the threshold, where they appear as unstable cells (not counted separately).
- Reliability over the population. The t required for 10⁻⁶ has a median of 29 and a 99th percentile of 39 (33 to 46 across the 85 °C interval), close to the predicted t ≈ 40. At t = 45, all chips meet the target at the point estimate, and 98.9 % at the upper end of the interval. The noise-only sizing of one chip requires t = 48, the linear law t = 32 and the schematic values t = 41: the flip-aware population model needs a weaker code, because fixed flips vary less from power-up to power-up than the equivalent noise.
- Secrecy. The min-entropy per cell lies between 0.908 bit (95 % lower bound) and 0.979 bit (point estimate), as predicted. At t = 45, 94–137 secret bits remain after the helper data is published, against the 192 required.
- Verdict. With 600 cells and a 25 °C enrolment, reliability over the 85 °C interval needs t ≥ 46 and secrecy (192 bits at the lower bound) allows t ≤ 35: neither the code of the simulations (t = 45) nor any other meets both. With the conservative $s_{25} = 0.06$ (2.7× the SPICE value), the law requires t = 60, which leaves no secret bits. t = 45 is therefore a working setting for the system simulations, not the final key generator. More entropy per corrected error comes from the two-temperature enrolment of Section VIII-F, which removes the flipping cells, and the larger arrays of Section XI.
Every later section runs on these values, obtained at the typical corner; Section VII-F covers PVT.
F. Process, voltage and temperature corners
The comparator’s noise, offset and energy, measured as in Section VII-B, each have a predictable first-order dependence on process, supply and temperature:
- Noise. $\sigma_\mathrm{n}^2$ ≈ (kT/$C_\mathrm{P}$)·4γ($I_\mathrm{D} / g_m$)/$V_\mathrm{TH}$. The kT term alone predicts a rise by √(398.15 K/233.15 K) = 1.31 from −40 to 125 °C. The integration ends when the output nodes have fallen by about one threshold voltage, so a corner or a temperature that lowers the threshold shortens the integration and adds noise beyond kT. A higher supply raises the input common mode ($V_\mathrm{DD}/2$) and with it the overdrive $I_\mathrm{D}/g_m$ of the input pair, which also adds noise.
- Offset. Pelgrom’s law depends on device area, not on the process corner, which shifts the mean thresholds rather than their mismatch; $\sigma_\mathrm{os}$ should therefore be nearly the same at all corners. It may rise when the integration gain decreases (hot), because the latch’s mismatch is then referred to the input with less attenuation.
- Energy. The dynamic part, $C_\mathrm{sw} V_\mathrm{DD}^2$, should rise by $(1.98/1.62)^2 = 1.49$ from the lowest to the highest supply and not depend on temperature. Subthreshold leakage, which grows exponentially with temperature and is largest where the threshold is lowest, adds to it at hot, fast corners.
For the SRAM-PUF cell, the power-up race is decided while $V_\mathrm{DD}$ ramps through about 0.5–0.9 V, close to the threshold voltages. A process corner moves the nMOS and pMOS thresholds, in the same direction (ss, ff) or in opposite directions (sf: slow nMOS, fast pMOS; fs: fast nMOS, slow pMOS), which changes the supply at which a cell resolves and, above all, the relative weight of the nMOS and pMOS mismatch in its preference. Two kinds of error are therefore expected against a 25 °C enrolment: noise errors from unstable cells, and reproducible flips from cells whose preference reverses with temperature. Masking the cells unstable at 25 °C removes only the first; keeping only the cells stable and equal at two enrolment temperatures also removes the flips between them (Section VIII-F shows that the two must bracket the operating range). The supply corner is not simulated for this cell, because it decides long before $V_\mathrm{DD}$ reaches its final value.
Both extracted cells of Section VII-D are simulated at the five process corners of the PDK: tt, ss, ff, sf and fs.
- Comparator: 45 conditions, the 5 corners × 1.62, 1.8 and 1.98 V (±10 %) × −40, 27 and 125 °C, each with the quick noise, offset (the same 96 instances) and energy measurements and seeds of Section VII-B on the extracted core, the input common mode at $V_\mathrm{DD}/2$ (the noise-injection grid and window verified at tt and 27 °C only); the systematic offset is the 50 % point μ of the noise fit of the mismatch-free comparator, which the layout sets.
- SRAM-PUF cell: the 5 corners × −40, 25 and 85 °C, 512 cells × 5 power-ups per temperature, with the Monte Carlo and seeds of Section VII-C on the extracted cell and the noise envelope recomputed at each corner (power-ups at 125 °C not used, as in Sections VII-C and D). The linear temperature law cannot follow corners whose errors rise abruptly above 25 °C, so each corner receives a cell model anchored to its own simulated error rates (Sections VIII-F and XI use it). The 85 °C errors are split into reproducible flips and unstable cells, and the error rate after each masking is cross-validated: the cells to keep are chosen from power-ups 1–3, the error rate is measured on power-ups 4–5.
- Recorded runs: both grids are recorded runs of the same code and seeds (about 20 and 45 minutes on four cores; the command is in the result panel), each on a DRC- and LVS-clean layout. The tables, the figure and the analyses that follow are computed live from these records.
Fig. 38 sets these predictions against the grids, with the mean at each temperature dotted so that the effects of temperature and process can be told apart.
| Grouped by | Value | σn (mV) | σos (mV) | Systematic offset, max (µV) | Energy (fJ) |
|---|---|---|---|---|---|
| process corner | tt | 0.60 (0.37–0.81) | 4.60 (4.07–5.60) | 115 | 211 (144–303) |
| ss | 0.59 (0.45–0.76) | 4.68 (4.08–5.83) | 64 | 205 (148–274) | |
| ff | 0.62 (0.44–0.80) | 4.55 (4.01–5.43) | 237 | 257 (144–490) | |
| sf | 0.63 (0.45–0.81) | 4.63 (4.03–5.49) | 199 | 205 (146–274) | |
| fs | 0.58 (0.37–0.79) | 4.68 (4.07–5.85) | 43 | 338 (145–822) | |
| temperature | −40 °C | 0.47 (0.37–0.57) | 4.14 (4.01–4.33) | 166 | 189 (144–237) |
| +27 °C | 0.57 (0.45–0.64) | 4.50 (4.33–4.82) | 193 | 206 (155–273) | |
| +125 °C | 0.77 (0.68–0.81) | 5.25 (4.91–5.85) | 237 | 334 (172–822) | |
| supply | 1.62 V | 0.56 (0.37–0.79) | 4.80 (4.01–5.85) | 56 | 182 (144–413) |
| 1.80 V | 0.61 (0.44–0.81) | 4.54 (4.07–5.23) | 89 | 239 (185–586) | |
| 1.98 V | 0.64 (0.47–0.81) | 4.54 (4.18–5.03) | 237 | 308 (234–822) |
| Corner | P(1), 25 °C | BER 25 °C | BER 85 °C | s(25 °C) / s(85 °C) | Unstable cells, 25 °C |
|---|---|---|---|---|---|
| tt | 0.460 | 0.98 % | 2.70 % | 0.020 / 0.079 | 10 |
| ss | 0.464 | 1.95 % | 1.95 % | 0.042 / 0.042 | 16 |
| ff | 0.448 | 2.44 % | 10.00 % | 0.053 / 0.315 | 26 |
| sf | 0.480 | 3.37 % | 5.00 % | 0.073 / 0.137 | 31 |
| fs | 0.453 | 0.78 % | 27.81 % | 0.017 / 1.188 | 9 |
| Corner | BER 85 °C | Reproducible flips | Unstable cells | BER 85 °C, masked at 25 °C | Kept, masked at 25 and 85 °C | BER 85 °C of the kept cells | Array for 600 kept cells |
|---|---|---|---|---|---|---|---|
| tt | 2.7 % | 2.0 % | 2.1 % | 1.9 % | 96 % | 0.20 % | 629 |
| ss | 2.0 % | 1.0 % | 2.7 % | 0.7 % | 96 % | 0.41 % | 624 |
| ff | 10.0 % | 8.4 % | 3.9 % | 8.5 % | 86 % | 0.11 % | 697 |
| sf | 5.0 % | 2.5 % | 5.1 % | 1.9 % | 92 % | 0.21 % | 654 |
| fs | 27.8 % | 25.6 % | 5.1 % | 27.8 % | 70 % | 0.70 % | 861 |
| comparator, 45 conditions (5 corners × 1.62/1.8/1.98 V × −40/27/125 °C) | σn 0.37–0.81 mV, σos 4.01–5.85 mV, energy 144–822 fJ per decision |
| SRAM-PUF, 5 process corners × −40/25/85 °C | 512 cells × 5 power-ups per temperature at every corner |
| SRAM-PUF errors at 85 °C (25 °C enrolment) | tt 2.7 %, ss 2.0 %, ff 10.0 %, sf 5.0 %, fs 27.8 % |
| source | recorded runs; to regenerate: python dev/spice_comparator/demo_pvt.py --pdk-root <pdk> (about 20 min on four cores) and python dev/spice_puf/demo_pvt.py --pdk-root <pdk> (about 45 min) |
Fig. 38. Extracted cells across PVT (recorded grids). (a) Comparator input-referred noise $\sigma_\mathrm{n}$ and (b) offset spread $\sigma_\mathrm{os}$ (96 Monte Carlo instances) at the five process corners, three supplies (marker shape) and three temperatures (colour); dotted: mean at each temperature. (c) SRAM-PUF bit-error rate against a 25 °C enrolment, one line per process corner (tt dashed).
Key insights. In Fig. 38(a) and (b), temperature dominates the comparator’s noise and offset over the 45 conditions. Panel (c) shows the opposite for the SRAM-PUF cell: the process corner decides how its error rate responds to temperature.
Comparator (Table 13).
The noise is governed by temperature; the process corner has a smaller effect, possibly through the pMOS threshold. The mean input-referred noise rises from 0.47 mV at −40 °C to 0.77 mV at 125 °C, a factor of 1.64, against 1.31 for $kT$ alone: the excess is the shorter integration at lower thresholds. At a fixed supply and temperature, the five process corners differ by at most a factor of 1.26 at eight of the nine supply–temperature pairs. The ninth, 1.62 V and −40 °C, reaches 1.56 because of one point, ss at 0.574 mV against 0.37–0.45 mV at the other four corners and 0.45 mV for ss at 1.8 V; its cause is not established (the noise-injection window is least certain at this slowest condition). On average, the corners with fast pMOS (ff and sf, 0.62 and 0.63 mV) are noisier than those with slow pMOS (ss and fs, 0.59 and 0.58 mV); the nMOS corner appears to matter little. These differences, 0.03–0.05 mV, are one to two standard errors of a single point (±5 %, about ±0.03 mV), so the ordering is suggestive; it would be consistent with a lower pMOS threshold |$V_\mathrm{THp}$| ending the integration earlier. The noise also increases with the supply (0.56 to 0.64 mV from 1.62 to 1.98 V), consistent with the larger input-pair overdrive at the higher common mode.
The offset is set by random mismatch and depends little on the process corner. The mean $\sigma_\mathrm{os}$ lies between 4.55 and 4.68 mV at the five corners, as Pelgrom’s law predicts. It increases with temperature (4.14 to 5.25 mV from −40 to 125 °C), consistent with the lower integration gain. The systematic offset caused by the single asymmetric route of the cross-coupling remains below 240 µV in all 45 conditions, at most 6 % of $\sigma_\mathrm{os}$; it is largest at high supply and at the fast-pMOS corners.
The energy follows $C V_\mathrm{DD}^2$ (switched capacitance $C$) except where leakage takes over. At 27 °C and 1.8 V, every corner requires 199–214 fJ per decision. Averaged over corners and temperatures, the energy rises from 182 fJ at 1.62 V to 308 fJ at 1.98 V, a factor of 1.69 against the 1.49 of an ideal $C V_\mathrm{DD}^2$ energy. At every condition other than ff and fs at 125 °C the ratio is already 1.58-1.64 ($E/V_\mathrm{DD}^2$ grows by about 8 % from 1.62 to 1.98 V; its cause is not identified). The hot, fast-nMOS conditions add the rest (1.61 to 1.69): at 125 °C the energy rises moderately at tt, ss and sf (at most 240 fJ at 1.8 V) but steeply at the two corners with fast nMOS, 366 fJ at ff and 586 fJ at fs (822 fJ at 1.98 V), the signature of subthreshold leakage (analysed below).
SRAM-PUF cell (Fig. 38(c), Table 14, Table 15). Below, $a$ and $s_{25}$ are the linear law of Section VII-C fitted to each corner’s error rates; the column $s(25\,{}^\circ\mathrm{C})$ of Table 14, which the key calculation uses, reproduces the 25 °C error rate alone, and differs where the law fits poorly (fs: fitted $s_{25}$ = 0.019 against 0.017; sf: 0.075 against 0.073). This 512-cell run gives at tt $a$ = 0.030 and 2.70 % at 85 °C (1,024-cell run of Section VII-D: 0.0205, 3.14 %).
The ss corner is almost insensitive to temperature, and tt degrades moderately. At ss, the bit-error rate stays between 1.95 and 2.50 % from −40 to 85 °C, and the fitted temperature coefficient is a = 0.004, against 0.030 at tt, where the error rate rises from 0.98 % at 25 °C to 2.70 % at 85 °C (Table 14).
The fast-nMOS corners degrade sharply above room temperature, mostly through reproducible flips rather than noise. At ff and fs, the error rate reaches 10.0 and 27.8 % at 85 °C (a = 0.019 and 0.045). In Table 15, at fs, 25.6 % of the cells settle in every power-up at 85 °C to the value opposite to their enrolment, whereas only 5.1 % vary between power-ups (ff: 8.4 and 3.9 %). The preferred state of these cells changes with temperature, the second error type of the theory, consistent with a low nMOS threshold, further reduced when hot, changing which devices dominate the decision; because the nMOS and pMOS mismatches are independent, some outcomes reverse.
The ranking at 25 °C does not predict the ranking at temperature. fs has the lowest error rate of all corners at 25 °C (0.78 %, fitted $s_{25}$ = 0.019) and the highest at 85 °C. Conversely, sf has the highest noise-to-mismatch ratio at 25 °C (fitted $s_{25}$ = 0.075, with 31 of 512 cells unstable) but a moderate temperature coefficient: most of its errors come from cells that are already unstable at room temperature, although about half of its 85 °C errors are reproducible flips (2.5 of 5.0 %). As the theory of masking predicts, discarding the cells that are unstable at 25 °C reduces the error rate of sf at 85 °C from 5.0 to 1.9 %, but leaves that of fs unchanged (27.8 %).
For the comparator, PVT changes the numbers but not their scale: across all 45 conditions $\sigma_\mathrm{n}$ stays between 0.37 and 0.81 mV and $\sigma_\mathrm{os}$ between 4.01 and 5.85 mV (a spread of 2.2× and 1.5×), small fractions of $V_\mathrm{unit}$ = 0.45 V, and the energy is at most 822 fJ per decision (8.2 µW at 10 MHz); Section VIII-A to C evaluates their system consequences. For the SRAM-PUF, PVT changes the nature of the errors: at the fast-nMOS corners temperature reverses the preference of some cells, which masking at 25 °C cannot remove. Section VIII-F evaluates what the corners do to the key, and Section XI designs a code for every corner.
Table 13, Table 14 and Fig. 38 group the recorded grids; the two menus below show each condition on its own, so that any single corner, supply or temperature can be checked against the groups (recorded runs). In the first, the menus choose the comparator’s process corner, supply and temperature; the panels place the chosen condition (red) among all 45 for (a) the input-referred noise, (b) the offset spread and (c) the energy per decision, and the card lists its values, their rank among the 45 and its systematic offset. In the second, the menus choose the SRAM-PUF’s process corner, temperature and power-up; panel (a) maps the 512 cells as the post-layout browser above does, panel (b) counts the cells that differ from the 25 °C enrolment in every power-up of that corner, and the card adds the reproducible flips, the unstable cells and the recorded summary of that corner and temperature.

| condition | tt, 1.80 V, 27 °C, one of the 45 (5 corners × 3 supplies × 3 temperatures) |
| input-referred noise σn | 0.58 mV (rank 21 of 45 from the lowest) |
| offset spread σos (mismatch) | 4.37 mV (rank 18 of 45 from the lowest) |
| energy per decision | 199 fJ (rank 19 of 45 from the lowest) |
| systematic offset (the mismatch-free comparator's 50 % point) | +66 µV |
| source | recorded run of dev/spice_comparator/demo_pvt.py (about 20 min on four cores) |

| setting | corner tt, 85 °C, power-up 1 of 5 |
| cells that power up to 1 | 232 of 512 (45.3 %) |
| cells that differ from the enrolment (power-up 1 at 25 °C) | 13 (2.5 %) |
| reproducible flips at 85 °C (the same value in all 5 power-ups, opposite to the enrolment) | 10 |
| unstable cells at 85 °C (value varies between the 5 power-ups) | 11 |
| recorded summary at this corner and temperature | P(1) 0.458, bit-error rate 2.70 % (95 % interval 1.48–4.02 %), 11 unstable cells |
| source | recorded run of dev/spice_puf/demo_pvt.py (512 cells × 5 power-ups per temperature) |
Comparator energy across PVT: the dynamic and the leakage term
A StrongARM comparator draws no static current, so its energy per decision is
$$E \approx C_{sw}\,V_{DD}^2 + I_{leak}\,V_{DD}\,T_{clk},$$
where $C_{sw}$ is the switched capacitance (set by the devices and the layout), $I_{leak}$ the leakage current and $T_{clk}$ = 100 ns the clock period. The ratio $E/V_{DD}^2$ is the effective switched capacitance. As in Section VII-F, the analysis above predicts that the dynamic term makes $E/V_{DD}^2$ constant, independent of the supply and nearly independent of the temperature, and that leakage raises it at 125 °C at the fast-nMOS corners (ff, fs).
The analysis uses the energy per decision of the recorded grid above at the 45 PVT conditions (output toggling every cycle); its metrics are $E$ and $E/V_{DD}^2$, grouped by process corner. Fig. 39 plots $E/V_{DD}^2$ at every condition against the grey band of its range at 27 °C, so that a constant dynamic term appears as points inside that band and a leakage term as points above it.
| energy per decision, 45 PVT conditions | 144–822 fJ |
| theory: switched capacitance E/VDD2 at 27 °C | 59–70 fF over all corners and supplies: within ±8 % of its mean, close to a purely dynamic CV2 energy |
| leakage | E/VDD2 rises to 210 fF at fs, 125 °C, 1.98 V: the IleakVDDTclk term of the fast-nMOS corners |

Fig. 39. Comparator energy across PVT (extracted comparator, recorded grid). Effective switched capacitance $E/V_\mathrm{DD}^2$ at the 45 conditions, grouped by process corner; marker shape: supply; colour: temperature; grey band: range at 27 °C; the largest value is labelled.
Key insights. The energy per decision is 144–822 fJ over the 45 conditions (result panel). At 27 °C, $E/V_{DD}^2$ is 59–70 fF over all corners and supplies, within about ±9 % of its mean and rising with the supply, close to the constant value of a purely dynamic $CV^2$ term, switched capacitance times supply voltage squared (Fig. 39); below 125 °C the energy is dominated by switching ($E/V_{DD}^2$ within 55-70 fF). The largest value, 210 fF, occurs at fs, 125 °C and 1.98 V, three times the 27 °C value: the leakage term of a fast-nMOS corner, as predicted; at 125 °C and fast nMOS, leakage adds up to two thirds of the energy. The block-level energy is therefore at most 822 fJ per decision at all 45 conditions; Section VIII-C converts it into the comparator’s share of the sensor’s power.
The SRAM-PUF error law across corners: noise and mismatch rotation
A closed-form law separates the SRAM-PUF errors of Table 14 and Table 15 into noise and reproducible flips:
1) The power-up decision: Cell $i$ settles to $b_i = [\,m_i + \sigma_n\,n > 0\,]$, where $m_i \sim \mathcal{N}(\mu, \sigma_m^2)$ is its mismatch, fixed at fabrication, $\mu$ the bias of the mismatch, $\sigma_m$ its spread, and $n \sim \mathcal{N}(0,1)$ the noise, drawn anew at every power-up with rms $\sigma_n$. Only the noise-to-mismatch ratio $s = \sigma_n/\sigma_m$ and the bias matter.
2) The error rate in closed form: A read disagrees with the enrolment when the decision variables at enrolment and at temperature $T$ have different signs, which for two jointly Gaussian variables with correlation $\rho$ happens with probability $\arccos(\rho)/\pi$ (Sheppard’s formula). Two effects lower the correlation: noise, $s_e$ at enrolment and $s_T$ at $T$, and a rotation $\theta(T)$ of the mismatch itself: the relative weight of the nMOS and the pMOS mismatch changes with temperature, so that the mismatch at $T$ is $m' = m\cos\theta + m_\perp\sin\theta$, with $m_\perp$ an independent mismatch component of the same spread. With $\mu = 0$, the BER is $$\mathrm{BER}(T) = \frac{1}{\pi}\arccos\frac{\cos\theta(T)}{\sqrt{(1+s_e^2)(1+s_T^2)}} \;\approx\; \frac{1}{\pi}\sqrt{s_e^2 + s_T^2 + \theta^2}.$$ Noise and reproducible flips add in quadrature. Two power-ups at the same temperature disagree with probability $\arccos\!\big(1/(1+s_T^2)\big)/\pi$, so the Monte Carlo gives $s_T$ directly, and $\theta$ then follows from the BER. θ is therefore not fitted and not an independent prediction: it is a reparametrisation of the BER in excess of the noise-only value. What can be tested is its physical reading: a rotation θ reverses the preferred value of a fraction θ/π of the cells, so θ/π should match the fraction of recorded cells wrong in every hot power-up. The analysis above predicts that, at the corners with a large excess, θ/π approaches the counted reproducible flips from above (the count misses the sign-changed cells that are also unstable).
The law is tested on the recorded Monte Carlo of all five corners (the SRAM-PUF grid above), enrolled on the first power-up at 25 °C. The noise-only BER ($\theta = 0$) uses $s_e = s_{25}$ and $s_T$, and $\theta(T)$ makes the closed form equal the simulated BER. The independent check counts the reproducible flips at 85 °C: cells with the same value in all five hot power-ups, opposite to the enrolment. The metrics are the BER, $\theta$, and θ/π against the counted flips.
| noise sT from repeated power-ups, −40 °C, 25 °C, 85 °C | tt 0.026/0.020/0.023, ss 0.026/0.034/0.028, ff 0.037/0.051/0.043, sf 0.044/0.064/0.057, fs 0.009/0.018/0.054 |
| BER at 85 °C: measured | noise-only theory | tt 2.7 | 1.0 %, ss 2.0 | 1.4 %, ff 10.0 | 2.1 %, sf 5.0 | 2.7 %, fs 27.8 | 1.8 % |
| rotation θ at 85 °C (the excess over noise, reparametrised) | tt 5°, ss 2°, ff 18°, sf 8°, fs 50° |
| θ/π against the counted reproducible flips at 85 °C (independent count) | tt 2.5 | 2.0 %, ss 1.4 | 1.0 %, ff 9.8 | 8.4 %, sf 4.2 | 2.5 %, fs 27.8 | 25.6 %: largest at fs, θ = 50° |

Fig. 40. SRAM-PUF error law across process corners (extracted cell, recorded Monte Carlo, 512 cells × 5 power-ups per condition). (a) Fraction θ/π of cells reversed by the rotation at 85 °C against the counted reproducible flips; dotted: equality. (b) BER at 85 °C against a 25 °C enrolment, counted in the Monte Carlo (solid) and noise only (hatched). (c) Mismatch rotation θ against temperature.
Key insights.
- Noise. The repeated power-ups give $s_T$ between 0.009 (fs, −40 °C) and 0.064 (sf, 25 °C); at tt, 0.026, 0.020 and 0.023 at −40, 25 and 85 °C.
- At 85 °C. The simulated BER of the PVT grid exceeds the noise-only value at every corner, most at the fast-nMOS corners: 10.0 against 2.1 % at ff and 27.8 against 1.8 % at fs (tt 2.7 against 1.0 %, ss 2.0 against 1.4 %, sf 5.0 against 2.7 %; Fig. 40(b)).
- The rotation. The excess corresponds to a rotation of the mismatch of up to θ = 50° at fs and 85 °C (Fig. 40(c)); ff follows with 18°, the other corners stay below 10°.
- The independent check. θ/π and the counted reproducible flips at 85 °C are 27.8 and 25.6 % at fs, 9.8 and 8.4 % at ff, 4.2 and 2.5 % at sf, 2.5 and 2.0 % at tt and 1.4 and 1.0 % at ss (Fig. 40(a)). At every corner θ/π lies above the count, by 0.4 to 2.2 percentage points, as predicted: the independent flip count confirms that θ, solved from the BER in excess of the measured noise, describes a fixed set of cells that reverse their preferred value, not extra noise.
In the SKY130 Monte Carlo models, the mismatch itself rotates with temperature at the fast-nMOS corners, and the cells reverse their preferred state. Noise-based reasoning at 25 °C cannot reveal it: fs, the corner with the most flips at 85 °C, has the lowest noise of all corners at 25 °C. Section VIII-F builds the key-failure model on these two components.
Key sizing from the extracted cell at every process corner
Section VII-E sized the BCH code from the post-layout Monte Carlo at the typical corner and stated the schematic result in one line of its result panel. This subsection asks how much the layout and the process corner move that sizing, and draws both sides of the design window in one figure. The reliability side is the worst-case probability over 0 to 85 °C that more than t of the 600 cells err, so that the key cannot be reconstructed; it uses the noise-only cell model of one chip, anchored to the simulated bit-error rates against the 25 °C enrolment (the earlier method of Section VII-E). Five data sets enter it: the schematic and the post-layout runs at the typical corner (1,024 cells × 8 power-ups each) and the recorded post-layout grid at the corners ss, ff, sf and fs (512 cells × 5 power-ups, Section VII-F). The secrecy side is the number of secret bits left after the 10t published helper bits, 600 h - 10t, with the min-entropy h per cell between its 95 % lower bound and its point estimate from each run’s fraction of ones; the hashed 128-bit key requires 192 such bits. The working setting t = 45 of the behavioural simulations is marked in both panels.

| schematic, tt (1,024 cells) | 85 °C error rate 2.31 %; t required for 10-6: 41; secret bits at t = 45: 99–143 (need ≥ 192) |
| post-layout, tt (1,024 cells) | 85 °C error rate 3.14 %; t required for 10-6: 48; secret bits at t = 45: 94–138 (need ≥ 192) |
| post-layout, tt (512 cells) | 85 °C error rate 2.70 %; t required for 10-6: 36; secret bits at t = 45: 24–81 (need ≥ 192) |
| post-layout, ss (512 cells) | 85 °C error rate 1.95 %; t required for 10-6: 31; secret bits at t = 45: 33–91 (need ≥ 192) |
| post-layout, ff (512 cells) | 85 °C error rate 10.00 %; t required for 10-6: 100; secret bits at t = 45: 7–63 (need ≥ 192) |
| post-layout, sf (512 cells) | 85 °C error rate 5.00 %; t required for 10-6: 64; secret bits at t = 45: 57–116 (need ≥ 192) |
| post-layout, fs (512 cells) | 85 °C error rate 27.81 %; t required for 10-6: > 120; secret bits at t = 45: 15–72 (need ≥ 192) |
Fig. 41. Key sizing from the SRAM-PUF Monte Carlo, schematic against extracted layout (recorded runs; 600 cells, 25 °C enrolment, BCH code correcting t errors). (a) Worst-case probability over 0-85 °C that the key fails (more than t cell errors, one chip, noise-only cell model anchored to the simulated error rates): schematic and post-layout at tt (1,024 cells × 8 power-ups each; grey, blue) and post-layout at ss, ff, sf and fs (512 cells × 5 power-ups; orange, one line style per corner); dashed: 10−6 target. (b) Secret bits left after the 10t helper bits, schematic (grey) and post-layout (blue) at tt, from the 95 % lower bound (line) to the point estimate (shading) of the min-entropy per cell; dashed: the 192-bit requirement. Vertical line in (a) and (b): the working setting of the behavioural simulations.
Key insights.
- The layout raises the required code strength from t = 41 to t = 48 at the typical corner: the extracted cell’s error rate at 85 °C is 3.14 % against 2.31 % for the schematic. At the working setting t = 45 the schematic cell meets the 10−6 target and the extracted cell does not.
- The process corner moves the requirement far more than the layout: t = 31 at ss and 64 at sf, t = 100 at ff, and no t up to 120 at fs, whose error rate at 85 °C is 27.81 %. These fast-nMOS corners are the reproducible flips analysed above, which a single 25 °C enrolment cannot correct with a BCH code of practical size.
- Secrecy does not depend on the layout: at t = 45 the schematic run leaves 99-143 secret bits and the extracted run 94-138, both below the 192 required; at the lower bound, both allow at most t = 35. With 600 cells and one enrolment, the window is therefore closed (reliability needs t ≥ 48, secrecy allows t ≤ 35), as the result panel of Section VII-E states; Section VIII-F sizes the final key generator, with more cells and a two-temperature enrolment, to open it.

| schematic, tt (1,024 cells) | 85 °C error rate 2.31 %; t required for 10-6: 41; secret bits at t = 45: 99–143 (need ≥ 192) |
| post-layout, tt (1,024 cells) | 85 °C error rate 3.14 %; t required for 10-6: 48; secret bits at t = 45: 94–138 (need ≥ 192) |
| post-layout, tt (512 cells) | 85 °C error rate 2.70 %; t required for 10-6: 36; secret bits at t = 45: 24–81 (need ≥ 192) |
| post-layout, ss (512 cells) | 85 °C error rate 1.95 %; t required for 10-6: 31; secret bits at t = 45: 33–91 (need ≥ 192) |
| post-layout, ff (512 cells) | 85 °C error rate 10.00 %; t required for 10-6: 100; secret bits at t = 45: 7–63 (need ≥ 192) |
| post-layout, sf (512 cells) | 85 °C error rate 5.00 %; t required for 10-6: 64; secret bits at t = 45: 57–116 (need ≥ 192) |
| post-layout, fs (512 cells) | 85 °C error rate 27.81 %; t required for 10-6: > 120; secret bits at t = 45: 15–72 (need ≥ 192) |
The fast-nMOS flips: mechanism check and supply ramp
The rotation θ of Fig. 40, largest at ff and fs, admits a competing explanation, and every recorded run uses the same 1 µs supply ramp:
1) Two candidate mechanisms: The error law reads the excess BER at 85 °C as a rotation of the latch’s mismatch, a property of the cell. In the recorded runs, however, both bit lines follow the ramping supply; the off pass gates leak, most when hot and at fast nMOS, injecting a current that carries their own mismatch. That would also make the preferred value depend on temperature, but as a property of the testbench, not of a cell in an array, whose bit lines are precharged or floating at power-up.
2) Discriminating test: Flips from the latch do not change when the bit lines float or are grounded, nor when the pass gates’ mismatch is switched off; flips from pass-gate leakage fall in all three cases (no leakage path from the supply, or equal leakage on both sides). If the rotation is the cause, the BER and the reproducible flips at 85 °C should agree between the four testbenches within the counting scatter (Fig. 42).
3) Direct measurement of the rotation: A voltage source in series with the gate of one inverter, bisected without noise to the value at which the cell’s decision changes, gives each cell’s input-referred mismatch $\Delta V_\mathrm{m}$; the correlation ρ of $\Delta V_\mathrm{m}$ between 25 and 85 °C gives the rotation directly, θ = arccos ρ, independently of the BER from which Fig. 40 derives it. The two values of θ should agree.
4) Supply ramp: The cell resolves at a supply voltage, not a time, so a slower ramp should change little, whereas a ramp faster than the cell’s time constant can raise the resolve voltage and change marginal cells. From 1 to 100 µs, the BER against the 1 µs enrolment should therefore stay near the 25 °C repeatability; at 0.1 µs it may rise.
Both tests are recorded transistor-level runs of the extracted 6T cell of Section VII-D: 128 cells with the mismatch draws and noise sequences of the first 128 cells of the PVT grid, so that the testbench with tied bit lines reproduces the recorded grid.
- Mechanism: corners ff and fs, 25 and 85 °C, five noisy power-ups, one noiseless power-up and the bisection of $\Delta V_\mathrm{m}$ (nine steps over ±0.2 V) per temperature, in four testbenches: bit lines tied to $V_\mathrm{DD}$ (as recorded), floating (20 fF to ground each), grounded, and tied with the pass-gate mismatch switched off (the latch transistors keep theirs).
- Ramp: typical corner, 25 °C, bit lines tied, ramps of 0.1, 1, 10 and 100 µs, five noisy power-ups each.
- Metrics: the BER at 85 °C against the 25 °C enrolment, the reproducible flips, θ from $\Delta V_\mathrm{m}$ and from the BER, and the BER of each ramp against the 1 µs enrolment and against its own first power-up.
The run (22 minutes on two cores) is recorded. Fig. 43 answers the three questions in turn.

Fig. 42. Flip-mechanism testbench of the SRAM-PUF cell in xschem (SKY130 symbols), floating-bit-line case. (a) Testbench: supply ramp, envelope, cells with floating bit lines on $C_\mathrm{bl}$ and the trip-point sources $V_\mathrm{os}$. (b) The cell with the source $E_\mathrm{os}$ in series with the gates of inverter B.
| fs, 85 °C: BER | reproducible flips, per testbench | tied 32.5 | 28.9 %; float 32.5 | 28.9 %; gnd 32.5 | 28.9 %; pg_mm0 32.5 | 28.9 % |
| fs: rotation θ at 85 °C, from the bisected mismatch | from the BER | tied 53° | 58°; float 52° | 58°; gnd 52° | 58°; pg_mm0 53° | 58° |
| fs: σm at 25 | 85 °C (tied) | 48.3 | 29.1 mV; resolve voltage (median) 0.66 | 0.61 V; reproduces the recorded PVT run on 100.0 % of its bits |
| ff, 85 °C: BER | reproducible flips, per testbench | tied 14.1 | 11.7 %; float 14.4 | 11.7 %; gnd 14.4 | 11.7 %; pg_mm0 14.1 | 11.7 % |
| ff: rotation θ at 85 °C, from the bisected mismatch | from the BER | tied 20° | 25°; float 20° | 26°; gnd 20° | 26°; pg_mm0 20° | 25° |
| ff: σm at 25 | 85 °C (tied) | 48.4 | 32.6 mV; resolve voltage (median) 0.59 | 0.43 V; reproduces the recorded PVT run on 100.0 % of its bits |
| tt, 25 °C: BER against the 1 µs enrolment, per ramp time | 0.1 µs 4.1 %, 1 µs 1.2 %, 10 µs 4.4 %, 100 µs 4.4 % |
| tt, 25 °C: BER against the ramp's own first power-up | 0.1 µs 2.1 %, 1 µs 1.2 %, 10 µs 0.4 %, 100 µs 0.4 % |
| tt, 25 °C: resolve voltage (median) | 0.1 µs 1.08 V, 1 µs 0.83 V, 10 µs 0.58 V, 100 µs 0.38 V |
| recorded run | 128 cells × 5 power-ups per condition, ngspice 41, 22 min on two cores: python dev/spice_puf/demo_mechanism.py --pdk-root $PDK_ROOT |

Fig. 43. SRAM-PUF flip mechanism and supply ramp (extracted cell, recorded, 128 cells × 5 power-ups per condition). (a) BER at 85 °C (25 °C enrolment) for four testbenches; solid: reproducible flips; hatched: other errors. (b) Mismatch voltage $\Delta V_\mathrm{m}$ per cell, 25 °C against 85 °C (fs, bit lines tied); orange: sign reversed. (c) BER at tt, 25 °C, against ramp time.
Key insights.
- Mechanism. The testbench with tied bit lines reproduces the corresponding cells of the recorded PVT grid bit for bit (100.0 % at ff and fs). At 85 °C, the four testbenches give the same error rates within one cell in 128 (Fig. 43(a)), as predicted for a rotation: at fs, 32.5 % BER and 28.9 % reproducible flips over the 128 cells of this run (the PVT grid of Section VII-F gives the population values); at ff, 14.1–14.4 % BER and 11.7 % reproducible flips in all four. Switching off the pass-gate mismatch leaves every bit unchanged at both corners. The competing explanation is therefore rejected: the flips are a property of the latch, not an artefact of the testbench, as the error law assumed.
- Direct measurement of the rotation. In the bisection (Fig. 43(b)), at fs, $\Delta V_\mathrm{m}$ at 25 and 85 °C correlate with ρ = 0.61, θ = 53°, against 58° from the BER; at ff, ρ = 0.94, θ = 20°, against 25°. At fs, 32.8 % of the cells reverse the sign of $\Delta V_\mathrm{m}$ between 25 and 85 °C, the same fraction as the BER. The spread $\sigma_\mathrm{m}$ of $\Delta V_\mathrm{m}$ falls from 48 mV at 25 °C to 29 mV (fs) and 33 mV (ff) at 85 °C. The direct extraction gives a rotation 4.5-6° smaller than the BER-derived value (25-26° at ff), so the agreement holds to within that margin: in simulation, each cell’s mismatch changes direction with temperature, strongly at fs.
- Supply ramp. The slower the ramp, the lower the supply voltage at which the cells resolve (median 1.08, 0.83, 0.58 and 0.38 V for 0.1, 1, 10 and 100 µs) and the more repeatable the power-up: the BER against the ramp’s own first power-up falls from 2.1 % (0.1 µs) to 1.2 % (1 µs) and 0.4 % (10 and 100 µs) (Fig. 43(c)). Against the 1 µs enrolment, however, every other ramp gives about 4 % (4.1 % at 0.1 µs, 4.4 % at 10 and 100 µs), because 5 of the 128 cells settle to the other value even without noise (3.9 %, 95 % interval 1.3–8.9 %); at 10 and 100 µs, this contradicts the prediction of an error rate near the 25 °C repeatability. The 10 and 100 µs runs, with different time-step limits, agree bit for bit. The ramp study thus adds a requirement: the key generator must reconstruct with the supply ramp it was enrolled with, since a ten times slower or faster ramp changes about as many cells as the 3.14 % error rate at 85 °C (Section VII-D), more than repeated power-ups at the same ramp; a slow, controlled ramp is favourable. The ramp result rests on 128 cells of one chip at one corner; it establishes the size of the effect, not a code sizing for an uncontrolled ramp.
G. Ageing of the SRAM-PUF cell (recorded, assumed BTI law)
The key generator must regenerate the same key throughout the chip’s life, and transistors age. In a 6T cell that holds a value in a process with a silicon-dioxide gate, the dominant mechanism is negative-bias temperature instability (NBTI): the pull-up pMOS that is on (gate at 0 V, source and body at $V_\mathrm{DD}$) slowly loses drive as charge builds up in and at its gate oxide, which raises its threshold magnitude $|V_\mathrm{th}|$ [27], [28]. Under constant stress the shift follows a power law of the stress time $\tau$,
$$\Delta V_\mathrm{th} = A \left(\frac{\tau}{1\ \mathrm{year}}\right)^{n},$$
with the time exponent $n$ between about 1/6 and 1/4 and the one-year shift $A$ thermally activated and growing with the gate-oxide field; part of the shift recovers when the stress is removed. The nMOS are not aged: positive-bias instability is assumed small, as usual with a silicon-dioxide gate, and hot-carrier degradation needs the current of a switching transistor [27], which a cell holding its value does not draw.
Emulated ageing (Fig. 44). The SKY130 PDK has no ageing model, so the ageing is emulated. The law above is taken from the model of [27] and the measurements it was fitted to [28], [29], scaled to the SKY130 oxide, supply and temperature; it gives each pull-up’s threshold shift from the time that pull-up is on, which depends on the value the cell holds. The shift is imposed on the extracted cell as a voltage source in series with the pull-up’s gate, which acts as the same rise of $|V_\mathrm{th}|$, and the recorded post-layout Monte Carlo of Subsection D is re-run with it at 1, 3 and 10 years and at −40, 25 and 85 °C, with the same mismatch and noise seeds; Section VIII-F carries the result to the key. $A$ and $n$ are therefore assumptions, and every number of this subsection is conditional on them.
Dependence on the held value. A cell that holds $q = 1$ keeps pull-up PUa (which drives $q$) on; one that holds 0 keeps PUb on. A dedicated PUF array that is never written holds its power-up value, so the stressed pull-up is that of the cell’s preferred side, and its weakening moves the cell towards the threshold. If instead the inverse of every read is written back into the array [30], the other pull-up ages and the cell moves away from the threshold. Referred to the gate of PUa, cell $i$ has a mismatch $u_i$, the gate shift at which its noiseless power-up turns from 1 to 0, and noise of rms $\sigma_\mathrm{n}$; a shift $\Delta_i = \Delta V_{\mathrm{th},a} - \Delta V_{\mathrm{th},b}$ of the two pull-ups acts like a shift of that gate, so that $P(\text{read } 1) = \Phi\big((u_i - \Delta_i)/\sigma_\mathrm{n}\big)$, with $\Phi$ the standard normal distribution function.
Prediction. With the held value every stable cell moves towards the threshold by $A(\tau/1\,\mathrm{y})^n$, and the cells whose $|u_i|$ is smaller reach it. There a cell starts to read its other value and so to stress its other pull-up, and because the shift grows as $\tau^n$ with $n < 1$, the first stress of that pull-up counts most: the cell is held just on its preferred side, where noise flips some of its reads. The error rate against the enrolment therefore grows with age, by less than the $0.4\,\Delta/\sigma_u$ that cells reading at random would add (half the fraction of a Gaussian spread $\sigma_u$ within $\Delta$ of the threshold). With the write-back every cell moves away from the threshold, the error rate falls below its fresh value, and the unstable cells become stable. Integrating each pull-up’s stress with the same formula, from $u_i$ and $\sigma_\mathrm{n}$ measured on the fresh cell, predicts each aged error rate, which Fig. 45 tests in both directions. Because $\Delta$ grows as $\tau^n$ with $n$ near 1/6, most of the 10-year shift is reached within the first year. Powering the array down between reads helps in proportion: the shift depends only on the time each pull-up is on, so an array powered 1 % of the time reaches every state a hundred times later, although its shift after ten years is still $0.01^{1/6} \approx 46$ % of the full-time value.
The study is a recorded run of the same flow, with the following settings.
- Cell and Monte Carlo: the extracted cell and the recorded post-layout Monte Carlo of Subsection D, 1,024 cells × 8 power-ups at −40, 25 and 85 °C, with the same mismatch and noise seeds, so that an aged read differs from the fresh read of the same cell only by the ageing. With no shift, the aged netlist reproduces all 1,536 recorded reads of the first 64 cells.
- Shift: nominal law $A$ = 2.83 mV, $n$ = 1/6 (the long-time exponent of hydrogen diffusion [27]), scaled from 10 mV after $1.5 \times 10^4$ s at a gate-source voltage $|V_\mathrm{GS}|$ = 2.9 V and 100 °C on a 0.18-µm pMOS [28] (Fig. 2 of [27]) with the oxide-field and temperature terms of [27] (field constant $E_0$ = 2.0 MV/cm, activation energy $E_\mathrm{a}$ = 0.13 eV) to $|V_\mathrm{GS}|$ = 1.8 V, the 4.23 nm oxide of the SKY130 pMOS, $|V_\mathrm{th}|$ = 0.45 V and 37 °C, the capsule’s temperature; the anchor’s oxide is taken as 4 nm, the thickest of [28], and a thinner one or a larger $|V_\mathrm{th}|$ gives a smaller shift (0.65 V: 28 % smaller). Pessimistic law $A$ = 7.88 mV, $n$ = 1/4, from 18 mV after $5 \times 10^3$ s at 2.9 V and 150 °C on a 3.8 nm oxide [29], scaled the same way: 14.0 mV after 10 years, more than the nominal law gives at 85 °C (8.0 mV). No recovery is modelled and the array is powered all the time (the worst case); the mobility loss that accompanies NBTI is not modelled. The aged states are 1, 3 and 10 years with the nominal law, and 10 years with the pessimistic law as a second test of the prediction.
- Stress: each pull-up’s stress time is integrated on a fine logarithmic time grid at the rate of the cell’s probability, from the calibration at 25 °C, of holding the value that turns it on (held value) or the opposite (write-back).
- Calibration: $u_i$ at each temperature by a noiseless bisection of the PUa gate shift (10 steps over ±250 mV, 0.5 mV resolution); $\sigma_\mathrm{n}$ from the disagreement between the fresh power-ups.
- Metrics: the bit-error rate (BER) against the fresh 25 °C enrolment (its first power-up), the unstable cells (not all eight reads equal) and the predicted BER.

Fig. 44. Ageing testbench of the SRAM-PUF cell in xschem (SKY130 symbols). (a) Testbench: the power-up testbench with the per-cell shifts $V_{\mathrm{sa},i}$ and $V_{\mathrm{sb},i}$. (b) The aged cell: $E_\mathrm{ga}$ and $E_\mathrm{gb}$ raise the gates of $\mathrm{PU}_\mathrm{a}$ and $\mathrm{PU}_\mathrm{b}$ by those shifts.
| assumed laws (the PDK has no ageing model) | nominal: ΔVth = 2.83 mV × (τ / 1 year)1/6; pessimistic: ΔVth = 7.88 mV × (τ / 1 year)1/4 on the pull-up that is on (scaled from Kimizuka et al. [28] with the model of [27] to 1.8 V, 4.23 nm and 37 °C; pessimistic from [29]) |
| zero shift reproduces the recorded fresh reads (chunk 0) | 100.0 % of 1,536 reads |
| mismatch referred to the PUa gate: spread σu at −40 | 25 | 85 °C | 56.0 | 55.6 | 53.2 mV; noise referred to it: 1.46 | 1.28 | 1.85 mV |
| rotation from the per-cell correlation, 25 → 85 °C | from the error rate (Section VII-E) | 4.5° | 4.9° |
| shift of a stable cell after 1 | 3 | 10 years, nominal law (dVa − dVb, median) | 2.83 | 3.40 | 4.16 mV |
| BER against the fresh 25 °C enrolment, held value: fresh | 1 | 3 | 10 years, 25 °C | 0.99 % | 1.18 % | 1.32 % | 1.53 % |
| the same at 85 °C | 3.14 % | 4.15 % | 4.48 % | 4.68 % |
| inverted write-back: fresh | 1 | 3 | 10 years, 25 °C | 0.99 % | 0.78 % | 0.77 % | 0.72 % |
| the same at 85 °C | 3.14 % | 2.00 % | 1.67 % | 1.35 % |
| bound: cells within the 10-year shift reading at random would add, at 25 °C | 2.98 percentage points |
| unstable cells at 25 °C (8 reads not all equal): fresh | 10 years held | inverted | 2.83 % | 5.57 % | 1.17 % |
| cells within three times the noise of the threshold at 25 °C (grey band in c): fresh | 10 years held | inverted; held cells that crossed to their other side | 58 | 100 | 24; 0 |
| pessimistic law, 10 years: shift of a stable cell; BER (per-cell prediction) at −40 | 25 | 85 °C, held value; inverted write-back | 14.01 mV; 5.49 % (5.17 %) | 4.87 % (3.79 %) | 9.84 % (9.93 %); 0.59 % (0.59 %) | 0.59 % (0.59 %) | 0.59 % (0.58 %) |
| pessimistic law, 10 years, inverted: cells with all 24 reads equal (8 power-ups × 3 temperatures) | cells read wrong at least once | of these, cells whose enrolment read differs from their noiseless value | 1,024 of 1,024 | 6 | 6 (such enrolment reads: 6 cells) |
| largest difference between a simulated aged BER and its per-cell prediction from the calibration: nominal | pessimistic law | 0.20 percentage points over 18 conditions | 1.08 percentage points over 6 conditions |
| recorded run | 1,024 cells × 8 power-ups × 3 temperatures × 8 aged states, ngspice 41, 1.9 h on two cores: python dev/spice_puf/demo_ageing.py --stage age |

Fig. 45. Ageing of the extracted SRAM-PUF cell by NBTI (recorded run, assumed BTI law, tt). (a) Bit-error rate against the fresh 25 °C enrolment and (b) unstable cells (not all eight reads equal) against years of operation, at −40 °C (green), 25 °C (black) and 85 °C (red); solid line, filled circles: held value; dashed line, open squares: inverted write-back; bars: 95 % interval over cells; crosses: per-cell prediction from the calibration. (c) Mismatch at 25 °C referred to the gate of pull-up PUa, $u_i - \Delta_i$: fresh (grey) and after 10 years with the held value (red) and with the inverted write-back (blue, dashed); grey band: three times the noise referred to the same gate.
Key insights.
- Calibration. Referred to the gate of PUa, the cells’ mismatch has a spread $\sigma_u$ of 55.6 mV at 25 °C (56.0 and 53.2 mV at −40 and 85 °C) and the noise an rms of 1.28 mV; the per-cell correlation of the mismatch between 25 and 85 °C gives a rotation of 4.5°, against 4.9° from the error rate in Section VII-E, an independent confirmation of the cell model at tt.
- Held value. The shift of a stable cell grows from 2.83 mV after one year to 4.16 mV after ten (nominal law), small against $\sigma_u$, but it moves every cell towards the threshold: the BER at 25 °C rises from 0.99 % fresh to 1.18 % after one year and 1.53 % after ten, at 85 °C from 3.14 % to 4.68 % (Fig. 45(a)). The rise is well below the 2.98 percentage points that cells reading at random would add, as predicted: the cells pulled to the threshold stay on their preferred side (none of the 1,024 crosses it) and gather near it (58 cells within three times the noise of the threshold fresh, 100 after ten years; Fig. 45(c)), and the unstable cells rise from 2.83 % to 5.57 %. With the pessimistic law (14.01 mV after ten years) the BER reaches 4.87 % at 25 °C and 9.84 % at 85 °C.
- Inverted write-back. The same shifts push every cell away from the threshold: the BER at 25 °C falls to 0.78 % after one year and 0.72 % after ten (85 °C: 1.35 %), the unstable cells to 1.17 %, and the cells within three times the noise of the threshold to 24, the dip in Fig. 45(c). With the pessimistic law every cell is made stable: all 1,024 cells read the same value in all 24 reads, and the 0.59 % that remains at every temperature are the 6 cells whose single enrolment read differs from their noiseless value, a residue of the enrolment, not of the ageing.
- Prediction. From the fresh calibration alone, the per-cell formula predicts every aged BER of the nominal law within 0.20 percentage points over its 18 conditions (Fig. 45(a), crosses). With the pessimistic law the largest difference is 1.08 points, held at 25 °C (3.79 % predicted, 4.87 % simulated): the stress follows the read probability at 25 °C and so pulls the cells onto the 25 °C threshold, where a read depends most on the noise model, and the stronger law pulls more of them there. At transistor level, an NBTI shift of the pull-ups acts on the cell as a shift of its mismatch, which lets Section VIII-F carry the ageing to the key with the cell model.
- Implications. Which way the error rate drifts is set by how the array is operated, not by the circuit: a held array ages towards more errors, a written-back one towards fewer. The drift is small at block level, but the code of the key generator is sized with little margin, so Section VIII-F evaluates its effect on the key.
Settings carried to Section VIII. The model now runs on the following settings (Table 12) and ranges:
Table 16: Circuit values carried from the SKY130 simulations to the system studies
|
The SKY130 values are simulated, with the limitations stated in Subsections E and F; they remain to be confirmed by silicon measurement.
VIII. From transistor to system: accuracy, power and security
Block-level figures of merit do not establish whether the sensor works or is secure. This section asks what the circuit values of Section VII do to the accuracy, the power and, above all, the security of the original design of [1] and of the proposed design, with the bit-exact model and its attack tools (Sections V and VI), the circuit values and BCH code (Section VII-E) and the recorded PVT grids (Section VII-F).
A path table, the simulation setup and one reference frame of the complete proposed design prepare the studies. Study A finds how much the comparator’s noise and offset degrade the accuracy at the 45 PVT conditions. The original design’s only defence against an attacker who owns a second chip is the analog difference between the chips (Section IV): study B asks whether the comparator’s offset and noise provide it at any condition, and at what cost in accuracy they would. Study C finds the comparator’s share of the sensor’s power. Studies D and E ask whether the front-end noise or the mismatch of the integrator coefficients protects the original design where the comparator does not. Study F derives what the SRAM cell does to the reliability and secrecy of the proposed design’s key over a population of chips, which enrolment removes the reproducible flips, how many power-up reads the chip nonce needs, and how ageing affects the key. G collects the requirements the circuits impose.
Circuit-to-system paths and PVT coverage
The table traces each circuit quantity to the system. Symbols: $\sigma_\mathrm{n}$, the comparator’s input-referred noise (rms); $\sigma_\mathrm{os}$, the standard deviation of its input-referred offset over Monte Carlo instances; SNDR, the signal-to-noise-and-distortion ratio of the decoded reading. “Nominal” means the tt corner, 27 °C (25 °C for the SRAM-PUF) and 1.8 V.
Table 17: Path from each circuit quantity to the system metric it affects, with its PVT coverage
|
The 45 PVT conditions are the grid of Section VII-F: five process corners (tt, ss, ff, sf, fs) × 1.62/1.80/1.98 V × −40/27/125 °C. Each comparator quantity is also swept far beyond its PVT range, to find the margin before the system metric changes.
Limits of the PVT coverage (apply to every result below).
- The SRAM-PUF Monte Carlo has no supply-voltage axis.
- Studies D and E sweep at the nominal corner only: the integrators are not simulated at transistor level, so they have no PVT data.
- The secrecy limit of study F uses the nominal bias, not each corner’s.
- In study A, the SNDR at each PVT condition is simulated with that condition’s noise and no offset (the offset only shifts the loop’s state and is evaluated separately).
Simulation setup
Abstraction level: behavioural, with circuit parameters from SPICE. The studies run the bit-exact model of Section V (a discrete-time loop, one step per clock, without excess loop delay) with the SKY130-derived settings of Section VII-E. In each run only the quantity under study changes. The comparator enters as a decision threshold: at clock $k$ it decides $v[k] = \operatorname{sgn}(x_2[k] + o + n[k])$, where $x_2$ is the second integrator’s output, $o$ the chip’s offset (one draw from $\mathcal{N}(0, \sigma_{os}^2)$ per chip) and $n[k]$ its noise (a new draw from $\mathcal{N}(0, \sigma_n^2)$ at every decision). The SRAM cell enters as its SPICE noise-to-mismatch ratio, temperature behaviour and bias. This makes thousands of system runs possible (one 107,400-clock frame at transistor level would take hours); Section XII tests the abstraction decision by decision.
Model units. $x_2 = 1$ corresponds to $V_{DD}/4$ at the comparator input, with $V_{DD}$ the supply voltage (Section VII-B), 450 mV at 1.8 V, so the post-layout $\sigma_\mathrm{n}$ = 0.575 mV is $1.28 \times 10^{-3}$ model units.
Common settings (printed by the testbench result panel):
Table 18: Common settings of the system-level studies
|
The replica attack (the security metric of studies B, D and E). The original design transmits $C = D \oplus K$, the modulator bits $D$ XORed with the keystream $K$ of a 16-bit LFSR. The attacker owns a second chip, a replica, applies the same known input and reads its unencrypted modulator bits $\hat{D}$. The keystream estimate is
$$\hat{K} = C \oplus \hat{D} = K \oplus (D \oplus \hat{D}),$$
which is correct wherever the two chips made the same decisions. A 64-bit window of $\hat{K}$ yields the key when the LFSR that Berlekamp-Massey finds in it predicts the next 512 keystream bits with more than 99 % accuracy; the attacker can confirm a candidate by decrypting the chip ID. Two attackers are simulated on the same pairs.
- The full-scan, multi-frame attacker (the security criterion) records up to four frames (each with a new noise realisation of both chips) and examines every 64-bit window from clock 200 on (after the common reset state), about 29,700 windows per frame. Berlekamp-Massey tolerates a wrong bit only at the start of a window (LFSR length L = 16): in the testbench’s check (20 trials per position), a wrong bit among the first 16 never prevented the key from being found, one at bit 17 did in 19 of 20 trials, and one at bit 18 or later always. The scan therefore runs on every window whose last 40 bits are clean and stops at the first that yields the key; a pair is broken when any window of its frames does.
- The attacker of [1] (secondary) runs Berlekamp-Massey on 80 random windows of the first frame (Section V-E); it serves for comparison and for the theory.
Security criterion. A design is secure against the replica attack when the full-scan attacker’s success probability is negligible. A simulation can only bound this probability, so a setting is called protected when that attacker breaks none of at least 100 independent pairs: the 95 % Clopper-Pearson upper bound on its success probability per pair is then 3.6 %, and, if the frames of a pair are treated as independent (they share the chips’ offsets and dither seeds, so this bound is optimistic), 0.92 % or less per frame (at least 400 frames). Every broken fraction is given with its 95 % Clopper-Pearson interval (error bars in the figures).
Pairs and statistics. Every pair draws its own seeds from the pair index (offsets, capacitor-ratio errors of study E, dither and noise), so all pairs, also at different swept points, are independent. Every swept point starts with 24 pairs; each point in the transition (some but not all pairs broken), and the first point above it at which no pair is broken, is raised to 100 pairs, the minimum of the criterion. Each PVT condition has 8 pairs (360 in all). For the theory, the testbench also measures in the first frame of each pair the fraction p of differing bits and the fraction $f_{64}$ of 64-bit windows in which no bit differs (a clean window).
Bare loop: the loop without dither, noise or clipping, for the exact identities of studies A and E.
Recorded and live. All system runs execute live, in at most about 20 s per study on two cores; only the circuit inputs at PVT come from the recorded grids of Section VII-F.
| circuit values (post-layout, tt, 27 °C, 1.8 V) | comparator σn = 0.575 mV, σos = 4.37 mV; integrator noise 8.99e-06 FS rms per clock; SRAM-PUF s25 = 0.0225 |
| PVT grid (Section VII-F) | 45 comparator conditions; σn up to 0.812 mV, σos up to 5.85 mV; 5 SRAM-PUF corners × 3 temperatures |
| accuracy input | full-scale sine through the TIA and buffer: amplitude 0.249 of the modulator's full scale, 107,400 clocks, OSR 50 |
| attack input | constant sensor current 0.5 µA (modulator input 0.134), 30,000 clocks per chip; each pair with its own seeds; full-scan attacker: every 64-bit window of up to 4 frames; attacker of [1]: 80 random windows of one frame |
| Berlekamp-Massey with one wrong bit in a 64-bit window (20 trials per position) | key still recovered: positions 1–16 in 100 %, position 17 in 5 %, positions 18–64 in 0 %; the scan therefore tests every window whose last 40 bits agree |
| model units | x2 = 1 ↔ VDD/4 = 450 mV at the comparator input (1.8 V) |
The complete sensor, end to end
One frame of the complete proposed design is simulated through every block with the SKY130 circuit values, at the nominal condition and at a worst condition with every block at one corner and temperature. The frame follows the signal chain of Section V, with the noise transfer function $|\mathrm{NTF}|^2 \propto (2\sin \pi f/f_s)^4$ at frequency $f$ and clock rate $f_s$, the key from 600 SRAM cells corrected up to t = 45, and the receiver’s decryption $D_{rx} = C \oplus K$ and decimation to 200 kS/s. Fig. 46 follows one nominal frame along this chain, so that each block can be checked against its neighbours.
At the nominal condition the differing SRAM cells should stay well below t, so that the key is recovered and $D_{rx} = D$ bit for bit. At the worst condition (sf and 85 °C; the key generator’s worst corners are ff and fs, study F) the recorded 5.0 % error rate at 85 °C (Section VII-F), about 30 of 600 cells plus the noise of the 25 °C enrolment read, comes close to t = 45: the key should be recovered in this frame, but without the $10^{-6}$ reliability. The comparator noise, below 1 mV, is two orders of magnitude below the level at which it matters (study A), so the SNDR should agree at both conditions to within the spread between noise realisations.
The bit-stream spectrum should have two regions: below about 10 kHz the unshaped front-end noise sets a flat floor; above it, the shaped noise rises by 40 dB per decade and dominates the band. Toward half the clock rate the shaping levels off: $|\mathrm{NTF}|^2$ peaks at $f_s/2$, where the 40 dB-per-decade asymptote overstates it by $40\log_{10}(\pi/2)$ = 7.8 dB. A 1-bit loop also forms a limit-cycle tone at $(1-|u|)\,f_s/2$; the sine of amplitude $A$ sweeps it down to $(1-A)\,f_s/2$ and dwells longest there, so the spectrum should peak close to $(1-A)\,f_s/2$, about 3.8 MHz for $A = 0.249$, nearly 40 times the band edge.
Since $D_{rx} = D$, the decoded output carries exactly the modulator’s noise; the third-order CIC and compensation FIR remove the noise above the band but not the shaped noise inside it. Its floor should therefore be flat only at the lowest frequencies, rise by 40 dB per decade across the band, 14.7 dB from 30 to 70 kHz, and fall steeply in the transition band of the compensation filter, centred on 80 kHz. Fig. 47 tests these predictions on the nominal, worst and impaired frames.
A third frame, of an impaired chip, adds three impairments that the reference model lacks. (i) Clock jitter on the non-return-to-zero feedback DAC of the continuous-time loop: an edge that moves by δt changes the fed-back charge by ($v_k - v_{k-1}$) δt/$T_\mathrm{s}$, with $T_\mathrm{s}$ the clock period; with ±1 levels and a transition at about half the clocks, an rms jitter $\sigma_\mathrm{t}$ = 10 ps at $T_\mathrm{s}$ = 100 ns gives a white error of about $2 \cdot \sqrt{0.5} \cdot 10^{-4} \approx 1.4 \times 10^{-4}$ of full scale per clock, eight times the integrator noise, so the floor should rise by about 18 dB. (ii) 1/f noise at the integrator input, with a corner $f_\mathrm{c}$ at which it equals the white thermal density: the floor rises by $10 \log_{10}(1 + f_\mathrm{c}/f)$, about 10 dB at 5 kHz for $f_\mathrm{c}$ = 50 kHz. (iii) Distortion of the input stage, $u + a_2 u^2 + a_3 u^3$ with second- and third-order coefficients $a_2$ and $a_3$, gives harmonics at 40 and 60 kHz, inside the band, which the loop does not suppress. Since the shaped quantisation noise dominates the in-band noise, the SNDR should drop mainly through the third harmonic.
The simulation uses the behavioural model with the testbench settings, one frame of 107,400 clocks (10.74 ms) of the full-scale sine, and the same seeds at both conditions:
Table 19: Nominal and worst-case conditions of the single-frame simulation
|
Noise sources of the two reference frames: the lumped front-end noise, the comparator noise and offset, and the dither. Not included: clock jitter, 1/f noise, distortion, excess loop delay, DAC level mismatch, and supply and reference noise.
Third frame, “impaired”: the nominal condition with assumed impairments, since [1] reports none of them: 10 ps rms jitter on the DAC edges (an on-chip clock derived from a crystal reference; a free-running oscillator would be worse), a 1/f corner of 50 kHz (a moderate-area SKY130 input pair), and an input stage with second- and third-harmonic distortion HD2 = −80 dBc and HD3 = −70 dBc at the test amplitude ($a_2$ and $a_3$ are set from these). Each impairment is also simulated alone, and eight further nominal realisations give the spread of a single frame’s SNDR.
Spectra use the four-term Blackman-Harris window (one 2,048-point transform for the harmonics). SNDR bandwidth: the noise of the decoded output is integrated from 391 Hz (bin 4) to 100 kHz, the Nyquist frequency of the 200 kS/s output, and so includes the noise between 80 and 100 kHz, which the compensation filter attenuates (the result panel also gives the SNDR to 80 kHz).
| nominal: tt; comparator 27 °C, 1.80 V (post-layout); SRAM array at 37 °C | comparator σn = 0.575 mV, offset of this chip +1 σos = 4.37 mV |
| modulator | fraction of ones 0.500; longest run of equal bits 3; integrator clipping 0.000 % of clocks |
| SRAM-PUF key | 13 of 600 cells differ from the enrolment (t = 45; expected Σpi = 11.2); key recovered; P(key fails) at 37 °C = 9.8e-40 (cell law: noise-to-mismatch ratio 0.0225 at 25 °C, 0.0281 at 37 °C) |
| receiver | chip ID check passed; MAC verified; counter fresh: True; decrypted bits equal to the modulator bits: True |
| decoded reading | SNDR 60.0 dB; reading − input (delayed and scaled) 0.018 % of full scale rms |
| worst: every block at the sf corner and 85 °C (1.80 V), the corner of the noisiest comparator | comparator σn = 0.732 mV, offset of this chip +1 σos = 4.85 mV |
| modulator | fraction of ones 0.500; longest run of equal bits 3; integrator clipping 0.000 % of clocks |
| SRAM-PUF key | 40 of 600 cells differ from the enrolment (t = 45; expected Σpi = 40.1); key recovered; P(key fails) at 85 °C = 1.3e-01 (cell law: noise-to-mismatch ratio 0.0734 at 25 °C, 0.1366 at 85 °C) |
| receiver | chip ID check passed; MAC verified; counter fresh: True; decrypted bits equal to the modulator bits: True |
| decoded reading | SNDR 60.1 dB; reading − input (delayed and scaled) 0.018 % of full scale rms |
| frame | 107,400 modulator clocks (10.74 ms), 107,560 bits on air; run time 0.0 s |

Fig. 46. The complete sensor, end to end: one frame of the proposed design (behavioural model with the SKY130 parameters; comparator tt, 27 °C, 1.80 V; SRAM array at 37 °C). Rows, clocks 2,100 to 2,299 (no vertical scale): sensor current, $x_2$, $D$, $K$ (red), $C$, $D_\mathrm{rx}$. Bottom, output samples 60 to 179: server output (black) on the input delayed and scaled by the receiver's filters (grey).
| test tone | 20.02 kHz, amplitude 0.249 of full scale (-12.1 dBFS); signal band 0–100 kHz (clock 10 MHz, OSR 50) |
| noise in the reference model (nominal, worst) | integrator thermal noise (white, 1.8 × 10−5 FS rms per clock, from [1]); comparator noise and offset (SKY130); dither; no distortion, 1/f noise, clock jitter, excess loop delay or supply noise |
| assumed impairments (impaired) | DAC clock jitter 10 ps rms; 1/f corner 50 kHz; input stage HD2 -80 dBc, HD3 -70 dBc; otherwise the nominal condition |
| low-frequency floor of the bitstream (2–8 kHz) | nominal: -126.8 dBFS/bin, worst: -126.8 dBFS/bin, impaired: -107.4 dBFS/bin |
| in-band quantisation and circuit noise of the bitstream (1 kHz to the band edge) | nominal: -66.5 dBFS, worst: -66.5 dBFS, impaired: -66.8 dBFS |
| HD2, HD3 of the decoded output | nominal: -86.6, -76.3 dBc, worst: -85.7, -75.9 dBc, impaired: -79.4, -66.1 dBc |
| each impairment alone (floor 2–8 kHz; HD3; SNDR) | jitter: -108.2 dBFS/bin, -70.7 dBc, 60.9 dB; flicker: -117.1 dBFS/bin, -74.3 dBc, 60.3 dB; distortion: -125.0 dBFS/bin, -65.3 dBc, 59.4 dB |
| bitstream above 1 MHz (nominal): strongest component; share of the bitstream power | 3.82 MHz at -11.1 dBFS/bin (the 1-bit loop's limit-cycle tone, swept by the sine down to (1 − A)·fs/2 = 3.75 MHz); 96 % of the power lies above 1 MHz |
| receiver filter (CIC × compensation) gain at 20, 80, 90, 100 kHz | 0.0, -6.7, -42.8, -59.5 dB (the transition band of the 31-tap compensation FIR is centred on 0.4 fout = 80 kHz) |
| decoded-output floor, 25–35 kHz and 65–75 kHz (nominal; Welch average, 1024-point segments, 195 Hz bins) | -107.6 and -90.1 dBFS/bin: a rise of 17.5 dB, against 14.7 dB for noise rising at 40 dB per decade |
| SNDR spread of single nominal frames (8 noise realisations) | mean 60.6 dB, σ 0.3 dB, range 60.2 to 61.1 dB |
| SNDR bandwidth | sndr() integrates the noise from bin 4 (391 Hz) to 100 kHz, the Nyquist frequency of the decoded output; integrated only to the 80 kHz edge of the compensation filter instead: nominal 60.3 dB (to 100 kHz: 60.0 dB) |
| SNDR of the decoded output (2,048-point Blackman-Harris FFT, noise to 100 kHz) | nominal: 60.0 dB, worst: 60.1 dB, impaired: 59.5 dB |
Fig. 47. Spectra of the complete sensor (0 dBFS: full-scale sine). Blue: nominal (tt; SRAM array at 37 °C); orange: every block at sf (the corner of the noisiest comparator condition) and 85 °C; green: nominal with assumed impairments (10 ps rms DAC clock jitter, 50 kHz 1/f corner, HD2 −80 dBc, HD3 −70 dBc). (a) Modulator bit stream (Welch, 16,384-point segments); dashed: 40 dB per decade; dotted: 100 kHz band edge. (b) Decoded output (Welch, 1,024-point segments, 195 Hz bins). Legend: SNDR of each frame; blue dashed, on top; triangles: labelled peaks.
Key insights.
- The link, end to end. At the nominal condition, 13 of the 600 SRAM cells differ (expected 11.2); every check passes and 0 of 107,400 decrypted bits differ from the modulator bits. At the worst condition (sf, 85 °C; comparator $\sigma_\mathrm{n}$ = 0.732 mV and $\sigma_\mathrm{os}$ = 4.85 mV, interpolated), 40 cells differ (expected 40.1), close to t = 45 as predicted. The key is recovered and every check passes in this frame, but the sf cell model gives a probability of $1.3 \times 10^{-1}$ that a power-up at 85 °C yields a wrong key, far from the $10^{-6}$ target. In both frames the fraction of ones is 0.500, no run exceeds 3 clocks, and the integrators never clip; in the nominal frame (Fig. 46) the server’s reading follows the input to within 0.018 % of full scale rms. In the behavioural model, the complete link operates end to end at both conditions. The key generator tolerates the nominal read with a margin of 32 cells; at sf and 85 °C the margin shrinks to 5 cells and the key fails in about one power-up in eight, which is why study F sizes it per corner.
- Spectra. In Fig. 47, the nominal and worst spectra coincide; only the impaired frame departs from them. The bit-stream spectrum (Fig. 47(a)) has the two predicted regions: between 2 and 8 kHz the lumped front-end noise sets a flat floor at −126.8 dBFS per bin at both conditions (below 2.4 kHz the window’s main lobe around DC dominates); above it, the spectrum rises at 40 dB per decade. The in-band noise is −66.5 dBFS at both, so the shaped quantisation noise, not the circuit noise, sets the SNDR. Above about 1 MHz the spectrum levels off near −35 dBFS per bin; its strongest component, at 3.82 MHz (−11.1 dBFS per bin), lies next to the predicted 3.75 MHz, and 96 % of the bit-stream power lies above 1 MHz. The decoded output (Fig. 47(b)) shows the 20.02 kHz tone at −12.1 dBFS. Its floor rises from −107.6 (25–35 kHz) to −90.1 dBFS per bin (65–75 kHz), by 17.5 dB against the predicted 14.7 dB (folded noise and the compensation filter’s passband are possible contributors to the 2.8 dB excess), and falls above 80 kHz, where the filters attenuate by 6.7 dB at 80 kHz, 42.8 dB at 90 kHz and 59.5 dB at 100 kHz.
- Accuracy. The SNDR is 60.0 dB at the nominal and 60.1 dB at the worst condition: as predicted, the accuracy does not change between them. Integrated only to the 80 kHz edge of the compensation filter, the nominal SNDR is 60.3 dB, so the attenuated noise between 80 and 100 kHz costs 0.3 dB. Even without circuit distortion the decoded output has a third harmonic at −76.3 dBc (nominal), from the input-correlated quantisation error that the dither does not fully remove.
- An impaired chip. With the assumed impairments, the low-frequency floor rises to −107.4 dBFS per bin, 19.4 dB above the nominal. The jitter alone raises it to −108.2 dBFS per bin (+18.6 dB, against about 18 dB predicted), and the 1/f noise alone to −117.1 dBFS per bin (+9.7 dB, against about 10 dB): the clock jitter sets the impaired frame’s floor and masks the 1/f noise. The distortion appears as a third harmonic at −66.1 dBc in the impaired frame and −65.3 dBc alone, above the applied −70 dBc because it adds to the loop’s own harmonic; the second harmonic, −79.4 dBc, stays close to the applied −80 dBc. The in-band noise is unchanged (−66.8 dBFS against −66.5 dBFS); the SNDR of the impaired frame, 59.5 dB, lies about 1 dB below the mean of single nominal frames (60.6 dB, σ 0.3 dB), consistent with the third harmonic. Over eight realisations, single nominal frames range from 60.2 to 61.1 dB, so the jitter-only (60.9 dB) and 1/f-only (60.3 dB) frames do not differ measurably from the nominal; the distortion-only frame (59.4 dB) is below the range. The 60.0 dB of the nominal frame and the 60.3–60.4 dB of study A (other seeds, no offset) differ by about this spread, not by a circuit effect. The 60 dB of the reference model is optimistic for a chip: its clean low-frequency floor, set by the model’s only unshaped noise source, is an idealisation; the assumed impairments cost about 0.5–1 dB at the nominal condition, the studies below omit them, and the clock jitter and input-stage linearity need a specification in the chip design.
A real signal through both designs
The test sine shows the link’s accuracy, but not what an attacker obtains from a real recording. A biomedical signal makes the difference visible: an electrocardiogram (ECG) of five heartbeats is passed through the complete link of each design, and the server’s reading and the attacker’s reading are compared with it. The signal is three seconds of record 208 (lead MLII) of the MIT-BIH Arrhythmia Database (Moody and Mark, IEEE Eng. Med. Biol. Mag., 2001), distributed by PhysioNet under the Open Data Commons Attribution License v1.0; the excerpt is recorded data in the figures repository, with its source and licence. It is played back 280 times faster, so that the five beats fit one frame of 10.74 ms; the scaled ECG band, about 11 kHz, stays inside the 100 kHz signal band, and the amplitude is that of the test sine.
The analysis above predicts a reading that follows the ECG for the server of either design, and for the attacker of A2 the same reading against the S-DSM, whose 16-bit key it finds by exhaustive search, but noise against the proposed design, whose 128-bit key it can only guess. The readings are compared with the input by their correlation after the receiver filters’ delay, the lag (searched from 0 to 199 output samples) that maximises it.
| signal | MIT-BIH Arrhythmia Database, record 208, lead MLII, 3 s (1,080 samples at 360 Hz), played back 280× faster in one frame, 100 % of the test amplitude; licence: Open Data Commons Attribution License v1.0 (PhysioNet's licence for the MIT-BIH Arrhythmia Database) |
| server, proposed design (correct key) | frame accepted; decoded reading against the input: correlation 0.9997 after the filters' delay of 16 output samples |
| server, S-DSM [1] (correct key) | correlation 0.9997 |
| attacker against the S-DSM [1] | 16-bit key found by exhaustive search (100 % of the keystream); its reading against the input: correlation 0.9997 |
| attacker against the proposed design | guessed 128-bit key (50.2 % of the keystream correct); its reading against the input: largest correlation over 200 lags 0.037 |
| run time | 0.3 s |

Fig. 48. A real signal through both designs: three seconds of an electrocardiogram (MIT-BIH Arrhythmia Database, record 208, lead MLII) played back 280 times faster in one frame (behavioural model with the SKY130 parameters; simulated in this run). Grey: the input; coloured: (a) the server's decoded reading, either design; (b) the reading of the attacker of A2 against the S-DSM of [1], with its key found by exhaustive search; (c) the same attacker against the proposed design, with a guessed key. Each reading normalised and shifted by the receiver filters' delay.
Key insights.
- The server recovers the ECG from either design (correlation 0.9997 with the input, after the filters’ delay of 16 output samples): the encryption costs the reading nothing.
- Against the S-DSM of [1], the attacker reads the same ECG as the server (correlation 0.9997): exhaustive search finds the 16-bit key from the frame header, and every heartbeat of the recording is exposed.
- Against the proposed design, the attacker’s reading is noise: with a guessed 128-bit key, half of the keystream bits are wrong and the largest correlation with the input over 200 lags is 0.04, the level of chance.

| signal | MIT-BIH Arrhythmia Database, record 208, lead MLII, 3 s (1,080 samples at 360 Hz), played back 280× faster in one frame, 100 % of the test amplitude; licence: Open Data Commons Attribution License v1.0 (PhysioNet's licence for the MIT-BIH Arrhythmia Database) |
| server, proposed design (correct key) | frame accepted; decoded reading against the input: correlation 0.9997 after the filters' delay of 16 output samples |
| server, S-DSM [1] (correct key) | correlation 0.9997 |
| attacker against the S-DSM [1] | 16-bit key found by exhaustive search (100 % of the keystream); its reading against the input: correlation 0.9997 |
| attacker against the proposed design | guessed 128-bit key (50.2 % of the keystream correct); its reading against the input: largest correlation over 200 lags 0.060 |
| run time | 0.1 s |
A. Accuracy: comparator noise and offset
In model units, the second-order modulator of Section V-C is
$$x_1[k] = x_1[k-1] + g_1\big(u[k] - v[k-1]\big),\qquad x_2[k] = x_2[k-1] + g_2\big(x_1[k] - v[k-1]\big),\qquad v[k] = \operatorname{sgn}\big(x_2[k] + o + n[k]\big),$$
with the input $u[k]$ (full scale ±1), the integrator outputs $x_1$, $x_2$, the fed-back decision $v[k] = \pm 1$, the integrator coefficients $g_1 = g_2 = g = 1/2$, and the comparator’s offset $o$ and noise $n[k]$ (dither omitted for clarity).
- Noise is shaped like quantisation error, until it lowers the quantiser’s gain. If the input $q = x_2 + n$ of the 1-bit quantiser is Gaussian with standard deviation $\sigma_q$, the quantiser behaves on average like a gain plus an uncorrelated error (its stochastic describing function), $$v = k\,q + e,\qquad k = \sqrt{2/\pi}\,/\,\sigma_q,\qquad \sigma_e^2 = 1 - 2/\pi,\qquad \sigma_q^2 = \sigma_{x_2}^2 + \sigma_n^2 ,$$ with $\sigma_{x_2}$ the rms of $x_2$, so the loop gives $V(z) = \mathrm{STF}(z)\,U(z) + \mathrm{NTF}(z)\,\big(E(z) + k\,N(z)\big)$ ($V$, $U$, $E$, $N$: the $z$-transforms of $v$, $u$, $e$, $n$; STF: the signal transfer function), with $\mathrm{NTF}(z) = (1 - z^{-1})^2 / D(z)$ and $D(z) = (1 - z^{-1})^2 + k g z^{-1}\,(1 + g - z^{-1})$: the comparator noise is shaped by the same NTF as the quantisation error, and only weakens the shaping by widening $\sigma_q$ and so lowering $k$. The in-band noise power is $$P_{\text{in}} = \big(\sigma_e^2 + k^2\sigma_n^2\big)\,\frac{1}{\pi}\int_{\text{band}} \big|\mathrm{NTF}(e^{j\omega})\big|^2\,d\omega ,$$ with $\omega$ the angular frequency in radians per clock and $k$ solved self-consistently from $g$, the input amplitude and the band alone (no simulated or fitted value); the argument holds while the loop’s own signal dominates $\sigma_q$. The analysis above therefore predicts that the SNDR does not change until $\sigma_\mathrm{n}$ reaches a sizeable fraction of the swing of $x_2$, so that its −3 dB point lies near 100 mV, two orders of magnitude above the PVT values.
- An offset is a change of initial state. Substituting $\tilde{x}_2 = x_2 + o$ turns the loop with offset $o$ into the offset-free loop started from $\tilde{x}_2[0] = o$, so without dither, noise and clipping the two produce identical bits, and because the bit density of a stable loop converges to its input whatever its initial state, the offset causes no DC error. The identity holds while the integrator stays inside its range, $|o| < x_{\lim} - \max|\tilde{x}_2|$ with $x_{\lim} = 2.5$ and $\max|\tilde{x}_2|$ the peak swing of the offset-free loop (a conservative limit: peak swing in either direction, any contact with the rail counted as failure); beyond it the second integrator clips and the reading is lost. The analysis above predicts identical bits and a DC error at the noise floor up to the integrator range.
Fig. 49 sets both predictions against the simulation.
The study runs the behavioural model with the testbench settings:
- Noise at PVT: each condition’s $\sigma_\mathrm{n}$ in model units at its own supply; no offset; one noise seed.
- Noise sweep: $\sigma_\mathrm{n}$ from 0.1 mV to 1 V (11 points) at tt, 27 °C, 1.8 V, three noise seeds per point. The theory curve uses 120 points over the same range.
- Offset identity: the bare loop on the first 20,000 clocks of the sine, for o = 0.01, 0.3 and −1 model units.
- DC error: the constant attack input for 26,850 clocks, with offsets of 1 mV to 3 V (15 points, both signs) and of 3× the largest PVT $\sigma_\mathrm{os}$; the error is the larger change of the decoded reading in ppm of full scale (drawn at $10^{-3}$ ppm when smaller), lost above 0.1 %.
| modulator SNDR at the 45 PVT conditions | 60.3–60.4 dB |
| noise for −3 dB: simulation | σn ≈ 72 mV, 88× the largest PVT value |
| theory: the relay's describing function, no fitted parameter | SNDR 58.8 dB without noise (simulation 60.4 dB); −3 dB at σn ≈ 99 mV (simulation 72 mV) |
| theory − simulation | largest |difference| 1.6 dB for σn ≤ 300 mV; at σn = 1000 mV the theory overestimates the SNDR by 12 dB (noise-dominated quantiser) |
| offset = initial-state shift (no dither, noise, clipping) | bits identical for o = 0.01, 0.3, −1: True |
| DC error of the decoded reading with a 3σ PVT offset | 0.47 ppm of full scale: absorbed by the loop |
| integrator range: offset the loop absorbs, theory |o| < xlim − max|x2| | 700 mV; simulation: DC error > 0.1 % from 1200 mV, so the theory's limit is conservative by 1.7× |
| run time | 2 s |
Fig. 49. Study A: accuracy against the comparator (behavioural loop, post-layout comparator). (a) Modulator SNDR against the comparator noise $\sigma_\mathrm{n}$: simulation at tt, 27 °C, 1.8 V (solid), theory (dashed), 45 PVT conditions (markers). (b) DC error of the reading against offset |o| (circles); diamond: 3× the largest PVT $\sigma_\mathrm{os}$; dotted: 0.1 % of full scale; orange: beyond the theory's integrator range. Grey: PVT ranges.
Key insights. Both predictions hold qualitatively; the theory captures the mechanism and the order of magnitude, not the exact values.
- Noise. The SNDR is 60.3–60.4 dB at all 45 PVT conditions (Fig. 49(a)). It begins to fall only above about 20 mV, some 25× the worst PVT value, and falls by 3 dB at $\sigma_\mathrm{n}$ ≈ 72 mV, 88× the largest PVT value: the noise is shaped like quantisation error.
- Theory against simulation. The describing function predicts the −3 dB point at about 99 mV, 1.4× the simulated 72 mV. Without noise it gives 58.8 dB against the simulated 60.4 dB, 1.6 dB low; up to $\sigma_\mathrm{n}$ = 300 mV the two differ by at most 1.6 dB. At $\sigma_\mathrm{n}$ = 1 V, where noise dominates the quantiser’s input and the linearised relay no longer applies, the theory overestimates the SNDR by about 12 dB.
- Offset. The bare loop with an offset and the offset-free loop started from the shifted state give identical bits for all three offsets tested. With an offset of 3× the largest PVT $\sigma_\mathrm{os}$, the decoded reading changes by 0.47 ppm of full scale. Over the sweep the error stays far below 0.1 % of full scale up to 1 V and exceeds it from 1.2 V on (Fig. 49(b)); the sweep has no point between 1.0 and 1.2 V, so the true limit lies in that interval, and the theory’s integrator range, 700 mV, is conservative by 1.7×. The offset is thus absorbed up to an integrator range more than 100× the largest PVT $\sigma_\mathrm{os}$.
- Design consequence. For accuracy, the comparator can be sized for energy, not for noise or offset. Study B asks whether the same two quantities can make two chips different enough to protect the original design.
B. Security of the original design: comparator noise and offset
The original design’s only defence against an attacker who owns a second chip (Section IV) is the analog difference between the chips. With $\hat{K} = K \oplus (D \oplus \hat{D})$ (simulation setup), any 64-bit window whose last 48 bits agree between victim and replica yields the LFSR, and the whole keystream follows; a clean window always qualifies.
- The full-scan attacker succeeds as soon as one such stretch occurs anywhere in its capture.
- The 80-window attacker of [1] examines $W = 80$ random windows of one frame. If a fraction $f_{64}$ of all 64-bit windows is clean and the windows are drawn independently, it succeeds on a chip pair with probability $$P_{\text{succ}} \;\ge\; 1 - \left(1 - f_{64}\right)^{W},$$ a lower bound, because a window whose only errors lie in its first 16 bits also yields the key.
Two properties determine $f_{64}$:
- Disagreements come in bursts. Two loops driven by the same input follow nearly the same trajectory, differ only where $x_2$ passes close to the threshold, and resynchronise, because the loop bounds the state difference. If disagreements were independent with rate $p$, then $f_{64} = (1-p)^{64}$, negligible at $p$ of a few tens of per cent. Because they cluster, long clean stretches remain, and the attack needs only one.
- An offset does not change the dynamics (study A), so it cannot decorrelate two chips until it pushes the loop into clipping beyond the integrator range (700 mV). Noise, in contrast, randomises every decision with $|x_2 + o| \lesssim \sigma_n$: as $\sigma_\mathrm{n}$ grows it eliminates the clean windows, and $f_{64}$ and $P_{\text{succ}}$ fall steeply.
The theory makes three predictions. (i) Two chips that differ only in their comparator offsets agree on most bits, and the attack always succeeds. (ii) At the PVT noise, the 80-window attack succeeds whenever $f_{64}$ is a few per cent: $f_{64} = 5\,\%$ already gives $P_{\text{succ}} \ge 98\,\%$; it falls below 10 % of pairs only for $f_{64}$ below about 0.13 %. The full-scan attacker needs one qualifying stretch in about 119,000 windows (four frames), so protection against it needs $f_{64}$ well below $10^{-5}$, far more noise. (iii) An offset protects only through clipping: the fraction of chips with $|o| > 700$ mV, $2\,[1 - \Phi(700\,\text{mV}/\sigma_{os})]$ with Φ the standard normal distribution function, is 2 % at $\sigma_\mathrm{os}$ = 300 mV and 24 % at 600 mV. The success rate should begin to fall slightly below the integrator range and, since clipped loops share long runs of equal bits, not reach zero.
Part 1: the comparator offset alone
This part tests prediction (i) with the behavioural model. Victim and replica differ only in their comparators: independent offsets from the schematic SKY130 distribution (Section VII-B) and own noise sequences; the front-end noise lumped at the first integrator is zero. Both chips receive the testbench’s attack input. The run simulates 24 chip pairs without dither and 24 with dither (the replica with its own dither seeds), from a fixed seed, and measures the fraction of bits that differ between the chips and the number of pairs the replica attack compromises. Fig. 50 shows the distribution of that fraction over the pairs: a small fraction leaves the long agreeing stretches that the attack needs.
| without dither | median 2.3 % of bits differ; Berlekamp-Massey breaks the original design in 24 of 24 chip pairs |
| with dither | median 6.1 % of bits differ; Berlekamp-Massey breaks the original design in 24 of 24 chip pairs |

Fig. 50. Study B, part 1: the comparator offset alone. Histogram, over 24 simulated chip pairs (behavioural model) that differ only in their SKY130 comparator offsets and noise, of the modulator bits that differ between victim and replica; white: no dither; blue: dither.
Key insights. Without dither, a median of 2.3 % of the bits differ between victim and replica; with dither, 6.1 %. The replica attack compromises the original design in 24 of 24 chip pairs in both cases (result panel above; Fig. 50), as prediction (i) states: in the model, the comparator offset provides no protection, since it only shifts the loop’s state (study A). The 50 % disagreement between the two channels of [1] must therefore arise before the quantiser: Section VI reproduces it with a small input-referred offset (the model’s simplified dither alone does not). This is the model’s means of matching the measurement; [1] attributes the disagreement in its chip to the dither.
Part 2: comparator noise and offset, at PVT and swept
This part tests predictions (ii) and (iii) with the behavioural model and the full testbench settings, including the front-end noise of [1] lumped at the first integrator. The runs and metrics are as follows.
- PVT: 8 chip pairs at each of the 45 conditions (360 pairs), each with that condition’s $\sigma_\mathrm{n}$, $\sigma_\mathrm{os}$ and supply.
- Noise sweep: $\sigma_\mathrm{n}$ from 0.3 mV to 300 mV (12 points, denser between 30 and 200 mV, where the attack begins to fail) with the post-layout $\sigma_\mathrm{os}$ = 4.37 mV.
- Offset sweep: $\sigma_\mathrm{os}$ from 1 mV to 3 V (10 points) with the post-layout $\sigma_\mathrm{n}$ = 0.575 mV.
- Pairs: 24 per swept point, raised to 100 near the protection point (simulation setup).
- Metrics: each attacker’s broken fraction with its 95 % interval, p and $f_{64}$ (first frame, clocks 200 to 30,000), and the theory’s bound; the protection point’s SNDR cost, interpolated from study A.
| full-scan attacker at the 45 PVT conditions (8 pairs each) | breaks 360 of 360 pairs (95 % interval 99–100 %); the 80-window attacker of [1]: 356 of 360 |
| why: clean 64-bit windows at PVT (theory's f64) | 4.9 % of windows, although the chips disagree on 25 % of bits; independent errors would leave (1 − p)64 = 1e-08 |
| comparator noise that protects (no pair broken by the full-scan attacker, ≥ 100 pairs) | σn = 160 mV (0 of 100 pairs, 4 frames each: success ≤ 3.6 % per pair and ≤ 0.92 % per frame at 95 % confidence; last break at 130 mV); 197× the PVT maximum, at a cost of 7.5 dB of SNDR (study A) |
| the 80-window attacker of [1] (secondary): below 10 % of pairs from | σn ≈ 60 mV |
| full-scan attack against σn: pairs broken [95 % interval] | 0.3 mV: 24/24 [86–100 %], 1 mV: 24/24 [86–100 %], 3 mV: 24/24 [86–100 %], 10 mV: 24/24 [86–100 %], 30 mV: 24/24 [86–100 %], 50 mV: 24/24 [86–100 %], 70 mV: 87/100 [79–93 %], 100 mV: 14/100 [8–22 %], 130 mV: 3/100 [1–9 %], 160 mV: 0/100 [0–4 %], 200 mV: 0/24 [0–14 %], 300 mV: 0/24 [0–14 %] |
| comparator offset that protects | none: up to σos = 3000 mV, beyond the supply, the full-scan attack breaks 24 % or more of pairs |
| full-scan attack against σos (integrator range of study A: 700 mV) | 1 mV: 24/24 [86–100 %], 3 mV: 24/24 [86–100 %], 10 mV: 24/24 [86–100 %], 30 mV: 24/24 [86–100 %], 100 mV: 24/24 [86–100 %], 300 mV: 24/24 [86–100 %], 600 mV: 75/100 [65–83 %], 1000 mV: 41/100 [31–51 %], 2000 mV: 28/100 [19–38 %], 3000 mV: 24/100 [16–34 %] |
| theory bound 1 − (1 − f64)80 vs the 80-window attacker | mean |difference| 0.05 over the noise sweep; the bound is conservative (Berlekamp-Massey also succeeds on windows whose only errors lie in their first 16 bits) |
| pairs simulated | 1,496, each with its own seeds |
| run time | 12 s |
Fig. 51. Study B, part 2: security of the original design (behavioural loop, post-layout comparator). Pairs broken by the replica attack against (a) the comparator noise $\sigma_\mathrm{n}$ and (b) its offset $\sigma_\mathrm{os}$; orange: S-DSM, full scan (95 % intervals); square: proposal, by construction; markers: PVT conditions, as in Fig. 49; grey: PVT range; dotted vertical: protection point (a), integrator range (b). (c) One pair's disagreements (ticks) and clean 64-bit windows (shading), at the post-layout and the protecting noise (top, bottom).
Key insights.
- PVT. The full-scan attacker breaks 360 of the 360 simulated chip pairs at the 45 PVT conditions (95 % interval 99–100 %; Fig. 51(a), (b), markers), the 80-window attacker of [1] 356. The two chips disagree on 25 % of their bits, yet 4.9 % of all 64-bit windows remain clean (mean over the PVT pairs): the disagreements come in bursts, separated by clean stretches such as the one in Fig. 51(c). Independent errors at that rate would leave $(1 - p)^{64} = 1 \times 10^{-8}$; at this $f_{64}$ the bound gives close to 100 % even for 80 windows (prediction ii). The chips disagree far more than in part 1, mainly because of the lumped front-end noise absent there (and the post-layout comparator values); no run isolates its effect on p, and study D examines its effect on the attack.
- Protective noise level. The full-scan attacker breaks all 24 pairs up to $\sigma_\mathrm{n}$ = 50 mV, 87 of 100 at 70 mV, 14 of 100 at 100 mV and 3 of 100 at 130 mV (95 % interval 1–9 %), and none of 100 from $\sigma_\mathrm{n}$ = 160 mV (none of 24 at 200 and 300 mV). This noise (bounds as in the simulation setup) is 197× the largest PVT value and costs 7.5 dB of SNDR (interpolated from study A), more than the 3 dB at which the accuracy counts as lost (72 mV). Even at 160 mV the 95 % upper bound is 3.6 % per pair, not a negligible probability, and an attacker who records more frames gains further opportunities. The 80-window attacker of [1] falls below 10 % of the pairs from $\sigma_\mathrm{n}$ ≈ 60 mV and breaks none of 100 at 70 mV, where the full scan still breaks 87: protection defined by it understates the required noise by more than 2×.
- Offset. No offset tested protects the original design. The full-scan attacker breaks every pair up to $\sigma_\mathrm{os}$ = 300 mV, 75 of 100 at 600 mV, where a quarter of the chips already exceed the integrator range (prediction iii), 41 of 100 at 1 V and still 24 of 100 (95 % interval 16–34 %) at 3 V, beyond the supply (the result panel lists every point). Beyond the integrator range the loops clip, their bits become nearly constant, and the clean windows do not disappear.
- Theory against simulation. Over the noise sweep, the bound $1 - (1 - f_{64})^{80}$ differs from the 80-window attacker’s success by 0.05 on average (as a fraction of pairs), and lies below it, as a lower bound should.
In the model, with its simplified dither, the comparator cannot give the original design its security at any of the 45 PVT conditions: analog “protection” and accuracy are in direct conflict. The proposed design therefore derives its security from a key.
Explore: comparator noise against accuracy and security
Studies A and B sweep the comparator’s noise and offset one at a time; this explorer sets both together. It is behavioural, as studies A and B, with the testbench’s post-layout circuit values except $\sigma_\mathrm{n}$ and $\sigma_\mathrm{os}$. Accuracy: the SNDR of study A, the mean over three noise seeds. Security: the full-scan replica attack on 16 chip pairs (four frames each), with seed 3 of study B’s noise sweep, so that at a swept noise and the post-layout offset the first pairs are the study’s; the 95 % Clopper–Pearson interval of the pairs broken. One pair’s disagreements over 600 clocks are drawn as in Fig. 51(c). In Fig. 52, panel (a) places the chosen setting on the accuracy curve of study A and panel (b) on the security curve of study B, so that one view shows what a comparator noise costs in SNDR and what it gains against the replica attack. The menus offer 11 noise and 7 offset values from 0.1 to 1,000 mV, the post-layout values among them; every combination was simulated beforehand, so a choice shows its figure and result panel at once, without running the cell.

| comparator | σn = 0.575 mV, σos = 4.37 mV (post-layout: 0.575 and 4.37 mV) |
| SNDR of the decoded full-scale sine (three noise seeds) | 60.5 dB (+0.1 dB against the noise-free 60.4 dB) |
| victim's and replica's bits that differ (first frame, mean over the pairs) | 24.4 %; clean 64-bit windows f64 = 4.97 %; bound 1 − (1 − f64)80 = 97 % |
| pairs broken by the full-scan replica attack (4 frames) | 16 of 16 (95 % interval 79–100 %) |
Fig. 52. Comparator-noise explorer (precomputed for every setting of its menus; behavioural loop, post-layout circuit values except $\sigma_\mathrm{n}$ and $\sigma_\mathrm{os}$). (a) SNDR against $\sigma_\mathrm{n}$: study A (circles), theory (dashed), this setting (diamond); grey: PVT range. (b) Pairs broken by the full-scan replica attack against $\sigma_\mathrm{n}$: study B at the post-layout offset (circles), this setting with its 95 % interval (diamond). (c) One chip pair at this setting: disagreements (ticks) and clocks inside a clean 64-bit window (shaded). Default view: the post-layout comparator.
Key insights. At the post-layout comparator (the initial view) every pair is broken while the SNDR is that of the noise-free loop. Choosing Comparator noise σn = 160 mV, the protection point of study B, shows the trade-off of Fig. 51 for one setting: the clean windows of panel (c) disappear, and the pairs stop being broken only where the SNDR has dropped. Choosing a larger Offset spread σos instead, up to 1,000 mV, leaves pairs broken: the offset alone does not protect the design. The result panel gives the numbers of the setting shown.
C. Power: the comparator in the sensor’s power budget
The comparator decides once per modulator clock, so its power is $P = E\,f_{clk}$, with $E$ the energy per decision of Section VII-F and $f_{clk}$ = 10 MHz. The reference at system level is the power of its modulator, 510 µW in [1] (Fig. 4(a) therein). With $E$ below 1 pJ, the analysis above predicts that $P$ stays below 10 µW, under 2 % of the modulator, and cancels in the comparison of Section X, whose designs share the comparator. The study requires no new simulation; it uses the energies per decision of the extracted comparator at the 45 PVT conditions (recorded grid, Section VII-F, Fig. 39) and at the nominal condition (post-layout, Section VII-D).
| comparator power at 10 MHz, 45 PVT conditions | 1.4–8.2 µW (largest at fs, 125 °C, 1.98 V) |
| share of the modulator of [1] | 0.28–1.6 % of 510 µW |
| at the nominal condition (post-layout, tt, 27 °C, 1.8 V) | 1.99 µW, 0.39 % |
| effect on the comparison of designs | none: the same comparator serves every design compared in Section X |
Key insights. The extracted SKY130 comparator dissipates 1.4–8.2 µW in simulation at 10 MHz over the 45 PVT conditions, the largest value at the hot, fast-nMOS condition of Fig. 39: at most 1.6 % of the 510 µW measured for the 65 nm modulator of [1], and about 0.4 % at the nominal condition, as predicted. The comparator’s power is negligible at every condition and, common to every design of Section X, does not affect the comparison. Studies D and E turn to the integrators.
D. The modulator’s own non-idealities: integrator noise and OTA gain
The integrators’ non-idealities, the front-end noise of [1] lumped at the first integrator and the OTA DC gain, are swept as model parameters (Section V-C).
- Integrator noise is not shaped. Noise of rms $\sigma_i$ (full scale, per clock) added at the first integrator’s output appears at the modulator input as $\sigma_i/g_1$, white and ahead of any noise shaping, so only $1/\mathrm{OSR}$ of its power falls in the signal band, where it competes with the in-band quantisation noise $P_q = P_{sig}\,10^{-\mathrm{SNDR}_0/10}$ ($P_{sig} = 0.249^2/2$; $\mathrm{SNDR}_0$: the simulated low-noise SNDR of study A): $$\mathrm{SNDR}(\sigma_i) \approx -10\log_{10}\!\left(10^{-\mathrm{SNDR}_0/10} + \frac{\sigma_i^2}{g_1^2\,\mathrm{OSR}\,P_{sig}}\right), \qquad \sigma_{i,\,-3\,\mathrm{dB}} = g_1\sqrt{\mathrm{OSR}\,P_q}.$$ where $\sigma_{i,\,-3\,\mathrm{dB}}$ is the integrator noise at which the SNDR has fallen by 3 dB. The analysis above predicts that the SNDR falls by 3 dB at about 66× the integrator noise derived from [1].
- Finite OTA gain makes the integrators leak. With an OTA DC gain $A$, each integrator leaks with the pole $p = A/(1+A)$ (Section V-C), and the zeros of the NTF move from $z = 1$ to $z = p$. In the signal band $|1 - p\,e^{-j\omega}|^2 \approx \varepsilon^2 + \omega^2$ with $\varepsilon = 1/(1+A)$, and integrating $|\mathrm{NTF}|^2 \propto (\varepsilon^2 + \omega^2)^2$ over $0 \le \omega \le B = \pi/\mathrm{OSR}$ gives the rise of the in-band quantisation noise, $$R(A) = 1 + \frac{10}{3}\left(\frac{\varepsilon}{B}\right)^{2} + 5\left(\frac{\varepsilon}{B}\right)^{4}, \qquad \mathrm{SNDR}(A) = \mathrm{SNDR}_0 - 10\log_{10}R(A),$$ for small leakage ($\varepsilon \ll 1$) and an otherwise ideal loop. The loss should therefore stay below 1 dB for $\varepsilon/B \lesssim 0.27$, that is $A \gtrsim 1.2\,\mathrm{OSR}$ (about 36 dB at OSR = 50): the classic rule that the OTA gain must exceed the oversampling ratio.
- Integrator noise decorrelates two chips faster than comparator noise, but not before the accuracy is lost. Unlike comparator noise, which acts only near the threshold, integrator noise enters the state at every clock and accumulates, so it removes clean windows more effectively. The 80-window attacker’s success should therefore fall with the integrator noise, but stretches on which the two chips agree, and with them the full-scan attack, should persist as long as the SNDR is intact.
The simulations are behavioural, at the nominal corner only:
- Accuracy: the integrator noise from 0.1 to 300× the value derived from [1] (8 points), and the OTA gain from 20 to 100 dB (9 points), three noise seeds each. The two theory curves use the simulated $\mathrm{SNDR}_0$ and no other simulated or fitted value.
- Security: the replica attack of study B (both attackers, post-layout offsets) at 1, 3, 10, 30, 100, 300 and 1,000× the integrator noise of [1]; pairs as in study B.
Fig. 53 compares each accuracy sweep with its theory and draws the attackers’ success on the same noise axis as the accuracy.
| integrator noise for −3 dB: simulation | theory g1√(OSR·Pq) | 68× | 66× the value derived from [1]: the SNDR is limited by quantisation, not by thermal noise |
| OTA DC gain for less than 1 dB loss: simulation | theory R(A) | ≥ 40 dB (sweep grid) | 36 dB; at 30 dB the SNDR decreases by 3.9 dB (theory 3.2 dB) |
| full-scan attacker (4 frames) against the integrator noise: pairs broken [95 % interval] | 1×: 24/24 [86–100 %], 3×: 24/24 [86–100 %], 10×: 24/24 [86–100 %], 30×: 24/24 [86–100 %], 100×: 24/24 [86–100 %], 300×: 24/24 [86–100 %], 1000×: 97/100 [91–99 %]; no protection in the sweep |
| the 80-window attacker of [1] (secondary) | 1×: 24/24, 3×: 24/24, 10×: 20/24, 30×: 12/24, 100×: 6/24, 300×: 2/24, 1000×: 2/100; f64: 5.1 %, 3.1 %, 1.3 %, 0.45 %, 0.089 %, 0.024 %, 0.0047 % |
| run time | 2 s |

Fig. 53. Study D: modulator non-idealities (nominal corner). SNDR against (a) the first integrator's thermal noise relative to the value derived from [1] (dotted) and (b) the OTA DC gain (dotted: A = OSR): simulation (solid) and theory (dashed). (c) Replica attack against the integrator noise: pairs broken (left) and clean-window fraction $f_{64}$ (blue, right); orange: over 3 dB of SNDR lost.
Key insights.
- Integrator noise. The SNDR falls by 3 dB at 68× the integrator noise derived from [1], where the analysis above predicts 66× (Fig. 53(a)); the SNDR is limited by quantisation, not by this noise.
- OTA gain. In simulation a DC gain of 40 dB or more keeps the loss below 1 dB. The sweep has points at 35 and 40 dB, so the true limit lies between them; the theory gives 36 dB. At 30 dB the SNDR falls by 3.9 dB, against 3.2 dB from $R(A)$ (Fig. 53(b)). The loss begins just above A = OSR (34 dB at OSR = 50), which is why the theory asks for about 1.2 × OSR rather than OSR itself: for accuracy, the integrators need an OTA DC gain of at least about 1.2 × OSR.
- Security. The full-scan attacker breaks all 24 pairs at every integrator noise from the value of [1] to 300×, and 97 of 100 (95 % interval 91–99 %) at 1,000× (Fig. 53(c)). The 80-window attacker of [1] breaks 24 of 24 pairs up to 3×, 20 at 10×, 12 at 30×, 6 at 100×, 2 at 300× and 2 of 100 at 1,000×; it follows the fall of $f_{64}$ from 5.1 % at the value of [1] to 0.0047 % at 1,000×; $f_{64}$ stays above zero over the whole sweep. As predicted, the integrator noise defeats an attacker who tries 80 windows, but not one who scans every window, even at fifteen times the noise at which the SNDR has lost 3 dB (shaded in Fig. 53(c)): in the behavioural model it gives the original design no security without destroying its accuracy. Study E turns to the integrators’ capacitor mismatch.
E. Security of the original design: integrator capacitor mismatch
The chip-to-chip mismatch of the coefficients $g_1$ and $g_2$ (capacitor ratios) is an analog difference a replica cannot copy. Let each chip’s coefficients be $g_1(1+\epsilon_1)$ and $g_2(1+\epsilon_2)$, with $\epsilon_1$, $\epsilon_2$ the relative errors of the two capacitor ratios.
- Invariance to $g_2$. The 1-bit quantiser sees only the sign of $x_2$. Given the decisions, $x_2$ is linear in $g_2$: multiplying $g_2$ by $(1 + \epsilon_2)$ multiplies $x_2$ by $(1 + \epsilon_2)$ at every clock. This leaves every sign, and so every decision, unchanged. The analysis above therefore predicts that, without offset, dither and clipping, the bitstream is exactly independent of $g_2$, and with them only weakly dependent.
- Relevant spread. In a switched-capacitor loop, $g_1$ and $g_2$ are capacitor ratios, which match chip to chip to about 0.1–1 %. The modulator of [1] is a continuous-time loop (Section V): its coefficients are $RC$ or $g_m/C$ products, set by absolute resistor, transconductance and capacitor values, which, untrimmed, spread by ±10–30 % from chip to chip (a typical value, assumed here; [1] reports no spread). The relevant range is therefore 10–30 %, not the 1 % of a capacitor ratio; the sweep covers both. A spread common to both integrators of a chip moves $g_1$ and $g_2$ together, and since only $g_1$ matters, it acts like the independent errors simulated here.
- Sensitivity to $g_1$. The first coefficient matters because it scales $x_1$ but not the feedback $v$ that enters $x_2$, which changes the trajectory. Even so, two chips with different $g_1$ agree over long stretches (study B). An error in $g_1$ should therefore change a fraction of the decisions, and the full-scan attacker should fail only once the mismatch removes every stretch of about 48 bits on which the two chips agree, in every frame.
The simulations are behavioural, at the nominal corner only:
- Scale-invariance check: the bare loop on the first 20,000 clocks of the sine, with a relative error of 0.01 % to 10 % (5 points) in $g_1$ alone or in $g_2$ alone. The metric is the fraction of decisions unchanged from the error-free loop.
- Replica attack: each chip draws independent errors of both coefficients from $\mathcal{N}(0, \sigma^2)$, with the chip-to-chip mismatch σ = 0.01 % to 50 % (9 points); attackers, pairs and offsets as in study B.
Fig. 54 tests the invariance and whether any mismatch, from a matched capacitor ratio to the spread of a continuous-time loop, stops the full-scan attacker.
| theory check: g2 error alone (bare loop) | decisions unchanged at every error up to 10 %: True |
| theory check: g1 error alone | 0.01 %: 99.7 %, 0.1 %: 96.8 %, 1 %: 79.3 %, 3 %: 82.4 %, 10 %: 75.9 % of decisions unchanged |
| full-scan attacker (4 frames), capacitor-ratio mismatch between chips: pairs broken [95 % interval] | 0.01 %: 24/24 [86–100 %], 0.03 %: 24/24 [86–100 %], 0.1 %: 24/24 [86–100 %], 0.3 %: 24/24 [86–100 %], 1 %: 24/24 [86–100 %], 3 %: 24/24 [86–100 %], 10 %: 78/100 [69–86 %], 30 %: 31/100 [22–41 %], 50 %: 16/100 [9–25 %] |
| protection by capacitor mismatch | at σ = 1 %: 24 of 24 pairs broken; none in the sweep: still 16 of 100 pairs at σ = 50 % |
| the 80-window attacker of [1] (secondary) | 0.01 %: 23/24, 0.03 %: 24/24, 0.1 %: 24/24, 0.3 %: 24/24, 1 %: 24/24, 3 %: 20/24, 10 %: 44/100, 30 %: 13/100, 50 %: 6/100 |
| run time | 3 s |

Fig. 54. Study E: capacitor mismatch (nominal corner). (a) Fraction of decisions unchanged against the relative error of $g_2$ alone (blue squares) or $g_1$ alone (orange circles), bare loop without dither, noise or clipping. (b) Pairs broken by the replica attack against the chip-to-chip mismatch σ of both coefficients (bars: 95 % intervals); dotted vertical and circle: 1 %, a matched capacitor ratio.
Key insights.
- Scale invariance. The bare loop confirms both predictions (Fig. 54(a)). An error in $g_2$ alone leaves every decision unchanged up to 10 %. An error in $g_1$ alone changes decisions: 99.7 % stay unchanged at 0.01 %, 96.8 % at 0.1 %, and 76–82 % from 1 % to 10 %.
- Replica attack. The full-scan attacker (Fig. 54(b)) breaks all 24 pairs at every mismatch up to 3 %, including the 1 % of a matched capacitor ratio; 78 of 100 pairs at 10 % (95 % interval 69–86 %), 31 of 100 at 30 % (22–41 %) and still 16 of 100 at 50 % (9–25 %). The 80-window attacker of [1] breaks fewer: 44 of 100 at 10 %, 13 at 30 % and 6 at 50 %. No mismatch in the sweep protects the design: the integrators give the original design no security either, neither at the 1 % of a matched capacitor ratio nor at the ±10–30 % spread of a continuous-time loop such as that of [1]. In the model, with its simplified dither, no analog block of the original design protects it; the proposed design rests its security on the SRAM-PUF cell, which study F carries to the key.
F. Security of the proposed design: from SRAM-PUF cell to key
The proposed design’s security rests on one transistor-level quantity: the power-up behaviour of the SRAM cells that regenerate the key, whose errors the BCH code of Section VII-E (t = 45) corrects. The cell’s error law (Section VII-F) is noise of noise-to-mismatch ratio $s(T)$ at temperature $T$ plus, at the fast-nMOS corners and high temperature, a rotation θ(T) of the mismatch that makes a fixed set of cells change sign. Three relations carry this law to the key over a population of chips.
1) Key failure over a population (Section VII-E): With per-cell error probabilities $p_i$, the number of errors $E$ in the 600-bit fingerprint is Poisson-binomial, and the key fails when $E$ exceeds the correction capability $t$: $P_{\text{fail}} = P(E > t)$, computed exactly for each chip and compared with the target $10^{-6}$.
2) Secrecy: The BCH code over the Galois field $\mathrm{GF}(2^{10})$ publishes 10 helper bits per correctable error, so with the min-entropy $H_\infty = -\log_2\max(P_1, 1 - P_1)$ of a cell that powers up to 1 with probability $P_1$, $n H_\infty - 10t$ of the $n$ cells’ bits remain secret, against the 192 bits required at the 95 % lower bound on $H_\infty$ (Section VII-E). A two-temperature enrolment also publishes a keep-mask, so the entropy is that of the kept cells (the mask must be hashed into the key, Section IV-B). The analysis above predicts that with 512 cells per corner the lower bound lies near 0.8 bit, so 600 cells allow at most t ≈ 27.
3) Two-temperature enrolment and choice of temperatures: If the mismatch rotates monotonically with temperature, a cell’s sign changes at most once over any range of θ shorter than π, so a cell with the same sign at both enrolment temperatures keeps it between them, but not outside. An enrolment at 25 and 85 °C thus says nothing about 0 °C, the bottom of the specified range, where θ has the opposite sign; one at −40 and 85 °C, the ends of the simulated range, covers 0–85 °C. The cost is the fraction of cells whose sign changes, about θ(85 °C)/π, plus the unstable ones. This predicts that with the −40 and 85 °C enrolment the kept cells’ held-out error rate is low at all three temperatures, whereas the 25 and 85 °C enrolment leaves errors at −40 °C wherever θ(−40 °C) is large. Fig. 55 tests relations 1 and 3 against the secrecy limit of relation 2.
The study runs at the behavioural level, with the two-component cell model of Section VII-E anchored at each corner to the recorded transistor-level Monte Carlo of Section VII-F (Table 14: 512 cells × 5 power-ups at −40, 25 and 85 °C per corner). s(T) and θ(T) are extracted at each temperature as in Section VII-E and interpolated linearly. The other settings are as follows.
- Population: 1,000 chips per corner and enrolment. For the two-temperature enrolment each chip has 1,000 cells, keeps those stable and equal over three reads at each temperature, and uses the first 600 kept (a chip with fewer fails).
- Enrolments: one read at 25 °C, or three reads at −40 and at 85 °C; the 25 and 85 °C enrolment of Table 15 is compared on the recorded bits.
- Cross-validation on the recorded bits: for each two-temperature enrolment, the mask is chosen from power-ups 1–3, and the kept cells’ error rate against the enrolled value is evaluated on the held-out power-ups 4–5 at −40, 25 and 85 °C, with a 95 % Clopper–Pearson interval (reads of a cell treated as independent, so the intervals are somewhat narrow). The model, not fitted to it, also predicts the kept fraction.
- Code and ranges: t from 0 to 120; worst case over 0, 25 and 85 °C, where the piecewise-linear s(T) and θ(T) put the maximum over 0–85 °C. Panel (a) follows one chip from −40 to 85 °C in 5 °C steps.
- Secrecy: $H_\infty$ per corner (95 % lower bound and point estimate) from all 512 cells or the kept cells; the corner with the lowest bound sets the limit.
- Metrics (per corner): chips meeting $10^{-6}$ at t = 45; 99th percentile of the required t; held-out error rates; secret bits; the array size for which 99.9 % of chips keep 600 cells.
| this chip, t = 45, 25 °C enrolment: first temperature from −40 °C up with P(key fails) above 10−6 | tt none, ss none, ff 55 °C, sf −40 °C, fs 40 °C |
| chips meeting 10−6 over 0–85 °C at t = 45, 25 °C enrolment | tt 100.0 %, ss 100.0 %, ff 0.0 %, sf 72.9 %, fs 0.0 % |
| t required for 10−6, 99th percentile of the chips, 25 °C enrolment | tt 33, ss 29, ff 89, sf 55, fs > 120 |
| recorded bits, enrolment at 25 and 85 °C: held-out error rate of the kept cells at −40 °C (95 % interval) | tt 0.31 % (0.06–0.89), ss 1.72 % (1.01–2.75), ff 0.91 % (0.39–1.78), sf 3.09 % (2.08–4.40), fs 0.98 % (0.40–2.01) |
| recorded bits, enrolment at −40 and 85 °C: highest held-out error rate of the kept cells over −40, 25, 85 °C | tt 0.20 % (0.02–0.74) at 25 °C, ss 0.41 % (0.11–1.05) at 85 °C, ff 1.01 % (0.46–1.91) at 25 °C, sf 0.11 % (0.00–0.61) at −40 °C, fs 0.71 % (0.23–1.64) at 85 °C |
| cells kept by the −40 + 85 °C enrolment: recorded | model (not fitted to it) | tt 95.3 % | 94.7 %, ss 94.5 % | 94.9 %, ff 86.9 % | 85.6 %, sf 88.5 % | 88.4 %, fs 68.9 % | 68.7 % |
| t required for 10−6, 99th percentile, enrolment at −40 and 85 °C | tt 9, ss 10, ff 13, sf 16, fs 17; chips meeting 10−6 at t = 17: at least 99.7 % at every corner |
| min-entropy per cell, 95 % lower bound – point estimate: all cells | cells kept at −40 and 85 °C | tt 0.801–0.897 | 0.784–0.881, ss 0.810–0.907 | 0.793–0.891, ff 0.772–0.866 | 0.783–0.885, sf 0.840–0.939 | 0.835–0.941, fs 0.777–0.871 | 0.758–0.871 |
| secrecy limit (≥ 192 secret bits at the lower bound of the worst corner) | t ≤ 27 with 600 cells; t ≤ 26 with 600 cells kept at −40 and 85 °C |
| key generator: enrolment at −40 and 85 °C, 600 kept cells, t = 17 | 284–352 secret bits at fs; 935 cells so that 99.9 % of the chips keep 600 at fs |
Fig. 55. Study F: SRAM-PUF to key (cell model per corner). (a) Key-failure probability of the model's reference chip against temperature; t = 45, 25 °C enrolment; grey: 0–85 °C. (b), (c) Worst case over 0–85 °C of the 99th percentile of 1,000 modelled chips against t; enrolment at 25 °C (b), −40 and 85 °C (c, t up to 52); dotted: $10^{-6}$ target; circles and the key below each panel: t required; dashed vertical: t = 45; grey: under 192 secret bits.
Key insights.
- 25 °C enrolment. For one simulated chip at t = 45 (Fig. 55(a)) the key-failure probability stays below $10^{-6}$ from −40 to 85 °C at tt and ss; it exceeds the target from 55 °C at ff and from 40 °C at fs, where θ grows, and already at −40 °C at sf, whose cell is the noisiest. Over the population, all chips meet the target at tt and ss, 72.9 % at sf and none at ff and fs. The t each corner requires (99th percentile; dots in Fig. 55(b)) is 33 at tt, 29 at ss, 55 at sf, 89 at ff and more than 120 at fs; (Section VII-E, on the 1,024-cell run, finds t = 39 at tt.) The secrecy limit with 600 cells, set by the lowest bound (0.772 bit at ff), is t ≤ 27, as item 2 predicts: with a 25 °C enrolment no corner, not even tt, meets both requirements. The BCH code is sized for noise; the reproducible flips at ff and fs, and the higher noise at sf, would need codes far beyond the secrecy limit.
- Choice of enrolment temperatures (recorded bits). With the enrolment at 25 and 85 °C, the kept cells’ held-out error rate at −40 °C is 1.72 % (95 % interval 1.01–2.75 %) at ss and 3.09 % (2.08–4.40 %) at sf, as predicted by item 3, and 0.31–0.98 % at the other corners. With the enrolment at −40 and 85 °C, the highest held-out error rate over the three temperatures is at most 1.01 % (0.46–1.91 %, ff at 25 °C) at every corner; at sf it is 0.11 %. This enrolment keeps 95.3, 94.5, 86.9, 88.5 and 68.9 % of the recorded cells at tt, ss, ff, sf and fs; the model predicts 94.7, 94.9, 85.6, 88.4 and 68.7 %, within 1.3 percentage points at every corner. The two-temperature enrolment excludes the flipping cells from the key, provided its two temperatures bracket the operating range (at tt, ff and fs two held-out reads do not distinguish the two enrolments at −40 °C).
- Enrolment at −40 and 85 °C. The 99th percentile of the required t is 9 at tt, 10 at ss, 13 at ff, 16 at sf and 17 at fs (Fig. 55(c)); at t = 17, at least 99.7 % of the chips meet $10^{-6}$ at every corner. The min-entropy of the kept cells lies between 0.758 bit (95 % lower bound, fs) and 0.941 bit (point estimate, sf); the mask removes little entropy (at fs, 0.758 against 0.777 bit for all cells). With 600 kept cells the limit is t ≤ 26. The key generator with this enrolment, 600 kept cells and t = 17 leaves 284–352 secret bits at fs, more than the 192 required, and needs 935 cells so that 99.9 % of the simulated chips keep 600 at fs. fs, the best corner at 25 °C (Section VII-F), thus sets every limit of the key generator and must be screened hot.
- Limits. These results rest on the two-component model, independent cells, thermal-only cell noise (Section VII-C) and, for the held-out error rates, two reads per cell. At the conservative $s_{25} = 0.06$, 2.7 times the simulated value, a tt chip enrolled at 25 °C needs t = 60 and keeps no secret bits (Section VII-E), so the cell noise must be measured in silicon before the code is fixed.
Section XII regenerates the key from transistor-level cells as an independent check of the cell model’s error rate at one condition per run; it does not test the two-temperature enrolment or the t = 17 code. Section XI sizes the decoder and the array of the complete key generator.
Explore: size the key generator
The explorer works at the behavioural level, as study F: each setting simulates 1,000 chips of the chosen corner with chip_population and the seeds of study F, and follows the reference chip (chip_seed) over temperature. Secrecy is the budget ⌊600 h − 10 t⌋ at the 95 % lower bound of the corner’s min-entropy per cell h (all 600 cells for the 25 °C enrolment, the kept cells for the enrolment at −40 and 85 °C), against the 192 bits required. A design point meets both requirements when 99 % of the chips meet the target and the budget holds. In Fig. 56, panel (b) places the chosen t against the t the 99th-percentile chip requires and against the secret-bit limit (grey), and panel (c) shows how that requirement spreads over the chips, so that one view shows whether a design point meets both requirements. The two-temperature enrolment uses the array of study F, the 25 °C enrolment its 600 cells. The menus offer the five corners, both enrolments, 16 values of t from 0 to 120 and both targets; every combination was simulated beforehand, so a choice shows its figure and result panel at once, without running the cell.

| design point | corner fs; enrolment three reads at −40 and at 85 °C; 935 cells; t = 17; target 10−6 |
| chips meeting 10−6 at t = 17 (worst case over 0, 25, 85 °C) | 99.7 %; the 99th-percentile chip requires t = 17 |
| secret bits at the 95 % lower bound of the min-entropy (0.758 bit per cell) | 284 (at least 192 required; t ≤ 26 meets it) |
| cells kept by the enrolment (of 935) | median 643; 99.9 % of the chips keep 600; 934 cells let 99.9 % keep 600 |
| verdict | meets both requirements (99 % of the chips, secret budget) |
Fig. 56. Key-generator sizing explorer (precomputed for every setting of its menus; cell model of study F, 1,000 modelled chips of the chosen corner). (a) Key-failure probability of the reference chip against temperature at the chosen t; grey: 0–85 °C; dotted: target. (b) Worst case over 0–85 °C of the median (dashed) and 99th-percentile (solid) chip against t; circle: t required by the 99th-percentile chip; dashed vertical: chosen t; grey: under 192 secret bits. (c) Histogram of the t each chip requires; dashed: chosen t. Default view: the key generator of study F at its limiting corner.
Key insights. In the initial view, panel (b) reproduces Fig. 55(c) for the limiting corner, with the array of the key generator instead of the 1,000 cells of the study. Choosing Enrolment: 25 °C, one read at the same t shows that corner’s reproducible flips in panel (a); choosing BCH correction t = 45, the code of study F for that enrolment, then moves the design point into the grey region, where the helper data leave too few secret bits. The result panel gives the numbers of the design point shown.
The chip nonce from the same cells
The chip nonce $N_\mathrm{c}$ keeps the keystream of a session fresh when an attacker replays an old session nonce $N$ on the unauthenticated downlink (A15, Section IX). It is hashed from raw power-up reads of the SRAM array, so it is only as fresh as those reads are random: two sessions whose reads are identical get the same $N_\mathrm{c}$, the same IV and the same keystream.
Cell $i$ powers up to 1 with probability $p_i = \Phi(m_i / s(T))$, independently at every power-up, where $m_i$ is its fixed mismatch and $s(T)$ the noise-to-mismatch ratio of the cell model above. Two reads of the same chip are identical with probability $\prod_i \left(p_i^2 + (1 - p_i)^2\right) = 2^{-H_2}$, where $H_2$ is the collision (Rényi order-2) entropy of one read. Stable cells contribute almost nothing, a cell with $p_i = 0.5$ one bit, and hashing cannot add entropy. With $n$ independent reads hashed together, two sessions share $N_\mathrm{c}$ with probability at most $2^{-nH_2} + 2^{-31}$, the second term being a collision of the 31-bit hash between different reads. The chip therefore power-cycles the array $n$ times at session start (the key is reconstructed from the first read) and hashes all $n$ raw reads with a volatile session index: $N_\mathrm{c} = \mathrm{hash}(w'_1 \,\Vert \cdots \Vert\, w'_n \,\Vert\, \text{session index})$, with $w'_j$ the $j$-th raw read and $\Vert$ concatenation, truncated to 31 bits.
The evaluation runs at the behavioural level, with the cell models of the five corners from the study above, the same 1,000 simulated chips per corner, and the 600-cell array of the working setting. Its three measurements and its assumptions are as follows.
- Exact entropy: $H_2$ of one read for every chip, corner and temperature; reported for the median and the 1st-percentile chip (99 % of the chips have more).
- Monte Carlo check of the formula: on the 60 least stable cells of the worst condition’s 1st-percentile chip, where identical reads are frequent, the share of identical pairs among 100,000 pairs of simulated power-ups.
- Direct count: the number of distinct $N_\mathrm{c}$ in 4,000 sessions of that chip, each with one read or with $n = 64$ reads of the full array.
- Assumptions: successive power-ups are independent (assumption 5 of Section IV-A); the noise is the thermal noise of the cell model only; the power switch and read sequencer are not simulated.
| cells that differ between two power-ups, median chip, tt at −40 | 25 | 85 °C | 6.7 | 5.2 | 6.0 |
| H2 of one read, median chip: tt at −40 | 25 | 85 °C | 12.0 bits | 9.3 bits | 10.9 bits |
| H2 of one read, 1st-percentile chip: lowest | highest condition | 1.1 bits (fs −40 °C) | 20.1 bits (sf 25 °C) |
| Monte Carlo check, fs −40 °C, 60 least stable cells of the 1st-percentile chip: identical reads counted | predicted | 4.82e-01 | 4.80e-01 |
| distinct Nc in 4,000 sessions of that chip: one read | 64 reads per session | 41 | 4,000 |
| 64 reads, 1st-percentile chip at fs −40 °C: H2 and P(same Nc) per pair of sessions | 68 bits; P ≤ 2−68 + 2−31 ≈ 2−31 |
Key insights.
- Entropy of a single read. At tt, about 5 to 7 of the 600 cells differ between two power-ups of the median chip, and one read has $H_2 = 9.3$ bits at 25 °C (12.0 at −40 °C, 10.9 at 85 °C): two sessions would share $N_\mathrm{c}$ about once in 600. For the 1st-percentile chip $H_2$ ranges from 1.1 bits at fs, −40 °C, where the noise is lowest, to 20.1 bits at sf, 25 °C. The Monte Carlo count agrees with the formula ($4.82 \times 10^{-1}$ identical pairs counted against $4.80 \times 10^{-1}$ predicted). Key reliability and nonce freshness thus conflict: the fewer cells flip, the better the key and the worse the nonce. A one-read nonce would leave A15 open in practice (a repeated keystream after a few hundred replayed sessions at tt, 25 °C, after a few at fs, −40 °C).
- 64 reads per session. Over 4,000 sessions of the worst chip, one read per session yields only 41 distinct chip nonces, whereas 64 reads yield 4,000, one per session. With 64 reads the 1st-percentile chip at the worst condition has 68 bits of collision entropy, so $N_\mathrm{c}$ repeats only through the 31-bit hash, with probability about $2^{-31}$ per pair of sessions. Power-cycling the array 64 times at session start closes A15 at every corner and temperature with the cells already on the chip: the cost is a power switch for the array, a 6-bit read counter, and 64 reads of 600 bits through the SHA-256 core that already hashes the key (76 blocks of 65 clocks, about 0.5 ms at 10 MHz), once per session. The behavioural model uses these 64 reads throughout; Section XII hashes its one simulated read.
- Assumptions. The bound assumes independent reads and thermal noise alone: other noise sources of real cells (random telegraph noise, supply ramp) would only add entropy, while incomplete discharge between power-ups would remove some, so the discharge time is a design requirement of the power switch. An on-chip health test (not designed here) must ensure at every session start that the reads are independent and as noisy as assumed, also against an attacker who cools the chip to lower its noise.
The key over the chip’s lifetime
Whether the key generator keeps its target over the chip’s life depends on how the NBTI shifts of Section VII-G add up in the 600 cells of each chip. The cell model of Section VII-E carries them: a shift $\Delta_i$ of the gate of pull-up PUa moves the mismatch of cell $i$, in units of its spread, by $\Delta_i / \sigma_u(T)$, with $\sigma_u(T)$ the calibrated spread of Section VII-G. With the held value the stressed pull-up is that of the preferred side, so every cell drifts towards the threshold and the key-failure probability rises with age until the code is exceeded; with the inverted write-back every cell drifts away and the probability falls. The analysis above therefore predicts a finite lifetime for both codes with the held value and none with the write-back, and, since the write-back also stabilises the unstable cells, a loss of the randomness that the chip nonce draws from the same cells. Fig. 57 tests these predictions.
The study runs at the behavioural level and is recorded with the ageing; the settings are as follows.
- Chips: the 1,000 modelled chips of Section VII-E (tt, anchored to the 1,024-cell post-layout run), enrolled fresh: one read at 25 °C with t = 45, or three reads at −40 and at 85 °C with t = 17 (1,000-cell array, the first 600 kept cells), as in study F.
- Ageing: the law of Section VII-G, nominal and pessimistic; the stress time of each pull-up accumulates on a fine time grid with the cell’s probability of reading the value that turns it on (held value) or the opposite (inverted write-back); the array powered all the time.
- Metrics: the key-failure probability per power-up of the 99th-percentile chip, worst case over 0, 25 and 85 °C, against years; the lifetime, the age at which it exceeds $10^{-6}$; the collision entropy $H_2$ of one 600-cell read at 25 °C (median and 1st-percentile chip), the quantity part 2 sizes the chip nonce with.
| t = 45, 25 °C enrolment, nominal law: lifetime of 10−6, held value | inverted write-back | 26 days | > 100 years |
| t = 45, 25 °C enrolment, pessimistic law: lifetime of 10−6, held value | inverted write-back | 7 hours | > 100 years |
| t = 45, 25 °C enrolment, nominal law: P(key fails) of the 99th-percentile chip at 1 | 3 | 10 years, held value | 3.0 × 10−4 | 3.4 × 10−3 | 3.4 × 10−2 |
| t = 17, enrolment at −40 and 85 °C, nominal law: lifetime of 10−6, held value | inverted write-back | 23 days | > 100 years |
| t = 17, enrolment at −40 and 85 °C, pessimistic law: lifetime of 10−6, held value | inverted write-back | 8 hours | > 100 years |
| t = 17, enrolment at −40 and 85 °C, nominal law: P(key fails) of the 99th-percentile chip at 1 | 3 | 10 years, held value | 5.8 × 10−4 | 6.5 × 10−3 | 6.6 × 10−2 |
| array powered only while it is read, nominal law, t = 45: lifetime of the held value at a duty of 1 | 0.1 % | 7.0 years | 70.0 years |
| t = 45, nominal law, inverted write-back: P(key fails) of the 99th-percentile chip fresh | 1 | 10 years | 6.2 × 10−14 | 4.0 × 10−35 | 2.6 × 10−50 |
| collision entropy of one 600-cell read at 25 °C, median chip: fresh | 10 years held | inverted | 11.8 | 20.8 | 4.4 bits |
| the same, 1st-percentile chip | 6.0 | 13.3 | 1.0 bits |
| fresh t required (99th-percentile chip, worst case over 0–85 °C) | 39 with the 25 °C enrolment, 12 with the enrolment at −40 and 85 °C |
| laws | nominal: 2.83 mV after one year, n = 1/6; pessimistic: 7.88 mV after one year, n = 1/4 |

Fig. 57. The key over the chip's lifetime (cell model of Section VII-E with the recorded ageing of Section VII-G, 1,000 modelled chips, tt). (a) Key-failure probability per power-up of the 99th-percentile chip, worst case over 0–85 °C, against years of operation (age 0: fresh): t = 45 with the 25 °C enrolment (black) and t = 17 with the enrolment at −40 and 85 °C (green); solid: held value; dashed: inverted write-back; thick: nominal law; thin: pessimistic law; dotted: the $10^{-6}$ target; probabilities below $10^{-40}$ drawn at $10^{-40}$. (b) Collision entropy $H_2$ of one 600-cell read at 25 °C against years, median chip (black) and 1st-percentile chip (red); solid: held value; dashed: inverted write-back.
Key insights.
- Held value. The key generator has little margin: fresh, the 99th-percentile chip needs t = 39 of the 45 that the 25 °C enrolment provides and t = 12 of 17 with the enrolment at −40 and 85 °C. With the array powered and holding its power-up values, the nominal law consumes that margin in 26 days (t = 45) and 23 days (t = 17); after one year the 99th-percentile chip fails $3.0 \times 10^{-4}$ of its power-ups at t = 45, after ten years $3.4 \times 10^{-2}$ (Fig. 57(a)). With the pessimistic law the target is lost after 7 hours and 8 hours. As predicted, the held value gives both codes a finite lifetime, and a short one.
- Inverted write-back. The same shifts drive every cell away from the threshold, and the key-failure probability falls with age instead: at t = 45 from $6.2 \times 10^{-14}$ fresh to $2.6 \times 10^{-50}$ after ten years (nominal law), and below its fresh value at every age for both codes and both laws. Writing the inverse back after each read is the remedy that ageing requires.
- Power gating. The model counts only the time a pull-up is on, so an array powered only while it is read, a fraction d (its duty) of the time, reaches each state 1/d times later: at a duty d of 1 % the held value keeps t = 45 for 7.0 years, at 0.1 % for 70.0 years. Power gating alone is therefore enough only at a small duty, which a sensor that reads its key at power-up and then powers the array down can reach.
- The chip nonce. Ageing moves the randomness of a read the other way: the collision entropy of one 600-cell read at 25 °C of the median chip (11.8 bits fresh with this anchoring, against 9.3 bits in part 2, whose model is anchored to the 512-cell PVT record) rises to 20.8 bits after ten years with the held value but falls to 4.4 bits with the write-back, and that of the 1st-percentile chip to 1.0 bits. The write-back that keeps the key reliable therefore starves a nonce drawn from the same cells: a design with the write-back needs a separate array for the nonce, held or powered down, consistent with part 2, which found that the key and the nonce need opposite cells.
- Limits. The law is assumed (Section VII-G); recovery is not modelled, and it would lengthen the held-value lifetimes; the array is taken as powered all the time; the study covers tt only.
G. The circuit-to-system map
The study requires no new simulation. The table’s columns are the circuit quantity, its nominal value and PVT range, the system quantity, its value over PVT, and the margin to failure; the coverage is that of the paths table.
| Circuit quantity | Value (PVT range) | System quantity | Over the PVT grid | Margin or limit |
|---|---|---|---|---|
| Comparator noise σn | 0.58 mV (0.37–0.81) | accuracy: modulator SNDR | 60.3–60.4 dB | −3 dB at 72 mV (88×) |
| Comparator noise σn | security: full-scan replica attack on the original design | breaks 360 of 360 pairs | no pair broken (100 pairs) only from 160 mV (197×), at a cost of 7.5 dB SNDR | |
| Comparator offset σos | 4.37 mV (4.01–5.85) | accuracy: DC error | 0.47 ppm FS at 3σ | absorbed by the loop |
| Comparator offset σos | security: full-scan replica attack on the original design | breaks 360 of 360 pairs | never resisted: ≥ 24 % of pairs broken up to 3000 mV, beyond the supply | |
| Front-end noise, lumped at the first integrator (9.48 pA rms over 100 kHz, [1]) | 9.0e-06 FS rms per clock | accuracy: modulator SNDR | – | −3 dB at 68× (the SNDR is quantisation-limited) |
| Front-end noise, lumped at the first integrator (swept) | security: full-scan replica attack on the original design | breaks 24 of 24 pairs at the value of [1] | 97 of 100 at 1000×, far beyond the −3 dB SNDR point (68×) | |
| OTA DC gain (behavioural, swept) | – | accuracy: modulator SNDR | – | ≥ 40 dB for less than 1 dB loss |
| Capacitor-ratio mismatch, chip to chip (swept) | – | security: full-scan replica attack on the original design | breaks 24 of 24 pairs at σ = 1 % | still 16 of 100 at σ = 50 % |
| Comparator energy per decision | 144–822 fJ | power at 10 MHz | 1.4–8.2 µW | ≤ 1.6 % of the modulator of [1]; common to all designs |
| SRAM-PUF error rate, 25 °C enrolment | BER at 85 °C: tt 2.7 %, ss 2.0 %, ff 10.0 %, sf 5.0 %, fs 27.8 % | security: key reliability, t = 45, 0–85 °C (1,000 chips per corner) | chips meeting 10−6: tt 100 %, ss 100 %, ff 0 %, sf 73 %, fs 0 % | t required (99th percentile): tt 33, ss 29, ff 89, sf 55, fs > 120; secrecy limit t ≤ 27 |
| SRAM-PUF, enrolment at −40 and 85 °C (cross-validated) | 69–95 % of cells kept | security: key reliability, t = 17, 0–85 °C | chips meeting 10−6: ≥ 99.7 % at every corner | t required (99th percentile): tt 9, ss 10, ff 13, sf 16, fs 17; secrecy limit t ≤ 26; 935 cells for 600 kept |
| SRAM-PUF bias P(1) and min-entropy (kept cells, −40 and 85 °C enrolment) | P(1) = 0.460 (tt, 25 °C, 512 recorded cells; 0.493 in the 1,024-cell run of Section VII-D); min-entropy ≥ 0.758 bit per cell (95 % lower bound, fs) | security: secret fingerprint bits, t = 17 | 284–352 at fs | ≥ 192 up to t = 26 |
| SRAM-PUF pull-up ageing (NBTI, assumed law; tt) | 4.2 mV after 10 years (14.0 mV, pessimistic law) | security: key reliability over the lifetime, held value | 10−6 exceeded after 26 days (t = 45) and 23 days (t = 17), array always powered | inverted write-back: never in 100 years (t = 45); powered only while read: every age × 1/duty |
Key insights. Table 20 sorts the circuit quantities into four groups.
- No requirement. Comparator noise (SNDR 60.3–60.4 dB over PVT, margin 88×), offset (0.47 ppm at 3σ, three times the largest PVT $\sigma_\mathrm{os}$) and energy (1.4–8.2 µW, at most 1.6 % of [1]); lumped front-end noise (margin 68×).
- A modest requirement. An OTA DC gain of about 36-40 dB for less than 1 dB of loss.
- No protection for the original design (in the model, with its simplified dither). 360 of 360 PVT pairs broken; comparator noise protects only from 160 mV (197×, 7.5 dB of SNDR); the offset never (24 % or more broken up to 3 V); integrator noise not at 1,000× (97 of 100); capacitor mismatch not at σ = 50 % (16 of 100).
- Security-critical circuit of the proposed design. The SRAM-PUF cell: with a 25 °C enrolment and t = 45 only tt and ss meet $10^{-6}$ for all modelled chips, and sf, ff and fs need t = 55, 89 and more than 120, beyond the secrecy limit t = 27 (t = 28 at tt alone from its 512 recorded cells; Section VII-E, from 1,024 post-layout cells with a higher min-entropy estimate, finds t = 35). With the enrolment at −40 and 85 °C, t = 17 suffices at every corner. Ageing (assumed NBTI law, tt) adds an operating requirement: an array kept powered with its power-up values loses $10^{-6}$ within weeks at either code, so it needs the inverted write-back, or power only while it is read.
Among the circuits studied here, only the SRAM-PUF cell matters for the proposed design’s security, and what it requires (a one-time enrolment that spans the temperature range and a code sized for the worst corner) is a system-level design choice, not a circuit fix.
Section IX runs all 15 attacks of Section IV-A on both designs at the circuit values established here, not only the replica attack. Sections X and XI then implement the proposed design’s added blocks, the keystream block and the key generator, and find what they cost, and Section XII tests the abstractions of this section with transistor-level netlists.
IX. Security evaluation
No analog quantity protects the original design against the replica attacker (Section VIII), so both designs must be judged against the whole threat model. This section answers the first research question in full: what security does each design provide? It runs the 15 attacks of Section IV-A (Table 3) on the bit-exact model of both designs with the SKY130-derived parameters (Table 12). The verdicts of A4 and of the single-frame A6 rest on how strongly the two chips’ bit streams decorrelate under the model’s simplified dither of [1] (Section VI); that of A5 follows from the repeated keystream.
Subsection A runs every attack on both designs and judges each run by a decision rule fixed in advance; it then shows three attacks block by block, offers every attack interactively, analyses the helper-data manipulation attack (A12), and lets a learning attacker that knows the cipher but not the key try both designs on a range of victim signals. B computes the probability that the PUF fails to regenerate the key and checks it by Monte Carlo. C measures how far the operating point lies from the boundary at which a verdict changes. D measures how much the two keystream generators expose their key to power analysis, which the threat model leaves out of scope, so that this limitation is quantified rather than only stated.
A. Attack evaluation: 15 attacks on both designs
Notation (Section V). The chip transmits $C = D \oplus K$, with $D$ the modulator bit and $K$ the keystream bit of the 16-bit LFSR (original) or Grain-128a (proposal); the attacker’s estimates are $\hat{K}$ and $\hat{D} = C \oplus \hat{K}$. The Berlekamp-Massey algorithm (BM) [3] determines an $L$-bit register from $2L$ consecutive correct bits, 32 for the 16-bit LFSR. In the proposed design, $w$ is the enrolled SRAM fingerprint and $h$ its public BCH syndrome ($10t$ bits, with $t$ the number of flipped cells the code corrects), the key $k$ is the hash of the corrected fingerprint, and the IV (session nonce, chip nonce $N_\mathrm{c}$, counter) gives every frame its own keystream.
Capabilities and decision tests. The capabilities are those of Section IV-A; every run is judged by the test fixed for its attack in Section V-G (Table 5): the keystream test (A2 to A4, A6, A7; A15 on the recovered reading), the receiver test (A8 to A10, A13, A14) or a leakage test (A5, A11, A12). A1 is not run: its verdict holds by design, from the encryption and the key length (Table 21). NOT APPLICABLE marks the helper-data attacks (A10 to A12) on the original design, which has no helper data.
The 15 attacks and their predictions. Table 5 lists what the attacker does in each; four come from [1] (A4 and A5 evaluated there, A1 and A8 named as threats). Each prediction is stated before the run, with its reasoning and assumptions:
- A1. Passive eavesdropping [1] (C1; keystream test). Decryption with a wrong key (the original design’s key with 0x5A5A added bit-wise, or a random 128-bit key): safe for both designs.
- A2. Brute-force key search (C1; keystream, over the whole frame). The chip ID is not secret, so the encrypted ID reveals the first 16 keystream bits, and exactly one of the 65,535 non-zero seeds matches them: the original design fails (in this frame model the first 16 LFSR outputs are the seed itself; without such a known field the search runs against any 16 known keystream bits, A3, in well under a millisecond, Section II-B). The proposed design’s 2¹²⁸ ≈ 3.4 × 10³⁸ keys cannot be searched; the model represents any feasible search by one random guess, so this verdict holds by design.
- A3. Berlekamp-Massey keystream recovery (C3; keystream, after the 64 known bits). $L = 16$ and the 64 known bits exceed $2L$, so the original design fails; for Grain-128a, BM returns a register of about 32 bits that predicts no better than chance.
- A4. Zero/DC input with a replica chip [1] (C2; keystream). The replica differs from the victim by an input-referred offset of 0.1 % of full scale (FS), its own dither and noise, and, with the replica’s bits $D_\mathrm{r}$, $\hat{K} = C \oplus D_\mathrm{r} = K \oplus (D \oplus D_\mathrm{r})$. After BM on 80 random windows, the attacker screens every position of $\hat{K}$: the LFSR polynomial is public, so any 16 correct bits are its state; a candidate must predict the following 1,024 bits better than chance (at least 62 %), and, for up to 400 candidates, its seed must decrypt the chip ID, a test that a wrong seed passes with probability 2⁻¹⁶; the scan is repeated with the replica’s input trimmed (C2) until a seed is confirmed. The two chips’ bits agree in runs (Section VIII-B), so the original design fails. Against the proposed design, even a $\hat{K}$ right on more than 97 % of the bits reads only the forced frame, which carries nothing new, and the per-frame IV protects every other frame: DATA SAFE.
- A5. Same key, same message [1] (C1; leakage). Two independent bit streams with the same input $u$ differ with probability $(1 - u^2)/2$, so with a repeated keystream the fraction of ones in $C_1 \oplus C_2 = D_1 \oplus D_2$ (subscripts: the two frames) is $(1 - \langle u^2\rangle)/2$ and reveals the mean square of the reading; for a sine of amplitude $A$ the attacker estimates $\hat{A} = \sqrt{2\,(1 - 2\langle C_1 \oplus C_2\rangle)}$. The original design leaks the amplitude, however well $D_1$ and $D_2$ decorrelate (its LFSR restarts in every frame, as assumed in A6); in the proposed design the second frame carries the next counter value and $C_1 \oplus C_2$ is uniformly random.
- A6. Forced-input saturation (C2; keystream). At 10 µA the S2D buffer gain of 0.5 limits the input to half of full scale, so the bits keep toggling (three of four are ones) and the single-frame guess fails against both designs. The majority of $C$ over 21 frames at about 1.7 µA (input about 0.45 FS), stepped by 5 nA, recovers $K$ if the LFSR restarts from the stored key in every frame (assumed; [1] does not state it), and the scan of A4 confirms the seed: the multi-frame attack breaks the original design; under the proposed design’s per-frame IV the majority carries no information. Subsection C sweeps the buffer gain.
- A7. Key extraction from memory (C4; keystream). The original design fails if its 16-bit key is held in non-volatile on-chip memory, which [1] does not describe (Section II-E); a key loaded from a host would move the attack to that host, and the key still falls to A2 and A3. The proposed design’s key exists only in volatile registers while powered, so the attacker is reduced to a guess, by design, provided the enrolment read-out is disabled after test (Section IV-A); probing, laser fault injection and the cloning of an SRAM fingerprint by photonic emission analysis [21] are outside the threat model.
- A8. Spoofing [1] (C5 after A2; receiver). The receiver of the original design accepts a frame encrypted with the brute-forced key; the proposed design rejects a guessed key, which passes the 32-bit tag with probability 2⁻³².
- A9. Cloned or counterfeit sensor (C4 + C5; receiver). A counterfeit of the original design loaded with the extracted key is accepted; a clone of the proposed design has a different fingerprint and, with the genuine helper data, a different key, so the ID and MAC checks fail (assuming the fingerprint cannot be copied).
- A10. Helper-data tampering (C5). One inverted bit of $h$ makes the hash yield a different key, which fails the ID and MAC checks: detected.
- A11. Helper-data leakage (C1; leakage). With $H_\infty$ the min-entropy of one cell in bits, at least $600\,H_\infty - 10t$ fingerprint bits remain secret, against 192 required at the 95 % lower bound of the min-entropy (Section VII-E); at t = 45 the budget lies below it: KEY WEAKENED (analytic, resting on the bias estimate).
- A12. Helper-data manipulation oracle (C5; leakage). The answers to 200 chosen changes of $h$ do not depend on the fingerprint (analysed in detail below; analytic).
- A13. Replay (C1 + C5; receiver). A frame resent after the reading has fallen to 0.4 times its value is accepted by the receiver of the original design, which has no counter, and rejected by the proposed design for its stale counter.
- A14. Bit-flipping in transit (C5; receiver). Payload bits inverted with probability 0.1 pass the receiver of the original design, which checks only the ID; the proposed design’s MAC detects them.
- A15. Keystream reuse through a replayed session nonce (C1 + C2 + C5; keystream, on the recovered reading). The session nonce travels in clear on the downlink; replaying it in 11 later sessions while forcing about 1.7 µA, the attacker takes the majority of $C$ as $\hat{K}$ and decrypts the recorded frame. The original design fails (keystream restarted in every frame, as in A6), and so would a proposal whose IV held only the session nonce and the counter, which restarts at each session; the chip nonce $N_\mathrm{c}$, hashed from 64 power-up reads, gives every session its own keystream (shared with probability about 2⁻³¹; Section VIII-F), so the proposed design is safe. The proposed design is also run without $N_\mathrm{c}$ to expose the flaw it closes.
Overall, the analysis above predicts that eleven of the 15 attacks succeed against the original design and, at the working setting t = 45, one (A11) against the proposed design.
The runs use the following settings:
- Level. Behavioural, bit-exact model (Section V) with the post-layout values of Table 12 at the nominal corner; Section VIII covers PVT.
- Frame. One frame per design; input the test sine of Section V-A unless the attack sets it.
- Design settings. The dither of [1]; S2D buffer gain 0.5; for the proposed design, $t = 45$, counter and MAC on, and the PUF read at the operating temperature of 37 °C after enrolment at 25 °C.
- Attacker settings: the values stated with each attack above.
- Seeds and repetitions. All streams derive from one fixed seed, so the verdicts of A4, A5, A6 and A15 are single samples; Subsection C and Section VIII vary the replica and single-frame saturation attacks, while A5, A15 and the multi-frame A6 are not repeated.
- Metric. The verdicts and the number of successful attacks per design.
| Attack | Property | Original S-DSM [1] | Proposed | Evidence (original / proposed) | What stops it |
|---|---|---|---|---|---|
| A1. Passive eavesdropping [1] | confidentiality | assumed / by design | encryption (both) | ||
| A2. Brute-force key search | confidentiality | simulated / by design | 128-bit PUF key | ||
| A3. Berlekamp-Massey keystream attack | confidentiality | simulated / simulated | Grain-128a's nonlinearity | ||
| A4. Zero / DC input with a replica chip [1] | confidentiality | simulated / analytic | Grain-128a; per-frame IV | ||
| A5. Same key, same message [1] | confidentiality | simulated / simulated | per-frame IV | ||
| A6. Forced-input saturation | confidentiality | simulated / analytic | per-frame IV | ||
| A7. Key extraction from memory | key secrecy | assumed / by design | no stored key (PUF); read-out disabled | ||
| A8. Spoofing: forged frames (MITM) [1] | authenticity | simulated / simulated | unrecoverable key + MAC | ||
| A9. Cloned / counterfeit sensor | authenticity | simulated / by design | unclonable PUF | ||
| A10. Helper-data tampering | availability | - / simulated | key = hash(w) + MAC | ||
| A11. Helper-data leakage | key secrecy | - / analytic | n·H∞,lo − 10t ≥ 192 | ||
| A12. Helper-data manipulation oracle | key secrecy | - / analytic | syndrome construction + hash | ||
| A13. Replay of a recorded frame | freshness | simulated / simulated | frame counter + MAC | ||
| A14. Bit-flipping in transit | integrity | simulated / simulated | MAC over the payload | ||
| A15. Keystream reuse: replayed session nonce | confidentiality | simulated / simulated | chip nonce Nc in the IV |
| A4, original: 80 random windows / full scan | 0 of 80 windows; full scan: seed confirmed at a replica trim of +0.03 % FS (441 candidate states) |
| A5, original: fraction of ones in C₁ ⊕ C₂, amplitude estimate | 0.4849; Â = 0.246 against A = 0.249 FS |
| A6, original: majority over frames | 21 frames, keystream estimate 98.4 % correct; seed confirmed |
| A15, original: reading recovered from replayed sessions | correlation 0.95 with the true reading (11 sessions) |
| A15, proposal with the chip nonce | correlation -0.03; 11 distinct chip nonces in 11 sessions |
| A15, proposal without the chip nonce | correlation 0.95: DATA BREACHED |
Key insights. Every simulated verdict of Table 21 agrees with its prediction; the others agree by construction.
- Against the original design, 11 of 15 attacks succeed. Six breach the data (A2, A3, A4 through the full scan at the trim given in the result panel, and, under the assumptions stated with them, A6, A7 and A15), A5 leaks the amplitude, and four place fake data on the server (A8, A9, A13, A14). Only A1 fails; A10 to A12 are not applicable. The failures have three architectural causes: a short, linear and stored key (A2, A3, A7); a keystream without nonce, so any repetition of message, forced input or session exposes it (A5, A6, A15); and frames without authentication or freshness (A8, A9, A13, A14). The analog defences against A4 to A6 fail once the attacker scans every window, trims the replica’s input and repeats frames. Six of these 11 failures (A7, A8, A9, A13, A14 and A15) need an attacker who holds the chip or transmits on the link, so they show which protections the proposed design adds, not failures against the attacker of [1], who breaks the original design only with A2 to A6.
- Against the proposed design, 1 of 15 attacks succeeds at the working setting t = 45: the helper-data leakage (A11, KEY WEAKENED), with 94 secret bits at the 95 % lower bound against the 192 required. Five are detected (A8, A9, A13, A14 by the receiver; A10 through a different key); the other nine are DATA SAFE. With the one-time enrolment at −40 and 85 °C of Section VIII-F, A11 is also DATA SAFE (analytic), so in the model the proposed design stops all 15, resisting ten and detecting the other five; for A10 to A12 this rests on the cell mask of that enrolment being hashed into the key, which the model does not implement (Section IV-B). Without the chip nonce, the proposed design falls to A15 (result panel below the table: correlation 0.95 with the true reading, against −0.03 with the chip nonce), as predicted.
- The proposed design’s verdicts rest on three kinds of evidence (column “Evidence”). Seven are simulated. Four are analytic: A4 and A6 (keystream estimate simulated, verdict from the per-frame IV), A11 (the secret-bit budget) and A12 (an identity of the syndrome construction). Four are by design: eavesdropping and brute force rest on the 128-bit key, extraction on the absence of a key in non-volatile memory and of a usable read-out path, and the clone on the unclonability of the fingerprint. The assumption on the 128-bit key also covers the published cryptanalysis of Grain-128a: its fast correlation attacks need $2^{113.8}$ [18] and $2^{106.3}$ [19] keystream bits, far beyond one frame, and the attack of [18] excludes the authenticated mode used here. The verdicts hold for the attacks as implemented, not as a proof of security; physical attacks (Section IV-A) are outside the threat model, and Subsection D measures how much each keystream generator exposes its key to power analysis.
Three attacks, block by block
The next two figures show where in the link three attacks succeed or are stopped: brute-force key search (Fig. 58), which tests the key, and spoofing and replay (Fig. 59), which test the receiver. Both designs are drawn side by side over the same 200 clocks; since the ciphertext rows look alike, as encrypted bits must, a line above each group states what happens in this frame.

Fig. 58. Brute-force key search (A2) on (a) the original S-DSM and (b) the proposed design, simulated in this run (the attack is run live on the bit-level model of Section V, not a stored image). Rows: bits C on the air; the attacker's keystream estimate K̂ (orange: wrong bits); the receiver's checks. Reading: server output (black) and the attacker's decryption (red, dashed). Line under each panel title: the verdict (orange: the attacker gains; blue: the design holds). Text above each group of rows: what happens there in this frame. Bit rows: modulator clocks 2,100 to 2,299; receiver checks: ✓ passes, × fails, grey: absent. Reading: output samples 60 to 179; grey: true reading.
The search recovers the key of the original design: in Fig. 58(a), $\hat{K}$ equals $K$ on 100 % of the bits, and the attacker’s decryption coincides with the true reading (DATA BREACHED). In (b), a random 128-bit guess gives a $\hat{K}$ wrong on 50 % of the bits, and the decryption is noise (DATA SAFE, by design). In both panels the receiver’s checks pass, because the attack is passive.

Fig. 59. Spoofing (A8) and replay (A13) on the original S-DSM, (a) and (c), and the proposed design, (b) and (d), simulated in this run (both attacks are run live on the bit-level model of Section V, not a stored image). Rows and colours as in Fig. 58, with the attacker's forged C or the C at the receiver (orange: bits changed) and the decrypted bits $D_\mathrm{rx}$ (orange: passed to the server; grey: discarded). Reading: server output carrying the attacker's data (orange) and the forged or replayed reading (red, dashed); text: frame rejected.
Spoofing. In Fig. 59(a) the receiver accepts the forged frame, and the server shows the attacker’s constant 0.3 µA reading in place of the true sine (FAKE DATA ACCEPTED): the original design has no MAC and no counter, and its only check, the chip ID, passes because the attacker encrypted the correct ID with the recovered key. In (b) the forged frame, encrypted and tagged with a guessed key, fails both the chip-ID and the MAC check; the receiver rejects it and the server shows nothing (ATTACK DETECTED).
Replay. In (c) the receiver accepts the old frame, and the server shows the earlier, larger reading although the true reading has fallen to 0.4 times its value (FAKE DATA ACCEPTED). In (d) the replayed frame’s chip ID and MAC are valid, since the chip itself produced them, but its counter is not larger than the last one accepted, so the counter check rejects it (ATTACK DETECTED).
Key insights. The 16-bit key falls to a search of the whole key space, and nothing at the receiver can detect this passive attack (Fig. 58). Spoofing and replay are stopped by different checks: a wrong key by the MAC, a stale frame by the counter. Two recorded animations follow: spoofing on the original design in the interactive explorer (Fig. 60), and spoofing, replay and bit-flipping on both designs (Fig. 61).

Fig. 60. Spoofing attack on the original S-DSM (animation recorded from the interactive explorer of Section XIII, not a result of this run). Top: sensor chip and its stored key; bottom left: receiver; red, bottom right: the attacker's forged frame on the channel.

Fig. 61. Frame attacks on the link, both designs (recorded animation of the model's verdicts): (a) spoofing after a brute-force key search, (b) replay of a recorded frame, (c) bit-flipping in transit. Top: original S-DSM; bottom: proposal; orange: the attacker's frames and accepted attacks; blue: rejected frames.
Interactive attack evaluation
The next cell shows any attack on both designs, with menus for the defences, every combination precomputed; switching off the proposed design’s counter and MAC also removes its per-frame IV, so A5, A13 and A14 then succeed. For example, choosing Attack: A13. Replay of a recorded frame and then Proposal: counter + MAC: off shows in Fig. 62 the replay of Fig. 59(d) passing the receiver, which isolates the defence that stops each attack. All 15 attacks are also drawn as one still figure (Fig. 63).

| Attack | Property | Original S-DSM [1] | Proposed | Evidence (original / proposed) | What stops it |
|---|---|---|---|---|---|
| A1. Passive eavesdropping [1] | confidentiality | assumed / by design | encryption (both) | ||
| A2. Brute-force key search | confidentiality | simulated / by design | 128-bit PUF key | ||
| A3. Berlekamp-Massey keystream attack | confidentiality | simulated / simulated | Grain-128a's nonlinearity | ||
| A4. Zero / DC input with a replica chip [1] | confidentiality | simulated / analytic | Grain-128a; per-frame IV | ||
| A5. Same key, same message [1] | confidentiality | simulated / simulated | per-frame IV | ||
| A6. Forced-input saturation | confidentiality | simulated / analytic | per-frame IV | ||
| A7. Key extraction from memory | key secrecy | assumed / by design | no stored key (PUF); read-out disabled | ||
| A8. Spoofing: forged frames (MITM) [1] | authenticity | simulated / simulated | unrecoverable key + MAC | ||
| A9. Cloned / counterfeit sensor | authenticity | simulated / by design | unclonable PUF | ||
| A10. Helper-data tampering | availability | - / simulated | key = hash(w) + MAC | ||
| A11. Helper-data leakage | key secrecy | - / analytic | n·H∞,lo − 10t ≥ 192 | ||
| A12. Helper-data manipulation oracle | key secrecy | - / analytic | syndrome construction + hash | ||
| A13. Replay of a recorded frame | freshness | simulated / simulated | frame counter + MAC | ||
| A14. Bit-flipping in transit | integrity | simulated / simulated | MAC over the payload | ||
| A15. Keystream reuse: replayed session nonce | confidentiality | simulated / simulated | chip nonce Nc in the IV |
Fig. 62. Interactive attack evaluation: any of the 15 attacks on both designs, drawn as in Fig. 58, with switches for the proposed design's counter and MAC, the dither and the S2D buffer gain, and the verdict table for the chosen settings below the figure, precomputed for every combination. Default view: the known-input replica attack (A4).
All 15 attacks at a glance
Fig. 63 shows every verdict of Table 21 in one still figure. Each attack runs once on each design with simulate(), with the settings of Table 21 and on the same frames as the verdict table.

| attacks in which the attacker gains something | original 11 of 15, proposal 1 of 15 |
| verdicts against the verdict table above | all 30 agree |
| frames simulated | 30, in 3 s |
Fig. 63. Server output under all 15 attacks, A1 to A15, on the original S-DSM (left) and the proposed design (right; t = 45, 25 °C enrolment), one row each (behavioural model, settings of Table 21): the reading panel of Fig. 58 under that attack; beside it the verdict (orange: the attacker gains; blue: the design holds; grey: not applicable) and the evidence it rests on (simulated, analytic, by design or assumed; italic). [1]: attack from [1] (A4, A5 evaluated there; A1, A8 named as threats, not evaluated).
Key insights. The original design falls to 11 of the 15 attacks and the proposed design, at t = 45, to one (Fig. 63). Under A2 to A4, A6, A7 and A15 the attacker’s reading lies on the true one, and under A8, A9, A13 and A14 the attacker’s frames reach the server. In the proposed design’s column A11 is orange (KEY WEAKENED, analytic) and the other 14 verdicts are blue (SAFE: A1 to A7, A12, A15; DETECTED: A8 to A10, A13, A14). The result panel confirms that the 30 verdicts agree with Table 21.
A closer analysis: the helper-data manipulation attack
In the helper-data manipulation attack (A12), the attacker modifies the helper data and observes whether the receiver accepts, trying to learn $w$ bit by bit. Such attacks have recovered keys from PUF key generators whose helper data is not a linear-code syndrome, such as pattern-matching [23] and ring-oscillator pairing schemes (Delvaux and Verbauwhede, DATE 2014). The analysis covers the syndrome, the helper data of the simulations’ 25 °C enrolment; the cell mask of the one-time enrolment at −40 and 85 °C is pointer-type helper data of the kind these attacks exploit, and must be hashed with $w$ into $k$ [24] (Section IV-B; not modelled).
With the syndrome construction [4], $h = Hw$, where $H$ is the parity-check matrix of the BCH code. At power-up the chip reads $w' = w \oplus \epsilon$, where $\epsilon$ marks the cells that flipped. The decoder receives the syndrome $Hw' \oplus h = H\epsilon$ and corrects $\epsilon$. If the attacker sends $h \oplus He$ instead, with an error pattern $e$ of the attacker’s choice, the decoder receives $H(\epsilon \oplus e)$, so whether decoding succeeds depends only on $\epsilon$ and $e$, never on $w$. When it succeeds, it returns $w \oplus e$, whose hash is a wrong key, so the frame is rejected. The analysis above therefore predicts that (1) no tampered power-up is accepted; (2) the decoder fails when $e$ and the noise together flip more than $t$ cells; and (3) a chip with a different fingerprint and the same noise gives the same answer to every query, so the answers carry no information about $w$.
The test reads the chip at 37 °C, $t = 45$, with $Q = 200$ queries, query $q$ adding the syndrome of a random pattern of weight $1 + (q \bmod 55)$, up to $t + 10 = 55$. Each query is a new power-up; a twin chip with a random fingerprint $w_2$ and its own helper data receives the same noise and added syndrome. The metrics are the accepted power-ups, the decoder failures and the agreeing answers; the verdict is DATA SAFE only if all 200 agree.
| tampered power-ups | 200 (chosen error patterns added to h) |
| receiver accepted / decoder failed | 0 / 57 |
| same answer from a chip with a different fingerprint | 200 of 200 |
| verdict | no information about the fingerprint leaks |
Key insights. Of 200 tampered power-ups, 0 are accepted (prediction 1) and 57 end in decoder failure (28.5 %), consistent with prediction (2), since the heavier patterns plus the noise exceed $t = 45$; the twin chip gives the same answers in 200 of 200 queries (prediction 3). The oracle thus measures only the noise and the attacker’s own pattern: by the linearity of the syndrome, the syndrome construction and the hashed key defeat this attack in the model without any additional circuit; the twin-chip comparison illustrates this identity rather than testing it, and assumes that which cells flip is independent of their enrolled values.
A learning attacker without the key
The attacks above search for the key or exploit a protocol step. A learning attacker asks a different question: can a generic model, trained only on recordings the attacker makes with its own chip and keys of its own choice, read the victim’s ciphertext without ever finding the victim’s key? The attacker knows the cipher (Kerckhoffs’ principle) but not the key. Against the S-DSM of [1], the cipher itself offers a lever: every keystream of its 16-bit LFSR satisfies the same recurrence, $k_{n+16} = k_n \oplus k_{n+2} \oplus k_{n+3} \oplus k_{n+5}$, whatever the key. The same sum of ciphertext bits, $z_n = c_n \oplus c_{n+2} \oplus c_{n+3} \oplus c_{n+5} \oplus c_{n+16}$, therefore cancels the keystream and leaves the same sum of modulator bits, whose statistics follow the input. Grain-128a, the keystream generator of the proposed design, is nonlinear and satisfies no short linear recurrence, so the identical sum of its ciphertext is expected to be indistinguishable from random bits.
The attacker computes $z$ for every recording and describes each window of 512 clocks (hop 64 clocks) by 17 features: the mean of $z$ and the means of the products $z_n z_{n+L}$ for the lags $L$ = 1 to 16 ($z$ taken as ±1). Two two-layer networks (17 inputs, 64 rectified-linear hidden units, Adam optimiser, NumPy only) learn from 29 recordings per design (25 constant inputs of 30,000 clocks from -1 to +1 of the test amplitude and 4 frames of a slowly wandering input), each encrypted with a new key the attacker chooses. The first network, a distinguisher, labels a window as ciphertext or as random bits; the second, a regressor, estimates the input level. Both are then applied to a victim frame, a 500 Hz sine at the test amplitude encrypted with the victim’s key, which the attacker never sees; the regressor’s outputs are averaged over 8 windows (1,024 clocks). As a control, both networks are trained again on the same features with the labels shuffled, so that no real relation between features and labels is left to learn.
| Design | Distinguisher, trained | random labels | Input estimate r, trained | random labels | Verdict |
|---|---|---|---|---|---|
| S-DSM [1] | 93.9 % (91.1–95.8) | 39.2 % (34.6–44.0) | 0.82 (0.77 to 0.86) | -0.05 (-0.18 to 0.09) | leak |
| proposed | 51.1 % (46.3–55.9) | 52.6 % (47.8–57.3) | 0.05 (-0.08 to 0.19) | -0.08 (-0.22 to 0.05) | safe |
| training data | 29 recordings of the attacker's own chip with keys of its choice (18,205 windows of 512 clocks per design) |
| S-DSM [1]: ciphertext against random bits | distinguished in 93.9 % of the victim's windows (random labels: 39.2 %) |
| S-DSM [1]: input estimate against the input | correlation 0.82 (random labels: -0.05) |
| proposed: ciphertext against random bits | distinguished in 51.1 % (random labels: 52.6 %) |
| proposed: input estimate against the input | correlation 0.05 (random labels: -0.08) |
| run time | 7.3 s |

Fig. 64. Learning attacker without the key: two-layer networks trained on the attacker's own recordings (behavioural model, keys chosen by the attacker; simulated in this run) and applied to a victim frame (500 Hz sine, victim's key unknown to the attacker). (a) Share of the victim's windows that the distinguisher classifies correctly (ciphertext against random bits) for each design; solid: trained; light: trained on shuffled labels; dashed: chance. (b), (c) Input estimate of the regressor (coloured, averaged over 1,024 clocks) and the input (grey), normalised to the test amplitude, against (b) the S-DSM of [1] and (c) the proposed design.
Key insights.
- Against the S-DSM of [1], a small network reads the input without the key: the victim’s ciphertext is told from random bits in 93.9 % of its windows (95 % interval 91.1-95.8 %), and the estimated input follows the sine with a correlation of 0.82 (0.77 to 0.86), the verdict leak in the terms of A15, while the same networks trained on shuffled labels fall to 39.2 % and -0.05, far below the trained networks. The lever is the linear keystream, not the 16-bit key length: every LFSR keystream satisfies a linear recurrence of its register length, so a longer key alone would not remove it.
- Against the proposed design, the same attacker learns nothing: 51.1 % of the windows are classified correctly (46.3-55.9 %, which contains the 50 % of a coin toss), and the estimate’s correlation with the input is 0.05, an interval (-0.08 to 0.19) that contains zero: verdict safe. Grain-128a’s nonlinear keystream leaves no linear relation for the attacker to cancel.
The verdicts do not depend on the victim signal. With the networks trained above, the explorer below applies the attacker to nine victim frames, a sine of 100 Hz, 500 Hz or 2 kHz at 25 %, 50 % or 100 % of the test amplitude (views precomputed with the code, data and seeds of the cell above): against the S-DSM of [1] the distinguisher classifies 79.1 to 98.2 % of the windows correctly at every frame, against the proposed design 49.2 to 51.4 %, chance. The panels are those of Fig. 64; the card gives for both designs the distinguisher’s accuracy and the correlation of the input estimate, each with its 95 % confidence interval, and the verdict with the thresholds of A15.

| victim frame | 500 Hz sine at 100 % of the test amplitude, encrypted with the victim's key |
| S-DSM [1]: ciphertext against random bits | distinguished in 93.7 % (91.0–95.7) of the windows (random labels: 42.2 %) |
| S-DSM [1]: input estimate against the input | correlation 0.81 (0.76 to 0.85) (random labels: 0.22); verdict leak |
| proposed: ciphertext against random bits | distinguished in 50.3 % (45.5–55.1) of the windows (random labels: 50.9 %) |
| proposed: input estimate against the input | correlation -0.00 (-0.14 to 0.13) (random labels: -0.04); verdict safe |
| networks | trained on the attacker's own recordings with the cell's code, data and seeds when these views were computed; only the victim frame changes, and a run's own numbers can differ slightly (floating-point summation order) |
B. PUF reliability: probability of key failure per power-up
The proposed design’s one new failure mode is a power-up at which the PUF does not regenerate the key, so the chip cannot communicate until the next power-up. With the cell model of Section V-D (mismatch $m_i$, noise-to-mismatch ratio $s(T)$), cell $i$ differs at temperature $T$ from the bit $w_i$ enrolled at 25 °C with probability
$$p_i(T) = \Phi\!\left(-\frac{m_i}{s(T)}\right) \text{ if } w_i = 1, \qquad p_i(T) = \Phi\!\left(\frac{m_i}{s(T)}\right) \text{ if } w_i = 0,$$
where Φ is the standard normal distribution function. The number of flipped cells $N$ is Poisson-binomial, and the key fails when more than $t$ cells flip:
$$P_{\text{fail}}(T) = P(N > t) = \sum_{k > t} P(N = k).$$
It is evaluated exactly. Only cells with $\lvert m_i\rvert$ comparable to $s(T)$ can flip; away from 25 °C, $s(T)$ grows and the tail beyond $t$ grows by many orders of magnitude. Secrecy sets the opposing constraint: the helper data leave at least $600\,H_\infty - 10t$ secret bits, against 192 required at the 95 % lower bound of $H_\infty$ (A11), so reliability and secrecy set opposite limits on $t$.
The model assumes independent cells and Gaussian, thermal-only noise, so the noise-to-mismatch ratio at 25 °C, $s_{25}$, likely underestimates silicon (Table 12); the PDK mismatch is not verified in silicon, and ageing is excluded (Sections VII-G and VIII-F estimate it). Temperature acts only through $s(T)$; the reproducible flips are not modelled (Sections VII-E and VIII-F size the code with the two-component model). Probabilities far below 10⁻¹⁰ describe the model’s Gaussian tail, not silicon, and are given to one significant figure.
The analysis above predicts that (1) $P_\mathrm{fail}$ is lowest at the enrolment temperature of 25 °C and increases on both sides; (2) with $t = 45$, the linear law keeps $P_\mathrm{fail}$ far below 10⁻⁶ over 0–85 °C, which is optimistic, because the law underestimates the simulated error rate at 85 °C (1.75 % against 3.14 %, Table 12); (3) the Monte Carlo histogram of $N$ follows the exact distribution; and (4) the secret-bit budget is that of Section VII-E, short of the 192 required. Fig. 65 tests predictions (1) and (2) in panel (a) and (3) in panel (b).
The computation uses the following settings:
- Level and model. Behavioural cell model fitted to the post-layout Monte Carlo of the extracted 6T cell (the values of Table 12), nominal corner, linear law.
- Chips. “This chip” (seed 7) and sixteen others (seeds 107 to 1,607), enrolled at 25 °C.
- Codes. $t = 45$ (Section VII-E) for every chip; this chip also with $t$ − 10 = 35 and $t$ + 10 = 55.
- Temperature. −40 to 85 °C in steps of 5 °C, the range over which the SRAM-PUF cell is simulated; the specified range is 0–85 °C.
- Monte Carlo check. 4,000 power-ups of this chip at the operating temperature of 37 °C, each compared bit by bit with the enrolled fingerprint (seed offset 909); the exact distribution of $N$ at 37 °C is computed for comparison. With no failure among $M$ power-ups, $P_\mathrm{fail} < 1 - 0.05^{1/M} \approx 3/M$ at 95 % confidence: the sample tests the body of the distribution, not its tail.
- Metrics. $P_\mathrm{fail}$ against 10⁻⁶; the mean and maximum flipped cells; the secret bits.
| P(key fails at one power-up), 37 °C | 1 × 10−39 (exact within the cell model; a figure this small states only that the model's Gaussian tail lies far below the target, not a property of silicon) |
| Monte Carlo power-ups | 0 of 4,000 failed: P(key fails) < 7.5 × 10−4 at 95 % confidence; the sample tests the body of the distribution, not its tail |
| temperatures below 10−6 | -40 to 85 °C |
| flipped cells per power-up, 37 °C | mean 11.23 (Monte Carlo), 11.24 (exact); largest seen 19 |
| 16 other chips, worst over 0–85 °C | 3 × 10−23 |
| secret bits left after publishing h: 95 % lower bound – point estimate | 94–137 (need ≥ 192, Section VII-E) |

Fig. 65. Key-failure probability and flipped cells with the linear temperature law. (a) P(key fails) against temperature (drawn at 10⁻²⁴ where lower): this chip with t = 35 (solid) and 45 (dashed); 16 other chips with t = 45 (band); 10⁻⁶ target (dotted). (b) Flipped cells per power-up at 37 °C: 4,000 Monte Carlo power-ups (bars), exact distribution (dots) and correction limit t (dashed).
Key insights.
- Operating temperature. At 37 °C this chip’s exact key-failure probability is 1 × 10⁻³⁹ per power-up within the cell model, far below the 10⁻⁶ target, within the validity of the model’s Gaussian tail; none of the 4,000 Monte Carlo power-ups failed, which bounds $P_\mathrm{fail}$ only below 7.5 × 10⁻⁴. The number of flipped cells per power-up (Fig. 65(b)) has a mean of 11.23 (Monte Carlo) against 11.24 (exact) and a maximum of 19, less than half of $t = 45$; the histogram follows the exact distribution, as predicted (3).
- Temperature range. $P_\mathrm{fail}$ is lowest at 25 °C and increases steeply on both sides (Fig. 65(a)), as predicted (1). With the linear law it remains below 10⁻⁶ at $t$ = 45 over the whole grid, −40 to 85 °C, as predicted (2); even the weaker code, $t = 35$, stays below the target from −40 to 85 °C, and the stronger code, $t = 55$, lies below the plotted range but would leave at most 37 secret bits at the point estimate. The margin is smallest at the ends of the temperature range, where the linear law is optimistic. With the two-component model, Section VII-E finds every modelled chip within the target at $t = 45$ at the point estimate, and Section VIII-F finds the corners tt and ss within it and sf, ff and fs far from it.
- Other chips. The worst key-failure probability of the 16 other chips over 0–85 °C, with the same law, is 3 × 10⁻²³; this chip lies above their band wherever both are plotted, so a code sized on it is conservative for them.
- Secrecy. At $t = 45$ the helper data leave 94–137 secret bits (lower bound to point estimate), as predicted (4): the binding limit is secrecy (Section VII-E). Subsection C maps both limits over temperature and $t$.
C. Parameter sweeps: security boundaries of both designs
Each of three experiments sweeps a grid of the two parameters that govern it:
-
Replica attack: dither amplitude $a_\mathrm{d}$ against replica offset $\delta$. As in A4, $\hat{K} = K \oplus (D \oplus D_\mathrm{r})$, and a 64-bit window succeeds when $D$ and $D_\mathrm{r}$ agree throughout it or disagree only within its first $L + 1 = 17$ bits (Section VIII).
- The offset $\delta$ (% FS) between the two chips’ inputs acts ahead of the quantiser and decorrelates the bit streams once large enough (Section VI).
- The dither multiplies the comparator input by $1 + d$ and adds $d$, where $d \in \{-a_\mathrm{d}, 0, +a_\mathrm{d}\}$ is set by a pair of LFSRs with the chip’s own seeds (Section V-C). A large $a_\mathrm{d}$ decorrelates the chips even at $\delta = 0$.
The analysis above predicts that the attack succeeds against the original design only where both $\delta$ and $a_\mathrm{d}$ are small, and nowhere against the proposed design: BM cannot extend Grain-128a, and the per-frame IV limits even an exact estimate to the forced frame.
-
Saturation attack: buffer gain $g$ against forced current $I$.
- The TIA output is $v = \mathrm{clip}(V_\mathrm{CM} + I R_\mathrm{TIA},\ 0,\ V_\mathrm{DD})$, and the modulator input, normalised to full scale, is $u = g\,(v - V_\mathrm{CM})/(V_\mathrm{DD}/2)$, with the common-mode voltage $V_\mathrm{CM}$, the TIA gain $R_\mathrm{TIA}$ and the supply voltage $V_\mathrm{DD}$ of Section V-A.
- For $I \ge V_\mathrm{CM} / R_\mathrm{TIA}$ ≈ 1.86 µA the TIA output is at the supply rail, and $u = g$.
- A 1-bit loop tracks only $\lvert u\rvert < 1$; for $u \ge 1$ its bits become constant, the attacker’s constant estimate of $D$ is correct, and BM recovers the LFSR.
The analysis above predicts that the attack succeeds against the original design for $I \gtrsim$ 1.86 µA and $g \gtrsim 1$; at the design value $g = 0.5$, $u$ does not exceed 0.5. It succeeds nowhere against the proposed design (experiment 1).
-
PUF key: temperature $T$ against code strength $t$. $P_\mathrm{fail}(T, t)$ follows from Subsection B. Rows with $600\,H_\infty - 10t < 192$, with $H_{\infty}$ at its 95 % lower bound (0.908 bit), that is $t \ge 36$, leave too few secret bits (A11). The design window is the set of grid points with $P_\mathrm{fail}$ < 10⁻⁶ and at least 192 secret bits. The analysis above predicts a V-shaped window around 25 °C, widening with $t$, capped by the secrecy limit below the current $t = 45$; the linear law makes it too wide at high temperature (Subsection B).
The sweeps use the level and settings of Subsection A; only the swept parameters change:
- Replica and saturation grids. 30,000 clocks of DC input per point (0.5 µA, or $I$).
- Replica grid: $a_\mathrm{d} \in$ {off, 0.01, 0.022, 0.05, 0.1, 0.2, 0.4}, where 0.022 is the dither of [1]; $\delta \in \{0, 0.001, 0.003, 0.01, 0.03, 0.1, 0.3, 1\}$ % FS, where 0.1 % FS is the replica of Subsection A. The victim and the replica have their own dither seeds and noise.
- Saturation grid: $g$ ∈ {0.25, 0.35, 0.5, 0.65, 0.8, 0.9, 1.0, 1.1, 1.2}; $I$ ∈ {0.5, 1, 2, 3, 5, 8, 12, 16, 20} µA. The attacker’s estimate of $D$ is the more frequent bit value.
- Decision rules. The attack succeeds against the original design when one of the 80 windows of A4 succeeds (the attacker of [1], criterion of Section VIII), and against the proposed design only if the estimate agrees with the Grain-128a keystream on more than 97 % of the bits while the counter and MAC are off; here they are on.
- Seeds and repetitions. One run per grid point, so a point near a boundary may change with the seed.
- PUF grid. This chip, $T$ from −40 to 80 °C in steps of 10 °C and at 85 °C, and $t$ from 10 to 58 in steps of 4, evaluated with the exact distribution of Subsection B.
- Metrics. The clean-window fraction $f_{64}$, the fraction of 64-bit windows in which victim and replica agree on every bit (clocks 200 to 30,000), for the replica attack, the longest run of equal bits for the saturation attack, $\log_{10} P_\mathrm{fail}$ for the PUF key, and each design’s verdict; the result panels give the successful grid points and, for the PUF grid, the largest $t$ with 192 secret bits and the window in the ring’s row.
| original S-DSM | 10 of 56 |
| proposed | 0 of 56 |
| at the ring (nearest grid point to the current settings) | original safe, proposed safe |
| clean 64-bit windows f64 at the ring | 0.000 % |
| grid points with f64 = 0 (no clean window in 30,000 clocks) | 42 of 56 |
| f64 at the breached points | 0.000 to 6.80 %; 1 of 10 breached points have f64 = 0 |
| f64 with an identical replica (δ = 0), ad = off, 0.01, 0.022, 0.05, 0.1, 0.2, 0.4 | 6.80, 5.99, 3.55, 2.06, 0.20, 0.00, 0.00 % |
| largest f64 at δ > 0 | 0.11 % |
Fig. 66. Replica attack sweep (30,000 clocks per grid point). Horizontal: dither amplitude $a_\mathrm{d}$; vertical: replica offset δ. (a) Fraction of replica bits that differ from the victim's. (b) Clean-window fraction $f_{64}$, logarithmic with 0 at the bottom; orange mark: 80-window protection level (Section VIII-B). (c), (d) Verdict on the original and the proposed designs; (d) by the decision rule (counter and MAC on). Hatched: attack succeeds; ring: current settings.
Against the original design (Fig. 66(c)), the attack succeeds at 10 of the 56 grid points: at four points with an identical replica ($\delta = 0$), without dither and with $a_\mathrm{d} = 0.01$, 0.022 and 0.1; at $\delta$ = 0.01 % FS without dither and with $a_\mathrm{d} = 0.05$; at $\delta$ = 0.03 % FS without dither and with $a_\mathrm{d} = 0.01$ and 0.022; and at $\delta$ = 0.1 % FS with $a_\mathrm{d} = 0.1$. No point in the $\delta = 0.001$ and 0.003 % FS rows is breached. At the working settings ($a_\mathrm{d} = 0.022$, $\delta$ = 0.1 % FS) the attacker of [1] does not break it (one seed). The proposed design (Fig. 66(d)) is DATA SAFE at all 56 points by the decision rule, not by a separate simulation.
For $\delta$ ≥ 0.01 % FS the replica bits differ on close to half of the clocks (Fig. 66(a)); only the bottom rows agree substantially more, unless the dither is strong. The attack, however, uses the clean windows of Fig. 66(b). With an identical replica ($\delta = 0$), $f_{64}$ is 6.80, 5.99, 3.55, 2.06 and 0.20 % for $a_\mathrm{d}$ = off, 0.01, 0.022, 0.05 and 0.1, and 0.00 % for stronger dither. At every $\delta > 0$ it is at most 0.11 %, below the 0.13 % at which Section VIII-B expects the 80-window attacker to break fewer than 10 % of the pairs, and 42 of the 56 points have no clean window at all. Yet 6 of the 10 breached points lie at $\delta > 0$, one with $f_{64}$ = 0 (result panel): the bound is a lower bound (errors in the first 16 bits are tolerated), and a single pair per point can succeed by chance where the theory, an average over pairs, predicts protection.
Prediction (1) holds only in part: every successful point has $a_\mathrm{d} \le 0.1$, but the successes extend to $\delta$ = 0.1 % FS, the offset assumed for the replica. With one seed per point, these isolated successes mark offsets at which the protection is not reliable rather than a sharp boundary. The $\delta$ = 0 row agrees with Section VIII-B. The margin is one grid step: with the dither of [1] the attack succeeds at $\delta$ = 0.03 % FS, the step below the assumed 0.1 % FS (0.001 to 0.01 % FS are safe).
| original S-DSM | 21 of 81 |
| proposed | 0 of 81 |
| at the ring (nearest grid point to the current settings) | original safe, proposed safe |
Fig. 67. Saturation attack sweep. Horizontal: S2D buffer gain g; vertical: forced current I. (a) log₁₀(1 + longest run of equal bits in 30,000 clocks); dashed: predicted boundary (g = 1, I = $V_\mathrm{CM}/R_\mathrm{TIA}$). (b), (c) Verdict on the original and the proposed designs; (c) by the decision rule (counter and MAC on). Hatched: attack succeeds; ring: current settings (g = 0.5; I = 10 µA, drawn at 8 µA).
Against the original design (Fig. 67(b)), the attack succeeds at 21 of the 81 grid points: at every point with $g \ge 1.0$ and $I$ ≥ 2 µA. The boundary lies between 1 and 2 µA and between $g = 0.9$ and 1.0, as prediction (2) places it. The longest run of equal bits (Fig. 67(a)) is over 10⁴ of the 30,000 clocks in the successful region and below a hundred at $g = 0.9$. The proposed design (Fig. 67(c)) is DATA SAFE at all 81 points by the decision rule: a saturated frame exposes only its own keystream. Only the buffer gain protects the original design against this attack, and its design value of ×0.5 keeps it a factor of two in gain below the boundary, at any forced current.
| largest t on the grid that leaves ≥ 192 secret bits (95 % lower bound of the min-entropy) | 34 |
| grid temperatures in the window at t = 46 (the ring's row) | none |
Fig. 68. PUF key sweep (this chip, linear temperature law). Colour: log₁₀ of the key-failure probability per power-up (clipped at −20) against temperature and BCH strength t; hatched: fewer than 192 secret bits at the 95 % lower bound; thick outline: design window; ring: grid point nearest to the current t and 37 °C.
The largest $t$ on the grid that leaves at least 192 secret bits at the lower bound is 34; the hatched rows are $t \ge 38$, as predicted (3). The design window (Fig. 68) is V-shaped, as predicted: narrowest at small $t$ (20 and 30 °C columns); in its top row, $t = 34$, the window spans the whole grid from −40 to 85 °C with the linear law, which is optimistic at 85 °C. The working setting $t$ = 45 lies between the grid rows $t = 42$ and $t = 46$, both beyond the secrecy limit, so the ring ($t = 46$, 40 °C) falls in a hatched row.
Key insights.
- Original design: analog margins. Against the attacker of [1], the original design is protected only by the replica offset, a property of the attacker’s own replica, and the buffer gain, a signal-path choice. The gain margin is wide (a factor of two), the offset margin is not, and an attacker who trims the replica’s offset finds the key (Subsection A).
- Proposal: no analog margin required. DATA SAFE at all 137 replica and saturation grid points; none of its verdicts depends on these parameters.
- Proposal: the PUF window, its one added constraint, is met with a wide margin at the operating temperature. With the two-component model, the reliability limit over 0–85 °C lies above the secrecy limit (Section VII-E): for 600 cells enrolled at 25 °C the window closes, and the enrolment at −40 and 85 °C of Section VIII-F reopens it ($t$ = 17 against a limit of 26 on 600 kept cells); Section XI compiles it as specification D.
D. Side-channel exposure: a leakage test on the register-level power model
The dynamic power of a CMOS register follows the number of flip-flops that toggle at each clock, so the Hamming distance between consecutive states is the first-order power model of a register-dominated block. A non-specific leakage test compares, clock by clock, traces with one fixed key against traces with random keys by Welch’s $t$ statistic; $|t|$ above 4.5 marks a key-dependent difference that an attacker could exploit (the threshold of the test vector leakage assessment, TVLA, used to validate side-channel resistance). A control comparing two groups of random keys must stay below it. The analysis above predicts that the LFSR of [1], which restarts from its 16-bit key in every frame without a nonce, leaks at almost every clock; Grain-128a holds the key in its NFSR during the 256 initialisation clocks of every frame and mixes it there with the random IV, so it should leak during the initialisation and not after it.
The test is behavioural, at register level, and live. It uses 2,000 traces per group, each the number of state bits that toggle per clock (256 for Grain-128a, its LFSR and NFSR; 16 for the LFSR of [1]) over 512 clocks, with Gaussian noise of 4 toggles rms for the measurement; Grain-128a runs in authentication mode with a random 96-bit IV per trace, as in every frame of the proposed design, and the fixed and random keys are drawn with a seed. The vectorised Grain-128a reproduces the model’s pre-output bit for bit. Combinational logic, the MAC registers, glitches and the layout are not modelled, and neither design is masked or hidden. Fig. 69 shades the 256 initialisation clocks of Grain-128a, so that a leak can be attributed to the initialisation or to the keystream phase.
| Grain-128a (proposal), fixed key vs random keys | max |t| = 14.1 during the initialisation (clocks 0–125 above 4.5); 2.6 in the 256 keystream clocks after it |
| LFSR of [1], fixed key vs random keys | max |t| = 43.7; 387 of 512 clocks above 4.5 |
| negative controls, random vs random keys | max |t| = 3.0 (Grain-128a), 3.3 (LFSR), both below 4.5 |
| traces and model | 2,000 per group; toggles of the state register per clock, noise 4 toggles rms; the vectorised Grain-128a equals the model bit for bit |
| run time | 0 s |

Fig. 69. Fixed-versus-random leakage test on the register-level power model. (a) Grain-128a of the proposal, authentication mode, random IV per trace; (b) the 16-bit LFSR of [1]. Absolute value of Welch's $t$ against the clock cycle, 2,000 traces per group, toggle count of the state register with 4 toggles rms of noise; orange: one fixed key against random keys; grey: two groups of random keys (control); dashed: $|t|$ = 4.5; shaded: the 256 initialisation clocks of Grain-128a. Live.
Key insights. Grain-128a exceeds the threshold only during its initialisation (Fig. 69(a)), between clocks 0 and 125, while the NFSR still holds bits of the key, with $\lvert t\rvert$ up to 14.1; it stays at or below 2.6 in the 256 keystream clocks after it. The LFSR of [1] exceeds it at 387 of its 512 clocks, with $\lvert t\rvert$ up to 43.7 (Fig. 69(b)); at the other clocks the fixed key happens to toggle as many bits as random keys do on average. Both controls stay below the threshold (at most 3.0 and 3.3), so the test reports no leakage where none exists. Both predictions hold, the LFSR leaking at three quarters of its clocks.
Neither design resists power analysis as built, and the exclusion of side channels from the threat model is a substantive limitation. The two differ in where the key is exposed: in [1], at every clock of every frame, and an attacker can average many frames of the same sequence; in the proposed design, only while the key is mixed with the IV at the start of each frame, where masking or a protected key load would have to act. The model is first order: a chip adds combinational and glitch leakage, so the test shows where the key is exposed, not a security level.
The proposed design’s security rests on no analog margin of the signal path, but on the PUF key generator, Grain-128a, the MAC and the counter. Its case against the S-DSM of [1], which spends 24 µW on security, is complete only with the price of these blocks: Section X determines what they cost in SKY130.
X. Implementation cost on SKY130
Section IX established what the proposed design’s added blocks buy. This section quantifies what they cost in SKY130 standard-cell area and gate-level power, and how many bits they must send, compared with the S-DSM of [1] and with the conventional alternative, an on-chip Trivium. The comparison is decisive, because [1] argues for the S-DSM on efficiency: its security adds 24 µW, an on-chip Trivium 220 µW (Fig. 4(a) of [1]). The proposed design replaces the 16-bit keystream LFSR by Grain-128a with its message authentication code (MAC), a frame counter, a session nonce and a 128-bit key register, so its cost must rest on a design checked against published test vectors, laid out and simulated at gate level in SKY130, not on a gate-count estimate.
Subsection A writes every security block in synthesisable Verilog, in two forms, so that all areas and powers come from one flow and library; B checks every design against published test vectors at RTL and gate level and measures its area; C carries the proposed design’s block through place and route towards a signed-off layout, and an unlettered subsection after it assembles the whole security subsystem (keystream block, key unit, SRAM-PUF array and comparator) in one layout checked against the foundry rules; D computes the gate-level power of all blocks under identical conditions; E ranks them with a figure of merit that scales no number between processes and counts the bits each design sends at an oversampling ratio (OSR) of 50; F and G set the chip’s power breakdown beside [1]; and H repeats the leakage test of Section IX-D on the placed netlists.
A. The designs and their RTL
Four designs are written as five Verilog top-level modules, all clocked at the modulator clock of [1], 10 MHz, and loading their key and initialisation vector (IV) in parallel in one clock:
- S-DSM [1]: three 16-bit linear-feedback shift registers (LFSRs) with the polynomial $x^{16} + x^{14} + x^{13} + x^{11} + 1$, bit-exact with the model of Section V: one generates the keystream, XORed with the modulator bit, and two the dither. A zero seed is replaced by 1 to avoid the all-zero lock-up state.
- Trivium, radix 1: the 288-bit state of the specification, loaded with the 80-bit key and the 80-bit IV, followed by 4 × 288 = 1,152 initialisation clocks without output, then one keystream bit per clock; the conventional reference of [1].
- Grain-128a [6], built on one core: a 128-bit nonlinear feedback shift register (NFSR) and a 128-bit LFSR, with the output function $h$ and the feedback functions $f$ and $g$ of the specification. A parameter W sets the pre-output bits per clock; for W = 2 the core evaluates two consecutive steps in one clock, possible because every tap of the second step lies in the current state. Two forms are synthesised:
- encryption only (W = 1): 256 initialisation clocks, then one keystream bit per clock, for reference;
- authentication mode (“Grain-128a + MAC, 2×”): W = 2: each modulator clock yields one keystream bit (the even pre-output bit) and one MAC bit (the odd bit). The MAC is a 32-bit accumulator and a 32-bit shift register, preloaded with the first 64 pre-output bits in 32 clocks after the 128 initialisation clocks; for each message bit equal to 1 the shift register is added to the accumulator, which holds the 32-bit tag after the padding bit. A frame starts 1 + 128 + 32 = 161 clocks after the load.
- The complete keystream block of the proposed design: Grain-128a + MAC 2×; the 128-bit key register, shifted in serially from the fuzzy extractor once per power-up (128 clocks); the 32-bit session nonce, shifted in once per session (32 clocks), which also presets the 32-bit frame counter so that the first frame of a session uses counter 0; the 31-bit chip nonce $N_\mathrm{c}$, shifted in once per session (31 clocks) from the hash of 64 raw power-up reads; the counter, incremented at the start of every frame; the IV, formed as 1 ‖ nonce ‖ counter ‖ $N_\mathrm{c}$ as in the model; and the two dither LFSRs.
Written for one bit per clock, every design clocks all its flip-flops at 10 MHz, and the power of a standard-cell block is mostly that of its clocked flip-flops (Subsection D). Each design is therefore also written in a bit-exact low-power form with the same ports, every design receiving the same two techniques:
- Parallel state update (radix 16). The cipher computes 16 keystream bits per state update, once every 16 clocks; an output multiplexer delivers one bit per clock. The S-DSM’s LFSRs advance 16 steps per update; Trivium computes 16 bits per update (72 initialisation clocks instead of 1,152); Grain-128a computes 32 pre-output bits, 16 keystream and 16 MAC bits, per update, so that a frame starts 11 clocks after the load instead of 161. The MAC buffers the 16 message bits of each update and adds them in one cycle, its logic held still in the other 15 (operand isolation).
- Clock gating. Each register receives a clock edge only when it is written, through an integrated clock-gating cell: the state registers once every 16 clocks, and in the proposed design the key, the two nonces and the counter only when loaded or incremented.
The gated netlist is re-simulated after layout (Subsection C), and a loaded value is masked with the load signal, so that a gate-level simulation from undefined flip-flops loads exactly as a fabricated circuit would.
Four parts of the proposed design are not in these blocks. Three run once at power-up: the SRAM-PUF array, the BCH decoder and the hash, which Section XI generates or synthesises and adds to the complete area (XI-E). The fourth is the per-frame MAC alignment: lock-step hardware would need a 32-bit delay line, estimated at about 170 gate equivalents (GE, defined in Subsection B), not included in the area.
B. Verification and synthesis
The area is quoted in µm² and in gate equivalents, GE = $A / A_{\text{NAND2}}$, where $A$ is the synthesised cell area and $A_{\text{NAND2}}$ = 3.7536 µm² the area of the library’s two-input NAND. The flip-flop toggle rate (FF toggles/clk) is the average number of flip-flop outputs that change per clock while the block encrypts, the basis of a first estimate of dynamic power; Subsection D tests whether that estimate suffices.
Every design must reproduce the published test vectors bit for bit at both levels; the checks, the synthesis and the toggle count use these settings:
- Levels and synthesis. Every test runs on the RTL and on the synthesised gate netlist, its cells read with their logic functions from the Liberty file (zero-delay functional simulation). Yosys maps each design onto the
sky130_fd_sc_hdlibrary at tt, 25 °C, 1.8 V, excluding the power-isolation cells as the OpenLane flows do; a hierarchical synthesis gives the area of each module (Fig. 74(a)). - Simulator. Each design is written as an and-inverter graph and simulated bit-parallel, one test job per bit lane of a 64-bit word. Every flip-flop starts from a random value, independent in each lane, so a passing check also shows independence from the power-up state.
- Test vectors (54 checks per level for the five designs written for one bit per clock, 35 for the three low-power forms; 89 per level, 178 in all): the S-DSM (4: the encrypted bit and both dither streams against the reference LFSRs, 256 bits each, two seed sets); Trivium (20: four eSTREAM vectors, byte ranges and the 512-byte XOR digest, and the ready signal exactly 1,152 clocks after the load); Grain-128a (8: the 320 pre-output bits of TV1–TV4 of [6], ready 256 clocks after the load); Grain-128a + MAC 2× (11: TV3 and TV4 of [6] with messages m0–m4, starting 161 clocks after the load, keystream, MAC stream, tag and tag held after the padding, and a random key and IV with a 400-bit message against the Python reference); the proposed design (11: session A, key, nonce and chip nonce 0, five frames whose IV equals that of TV3, so that keystream and tags are checked against TV3 itself, and session B, random key and non-zero chip nonces, four frames with a new nonce and chip nonce in the fourth; each frame checks the start time, counter, keystream and tag, and both dither streams are checked over the whole run); and the low-power forms on their own timing (S-DSM 4; Trivium 20, ready 72 clocks after the load; the proposed design 11, each frame starting 11 clocks after the load). The Python reference models of Grain-128a (Table 3 and Appendix A of [6]) and Trivium (four eSTREAM vectors) are self-tested on 10 checks against the published values.
- Toggle rate. Counted on the RTL simulation over a steady-state window after initialisation: a random key and IV (seed 2027) and a 400-bit random message for Grain-128a + MAC and the proposed design, 2,000 clocks of an eSTREAM vector for Trivium, the keystream of TV2 for Grain-128a, and the first seed set with random modulator bits for the S-DSM; the low-power forms are counted on their enabled-flip-flop form, so that an unwritten register does not toggle.
- Metrics: checks passed; area (µm², GE), flip-flops, cells, keystream and MAC bits per clock, initialisation clocks and FF toggles per clock.
| RTL and gate-level checks | 178/178 pass (94 s) |
| Python reference self-test | 10/10 |
| S-DSM: 3 x LFSR16 + XOR | verified |
| Trivium, radix 1 | verified |
| Grain-128a, encryption only, 1 bit/clk | verified |
| Grain-128a + MAC, 2x (1 keystream + 1 MAC bit/clk) | verified |
| Proposal: Grain-128a+MAC 2x + ctr + nonce + chip nonce + key reg + 2 dither LFSR16 | verified |
| S-DSM, low power: 3 x LFSR16 at 16 steps per update | verified |
| Trivium, low power: 16 bits per update | verified |
| Proposal, low power: Grain-128a+MAC radix 16, gated key/nonce/ctr registers, 2 dither LFSR16 | verified |
| Design | Area (µm²) | GE | Flip-flops | Cells | Keystream + MAC bits/clk | Init clocks | FF toggles/clk | Verified |
|---|---|---|---|---|---|---|---|---|
| S-DSM: 3 x LFSR16 + XOR | 1,690.4 | 450 | 48 | 127 | 1 + 0 | 1 | 22.94 | pass |
| Trivium, radix 1 | 8,918.6 | 2,376 | 300 | 638 | 1 + 0 | 1153 | 144.28 | pass |
| Grain-128a, encryption only, 1 bit/clk | 8,559.5 | 2,280 | 265 | 597 | 1 + 0 | 257 | 130.79 | pass |
| Grain-128a + MAC, 2x (1 keystream + 1 MAC bit/clk) | 11,516.0 | 3,068 | 331 | 848 | 1 + 1 | 161 | 156.23 | pass |
| Proposal: Grain-128a+MAC 2x + ctr + nonce + chip nonce + key reg + 2 dither LFSR16 | 19,667.6 | 5,240 | 586 | 1309 | 1 + 1 | 161 | 165.54 | pass |
| S-DSM, low power: 3 x LFSR16 at 16 steps per update | 3,261.9 | 869 | 52 | 354 | 1 + 0 | 1 | 3.28 | pass |
| Trivium, low power: 16 bits per update | 11,003.1 | 2,931 | 300 | 1035 | 1 + 0 | 73 | 11.02 | pass |
| Proposal, low power: Grain-128a+MAC radix 16, gated key/nonce/ctr registers, 2 dither LFSR16 | 37,044.3 | 9,869 | 606 | 4324 | 1 + 1 | 11 | 15.41 | pass |
The Grain-128a RTL (core, MAC and the authenticated 2×-per-clock wrapper):
Show the Verilog
// Grain-128a (Agren, Hell, Johansson, Meier 2011). Index i of b / s is b_(t+i) / s_(t+i);
// [0:N] ranges put index 0 in the MSB, so hex literals follow the paper (k_0 = MSB).
// Pre-output generator: NFSR b, LFSR s, W = 1 or 2 pre-output bits per clock (y[0] = y_t,
// y[1] = y_(t+1)). load copies key / IV in parallel (s_96..s_126 = 1, s_127 = 0); while init is
// high the pre-output is fed back into both registers.
module grain_core #(parameter W = 1) (
input clk,
input load,
input init,
input [0:127] key,
input [0:95] iv,
output [0:W-1] y
);
reg [0:127] b, s;
// One step at the current offset: {y, s_t+128 (LFSR f), b_t+128 (NFSR g + s_t)}.
function [0:2] step(input [0:127] bb, input [0:127] ss);
reg h;
begin
h = (bb[12] & ss[8]) ^ (ss[13] & ss[20]) ^ (bb[95] & ss[42]) ^ (ss[60] & ss[79])
^ (bb[12] & bb[95] & ss[94]);
step[0] = h ^ ss[93] ^ bb[2] ^ bb[15] ^ bb[36] ^ bb[45] ^ bb[64] ^ bb[73] ^ bb[89];
step[1] = ss[0] ^ ss[7] ^ ss[38] ^ ss[70] ^ ss[81] ^ ss[96];
step[2] = ss[0] ^ bb[0] ^ bb[26] ^ bb[56] ^ bb[91] ^ bb[96]
^ (bb[3] & bb[67]) ^ (bb[11] & bb[13]) ^ (bb[17] & bb[18]) ^ (bb[27] & bb[59])
^ (bb[40] & bb[48]) ^ (bb[61] & bb[65]) ^ (bb[68] & bb[84])
^ (bb[88] & bb[92] & bb[93] & bb[95])
^ (bb[22] & bb[24] & bb[25]) ^ (bb[70] & bb[78] & bb[82]);
end
endfunction
wire [0:2] r0 = step(b, s); // step t
wire [0:2] r1 = step(b << 1, s << 1); // step t+1 (taps <= 97, all in the current state)
wire fs0 = r0[1] ^ (init & r0[0]), fb0 = r0[2] ^ (init & r0[0]);
wire fs1 = r1[1] ^ (init & r1[0]), fb1 = r1[2] ^ (init & r1[0]);
generate
if (W == 1) assign y = r0[0];
else assign y = {r0[0], r1[0]};
endgenerate
always @(posedge clk)
if (load) begin
b <= key;
s <= {iv, {31{1'b1}}, 1'b0};
end else if (W == 1) begin
b <= {b[1:127], fb0};
s <= {s[1:127], fs0};
end else begin
b <= {b[2:127], fb0, fb1};
s <= {s[2:127], fs0, fs1};
end
endmodule
// MAC (Section 2.4): accumulator A and shift register R. pre: A||R shifts in the pair
// (ya, yb) for 32 clocks, so A = y_0..y_31 and R = y_32..y_63. Afterwards R shifts in the
// macstream bit yb every clock and acc applies A ^= R (message bit m_i = 1, or the padding bit).
module grain_mac (
input clk,
input pre,
input ya, yb,
input acc,
output [0:31] tag // A, t_0 in the MSB
);
reg [0:31] A, R;
assign tag = A;
always @(posedge clk)
if (pre) begin
A <= {A[2:31], R[0:1]};
R <= {R[2:31], ya, yb};
end else begin
if (acc) A <= A ^ R;
R <= {R[1:31], yb};
end
endmodule
// (c1) Grain-128a, encryption only, 1 bit per clock: z = y_i (IV_0 = 0). 256 init clocks.
module grain128a_enc1x (
input clk,
input load,
input [0:127] key,
input [0:95] iv,
output z,
output ready
);
reg [7:0] cnt;
reg busy;
grain_core #(.W(1)) u_core (.clk(clk), .load(load), .init(busy), .key(key), .iv(iv), .y(z));
assign ready = ~busy;
always @(posedge clk)
if (load) begin cnt <= 8'd0; busy <= 1'b1; end
else if (busy) begin
cnt <= cnt + 8'd1;
if (cnt == 8'd255) busy <= 1'b0;
end
endmodule
// (c2) Grain-128a, authentication mode, 2 pre-output bits per clock = one keystream bit
// z_i = y_(64+2i) and one macstream bit a = y_(65+2i) per modulator clock.
// After load: 128 init clocks (256 pre-output bits), 32 MAC preload clocks, then RUN:
// m is message bit m_i at keystream index i; pad (in RUN) adds the padding bit m_L = 1,
// after which tag_ok is high and tag holds the 32-bit tag.
module grain128a_auth2x (
input clk,
input load,
input [0:127] key,
input [0:95] iv, // IV_0 must be 1 (authentication mode)
input m,
input pad,
output z,
output a,
output run,
output tag_ok,
output [0:31] tag
);
localparam INIT = 2'd0, PRE = 2'd1, RUN = 2'd2, DONE = 2'd3;
reg [1:0] ph;
reg [6:0] cnt;
wire [0:1] y;
grain_core #(.W(2)) u_core (.clk(clk), .load(load), .init(ph == INIT), .key(key), .iv(iv), .y(y));
grain_mac u_mac (.clk(clk), .pre(ph == PRE), .ya(y[0]), .yb(y[1]),
.acc((ph == RUN) & (m | pad)), .tag(tag));
assign z = y[0];
assign a = y[1];
assign run = (ph == RUN);
assign tag_ok = (ph == DONE);
always @(posedge clk)
if (load) begin ph <= INIT; cnt <= 7'd0; end
else case (ph)
INIT: begin cnt <= cnt + 7'd1; if (cnt == 7'd127) ph <= PRE; end // cnt wraps to 0
PRE: begin cnt <= cnt + 7'd1; if (cnt == 7'd31) ph <= RUN; end
RUN: if (pad) ph <= DONE;
default: ;
endcase
endmodule
The low-power RTL (radix 16, clock-gated; bit-exact with the designs above):
Show the Verilog
// Low-power (radix-K, clock-gated) versions of the three designs, bit-exact with the 1-bit-per-clock RTL above.
// Every register that does not change in a cycle receives no clock edge in it: with `define ICG_CELLS (implementation)
// its clock passes through an integrated clock-gating cell (sky130_fd_sc_hd__dlclkp_1); without it (verification with the
// single-clock AIGER simulator) the same register is written as an enable flip-flop. The state of each cipher advances K
// keystream bits per update, once every K clocks, and an output multiplexer delivers one bit per 10 MHz clock.
module icg (input clk, input en, output gclk);
`ifdef ICG_CELLS
sky130_fd_sc_hd__dlclkp_1 u (.CLK(clk), .GATE(en), .GCLK(gclk));
`else
assign gclk = clk; // verification build: the enable is applied at the register
`endif
endmodule
// 16-bit LFSR of lfsr16.v, K steps per update: its next K outputs are s[0..K-1] (right-shifting register).
module lfsr16_lp #(parameter K = 16) (input clk, input load, input en, input [15:0] seed, input [3:0] c, output out);
reg [15:0] s, t; integer i;
always @* begin t = s; for (i = 0; i < K; i = i + 1) t = {t[0] ^ t[2] ^ t[3] ^ t[5], t[15:1]}; end
reg o; integer j; // out = s[c], written with constant indices
always @* begin o = 1'b0; for (j = 0; j < 16; j = j + 1) if (c == j) o = s[j]; end
assign out = o;
// next state = (t AND NOT load) OR (seed AND load), the masked term kept as a net: during the load the old (possibly
// still undefined) state reaches the register only through an AND with 0, so a gate-level simulation starting from
// undefined flip-flops loads exactly as the silicon does
(* keep *) wire [15:0] tm = t & {16{~load}};
wire [15:0] nx = tm | ({16{load}} & ((seed == 16'd0) ? 16'd1 : seed));
`ifdef ICG_CELLS
wire g; icg u_g (.clk(clk), .en(load | en), .gclk(g));
always @(posedge g) s <= nx;
`else
always @(posedge clk) if (load | en) s <= nx;
`endif
endmodule
// (a') S-DSM of [1], low-power: the three LFSR16s advance 16 steps once every 16 clocks.
module sdsm_lp (input clk, input load, input [15:0] key16, seed1, seed2, input d, output c, output dith1, dith2);
reg [3:0] cc; wire tick = (cc == 4'd15);
always @(posedge clk) if (load) cc <= 4'd0; else cc <= cc + 4'd1;
wire k;
lfsr16_lp #(16) u_key (.clk(clk), .load(load), .en(tick), .seed(key16), .c(cc), .out(k));
lfsr16_lp #(16) u_d1 (.clk(clk), .load(load), .en(tick), .seed(seed1), .c(cc), .out(dith1));
lfsr16_lp #(16) u_d2 (.clk(clk), .load(load), .en(tick), .seed(seed2), .c(cc), .out(dith2));
assign c = d ^ k;
endmodule
// (b') Trivium, low-power: 16 keystream bits per state update (Trivium allows up to 64), init at 16 steps per clock.
module trivium_lp (input clk, input load, input [1:80] key, input [1:80] iv, output z, output ready);
reg [1:288] s, t; reg [0:15] zz; reg t1, t2, t3; integer i;
always @* begin
t = s;
for (i = 0; i < 16; i = i + 1) begin
t1 = t[66] ^ t[93]; t2 = t[162] ^ t[177]; t3 = t[243] ^ t[288];
zz[i] = t1 ^ t2 ^ t3;
t1 = t1 ^ (t[91] & t[92]) ^ t[171]; t2 = t2 ^ (t[175] & t[176]) ^ t[264]; t3 = t3 ^ (t[286] & t[287]) ^ t[69];
t = {t3, t[1:92], t1, t[94:176], t2, t[178:287]};
end
end
reg [6:0] cnt; reg busy; reg [3:0] cc; wire tick = (cc == 4'd15);
reg zo; integer j;
always @* begin zo = 1'b0; for (j = 0; j < 16; j = j + 1) if (cc == j) zo = zz[j]; end
assign ready = ~busy; assign z = zo;
always @(posedge clk)
if (load) begin cnt <= 7'd0; busy <= 1'b1; cc <= 4'd0; end
else if (busy) begin cnt <= cnt + 7'd1; if (cnt == 7'd71) busy <= 1'b0; end // 72 x 16 = 1152 init steps
else cc <= cc + 4'd1;
(* keep *) wire [1:288] tm = t & {288{~load}}; // load masking as in lfsr16_lp
wire [1:288] nx = tm | ({288{load}} & {key, 13'd0, iv, 4'd0, 108'd0, 3'b111});
`ifdef ICG_CELLS
wire g; icg u_g (.clk(clk), .en(load | busy | tick), .gclk(g));
always @(posedge g) s <= nx;
`else
always @(posedge clk) if (load | busy | tick) s <= nx;
`endif
endmodule
// Grain-128a core, W pre-output bits per update (W <= 32: every tap of the W steps lies in the current state).
module grain_core_lp #(parameter W = 32) (input clk, input load, input en, input init, input [0:127] key, input [0:95] iv,
output [0:W-1] y);
reg [0:127] b, s;
function [0:2] step(input [0:127] bb, input [0:127] ss);
reg h;
begin
h = (bb[12] & ss[8]) ^ (ss[13] & ss[20]) ^ (bb[95] & ss[42]) ^ (ss[60] & ss[79]) ^ (bb[12] & bb[95] & ss[94]);
step[0] = h ^ ss[93] ^ bb[2] ^ bb[15] ^ bb[36] ^ bb[45] ^ bb[64] ^ bb[73] ^ bb[89];
step[1] = ss[0] ^ ss[7] ^ ss[38] ^ ss[70] ^ ss[81] ^ ss[96];
step[2] = ss[0] ^ bb[0] ^ bb[26] ^ bb[56] ^ bb[91] ^ bb[96]
^ (bb[3] & bb[67]) ^ (bb[11] & bb[13]) ^ (bb[17] & bb[18]) ^ (bb[27] & bb[59])
^ (bb[40] & bb[48]) ^ (bb[61] & bb[65]) ^ (bb[68] & bb[84])
^ (bb[88] & bb[92] & bb[93] & bb[95]) ^ (bb[22] & bb[24] & bb[25]) ^ (bb[70] & bb[78] & bb[82]);
end
endfunction
wire [0:W-1] fs, fb; genvar k;
generate for (k = 0; k < W; k = k + 1) begin : st
wire [0:2] r = step(b << k, s << k);
assign y[k] = r[0]; assign fs[k] = r[1] ^ (init & r[0]); assign fb[k] = r[2] ^ (init & r[0]);
end endgenerate
(* keep *) wire [0:127] bm = {b[W:127], fb} & {128{~load}}, sm = {s[W:127], fs} & {128{~load}}; // load masking
wire [0:127] bn = bm | ({128{load}} & key), sn = sm | ({128{load}} & {iv, {31{1'b1}}, 1'b0});
`ifdef ICG_CELLS
wire g; icg u_g (.clk(clk), .en(load | en), .gclk(g));
always @(posedge g) begin b <= bn; s <= sn; end
`else
always @(posedge clk) if (load | en) begin b <= bn; s <= sn; end
`endif
endmodule
// (c2') Grain-128a + MAC, low-power: 32 pre-output bits = 16 keystream + 16 macstream bits per update, once every 16
// clocks; same ports and behaviour as grain128a_auth2x except the latencies (RUN 11 clocks after load instead of 161).
module grain128a_lp (input clk, input load, input [0:127] key, input [0:95] iv, input m, input pad,
output z, output a, output run, output tag_ok, output [0:31] tag);
localparam INIT = 2'd0, PRE = 2'd1, RUN = 2'd2, DONE = 2'd3;
reg [1:0] ph; reg [3:0] cnt, cc;
wire tick = (cc == 4'd15);
wire [0:31] y;
grain_core_lp #(32) u_core (.clk(clk), .load(load), .en((ph == INIT) | (ph == PRE) | (((ph == RUN) | (ph == DONE)) & tick)),
.init(ph == INIT), .key(key), .iv(iv), .y(y));
reg [0:31] A, R; reg [0:15] mb;
assign tag = A; assign run = (ph == RUN); assign tag_ok = (ph == DONE);
reg zo, ao; integer j;
always @* begin zo = 1'b0; ao = 1'b0; for (j = 0; j < 16; j = j + 1) if (cc == j) begin zo = y[2 * j]; ao = y[2 * j + 1]; end end
assign z = zo; assign a = ao;
// MAC update for the 16 message bits of the block: bit i (i < cc from the buffer, i = cc the current m | pad); operand
// isolation keeps the XOR network still except in the update cycle (tick, or pad for the last, partial block)
integer i; reg [0:31] An, Rn; reg mi; wire upd = (ph == RUN) & (tick | pad);
always @* begin
An = A; Rn = R;
for (i = 0; i < 16; i = i + 1) begin
mi = upd & ((i < cc) ? mb[i] : (i == cc) ? (m | pad) : 1'b0);
if (mi) An = An ^ Rn;
Rn = {Rn[1:31], y[2 * i + 1]};
end
end
wire mac_en = ~load & ((ph == PRE) | upd);
`ifdef ICG_CELLS
wire gm; icg u_gm (.clk(clk), .en(mac_en), .gclk(gm));
always @(posedge gm) if (ph == PRE) {A, R} <= {A[0:31], R[0:31]} << 32 | {32'd0, y}; else begin A <= An; R <= Rn; end
`else
always @(posedge clk) if (mac_en) begin if (ph == PRE) {A, R} <= {A[0:31], R[0:31]} << 32 | {32'd0, y}; else begin A <= An; R <= Rn; end end
`endif
integer q;
always @(posedge clk) for (q = 0; q < 15; q = q + 1) if ((ph == RUN) & (cc == q)) mb[q] <= m; // mb[15] unused
always @(posedge clk)
if (load) begin ph <= INIT; cnt <= 4'd0; cc <= 4'd0; end
else case (ph)
INIT: begin cnt <= cnt + 4'd1; if (cnt == 4'd7) begin ph <= PRE; cnt <= 4'd0; end end // 8 x 32 = 256 init steps
PRE: begin cnt <= cnt + 4'd1; if (cnt == 4'd1) ph <= RUN; end // 2 x 32 = 64 preload bits
RUN: begin cc <= cc + 4'd1; if (pad) ph <= DONE; end // the keystream continues after the tag
DONE: cc <= cc + 4'd1;
endcase
endmodule
// (c3') Proposal keystream block, low-power: same ports and behaviour as secure_ks_top (latency aside); the key, nonce,
// chip-nonce and counter registers are clocked only when written.
module secure_ks_lp (
input clk, input key_sh, key_in, nonce_sh, nonce_in, cn_sh, cn_in, start, m, pad, dith_load,
input [15:0] seed1, seed2, output z, run, tag_ok, output [0:31] tag, output [31:0] ctr, output dith1, dith2);
reg [0:127] key_r; reg [0:31] nonce_r; reg [0:30] cn_r; reg [31:0] ctr_r;
wire [31:0] ctr_n = ctr_r + 32'd1;
assign ctr = ctr_r;
`ifdef ICG_CELLS
wire gk; icg u_gk (.clk(clk), .en(key_sh), .gclk(gk)); wire gn; icg u_gn (.clk(clk), .en(nonce_sh), .gclk(gn)); wire gc; icg u_gc (.clk(clk), .en(cn_sh), .gclk(gc)); wire gt; icg u_gt (.clk(clk), .en(nonce_sh | start), .gclk(gt));
always @(posedge gk) key_r <= {key_r[1:127], key_in};
always @(posedge gn) nonce_r <= {nonce_r[1:31], nonce_in};
always @(posedge gc) cn_r <= {cn_r[1:30], cn_in};
always @(posedge gt) ctr_r <= nonce_sh ? 32'hFFFF_FFFF : ctr_n;
`else
always @(posedge clk) begin
if (key_sh) key_r <= {key_r[1:127], key_in};
if (nonce_sh) nonce_r <= {nonce_r[1:31], nonce_in};
if (cn_sh) cn_r <= {cn_r[1:30], cn_in};
if (nonce_sh) ctr_r <= 32'hFFFF_FFFF; else if (start) ctr_r <= ctr_n;
end
`endif
grain128a_lp u_grain (.clk(clk), .load(start), .key(key_r), .iv({1'b1, nonce_r, ctr_n, cn_r}), .m(m), .pad(pad),
.z(z), .a(), .run(run), .tag_ok(tag_ok), .tag(tag));
reg [3:0] dc; wire dt = (dc == 4'd15);
always @(posedge clk) if (dith_load) dc <= 4'd0; else dc <= dc + 4'd1;
lfsr16_lp #(16) u_d1 (.clk(clk), .load(dith_load), .en(dt), .seed(seed1), .c(dc), .out(dith1));
lfsr16_lp #(16) u_d2 (.clk(clk), .load(dith_load), .en(dt), .seed(seed2), .c(dc), .out(dith2));
endmodule
Key insights.
- All 178 RTL and gate-level checks pass, and the Python reference models pass their self-test (10/10): every design reproduces the published test vectors as written and as synthesised. Bits per clock and initialisation clocks are those of Subsection A (1,153 and 73 for Trivium including the load clock).
- As written for one bit per clock (Table 23, in row order), the S-DSM occupies 450 GE (1,690.4 µm², 48 flip-flops, 127 cells); Trivium 2,376 GE (300 flip-flops); Grain-128a for encryption only 2,280 GE (265); Grain-128a + MAC 2×, 3,068 GE (331); and the proposed design’s complete block 5,240 GE (19,667.6 µm², 586 flip-flops, 1,309 cells), about 2.2× the area of Trivium and 12× that of the S-DSM. Authentication adds 788 GE to encryption-only Grain-128a, and the counter, nonce, key and dither registers with their control a further 2,172 GE.
- The low-power forms trade area for activity. With the clock-gating cells, the S-DSM occupies 869 GE (52 flip-flops), Trivium 2,931 GE (300) and the proposed design 9,869 GE (37,044.3 µm², 606 flip-flops, 4,324 cells). The parallel update repeats the feedback logic 16 times, so the proposed design and the S-DSM grow by 1.9× and Trivium by 1.23× (the low-power proposal is 11× the S-DSM and 3.4× Trivium); the 20 flip-flops the low-power proposal adds buffer the 16 message bits of each update for the MAC and count the output bit. While encrypting, 22.94, 144.28, 130.79, 156.23 and 165.54 flip-flops toggle per clock in the five designs written for one bit per clock, and 3.28, 11.02 and 15.41 in the three low-power forms: the toggles per clock fall by 10.7× for the proposed design, 13× for Trivium and 7× for the S-DSM. Whether area or activity sets the power is decided at gate level, after layout (Subsections C and D).
C. Place and route and sign-off of the low-power block of the proposed design
Five sign-off checks decide whether a digital layout is ready for fabrication: the design-rule check (DRC: every shape obeys the foundry’s geometric rules) and the antenna check (no long wire connected only to a gate, which collects charge during plasma etching and can damage the oxide; repaired by diodes), both with zero violations; layout versus schematic (LVS: the extracted transistors and connections form the simulated netlist); the setup slack (clock period $T_{\text{clk}}$ less the slowest path’s arrival and the setup time), positive at the slow corner (slow transistors, low supply, high temperature, maximum wire RC); and the hold slack (fastest arrival less the hold time), positive at the fast corner (the opposite extremes). Before routing, the wire RC is estimated from the placement or the global routes; after routing it is extracted, coupling included. With $T_{\text{clk}}$ = 100 ns and paths of a few tens of SKY130 gates, which settle within a few nanoseconds even at the slow corner, the analysis above predicts a setup slack close to the full period at every corner, a small hold slack, repaired by the flow and smallest at the fast corner, a power slightly above the estimate once the wires are extracted, and an unchanged function after routing.
All steps are at gate level, on the clock-gated netlist of the low-power block, with the clock tree built and timed through the gating cells. Steps 1–3, 7 and 8 run live. Detailed routing takes about 7 minutes on two cores (9 minutes for the whole flow), so steps 4–6 and the power with extracted wires are shown from the recorded run of the same flow unless ROUTE_BLOCK = True; steps 7 and 8 then use the placed netlist and the wire RC estimated on the placement. Placement, routing and power use tt, 25 °C, 1.8 V; timing is checked at three corners (step 6). The flow has eight steps:
- Netlist preparation (Yosys): tie cells for constants, split multi-bit nets and buffers for assignments, the form OpenROAD reads.
- Floorplan and power grid (OpenROAD): a square core at 25 % target utilisation with a 6 µm margin, pins on met3 (horizontal) and met2 (vertical), tap cells every 13 µm and end caps, met1 rails along the rows and 1.6 µm met4 stripes at a 40 µm pitch.
- Placement and clock tree: global placement at a target density of 0.35, electrical repair, detailed placement, clock-tree synthesis and hold repair with the propagated clock at the typical corner, aiming at a hold slack of 0.30 ns as a margin for the fast corner and the extracted wires (a 0.15 ns target left −0.004 ns at the fast corner); every input port gets a buffer at its pin, so that the long wire from the pin drives one buffer rather than gates spread over the core.
- Routing: global routing on met2–met5 (met1 left to the cells and the power rails; 30 congestion iterations), antenna repair with diode cells (three iterations on the global routes; a net counts as violating above 20 % of the allowed antenna ratio), filler cells, and detailed routing (TritonRoute) with its routing-DRC report and the antenna check. This OpenROAD version repairs antennas only on the global routes, and the detailed routes of some nets end longer; of four recorded settings (met1–met5 at an 80 % margin, 28 violations; met2–met5, 24; with input buffering, 16; with a 95 % margin and ten repair iterations, 18, with 564 diodes) the one with 16 is used. Input and output delays are 5 % of the 100 ns period.
- GDS, DRC and LVS. KLayout merges the routed Design Exchange Format (DEF) file with the standard-cell layouts into a GDS. The router can leave small met3 and met4 islands where two vias meet without a wire (about 0.585 µm × 0.33 µm against the 0.24 µm² minimum area of rule met3.6); each is extended along its layer’s preferred direction to the minimum area, keeping the 0.3 µm minimum spacing to all other shapes. Magic checks the GDS against the full SKY130 rule deck; for LVS, Magic extracts it hierarchically (fill and tap cells flattened) and netgen compares it with OpenROAD’s routed netlist, expanded into transistors by the library’s SPICE netlists: each cell type transistor by transistor, the block cell by cell and net by net.
- Extraction and timing at three corners. OpenRCX extracts the resistance, ground and coupling capacitance of every routed net with the PDK’s minimum, nominal and maximum rule sets, and OpenSTA checks setup and hold with the propagated clock at slow (ss, 100 °C, 1.6 V, maximum RC), typical (tt, 25 °C, 1.8 V, nominal) and fast (ff, −40 °C, 1.95 V, minimum).
- Re-simulation of the routed netlist (Icarus Verilog, the PDK’s functional cell models: no delay except 1 ns clock-to-output for flip-flops and latches) on test job B of the proposed design, whose four frames’ keystream, tag and counter and the dither streams must be correct, and a value-change dump (VCD) of every net over the steady-state window of the second frame (a 400-bit message).
- Power (OpenSTA within OpenROAD, tt) from that VCD, the library’s internal and leakage power tables and the wire capacitance extracted in step 6 (nominal rule set), and, for comparison with Subsection D, with the wire capacitance estimated on the placement as there (per-layer RC of met2 for signals and met3 for the clock); reported per group (flip-flops, clock tree, logic) and per component (internal, switching, leakage).
Fig. 70 shows the placed core, a detail and the power of step 8; the viewer of Fig. 71 shows the same block with each layer on or off.
| synthesis (clock-gating cells included) | 9,869 GE, 606 flip-flops |
| placement (this session) | die 399 × 399 µm, 43,865 µm² of cells at 30 % utilisation, 22,620 instances, clock tree through the gating cells |
| gate-level simulation of the placed netlist (Icarus, this session) | 5/5 checks pass: keystream, tag and counter of each of four frames, and the dither streams |
| power from that simulation's activity (OpenSTA, tt, this session) | 64.3 µW with the wire RC estimated on the placement (77,336 pin activities) |
| routing (TritonRoute, met2–met5) (recorded) | 0 DRC violations, 16 antenna violations (30 diodes; repair at a 80 % margin, 3 iterations, input ports buffered) |
| DRC of the GDS (Magic, full SKY130 deck) (recorded) | 0 violations |
| LVS (Magic extraction of the GDS, netgen) (recorded) | match |
| setup slack at 10 MHz (ss, 100 °C, 1.6 V; max RC) (recorded) | +85.5 ns |
| hold slack (ff, −40 °C, 1.95 V; min RC) (recorded) | +0.12 ns |
| power with the extracted wires (OpenRCX, tt) (recorded) | 73.4 µW |
| source of the sign-off | recorded run of the same flow, 9 min on two cores; ROUTE_BLOCK = True re-runs it |
| run time | 13 s |

Fig. 70. SKY130 layout of the proposed design's low-power keystream block (tt, 25 °C, 1.8 V). (a) Placed block, signal routing hidden (KLayout rendering of the GDS of this session, PDK layer colours): standard-cell rows (red: poly; cyan: n-well) and vertical met4 power stripes. (b) 15 µm × 15 µm detail at the centre. (c) Power per group from the activity of the gate-level simulation: internal, switching (hatched), leakage; wires estimated on the placement, or extracted with ROUTE_BLOCK.
Key insights.
- Placed live, the low-power block occupies a die of 399 µm × 399 µm with 43,865 µm² of standard cells at 30 % utilisation, in 22,620 instances; the excess over the 37,044 µm² of synthesis is the tap, end-cap, input, repair, clock and hold buffers the flow adds. In the placement (Fig. 70(a), detail in (b)), logic cells form the dense region of the rows and fill cells the rest of the core. The placed netlist passes all 5 gate-level checks (four frames and the dither streams), and its activity gives 64.3 µW with the wire RC estimated on the placement. In Fig. 70(c), the flip-flops draw 26 µW, the clock tree 20 µW and the combinational logic 18 µW; internal power dominates the flip-flops and the clock tree, and the logic, which evaluates 16 steps per update, draws about as much as the clock tree.
- The low-power block can be laid out and, in the recorded routed run, meets timing at three corners with extracted wiring, DRC and LVS clean and functionally unchanged: 0 routing DRC and 0 Magic DRC violations, LVS match. With the extracted wires, the setup slack is +85.5 ns at the slow corner, with no negative slack on any path, and the hold slack +0.12 ns at the fast corner, the smallest of the three; the routed netlist passes the same 5 checks and draws 73.4 µW. As predicted, the slowest path uses less than a sixth of the period even at the slow corner, the hold slack is small but positive at every corner, and the extracted wires raise the power by 14 % over the estimate.
- It is not antenna clean: 16 antenna violations remain after the insertion of 30 diodes. A block for fabrication must close them (cause in step 4 of the flow) with a diode or a jumper to a higher layer placed after detailed routing; this repair remains open.
- Three limitations: the corners are three library corners at one supply each, without on-chip variation or IR drop; the re-simulation uses unit delays, which the timing analysis complements; and the block is checked on its own, not inside a chip with pads.

Fig. 71. Interactive layout viewer of the keystream block of Fig. 70, with the controls of Fig. 37: menus for the layer set, the labels and the zoom, precomputed from the placed block. Default view: the whole block, signal routing off as in Fig. 70(a).
The security subsystem as one layout
Subsection C signed off the keystream block alone, and Section XI lays out the key unit alone; neither shows that the blocks the proposed design adds fit together in one layout that passes the foundry rules. This subsection assembles them. What is laid out is the security subsystem: the digital security core, the SRAM-PUF array and the comparator; the analog delta-sigma front-end is modelled, not yet drawn. The front-end (the TIA, the single-ended-to-differential buffer, the two loop-filter integrators and the feedback DAC) exists only as the behavioural model of Section V. Without a schematic or netlist it cannot be placed, routed or checked, so its area is kept as an empty, labelled region. The same holds for the read periphery of the PUF array (word-line drivers, precharge and read-out, power switch), which Section XI-E lists as not costed.
The layout is hierarchical: every block is verified once, alone, and the top level adds only its own wiring.
- Digital macros. The low-power keystream block (
secure_ks_lp, the clock-gated netlist of Subsection C) and the key-reconstruction unit of specification D (keygen_rec, Section XI) are each placed and routed with the flow of Subsection C and the settings of their own recorded runs, except that their signals use met1-met4 only, leaving met5 free for the top level’s power straps across the macros. Each is checked with Magic’s full DRC deck, LVS against its routed netlist, and timing at ss, tt and ff on the extracted wires; the keystream block also repeats the gate-level simulation of its test job. The repair steps may not insert the library’s probe cells, whose layout holds a met5 pad and a metal resistor that the cell’s netlist lacks. - SRAM-PUF array. The 6T cell of Section VII-D, unchanged, is tiled on a 2.6 µm × 6.12 µm pitch in 17 rows and 55 columns, 935 cells: the physical cells of the key generator of Section VIII-F, of which the enrolment mask keeps 600. Each row has a met1 word line under both pass-gate pads of its cells, a met1 supply rail and a shared met1 ground rail, each column a pair of met2 bit lines; an n-well bridge joins the cells’ wells. Its reference netlist is generated (935 instances of the cell’s subcircuit), and the array is checked with Magic DRC and netgen LVS. Section XII’s co-simulation powers up 640 cells of the same extracted cell, a subset of this array.
- Comparator. The StrongARM core of Section VII-B, unchanged, with its pins brought out on metal: the inputs on the edge that faces the reserved front-end, the clock and the outputs on the opposite edge. Its output stage (two inverters and a NOR latch, as in the schematic) and the XOR of the modulator bit with the keystream bit are standard cells of the top level.
- Top level. OpenROAD places the four macros at fixed positions, keeps cells, wires and power straps out of the reserved regions, places the glue cells and the pins, builds the power grid (met1 rails, met4 straps between the macros, met5 straps over the whole die, connected to the macros’ met4 supply pins) and routes the top-level nets on met1-met4. The merged GDS, with every macro’s real layout inside, is checked with Magic DRC. The top-level LVS compares an extraction in which each macro is a black box with its pins against the netlist OpenROAD wrote; the macros’ internals are verified in their own LVS.
Fig. 72 draws the floorplan to scale and Fig. 73 the merged layout. The analysis above predicts a layout in which every block passes DRC and LVS alone, the top level adds no violation, and the key unit, whose decoder holds its 600-bit word in flip-flops (Section XI-E), is the largest block. No wrapper is drawn: a pad ring needs the SKY130 I/O cell library, which the notebook’s PDK installation does not include.
CHIP_LIVE = True repeats it)| keystream block (secure_ks_lp, X-C), hard macro | 399 × 399 µm, 22,711 instances; DRC 0, LVS match (4,642 devices, 4,625 nets); routing DRC 0, antenna violations 12 |
| key unit (keygen_rec, r1_n600_t17, Section XI), hard macro | 548 × 548 µm, 38,633 instances; DRC 0, LVS match (5,441 devices, 5,447 nets); routing DRC 0, antenna violations 10 |
| timing of the two digital macros at 10 MHz (extracted wires) | keystream block: setup slack +85.9 ns at ss, hold slack +0.122 ns (worst of ss, tt, ff); key unit: setup slack +81.1 ns at ss, hold slack +0.227 ns (worst of ss, tt, ff) |
| gate-level simulation of the routed keystream block (test job of X-C) | 5/5 checks pass |
| SRAM-PUF array (6T cell of Section VII-D) | 17 × 55 = 935 cells (Section VIII-F sizes 935), 154.6 × 106.7 µm; DRC 0, LVS match (935 devices, 1,999 nets) |
| StrongARM comparator core (Section VII-B) | 14 × 44 µm; DRC 0, LVS match (1 device, 7 nets) |
| top level (OpenROAD), merged GDS | 1066 × 971 µm; routing DRC 0, antenna violations 0; Magic DRC of the merged GDS 0; structural LVS match (11 devices, 262 nets) |
| reserved, not drawn | analog front-end: TIA, S2D buffer, two loop-filter integrators, feedback DAC (behavioural); PUF read periphery: word-line drivers (not drawn); PUF read periphery: precharge and read-out of the bit lines, power switch (not drawn) |
| run time | 0 s |
| block | area (mm²) | share of the die |
|---|---|---|
| keystream block (hard macro) | 0.1588 | 15.3 % |
| key unit (hard macro) | 0.3003 | 29.0 % |
| SRAM-PUF array | 0.0165 | 1.6 % |
| comparator | 0.0006 | 0.1 % |
| analog front-end (reserved) | 0.1500 | 14.5 % |
| PUF read periphery (reserved) | 0.0106 | 1.0 % |
| die (with channels and margins) | 1.035 | 100 % |
34 top-level ports: clk, dsm_d, dsm_c, ks_cn_in, ks_cn_sh, ks_ctr, ks_dith1, ks_dith2, ks_dith_load, ks_key_in, ks_key_sh, ks_m, ks_nonce_in, ks_nonce_sh, ks_pad, ks_run, ks_seed1, ks_seed2, ks_start, ks_tag, ks_tag_ok, ks_z, kg_cin, kg_cin_valid, kg_cmask, kg_done, kg_dout, kg_dout_valid, kg_hin, kg_hin_valid, kg_ok, kg_rin, kg_rst, kg_start

Fig. 72. Floorplan of the security subsystem in SKY130, to scale (recorded run; CHIP_LIVE repeats it). Blue: the four macros, each verified alone (keystream block and key unit: standard cells placed and routed; SRAM-PUF array and comparator: drawn); red, dashed and hatched: the reserved regions, empty, for the analog front-end (behavioural: TIA, S2D buffer, both loop-filter integrators, feedback DAC) and the PUF array's read periphery; white: channels and margins with the top-level wiring and the glue cells; black: the die outline.

Fig. 73. Merged layout of the security subsystem in SKY130 (KLayout rendering of the recorded run's GDS, PDK layer colours; layers shown: diffusion, met2 to met5, outlines). Left: key unit; top right: keystream block; below it: SRAM-PUF array; bottom left: the reserved analog front-end and, on its top edge, the comparator; horizontal and vertical straps: the met5 and met4 supply grid.
Key insights.
- Every block and the top level pass the foundry rules as the tools check them: Magic’s full SKY130 deck finds 0 violations in each of the four macros and in the merged GDS of 1066 × 971 µm with every macro’s layout inside; netgen matches each macro uniquely against its own reference (keystream block 4,642 devices, key unit 5,441, array 935 cell instances and 1,999 nets, comparator core) and the top level against the netlist OpenROAD wrote; the top-level wiring has 0 routing and 0 antenna violations.
- Two checks are not clean, and the result keeps them as the tools give them: the router leaves 12 antenna violations in the keystream block and 10 in the key unit (the block of Subsection C, routed on met2-met5, left 16). Both macros meet timing at 10 MHz with a wide margin (setup slack +85.9 ns and +81.1 ns at ss, hold slack at least +0.122 ns), and the routed keystream block passes all 5 checks of its test job.
- The prediction held (Fig. 72, Fig. 73): the key unit is the largest block, 0.3003 mm² or 29.0 % of the 1.035 mm² die, against 0.1588 mm² for the keystream block; the array of 935 cells takes 0.0165 mm² although its cell follows logic rules, the comparator 0.0006 mm². The reserved analog front-end, an allocation of 0.1500 mm² and not a design, is 14.5 % of the die.
- What the layout is, and what it is not: the security subsystem and the PUF array are laid out and verified, ready for an open shuttle once a wrapper is drawn; the analog delta-sigma front-end is modelled, not drawn, and the PUF read periphery is reserved. No pad ring or shuttle harness is drawn yet, for want of the SKY130 I/O cells.
D. Gate-level power of every design
The power of a CMOS block at clock frequency $f$ and supply $V_{DD}$ has three parts,
$$P = P_{\text{int}} + P_{\text{sw}} + P_{\text{leak}},\qquad P_{\text{sw}} = \tfrac{1}{2}\sum_i \alpha_i\, C_i\, V_{DD}^2\, f ,$$
where $P_{\text{sw}}$ is the switching power of the nets, $\alpha_i$ is the number of transitions of net $i$ per clock and $C_i$ its load capacitance (pins and wire); $P_{\text{int}}$ is the power inside the cells at their transitions (internal nodes and short-circuit current), from the library’s power tables; and $P_{\text{leak}}$ the static leakage. A flip-flop costs power even when its output does not change: its clock pin switches twice every cycle, and so does the clock tree that drives it; in a stream cipher every state bit also shifts every cycle. Power is therefore set by the number of flip-flops times the rate at which they are clocked, $P \approx N_{\text{FF}}\,E_{\text{FF}}\,f_{\text{clk,FF}} + P_{\text{tree}} + P_{\text{logic}}$, with $N_{\text{FF}}$ the number of flip-flops, $E_{\text{FF}}$ the energy per clocked flip-flop and cycle, $f_{\text{clk,FF}}$ the rate at which they are clocked, and $P_{\text{tree}}$ and $P_{\text{logic}}$ the power of the clock tree and of the combinational logic.
The low-power form of Subsection A lowers $f_{\text{clk,FF}}$ without changing the function. Its parallel update of K = 16 bits (Trivium allows up to 64 [5], Grain-128a up to 32 pre-output bits [6]) clocks the state at 10 MHz / 16 = 625 kHz, with K-fold logic that switches K times less often; clock gating removes the clock from the key, the two nonces and the counter, which change once per power-up, session or frame.
The prediction is that the state power falls by about K = 16, but what must still run at 10 MHz remains: the clock trunk up to the gating cells, the output-bit counter and, for the proposed design, the capture of one message bit per clock for the MAC. The remaining ratio between two designs is then set by their state and this interface: 16 flip-flops of LFSR state against 256 of Grain-128a state and 64 of MAC state.
The power of every design is computed under identical conditions:
- Level: gate level, with the PDK’s cell models and power tables, at tt, 25 °C, 1.8 V and 10 MHz.
- Designs: the S-DSM, Trivium and the proposed design’s block in both forms (verified in Subsection B); Grain-128a + MAC as written, for the information-equivalent baseline of Subsection E.
- Layout and wires, the same for every entry: steps 1–4 of the flow of Subsection C (placement and clock tree) without detailed routing, wire capacitance estimated on the placement; for the low-power proposal, the placement of its routed run, with its extracted-wire power beside it.
- Activity: each placed netlist is simulated with Icarus Verilog (the functional cell models of Subsection C) on the test job of Subsection B that contains its toggle window, whose checks must pass; OpenSTA reads the activity of every net over that window.
- Metrics: power and clock-tree share in both forms, reductions, ratios, and the values measured in [1].
| Design | Flip-flops | 1 bit/clock: power (µW) | of which clock | Low power: power (µW) | of which clock | Reduction | Measured in [1] (65 nm) |
|---|---|---|---|---|---|---|---|
| S-DSM [1] | 48 | 43 | 32 % | 18.1 | 48 % | 2.4× | 24 µW |
| Trivium (conventional, [1]) | 300 | 223 | 30 % | 32.3 | 35 % | 6.9× | 220 µW |
| Proposal, full block | 586 | 415 | 32 % | 64.3 | 32 % | 6.5× | – |
| Proposal ÷ S-DSM | 9.7× | 3.6× | |||||
| Proposal ÷ Trivium | 1.9× | 2.0× |
| Part of the low-power proposal | Flip-flops | Power (µW) | Share |
|---|---|---|---|
| clock tree (buffers and gating cells) | – | 20.5 | 32 % |
| Grain-128a state (NFSR + LFSR) | 257 | 14.2 | 22 % |
| MAC (accumulator, shift register) | 64 | 11.6 | 18 % |
| MAC message capture (10 MHz) | 15 | 7.4 | 12 % |
| cipher control and counters | 9 | 4.8 | 8 % |
| dither bit counter | 4 | 2.6 | 4 % |
| dither LFSRs | 32 | 1.2 | 2 % |
| output multiplexers | – | 1.1 | 2 % |
| other | 2 | 0.8 | 1 % |
| key, nonce and counter registers (gated) | 223 | 0.0 | 0 % |
| total | 606 | 64.3 | 100 % |
Key insights.
- All gate-level checks of the six simulations pass (Table 24). As written for one bit per clock, the S-DSM draws 43 µW, Trivium 223 µW and the proposed design’s full block 415 µW, the clock tree taking 30–32 % of each. In their low-power forms, the S-DSM draws 18.1 µW (2.4× less), Trivium 32.3 µW (6.9× less) and the proposed design 64.3 µW (6.5× less). Trivium’s 223 µW is close to the 220 µW measured in 65 nm in [1]; the S-DSM’s 43 µW is about 1.8× the 24 µW measured.
- The parallel update and clock gating remove most of the proposed design’s power, but not its distance from the S-DSM: the ratio to the S-DSM falls from 9.7× to 3.6×; to Trivium it stays at 1.9–2.0×. The S-DSM gains least because its state is small: the output counter, multiplexers and clock trunk kept at 10 MHz are a large part of what remains, and its clock-tree share rises from 32 to 48 %.
- By part (Table 25), the clock tree draws 20.5 µW (32 %) of the low-power proposal, the Grain-128a state 14.2 µW (22 %), the MAC 11.6 µW (18 %) and the message capture for the MAC, still at 10 MHz, 7.4 µW (12 %). The cipher control and counters, the dither bit counter, the dither LFSRs and the output multiplexers draw 9.7 µW together, and the gated key, nonce and counter registers less than 0.05 µW. As predicted, what remains is the 10 MHz part (clock tree, message capture, counters: about 56 % of the block) and the 320 bits of cipher and MAC state; the factor of 3.6 is the cost of a 128-bit authenticated cipher over a 16-bit LFSR.
- The zero-delay simulation counts no glitches, so these values are lower bounds on the dynamic power, looser for the deeper logic of the low-power forms.
Clock gating alone, on the block written for one bit per clock
The block written for one bit per clock clocks its key, nonce and counter registers on every cycle, although they hold their value for a whole frame. An enabled flip-flop has an input multiplexer that selects the new value or its own output; its clock pin and clock tree switch on every cycle. An integrated clock-gating (ICG) cell instead passes the clock to a group of flip-flops only when their enable is set; its latch keeps the gated clock free of glitches. With the enable off, the gated flip-flops and the clock branch behind the ICG cell draw no dynamic power, and the multiplexers are no longer needed. If $N_g$ of the $N$ flip-flops are gated and their enable is almost never set during a frame, the prediction is that the flip-flop and clock-tree power fall roughly in the ratio $N_g/N$, less the power of the ICG cells, which see every clock edge.
The gating is inserted automatically by Yosys, with these settings:
- Design: the RTL of Subsection B, unchanged; Yosys inserts the gating during synthesis: every group of at least four flip-flops sharing a clock enable gets one ICG cell, and its flip-flops lose their enable.
- Verification: the gated netlist is simulated with Icarus Verilog on both test jobs of the proposed design (seed 2027), with their own checks.
- Implementation and power: the gated and, as reference, the ungated netlist go through the complete flow of Subsection C, the clock tree built through the ICG cells, with power from the routed netlist’s simulation on the 400-bit frame and the extracted wires.
- Recorded run: the two routings take about 6–9 minutes on two cores, so the study is recorded;
CLOCK_GATING_LIVE = Trueruns it live. - Metrics: the rows of Table 26.
CLOCK_GATING_LIVE = True re-runs it)| gating | 4 clock-gating cells (sky130_fd_sc_hd__dlclkp_1) gate 223 of 586 flip-flops; each gated group loses its enable multiplexer |
| gated netlist, gate-level simulation (Icarus) | 11/11 checks of both test jobs pass |
| gated block routed and checked | 0 routing DRC, 0 antenna, 0 Magic DRC violations; LVS match; setup slack (ss) +91.1 ns, hold slack (ff) +0.20 ns |
| routed gate-level checks, ungated / gated | 5/5 / 5/5 |
| power with the extracted wires, tt | 433 → 291 µW (33 % less) while encrypting the 400-bit frame |
| Quantity | Without clock gating | With clock gating |
|---|---|---|
| Cell area (synthesis) | 19,668 µm² | 17,506 µm² |
| Flip-flops / of which gated | 586 / 0 | 586 / 223 |
| Die, instances after routing | 295 µm, 10,888 | 279 µm, 10,019 |
| Setup slack ss / hold slack ff (ns) | +91.3 / +0.24 | +91.1 / +0.20 |
| Power: flip-flops (µW) | 268 | 168 |
| Power: clock tree (µW) | 149 | 105 |
| Power: logic (µW) | 17 | 18 |
| Power: total (µW) | 433 | 291 |
Key insights. In the recorded run (Table 26), Yosys inserts 4 clock-gating cells, one each for the key register (128 flip-flops), the session nonce (32), the chip nonce (31) and the frame counter (32): 223 of the 586 flip-flops are gated, and the other 363 (Grain-128a, MAC, dither LFSRs) have no enable. The gated netlist passes all 11 checks of both test jobs before layout and all 5 after routing. The gated block is clean: 0 routing DRC, 0 antenna and 0 Magic DRC violations, LVS match, setup slack +91.1 ns at ss and hold slack +0.20 ns at ff. Synthesis gives 17,505.5 µm² against 19,667.6 µm², 11 % less, because the 223 enable flip-flops become plain flip-flops. With the extracted wires, the power falls from 433 to 291 µW (33 % less): the flip-flops from 268 to 168 µW and the clock tree from 149 to 105 µW, while the logic rises from 17 to 18 µW. The predicted saving, 223/586 = 38 % of the flip-flop and clock-tree power or about 159 µW, compares with the 144 µW saved (91 % of it); the difference is the power of the four gating cells and of the clock tree up to them. Clock gating thus removes a third of the block’s power and saves area, with slacks changed by 0.2 ns or less, but the flip-flops that change in every cycle stay clocked at 10 MHz; only the parallel state update of the low-power form removes that part (Subsection D).
E. A figure of merit, transmitted bits and average power
The powers of Subsections C and D are SKY130 numbers, those of [1] 65 nm numbers; the process acts on digital blocks through $P = \alpha\,C\,V_{DD}^2\,f$, with $\alpha$ the switching activity and $C$ the switched capacitance. Between two designs in the same flow, $C$, $V_{DD}$ and $f$ cancel: the ratios of Table 24 are independent of the process to first order. Across processes, no number is scaled in this section: a law such as $L_{\min} V_{\text{nom}}^2$ (minimum channel length $L_{\min}$, nominal supply $V_{\text{nom}}$) assumes ideal scaling, which favours old, high-voltage nodes such as SKY130 (150 nm, 1.8 V devices), while no normalisation favours new nodes.
Energy per bit alone favours weak security. The proposed figure of merit divides it by the energy of one switching of a reference gate of the same library and by the security delivered,
$$\text{FOM} = \frac{E_{\text{bit}}}{E_{\text{NAND2}}\, S_\Sigma}, \qquad E_{\text{bit}} = \frac{P_{\text{sec}}}{f_{\text{bit}}},$$
dimensionless, lower is better, where $E_{\text{bit}}$ is the energy per keystream bit, $f_{\text{bit}}$ the keystream bit rate and $P_{\text{sec}}$ is the power of the security logic alone: the two dither LFSRs of [1]’s modulator, with their counter, output selection and share of the clock tree, are taken out of the S-DSM’s and the proposed design’s blocks; Trivium’s block is the cipher alone. In the denominator:
- $E_{\text{NAND2}}$, the energy of one output transition of the library’s minimum NAND2 at fan-out 1, at tt, 25 °C, 1.8 V: the driving gate’s internal energy, the supply energy $\tfrac{1}{2} C_{\text{in}} V^2$ of charging the driven input (input capacitance $C_{\text{in}}$, supply $V$), and the driven input’s internal energy. Both $E_{\text{bit}}$ and $E_{\text{NAND2}}$ are proportional to $C V^2$, so $E_{\text{bit}}/E_{\text{NAND2}}$ counts NAND2-equivalent switchings per bit, the energy analogue of gate equivalents, and the process enters through measured library data rather than an assumed scaling law.
- $S_\Sigma$, the security delivered, in bits, summed over the goals a design meets. Cipher strength, by one rule for every design: $\log_2$ of the cost of the best attack applicable as the cipher is used, at most the key length. The S-DSM’s 16-bit LFSR falls to Berlekamp-Massey from 32 keystream bits in about $2^{10}$ steps (attack A3), so 10; Trivium has no attack below brute force, 80; Grain-128a 128, since the fast correlation attacks of [18] and [19] need $2^{113.8}$ and $2^{106.3}$ keystream bits from one initialisation, while every frame of 107,400 bits re-initialises the cipher (and [18] excludes the authenticated mode). Message authentication: the tag length, 32 bits for Grain-128a’s MAC, 0 without a tag. Freshness: the chip-nonce bits, 31, 0 without a nonce. Key protection on a captured chip: the cipher strength for a key that exists only while the chip is powered, 0 for a key stored on the chip (attack A7). The S-DSM has $S_\Sigma$ = 10 and Trivium 80; the proposed design 128 + 32 + 31 + 128 = 319.
The FOM is computed only for blocks of this flow with simulated power: the published blocks’ libraries are not public ([1]’s blocks and the DTLS engine of [9] keep their reported energy per bit), and the information-equivalent baseline’s power is estimated. The weight of the tag, nonce and key-protection bits is a choice, so the result panel gives the weight above which the proposed design leads. The FOM credits strength and goals met, not the attacks of Section IX withstood, linearly in $S_\Sigma$ (conservative, since the attacker’s work grows exponentially with each goal’s bits); wires and leakage do not scale exactly with gate energy, so the process cancels to first order only.
$E_{\text{bit}}$ is the power over the keystream rate, one bit per 10 MHz clock: the powers of Table 24; for reference, [1]’s measured 24 µW and 220 µW at 1.2 V and the DTLS engine’s 0.89 nJ per byte [9]. $E_{\text{NAND2}}$ is computed from the Liberty file of sky130_fd_sc_hd, with the input slew set to the gate’s own output slew at fan-out 1. The share of the chip’s power is $P_{\text{sec}}/(P_{\text{off}} + P_{\text{sec}})$, each block at its own power, with $P_{\text{off}}$, the chip’s power with security off, = 321 + 271 + 250 + 510 = 1,352 µW (front end, TIA, S-to-D buffer and ΔΣ modulator, Fig. 4(a) of [1]); Subsection F gives the overhead $P_{\text{sec}}/P_{\text{off}}$, the measure of [1].
The bits sent for the same information are counted per reading (Nyquist sample); they are set by the architecture independently of any radio, and with equal energy per bit, transmission energies are in their ratio:
- Modulator-level (the S-DSM and the proposed design): every modulator bit is sent, OSR bits per reading, at OSR = 50, the ratio of every accuracy result of this notebook (Section VIII). The proposed design adds the 32-bit counter, the 32-bit chip nonce and the 32-bit MAC tag sent in clear with every frame, $96\cdot\text{OSR}/107{,}400 \approx 0.045$ bits per reading.
- The conventional design of [1]: a decimating ADC with Trivium sends 16-bit words at SR/NR = 4.5 to 5 times the Nyquist rate (sample rate SR over Nyquist rate NR) (the two OSR-50 rows of Fig. 4(b) of [1]), 72 to 80 bits per reading.
- An information-equivalent conventional design: the receiver’s third-order CIC decimator (Section V) moves onto the sensor, and Grain-128a with its MAC encrypts and authenticates 16-bit words, the word length of [1], at the Nyquist rate, with the same frame fields. A shorter word matched to the sensor’s resolution would rest on the behavioural model’s SNDR, which no comparison uses.
As no radio is designed in this work, the average power is an example with the radio of [1]: the radio energy of [1]’s energy table (3.1 mW at 200 kb/s, 15.5 nJ per bit) is used, one frame (10.74 ms, 2,148 readings at OSR 50) is sent once per minute, and the average power is the radio energy of the frame’s bits plus the energy of [1]’s front end and the security block during the frame, over the minute. Key generation at power-up and the sleep power, neither designed in this work, are excluded; the decimator of the information-equivalent design enters with its estimated power.
The prediction is that the proposed design sends about 50 bits per reading, like the S-DSM, 1.4–1.6× fewer than [1]’s conventional design, not the 2.7× of [1]’s OSR-30 comparison, and that the information-equivalent design sends about 16, about 3× fewer than any modulator-level scheme. The radio’s energy per bit, more than 300× the keystream energy per bit of every block here, should dominate the frame energy, so the average power should follow the bits sent, in the tens of microwatts.
The study is a calculation on the results of Subsection D and on published values, plus one block in RTL: the CIC decimator (decimation by 50, three 19-bit integrators at 10 MHz and three combs at the output rate), simulated with Icarus Verilog on a 20,000-bit modulator-like stream and compared output for output with the model’s CIC, then synthesised. Its power is estimated from its area at the gate-level power per GE of Grain-128a + MAC, also a 10 MHz datapath; its 31-tap compensation filter (at 200 kS/s) and the proposed design’s 32-bit delay line of Subsection A are not included. The metrics are the columns of Table 27 and the rows of the result panel.
| Design | Area (GE) | Source | Power at 10 MHz (µW) | Security logic (µW) | Energy per bit (pJ/b) | Ebit/ENAND2 (switchings per bit) | SΣ (bits) | FOM | Bits sent per reading, OSR 50 |
|---|---|---|---|---|---|---|---|---|---|
| S-DSM [1] | – | measured [1], 65 nm, 1.2 V | 24.0 | – | 2.40 | – | – | – (no ENAND2) | 50 |
| Trivium (conventional, [1]) | – | measured [1], 65 nm, 1.2 V | 220 | – | 22.00 | – | – | – (no ENAND2) | 72 – 80 |
| S-DSM [1], as written, this flow | 450 | simulated, SKY130, 1.8 V | 42.9 | 14.4 | 1.44 | 182 | 10 | 18.2 | 50 |
| Trivium, as written, this flow | 2,376 | simulated, SKY130, 1.8 V | 223 | 223 | 22.27 | 2,808 | 80 | 35.1 | 72 – 80 |
| Proposal, 1 bit/clock (Subsection B) | 5,240 | simulated, SKY130, 1.8 V | 415 | 392 | 39.20 | 4,943 | 128 + 32 + 31 + 128 = 319 | 15.5 | 50.04 |
| S-DSM [1], low power, this flow | 869 | simulated, SKY130, 1.8 V | 18.1 | 11.2 | 1.12 | 141 | 10 | 14.1 | 50 |
| Trivium, low power, this flow | 2,931 | simulated, SKY130, 1.8 V | 32.3 | 32.3 | 3.23 | 407 | 80 | 5.09 | 72 – 80 |
| Proposal, low power (full block) | 9,869 | simulated, SKY130, 1.8 V | 64.3 | 56.0 | 5.60 | 706 | 128 + 32 + 31 + 128 = 319 | 2.21 | 50.04 |
| Decimate + Grain-128a/MAC, 16-bit words at Nyquist | 4,957* | simulated*, SKY130, 1.8 V | 441* | – | 44.11* | – | – | – (estimated power) | 16.04 |
| figure of merit (no number scaled, nothing modelled) | FOM = Ebit / (ENAND2 SΣ): the energy per keystream bit of the security logic (gate-level simulation, the dither of [1] removed) over the energy of one switching of the library's minimum NAND2 gate, so Ebit/ENAND2 counts NAND2-equivalent switchings per bit (C V2 cancels: the energy analogue of gate equivalents), per bit of security delivered, summed over the goals met; lower is better |
| ENAND2, SKY130 (sky130_fd_sc_hd__nand2_1, fan-out 1, tt, 25 °C, 1.8 V) | 7.93 fJ = internal 3.72 + ½CinV2 3.75 + driven input 0.46 fJ (Cin = 2.31 fF, input slew 32 ps, from the Liberty tables) |
| security bits SΣ (cipher strength + MAC tag + chip nonce + key protection) | S-DSM 10 (16-bit LFSR: Berlekamp-Massey in about 210 steps, A3; key stored), Trivium 80 (80-bit key, stored), proposal 128 + 32 + 31 + 128 = 319 (128-bit key: the fast correlation attacks [18], [19] need 2106.3 or more bits from one initialisation, a frame 107,400; 32-bit tag, 31-bit chip nonce, a key present only while powered) |
| security logic: the dither LFSRs of [1] removed (S-DSM and proposal) | S-DSM 11.2 of 18.1 µW (38.6 % dither), Trivium 32.3 µW (no dither), proposal 56.0 of 64.3 µW (12.8 % dither), low-power form |
| FOM, this flow, 1 bit/clock | S-DSM 18.2, Trivium 35.1, proposal 15.5 |
| FOM, this flow, low power | S-DSM 14.1, Trivium 5.09, proposal 2.21 |
| proposal against Trivium and the S-DSM (low power, same flow) | 2.3× lower FOM than Trivium (1.7× the energy per bit for 4.0× the security bits) and 6.4× lower than the S-DSM (5.0× the energy per bit for 31.9× the security bits) |
| with cipher strength alone (no credit for tag, nonce or key protection) | S-DSM 14.1, Trivium 5.09, proposal 5.52; with weight w on the tag, nonce and key-protection bits the proposal leads Trivium for w above 5.6 % |
| energy per bit as measured in [1] and [9] (no FOM: ENAND2 of their libraries not public) | S-DSM 2.40 pJ/b (24 µW), Trivium 22.0 pJ/b (220 µW), DTLS engine [9] 111 pJ/b (0.89 nJ/byte), all 65 nm; this flow, low power: S-DSM 1.12, Trivium 3.23, proposal 5.60 pJ/b (security logic); whole blocks 1.81, 3.23, 6.43 pJ/b |
| bits sent per reading for the same information, OSR 50 | S-DSM 50, proposal 50.04 (with its counter, chip nonce and tag), decimate + Trivium of [1] 72 – 80 (16-bit words at 4.5–5× Nyquist): the proposal sends 1.44–1.60× fewer bits than the conventional design of [1] |
| information-equivalent baseline (decimate on the sensor, Grain-128a + MAC, words at the Nyquist rate) | CIC decimator 1,889 GE, 140 flip-flops, bit-exact with the model on 400 outputs; 16-bit words at the Nyquist rate, the word length of [1]: 16.04 bits per reading, i.e. the proposal sends 3.1× more |
| for reference: OSR 30, the setting of the 2.67× of [1] | bits per reading: proposal 30.03, S-DSM 30, decimate + Trivium 80: 2.66× fewer |
| average power at one frame per minute, with the radio of [1] (an example; no radio is designed here) | radio 15.5 nJ/bit ([1]'s energy table), one frame of 107,400 clocks (10.74 ms, 2,148 readings), front end of [1] (1,352 µW) during the frame: proposal 28.0 µW, S-DSM 28.0 µW, decimate + Grain-128a/MAC 9.2 µW (decimator power estimated); the radio takes 99.1 % of the proposal's frame energy; key generation at power-up and sleep power excluded |
| run time | 2 s (decimator simulation and synthesis) |
![Fig. 74. Area, power, proposed figure of merit and transmitted bits of the security blocks of the S-DSM [1], Trivium and the proposed design, synthesised in this work's SKY130 flow (gate level, tt, 25 °C, 1.8 V, placement wires); each as written for one bit per clock (light, hatched) and in the low-power form (dark, solid), one hue per metric.](/puf/output_392_3.png)
Fig. 74. Area, power, proposed figure of merit and transmitted bits of the security blocks of the S-DSM [1], Trivium and the proposed design, synthesised in this work's SKY130 flow (gate level, tt, 25 °C, 1.8 V, placement wires); each as written for one bit per clock (light, hatched) and in the low-power form (dark, solid), one hue per metric. (a) Synthesised area in kGE. (b) Power at 10 MHz. (c) FOM = $E_\mathrm{bit}/(E_\mathrm{NAND2}\,S_\Sigma)$, dimensionless, log scale, lower is better (security logic only). (d) Bits sent per reading (Nyquist sample) for the same information at an oversampling ratio of 50, set by the architecture; hatched: the range of [1]'s conventional design; lower group: designs that decimate on the sensor.
Key insights. Fig. 74(a) and (b) repeat the areas and powers of Subsections B and D.
- Proposed figure of merit (Table 27, Fig. 74(c)). $E_{\text{NAND2}}$ = 7.93 fJ (3.72 fJ internal, 3.75 fJ to charge the driven input, 0.46 fJ in the driven input). In the low-power form the dither LFSRs take 7.0 of the S-DSM’s 18.1 µW (38.6 %) and 8.2 of the proposed design’s 64.3 µW (12.8 %), so the security logic alone draws 11.2 µW (S-DSM), 32.3 µW (Trivium) and 56.0 µW (proposal). Its energy per bit is 141 NAND2-equivalent switchings for the S-DSM, 407 for Trivium and 706 for the proposed design (182, 2,808 and 4,943 as written). In the low-power form the FOM is 14.1 for the S-DSM, 5.09 for Trivium and 2.21 for the proposed design (18.2, 35.1 and 15.5 as written). The proposed design’s FOM is 2.3× lower than Trivium’s, for 1.7× the energy per bit and 4.0× the security bits, and 6.4× lower than the S-DSM’s, for 5.0× the energy per bit and 32× the security bits. With the cipher strength alone, its 5.52 is just above Trivium’s 5.09; it leads Trivium whenever the tag, nonce and key-protection bits count for more than 5.6 % of their value. The published blocks spend 2.40 pJ/b ([1]’s S-DSM) and 22.0 pJ/b (its Trivium) in 65 nm, and 111 pJ/b (the DTLS engine of [9]). Per unit of security the proposed design ranks first, because its security bits grow faster than its energy per bit; in absolute power it costs 3.6× the S-DSM (Subsection D).
- Bits sent at OSR 50. For the same information (Fig. 74(d)), the S-DSM sends 50 bits per reading and the proposed design 50.04: the proposed design sends 1.44–1.60× fewer bits than the conventional design of [1] (72–80), as predicted. The 2.66× at OSR 30 (30.03 against 80 bits, result panel), the setting of [1]’s headline 2.67×, does not apply at the OSR of this notebook’s accuracy results.
- The information-equivalent baseline. The CIC decimator in RTL reproduces the model’s CIC output for output (400 outputs) and synthesises to 1,889 GE with 140 flip-flops. The baseline sends 16.04 bits per reading, 3.1× fewer than the proposed design, as predicted. A modulator-level scheme thus gains in transmitted bits only against the conventional design of [1]; against a design that decimates before encrypting, the proposed design, like the S-DSM, sends about 3× more bits and, with a radio like that of [1], spends about 3× the energy per frame.
- Average power with the radio of [1]. At one frame per minute, the proposed design and the S-DSM both average 28.0 µW and the information-equivalent baseline 9.2 µW. The radio takes 99.1 % of the proposed design’s frame energy and 96.5 % of the baseline’s, so, as predicted, the average power follows the bits sent. Bit-level encryption therefore suits duty-cycled links; what it keeps is the absence of a decimator and a word-level datapath on the sensor, not the fewest bits per reading.
F. Power breakdown of the chip of [1], with each security block
The chip’s power is broken down as in Fig. 4(a) of [1]. The four analog blocks take the values measured in [1] (Subsection E). The security block is the measured 24 µW (S-DSM) or 220 µW (Trivium), or the proposed design’s low-power block at its own SKY130 gate-level power (64.3 µW at 1.8 V), not scaled to 65 nm; Subsection G discusses the net bias of mixing two processes and two kinds of number. Overhead is the security power relative to the chip with security off. Each ring runs clockwise from the top and ends with the security slice. In Fig. 75, rings (a) and (b) redraw the two designs measured in [1] and ring (c) substitutes the proposed design’s block, so the last slice against the analog blocks shows each design’s overhead.
![Fig. 75. Power breakdown of the sensor chip, in the style of Fig. 4(a) of [1]: (a) with the S-DSM's LFSRs and (b) with an on-chip Trivium, both measured in [1]; (c) with the proposed design's low-power keystream block at its own SKY130 gate-level power (150 nm, 1.8 V), not scaled to 65 nm.](/puf/output_397_1.png)
Fig. 75. Power breakdown of the sensor chip, in the style of Fig. 4(a) of [1]: (a) with the S-DSM's LFSRs and (b) with an on-chip Trivium, both measured in [1]; (c) with the proposed design's low-power keystream block at its own SKY130 gate-level power (150 nm, 1.8 V), not scaled to 65 nm. Centre: total power; below each ring: overhead.
Key insights. The rings total 1,376 µW with the LFSRs of the S-DSM, 1,572 µW with Trivium and 1,416 µW with the low-power proposal, and the overhead is 1.8 % with the S-DSM, 16.3 % with Trivium and 4.8 % with the proposed design. The analog front end and the modulator draw almost all of the chip’s power in every design; even unscaled from SKY130, the proposed design’s security slice is a few times the S-DSM’s and far below that of an on-chip Trivium.
G. Complete system power: the proposed design against [1] under the same conditions
The chip’s power is $P_{\text{chip}} = P_{\text{FE}} + P_{\text{TIA}} + P_{\text{S2D}} + P_{\Delta\Sigma} + P_{\text{sec}}$, where $P_{\text{FE}}$, $P_{\text{TIA}}$, $P_{\text{S2D}}$ and $P_{\Delta\Sigma}$ are the powers of the front end, the TIA, the S-to-D buffer and the ΔΣ modulator, and its current at the 1.2 V supply of [1] is $I = P_{\text{chip}}/1.2\ \text{V}$. The proposed design leaves the four analog blocks unchanged (Section IV), so only $P_{\text{sec}}$ differs. This work does not simulate the analog blocks’ power: they are behavioural in the model (Section V), except the comparator, simulated at transistor level at about 2 µW (Section VIII). Their powers are therefore the values measured in [1], marked as such, and the radio is left out. Two fair comparisons answer different questions. Unscaled: the proposed design’s SKY130 gate-level block on the chip of [1], beside the S-DSM’s 24 µW as measured. A SKY130 gate switches more energy than a 65 nm gate, which disadvantages the proposed design, but [1]’s measured blocks may contain more than their logic (interfaces, key loading, a supply that feeds more than the block), which disadvantages [1]; the net direction of this bias is not established. Strictly equal treatment: [1]’s design re-implemented in the same flow with the same low-power techniques, which gives a ratio independent of the process, and the FOM of Subsection E. The prediction from Subsection D is that the equal-treatment ratio stays above one.
The analog blocks are those of Subsection E; the security blocks take [1]’s measured values and this work’s powers of Table 24 in both forms and routed. The metrics are each block’s power and current, the chip’s totals, the security share and the bits for the same information at OSR 50.
| Block | Source | Power (µW) | Current at 1.2 V (µA) | Chip total with this security block; security share |
|---|---|---|---|---|
| Front end (DAC and amplifiers) | measured [1] | 321 | 268 | – |
| TIA | measured [1] | 271 | 226 | – |
| S-to-D buffer | measured [1] | 250 | 208 | – |
| ΔΣ modulator | measured [1] | 510 | 425 | – |
| Analog chip without security | measured [1] | 1,352 | 1,127 | – |
| S-DSM [1], measured (65 nm, 1.2 V) | measured [1] | 24.0 | 20.0 | 1,376 µW, 1,147 µA; 1.7 % |
| Trivium [1], measured (65 nm, 1.2 V) | measured [1] | 220 | 183 | 1,572 µW, 1,310 µA; 14.0 % |
| S-DSM [1] as written, this flow (SKY130, 1.8 V) | simulated | 42.9 | 35.8 | 1,395 µW, 1,162 µA; 3.1 % |
| S-DSM [1], low power, this flow (SKY130, 1.8 V) | simulated | 18.1 | 15.1 | 1,370 µW, 1,142 µA; 1.3 % |
| Trivium, low power, this flow (SKY130, 1.8 V) | simulated | 32.3 | 26.9 | 1,384 µW, 1,154 µA; 2.3 % |
| Proposal, 1 bit/clock, this flow (SKY130, 1.8 V) | simulated | 415 | 346 | 1,767 µW, 1,472 µA; 23.5 % |
| Proposal, low power, this flow (SKY130, 1.8 V) | simulated | 64.3 | 53.6 | 1,416 µW, 1,180 µA; 4.5 % |
| Proposal, low power, routed and extracted (SKY130, 1.8 V) | simulated | 73.4 | 61.2 | 1,425 µW, 1,188 µA; 5.1 % |
| security block, actual numbers (none scaled) | S-DSM [1] 24 µW measured in 65 nm; low-power proposal 64.3 µW simulated in SKY130 (73.4 µW routed) |
| chip of [1] with the proposal's SKY130 block (unscaled) | 1,416 µW, 1,180 µA; security 4.5 % of the chip, against 1,376 µW, 1,147 µA and 1.7 % with the S-DSM as measured |
| same flow, same techniques (process cancels) | proposal ÷ S-DSM 3.6× in power; proposal ÷ Trivium 2.0×; before the low-power forms 9.7× and 1.9× |
| proposed figure of merit (Ebit / (ENAND2 SΣ), lower is better; blocks of this flow) | low-power proposal 2.21, Trivium 5.09, S-DSM 14.1, all in the low-power form; [1]'s measured blocks receive none (Subsection E) |
| bits sent per reading for the same information, OSR 50 | S-DSM 50, proposal 50.04, decimate + Trivium of [1] 72 – 80: set by the architecture; no radio is designed here |
Key insights. In Table 28, the four analog blocks measured in [1] draw 1,352 µW (1,127 µA at 1.2 V).
- Unscaled, the low-power proposal (64.3 µW in SKY130 on its placement, 73.4 µW routed) raises the power of the chip of [1] to 1,416 µW (1,180 µA) instead of 1,376 µW (1,147 µA) with the S-DSM, and the security share from 1.7 % to 4.5 % (5.1 % routed), against 14.0 % for the measured Trivium: the proposed design’s keystream block would take 4.5 % of that chip’s power. This excludes the key generator (PUF array and periphery, decoder and hash, which run once per power-up and whose energy is not computed), the MAC delay line and the downlink receiver.
- Under strictly equal treatment, the proposed design draws 3.6× the S-DSM and 2.0× Trivium, above one as predicted, and its FOM is 2.21 against 14.1 and 5.09 (Subsections D and E). The factor of 3.6 over the S-DSM is therefore not a matter of process. Within the two techniques applied here, reducing it further would require changing what is computed, for example a shorter MAC; other choices (radix, supply, state storage) were not evaluated.
H. Side-channel exposure of the placed netlists
The leakage test of Section IX-D is repeated on the netlists intended for fabrication. In one clock, a CMOS netlist dissipates $\tfrac{1}{2} C V_\mathrm{DD}^2$ for every net that changes, with $C$ the net’s capacitance (the gate inputs it drives and its wire). Against the register-level model of Section IX-D, this adds the combinational logic (for Grain-128a, the 32 rounds that the low-power form evaluates per clock), the clock gating that keeps idle registers still, and the unequal loads of a placed design; it omits glitches (zero delay) and the cells’ internal power. The test and its threshold on the magnitude of Welch’s $t$ statistic, $\lvert t\rvert$ = 4.5, are those of Section IX-D. The analysis above predicts that the proposed design leaks while the key is shifted into its register, since every shift toggles the register according to the key bits, and during the first updates of the initialisation, but not in the keystream and MAC phase, and that the S-DSM leaks whenever its key LFSR is updated, once every 16 clocks in its low-power form. Fig. 76 tests this.
The test runs live at gate level on the placed netlists of Subsections C and D: the proposed design’s low-power block (the netlist that the recorded run of Subsection C routes) and the S-DSM’s low-power block. The capacitance of every net is read from OpenSTA with the wire RC estimated on the placement, as for the power of Subsection D (the extracted wires with ROUTE_BLOCK). Each trace of the proposed design runs its whole protocol (Subsection A): the key shift-in in clocks 2–129, the session and chip nonces in 130–192, the start in 193, the initialisation and the MAC preload, then a 64-bit message with its tag, 272 clocks in all, with a random nonce, chip nonce and message per trace; the S-DSM loads its 16-bit key in clock 2 and encrypts a random modulator stream for as many clocks. 2,000 traces per group are simulated in one pass, bit-parallel and with zero delay, every flip-flop starting from the same power-up state, with Gaussian measurement noise of 4 changes of an average flip-flop output per clock, as the 4 toggles of Section IX-D. Before the test, the keystream and the tag of five traces, from all three groups, are compared bit for bit with the RTL flow’s reference model (Subsection B), and three traces of the S-DSM with the LFSR of [1].
| proposal, low-power block (placed, wires estimated on the placement) | 3,772 logic cells, 606 flip-flops, 8 clock-gating cells; mean 2.05 pJ per clock in its data nets; keystream and tag of five traces equal the model |
| key shift-in, clocks 2–129 | max |t| = 22.3 (49 of 128 clocks above 4.5) |
| session and chip nonce, clocks 130–192 | max |t| = 4.2 (0 of 63 above) |
| start and initialisation, clocks 193–203 | max |t| = 31.7 (3 of 11 above) |
| keystream and MAC, clocks 204–271 | max |t| = 2.4 (0 of 68 above) |
| S-DSM, LFSR of [1] restarted from the key (placed) | max |t| = 20.5; 15 of 269 clocks above 4.5 |
| controls, random against random keys | max |t| = 3.2 (proposal), 3.1 (S-DSM) |
| traces and noise | 2,000 per group, 272 clocks each; noise 187 fJ rms per clock (4 changes of an average flip-flop output) |
| run time | 9 s |

Fig. 76. Fixed-versus-random leakage test on the placed gate-level netlists (tt, 1.8 V; zero-delay switching energy of every data net with its capacitance from the placement; 2,000 traces per group). (a) The proposed design's low-power keystream block over its protocol, the key shift-in and the initialisation shaded. (b) The S-DSM of [1]. Solid: $\lvert t\rvert$ of one fixed key against random keys; grey: two groups of random keys (control); dashed: the threshold 4.5; log scale.
Key insights.
- The proposed design exceeds the threshold in two phases (Fig. 76(a)): during the key shift-in, at 49 of its 128 clocks with $\lvert t\rvert$ up to 22.3, and in 3 of the 11 clocks of the start and initialisation, with $\lvert t\rvert$ up to 31.7, the highest value of the test. It stays below in the nonce loads (at most 4.2) and in the 68 clocks of keystream and MAC (at most 2.4). The S-DSM exceeds it at 15 of 269 clocks, with $\lvert t\rvert$ up to 20.5, at the updates of its key LFSR (Fig. 76(b)). Both controls stay below (3.2 and 3.1).
- Both predictions hold: at gate level the initialisation leak of the proposed design is compressed into the first updates of its 32-round form, and the key shift-in, which the register-level model does not contain, is its longest exposure. The proposed design thus exposes its key where the register-level model places it, at the start of every frame, and in one place more, the serial key transfer from the fuzzy extractor; both lie in the first clocks of a session or a frame, where a countermeasure would act (a masked or parallel key load, and masking of the first initialisation updates).
- The keystream and MAC phase, which carries the data, shows no first-order leakage at 2,000 traces, whereas the S-DSM exposes its key at every LFSR update of every frame. Since the model omits glitches and internal power, a chip leaks at least this much: the test locates the exposure, it does not give a security level.
This section costs the keystream block; the key generator that feeds it, sized by hand in Section VIII-F, is still a specification. Section XI turns that specification into hardware: it sizes the key generator, generates, verifies, synthesises and lays out its decoder with the flow of this section, and completes the area with the hash and the helper data.
XI. From specification to hardware: a key-generator compiler
Section X costed the keystream block but not the key generator that feeds it. This section asks which SRAM-PUF array and error-correcting code meet a given reliability and secrecy specification at every process corner and temperature, and what the hardware costs. The proposed design stores no key, so its security depends on the 128-bit key being regenerated at every power-up on every chip with a failure probability below $10^{-6}$. Sizing the key generator by hand cannot establish that claim: with 600 cells and a 25 °C enrolment, reliability needs more correction than the 192-bit secrecy budget allows (Section VII-E), and the working setting t = 45 fails at sf and at ff and fs above room temperature (Section VIII-F). Whether any code meets the specification is a search result; the trade-off between more cells (an inner repetition code) and a smaller decoder is settled only by synthesis; and a reliability figure must describe the decoder that is built, bit for bit. A compiler, a program that turns a specification into a verified and laid-out decoder, answers all of these whenever the specification, the process or the cell changes.
The compiler runs in six steps, which the subsections follow, on the model’s fuzzy extractor (a BCH code over $\mathrm{GF}(2^{10})$, the finite field of $2^{10}$ elements), the corner models of the SRAM cell (Section VII-F) and the two-temperature enrolment (Section VIII-F). Subsection A states the specification (step 1) and searches a concatenated code at every corner and temperature (step 2) for the smallest array and weakest BCH code that meet it within the secrecy budget. B generates and synthesises Verilog for the feasible designs and selects the smallest total area (step 3), with an explorer for other specifications in which every offered design is synthesised. C verifies the generated decoder against the model bit for bit, also beyond the code’s capacity, tests that the comparison detects a wrong decoder (mutation test), and proves the decoder’s $\mathrm{GF}(2^{10})$ multiplier for every input (step 4). D places and routes the key generator of specification D (step 5). E gives the area of everything the proposed design adds to the chip of [1] (step 6). All steps run live except the SAT proof and the detailed routing with its DRC and antenna counts, which are recorded; SAT_PROOF = True and ROUTE_COMPILED = True (977 s on two cores) run them live.
The compiler is independent of the notebook: its inputs are the specification and the per-cell error probabilities, and its Verilog is not tied to a cell library (synthesised here onto sky130_fd_sc_hd); codes other than repetition with BCH over $\mathrm{GF}(2^{10})$ would need extensions.
A. Steps 1 and 2: specification and design-space search
Concatenated code. The compiler searches a concatenated code, as in the helper-data key extractor of [26]: the $N = n\,r$ enrolled cells form $n$ groups of $r$ cells ($r$ odd), each decided by majority (a repetition code whose helper data are the other $r - 1$ cells XOR the first), and a BCH code of length $n \le 1023$ over $\mathrm{GF}(2^{10})$ corrects up to $t$ wrong groups with $t$ syndromes of 10 bits each; $r = 1$ is the model’s fuzzy extractor.
Cell errors and key failure. Cell $i$ of a chip, with mismatch $\delta_i$ (in units of the cell model’s mismatch spread, Section VIII-F) and enrolled value $w_i$, powers up to the other value at temperature $T$ with probability
$$p_i(T) = \Phi\big(-\delta_i / s(T)\big)\ \text{if}\ w_i = 1,\qquad p_i(T) = \Phi\big(\delta_i / s(T)\big)\ \text{if}\ w_i = 0,$$
with $\Phi$ the standard normal cumulative distribution function and $s(T)$ the corner’s effective noise-to-mismatch ratio, anchored to its SPICE Monte Carlo (Section VII-F; one fit for the 25 °C enrolment, another for the cells kept by the two-temperature enrolment). A group is wrong when more than $r/2$ of its cells are, with a probability $q_g$ that follows exactly from its cells’ $p_i$; the key fails, with probability $P_{\text{fail}}$, when more than $t$ groups are wrong:
$$P_{\text{fail}}(n, r, t) = \max_{\text{corner},\ T}\ \Pr\Big[\sum_g E_g > t\Big],$$
with $E_g$ independent Bernoulli($q_g$) events, summed exactly (Poisson-binomial). $s(T)$ is interpolated linearly between −40, 25 and 85 °C and the failure probability grows with $s$, so the worst case over 0–85 °C lies at 0, 25 or 85 °C, the three temperatures evaluated.
Secrecy. Each cell carries a min-entropy $h = -\log_2 \max(b, 1-b)$ ($b$: the probability of powering up to 1), taken at its 95 % lower bound from the 1,024-cell post-layout Monte Carlo (Section VII-E); the helper data publish $r - 1$ bits per group and $10t$ syndrome bits, so the secret bits left must satisfy
$$H = \big\lfloor n\,\big(r\,h - (r - 1)\big) - 10\,t \big\rfloor \ \ge 192 ,$$
the 128-bit key plus the heuristic 64-bit leftover-hash margin of Section VII-E.
Search. For each $r \in \{1, 3, 5, 7\}$, $n$ starts at the smallest value that could hold 192 secret bits and grows in steps of 32 until some $t \le \lfloor n/10 \rfloor - 1$ meets both conditions, then is refined downwards in steps of 4; the smallest such $t$ is kept. The physical array is $\lceil n r / \kappa \rceil$ cells, with $\kappa$ the fraction of cells the enrolment keeps (1 for a single 25 °C enrolment; the worst corner’s fraction for the two-temperature enrolment).
A majority of $r$ cells fails far less often than one cell, so a larger $r$ should allow a much smaller $t$, at the cost of $r$ times more cells and $r - 1$ published bits per group. Reproducible flips are different: at fs, 27.8 % of the bits are wrong at 85 °C, 25.6 % of them through reproducible flips (Section VII-F), so many that even a majority of seven cells errs often. With a 25 °C enrolment no code should therefore meet the target at every corner, whereas the two-temperature enrolment, which discards the flipping cells, should, with a weaker code (Section VIII-F). Like the noise-only corner models of Section VII-F, and unlike the two-component model of Section VIII-F, the search represents the reproducible flips by a larger random noise that reproduces each corner’s simulated error rate, not by the same cells being wrong at every hot power-up. It further assumes that the cells err independently, that the per-cell probabilities are those of one simulated chip per corner (the model’s chip seed) with one enrolment read, and that the corners cover process and temperature, not supply.
The search runs at the behavioural level, on exact probabilities from the cell models above (no further sampling). The specifications differ only in the corners and the enrolment:
Table 29: The four key-generator specifications
|
Specification D, on which the security claims rest, is not searched but compiled as Section VIII-F sizes it for the 99th-percentile chip of a population of 1,000 (BCH alone, $t = 17$ on 600 kept cells, 935 physical cells). The compiler evaluates its failure probability with the search’s corner models for the −40 and 85 °C enrolment, and its secret at the lower bound of the min-entropy of the kept cells at the worst corner (0.758 bit at fs), stricter than the typical-corner bias used for A to C. All four specifications share the key-failure target (below $10^{-6}$ per power-up from 0 to 85 °C), the secrecy condition $H \ge 192$ and the cell bias $b$ of the post-layout Monte Carlo (Section VII-D).
B. Step 3: Verilog generation, synthesis and selection
For a configuration $(r, n, t)$ the compiler writes synthesisable Verilog (RTL): a serial repetition voter (rep_vote), which outputs the majority over each group of $r$ cells of the cell XOR its helper bit, and a serial BCH($n$, $t$) reconstruction unit (bch_rec) over $\mathrm{GF}(2^{10})$ with the model’s primitive polynomial $x^{10} + x^3 + 1$ and a combinational shift-and-add multiplier, one operation per clock. The unit loads the $n$ group values and the $10t$ helper bits; computes the $t$ odd syndromes of the received word (one pass of $n$ clocks each) and adds the helper data to them; squares them into the even syndromes; runs $2t$ iterations of the inversionless Berlekamp-Massey algorithm over the $t + 1$ coefficients; and evaluates the error locator by Horner’s rule at every position in two Chien-search passes, the first counting the roots, the second correcting the word only if the count equals the locator’s degree (otherwise ok = 0). The top level (keygen_rec) adds a mask input that skips the cells discarded at enrolment. One reconstruction takes $n r + 10t + t n + t + 4t(t + 1) + 2n(t + 1) + n + 8$ clocks (loading, syndromes, Berlekamp-Massey, two Chien passes, output) at 10 MHz.
Synthesis is slow, so an estimate of the total area, $A_{\text{est}}$, ranks the feasible designs first: $A_{\text{est}} = 50\ \mu\text{m}^2 \times F_{\text{est}} + N_{\text{cells}}\,A_{\text{cell}}$, with $F_{\text{est}} = n + 20\,t + 20\,(t + 1) + 50$ the decoder’s flip-flops (the word, $2t$ syndromes and two locator polynomials of $t + 1$ coefficients of 10 bits, plus 50 for control), $N_{\text{cells}}$ the number of physical PUF cells, 50 µm² per flip-flop with its share of the logic (an assumption read from the synthesised designs) and $A_{\text{cell}}$ the SRAM cell of Section VII-D. Per specification, the two candidates with the smallest estimate are synthesised with Yosys onto sky130_fd_sc_hd (as in Section X-B), and the smallest synthesised total area, decoder plus array, is selected; the others keep their estimate. Table 30 lists the metrics. Fig. 77 draws the trade-off that the selection resolves: panel (a) gives the PUF cells each specification needs at every repetition factor r, and panel (b) splits the total area of specifications A and C into decoder and PUF array, so a larger r can be seen to shrink the decoder while it enlarges the array.
| Specification | r | Groups n | t | PUF cells | Secret bits (95 % lower bound) | P(key fails) | Decoder (GE / FF) | Total area (103 µm²) | Latency (ms) |
|---|---|---|---|---|---|---|---|---|---|
| A. typical corner, 25 °C enrolment | 1 | 611 | 36 | 611 | 194 | 8.4e-07 | not synthesised | ≈ 113 (estimate) | 7.4 |
| 3 | 364 | 7 | 1092 | 193 | 2.6e-07 | 9,980 / 807 | 50.7 | 1.0 | |
| 5 | 415 | 3 | 2075 | 193 | 8.9e-08 | 8,567 / 696 | 57.4 | 0.7 | |
| 7 | 570 | 1 | 3990 | 192 | 5.3e-09 | not synthesised | ≈ 82 (estimate) | 0.7 | |
| B. all five corners, 25 °C enrolment | 1 | – | – | infeasible | – | – | – | – | – |
| 3 | – | – | infeasible | – | – | – | – | – | |
| 5 | – | – | infeasible | – | – | – | – | – | |
| 7 | – | – | infeasible | – | – | – | – | – | |
| C. all five corners, enrolment at 25 and 85 °C | 1 | 443 | 21 | 636 | 192 | 6.0e-07 | not synthesised | ≈ 75 (estimate) | 3.2 |
| 3 | 324 | 4 | 1395 | 194 | 6.8e-09 | 8,984 / 707 | 50.7 | 0.6 | |
| 5 | 375 | 1 | 2690 | 192 | 3.0e-07 | 7,467 / 572 | 60.7 | 0.4 | |
| 7 | 570 | 1 | 5723 | 192 | 8.8e-17 | not synthesised | ≈ 104 (estimate) | 0.7 | |
| D. all five corners, enrolment at −40 and 85 °C (key generator of Section VIII-F) | 1 | 600 | 17 | 935 | 284 | 3.4e-10 | 19,128 / 1,725 | 83.2 | 3.4 |
| A. typical corner, 25 °C enrolment | r = 3, 364 groups, t = 7: 1092 PUF cells, decoder 9,980 GE, 1.0 ms per reconstruction |
| B. all five corners, 25 °C enrolment | no design on the grid (r ≤ 7, n in steps of 32 up to 1023) meets it |
| C. all five corners, enrolment at 25 and 85 °C | r = 3, 324 groups, t = 4: 1395 PUF cells, decoder 8,984 GE, 0.6 ms per reconstruction |
| D. all five corners, enrolment at −40 and 85 °C (key generator of Section VIII-F) | r = 1, 600 groups, t = 17: 935 PUF cells, decoder 19,128 GE, 3.4 ms per reconstruction |
| designs synthesised | 5 (Yosys onto sky130_fd_sc_hd), 32 s in all |
Fig. 77. Key-generator compiler: design space. (a) PUF cells required for each repetition factor r, one bar per specification of Table 30 (×: no design meets it). (b) Total area of the best design for each r, specifications A and C: decoder (solid where synthesised, faded where estimated) and PUF array (hatched). Stars: selected designs.
Key insights.
- Search (step 2; Table 30, Fig. 77(a)). Specification A is feasible at every $r$: 611 cells at $r = 1$ ($n = 611$, $t = 36$, 194 secret bits at the lower bound, $P_\mathrm{fail} = 8.4 \times 10^{-7}$), 1,092 at $r = 3$ ($t = 7$), 2,075 at $r = 5$ ($t = 3$) and 3,990 at $r = 7$ ($t = 1$). So is specification C: 636 cells at $r = 1$ ($n = 443$, $t = 21$), 1,395 at $r = 3$ ($n = 324$, $t = 4$), 2,690 at $r = 5$ ($t = 1$) and 5,723 at $r = 7$ ($t = 1$). As predicted, C needs a weaker code than A for $r \le 5$ although it covers five corners, but more cells at the same $r$, because its enrolment discards the cells that change between 25 and 85 °C. Compared with 128 secret bits at the point estimate of the min-entropy, the bounded budget enlarges the arrays (C at $r = 3$: 1,395 cells instead of 741; A at $r = 1$: 611 instead of 441): each group keeps only $r h - (r - 1)$ secret bits, small for $h$ near its lower bound, so repetition costs more cells.
- Specification B is infeasible, as predicted: no design on the searched grid meets it. The search reports only the worst case over the corners, not the failing corner; the error rates of Section VII-F point to fs. Hence the two-temperature enrolment is what makes a specification over all corners achievable.
- Synthesis and selection (step 3; Table 30, Fig. 77(b)). Four designs were synthesised: for A, $r = 3$ (9,980 GE, 807 flip-flops, $50.7 \times 10^3$ µm² in total) and $r = 5$ (8,567 GE, 696 flip-flops, $57.4 \times 10^3$ µm²); for C, $r = 3$ (8,984 GE, 707 flip-flops, $50.7 \times 10^3$ µm²) and $r = 5$ (7,467 GE, 572 flip-flops, $60.7 \times 10^3$ µm²). Both selected designs have $r = 3$: 364 groups and $t = 7$ for A (1.0 ms per reconstruction), 324 groups and $t = 4$ for C (0.6 ms). All candidates not synthesised are estimated above the selected totals (about 113 and $82 \times 10^3$ µm² for A at $r = 1$ and 7, about 75 and $104 \times 10^3$ µm² for C), so the selection does not depend on the estimate’s ranking. The selected decoders are 0.91–1.01× the proposed design’s low-power keystream block (Section X) and 2.9–3.3× the bare Grain-128a + MAC core. The inner repetition code keeps them that small by lowering $t$, while repetition beyond $r = 3$ costs more in cells than it saves in decoder.
- Specification D, with the search’s corner models, fails with probability $3.4 \times 10^{-10}$, far below the target (it is sized for the 99th-percentile chip, not for this one), with 284 secret bits at the worst corner’s lower bound. Synthesised as sized, it takes 19,128 GE with 1,725 flip-flops, $83.2 \times 10^3$ µm² with its 935 cells, and 3.4 ms per reconstruction. It shows the other side of the trade-off: without repetition its code corrects 17 errors in a 600-bit word, so its decoder is about twice C’s (1.9× the keystream block), while its array is the smallest of the five-corner designs. It covers 0–85 °C with the margin of the population analysis, whereas C’s enrolment covers 25–85 °C.
Explore: compile a key generator for another specification
The explorer runs steps 1 to 3 for a specification set by its menus: the corners (tt alone, or all five), the enrolment (one read at 25 °C; or masked, at 25 and 85 °C or at −40 and 85 °C, which sets the fraction of the array kept from the corner models of Section VII-F), the key-failure target and the secret, at the 95 % lower bound of the min-entropy as for A to C. The search is that of step 2, with the same per-cell error models and grid. The area is the synthesised decoder plus the SRAM-cell array of Section VII-D: the cell above synthesises its own candidates live, and all 64 designs of the menus were synthesised by the same flow in a recorded run (about 4 min on two cores). Every combination of the menus was searched beforehand, so a choice shows its figure and result panel at once, without running the cell. The explorer’s view, Fig. 78, has the two panels of Fig. 77 for the chosen specification, showing the effect of each control on the cells and the area at every r.

| r = 1 | n = 443 groups, t = 21, 636 PUF cells, P(key fails) 6.0e-07, 192 secret bits; 79.0 ×10³ µm² (decoder 18,987 GE, synthesised); 3.2 ms per reconstruction at 10 MHz |
| r = 3 (selected) | n = 324 groups, t = 4, 1,395 PUF cells, P(key fails) 6.8e-09, 194 secret bits; 50.7 ×10³ µm² (decoder 8,984 GE, synthesised); 0.6 ms per reconstruction at 10 MHz |
| r = 5 | n = 375 groups, t = 1, 2,690 PUF cells, P(key fails) 3.0e-07, 192 secret bits; 60.7 ×10³ µm² (decoder 7,467 GE, synthesised); 0.4 ms per reconstruction at 10 MHz |
| r = 7 | n = 570 groups, t = 1, 5,723 PUF cells, P(key fails) 8.8e-17, 192 secret bits; 103.3 ×10³ µm² (decoder 8,978 GE, synthesised); 0.7 ms per reconstruction at 10 MHz |
Fig. 78. Key-generator compiler explorer (precomputed for every setting of its menus; design-space search of step 2 for the chosen specification). (a) PUF cells of the smallest design for each repetition factor r (×: none meets the specification). (b) Its area: decoder (synthesised; recorded run of the 64 designs of the menus) and PUF array (hatched). Stars: the selected design. Default view: specification C.
Key insights. The initial view reproduces specification C of Table 30. Choosing Enrolment: one read at 25 °C gives specification A with Corners: typical corner (tt) and the infeasible specification B with all five corners (a cross at every r). Choosing P(key fails) = 10⁻⁹ or Secret = 256 bits moves every design to larger arrays and codes. Every decoder area is synthesised (dark); with the synthesised areas in place of the estimate of step 3, the selected design changes in three of the 36 settings.
C. Step 4: RTL verification of the generated decoder
Equivalence. The hardware’s inversionless Berlekamp-Massey algorithm produces a non-zero multiple of the model’s error locator, with the same roots, and both decoders accept a read exactly when the locator’s degree is at most $t$ and equals the number of its roots among the $n$ positions of the shortened code. The corrected bits and the success flag must therefore be identical in every test, whatever the number of errors.
Miscorrection beyond t. A read with more than $t$ errors cannot be corrected, but the decoder may still find a locator of degree $L \le t$ with all $L$ roots inside the shortened code and flag success with a wrong word. Far beyond $t$, the syndrome behaves like a random element of the $2^{mt}$ possible ones ($m$ = 10, the bits per syndrome), and the decoder accepts it when it equals the syndrome of one of the $\sum_{j \le t}\binom{n}{j}$ correctable patterns. The probability $P_{\text{mis}}$ that such a read is miscorrected with success reported is therefore
$$P_{\text{mis}} \approx \frac{\sum_{j=0}^{t}\binom{n}{j}}{2^{mt}}.$$
This predicts about 37 % for $t$ = 1 and $n$ = 375 (specification C at $r$ = 5: every single-error syndrome points to one of 1,023 positions, 375 of them in the code), about 4 × 10⁻⁴ for $t$ = 4 and $n$ = 324, about 10⁻⁷ for $t$ = 7 and $n$ = 364, and negligible for $t$ = 45 and $n$ = 600. A miscorrection does not change the key-failure probability of step 2, which counts every read beyond $t$ as a failure; it only means that the wrong key is first detected by the receiver, as a MAC failure of the first frame.
The verification runs at RTL: the generated keygen_rec is simulated with Icarus Verilog for the key generator D and the selected designs of specifications C and A, against the model’s reconstruct (Section V). For each test, a generated test bench (100 ns clock) pulses start, streams the physical cells with their repetition helper and mask bits, then the $10t$ BCH helper bits, and records the corrected word, the success flag ok and the cycles from the end of the helper data to done. The tests and the metrics are:
-
RTL tests: per design, 12 directed and 60 random tests (seeds 2027 and 77), each with a random enrolment mask (the fraction the specification’s enrolment keeps), a random enrolled word with its helper data, and a read with $k$ corrupted groups (the majority of their cells flipped): $k$ cycles through 0, 1, about $t/2$, $t$, $t + 1$ and $t + 3$ in the directed tests and is uniform in 0 to $t + 4$ in the random ones; other groups receive single-cell errors below the majority, which the vote must absorb.
-
Random error patterns: 4,000 per BCH code on the model’s decoder, which the RTL matches (thousands of Icarus reads would cost minutes): a random enrolled word and an error pattern of weight $w$ at random positions, $w$ from 0 to $t$ and up to six weights beyond ($t + 1$, $t + 2$, $t + 3$, $t + 5$, $2t + 1$ and $2t + 5$; five for $t$ = 1, where $2t + 1 = t + 2$), equally many each, for the codes of D, of the selected designs of C and A, and of the hand design of Section VII-E.
-
Metrics: identical reconstructions, corrections, flagged failures and miscorrections against the prediction, clock cycles.
keygen_rec.v generated for specification D (120 lines of Verilog); its interface: module bch_rec ( input wire clk, input wire rst, input wire start, input wire din, input wire din_valid, // received word, position 0 first input wire hin, input wire hin_valid, // helper data: syndromes S1, S3, …, MSB first output reg dout, output reg dout_valid, // corrected word, position 0 first output reg done, output reg ok); module keygen_rec (input wire clk, input wire rst, input wire start, input wire cin, input wire rin, input wire cmask, input wire cin_valid, input wire hin, input wire hin_valid, output wire dout, output wire dout_valid, output wire done, output wire ok);
| Code | Length n | t | Weight ≤ t: corrected | Weight > t: failure flagged | Weight > t: miscorrected, success flagged | Theory, random syndrome |
|---|---|---|---|---|---|---|
| D (r = 1) | 600 | 17 | 3,004/3,004 | 996/996 | 0/996 | 2.6e-19 |
| C (r = 3) | 324 | 4 | 2,000/2,000 | 2,000/2,000 | 0/2,000 | 4.2e-04 |
| A (r = 3) | 364 | 7 | 2,288/2,288 | 1,712/1,712 | 0/1,712 | 1.4e-07 |
| hand design (Section VII-E) | 600 | 45 | 3,542/3,542 | 458/458 | 0/458 | 2-223 |
| specification D: r = 1, n = 600, t = 17 | directed: 12/12 identical to the model, bit for bit and in the success flag (4 beyond the code's capacity, correctly reported as failures); random: 60/60 identical (9 with more than t corrupted groups, 0 of them miscorrected with the success flag set, as in the model); longest 33,643 clock cycles after the helper data |
| specification C: r = 3, n = 324, t = 4 | directed: 12/12 identical to the model, bit for bit and in the success flag (4 beyond the code's capacity, correctly reported as failures); random: 60/60 identical (23 with more than t corrupted groups, 0 of them miscorrected with the success flag set, as in the model); longest 4,946 clock cycles after the helper data |
| specification A: r = 3, n = 364, t = 7 | directed: 12/12 identical to the model, bit for bit and in the success flag (4 beyond the code's capacity, correctly reported as failures); random: 60/60 identical (20 with more than t corrupted groups, 0 of them miscorrected with the success flag set, as in the model); longest 8,969 clock cycles after the helper data |
| random error patterns, model decoder (table above) | D (r = 1): 0/996 miscorrected beyond t; C (r = 3): 0/2,000 miscorrected beyond t; A (r = 3): 0/1,712 miscorrected beyond t; hand design (Section VII-E): 0/458 miscorrected beyond t |
| run time | Icarus Verilog 92 s (216 tests), Monte Carlo 2 s |
Key insights. The generated keygen_rec.v for specification D has 120 lines of Verilog; its interface is printed above.
- Equivalence. For each design, D ($r = 1$, $n = 600$, $t = 17$), C ($r = 3$, $n = 324$, $t = 4$) and A ($r = 3$, $n = 364$, $t = 7$), 12/12 directed and 60/60 random reconstructions are identical to the model, bit for bit and in the success flag, as predicted. In each, the 4 directed tests beyond the code’s capacity are reported as failures, and none of the random reads with more than $t$ corrupted groups (9 for D, 23 for C, 20 for A) is miscorrected. The generated RTL thus makes the model’s decisions on 216 reads (72 per design), so the key-failure probabilities of step 2 are taken to apply to it, under the cell models.
- Latency. The longest reconstructions take 33,643, 4,946 and 8,969 cycles after the helper data; the latency formula of Subsection B without its loading terms ($n r + 10t$) gives 33,649, 4,952 and 8,975 cycles, within 6 cycles of the simulation. The latencies of Table 30 include the loading, in which a masked enrolment streams the whole physical array instead of the $n r$ kept cells.
- Miscorrection. The random error patterns (Table 31) confirm the prediction. Every pattern of weight up to $t$ is corrected (3,004/3,004 for D, 2,000/2,000 for C, 2,288/2,288 for A, 3,542/3,542 for the hand design). Beyond $t$, none of 996 reads for D ($2.6 \times 10^{-19}$ predicted per read), 2,000 for C (4.2 × 10⁻⁴ predicted, about one expected), 1,712 for A (1.4 × 10⁻⁷ predicted) and 458 for the hand design ($t = 45$, $n = 600$) is miscorrected with the success flag set. For $t = 17$, 4 and 7 the success flag is therefore a useful failure detector (retrying the power-up read on a failed flag would be sound); for $t = 1$ and $n = 375$ a random syndrome is decoded with probability 376/1024, so it would not be.
Mutation test of the generated decoder
Mutation testing plants single faults in the design (a changed constant, operator or condition) and counts those the tests detect; a missed fault marks a gap in the tests. Two control mutants change only code that never executes (an unreachable default state, and a branch taken only for $t = 0$): they must survive, so a harness that reported every mutant as caught would fail them. The prediction is that every functional fault changes at least one corrected word or success flag in the directed tests, which cover 0, 1, $t/2$, $t$ and $t + 1$ corrupted groups and $t + 3$ beyond the strength of the code.
The test runs at RTL, live. The Verilog of specification C, the smallest generated design (repetition 3, BCH(324, $t = 4$)), carries one fault per mutant: 19 faults in six blocks (GF($2^{10}$) arithmetic, syndromes, Berlekamp-Massey, the Chien search and the success rule, the data path, the repetition voter and the cell mask) and the two controls. Each mutant is compiled and simulated with Icarus Verilog on the 12 directed tests of Step 4, one mutant per core, with a 60 s time limit. A mutant is caught when its output differs from that of the unmutated RTL, which equals the model on these tests, or when it does not finish.
| GF(2^10) arithmetic | 3 of 3 faults caught |
| syndromes | 3 of 3 faults caught |
| Berlekamp-Massey | 5 of 5 faults caught |
| Chien search and success rule | 3 of 3 faults caught |
| data path | 2 of 2 faults caught |
| repetition voter and cell mask | 3 of 3 faults caught |
| all planted faults | 19 of 19 caught; each by 2 to 12 of 12 tests |
| controls (code that never executes) | 2 of 2 survive, as they must |
| survivors among the faults | none |
| run time (Icarus, one mutant per core) | 26 s |
Key insights. All 19 faults are caught, each by 2 to 12 of the 12 directed tests, and both controls survive, as predicted: the directed tests of Step 4 are sensitive to every block of the decoder, including the error-locator update, which a test with few errors would exercise only partly. With the bit-for-bit match of the 60 random tests and the Monte Carlo beyond $t$, the verification constrains the generated hardware, not only its successful cases. D and A, not mutated, share C’s decoder template and are verified as in Step 4.
Proof of the generated field arithmetic
The syndromes, the Berlekamp-Massey discrepancies and locator updates and every Chien-search step are products in GF($2^{10}$). A multiplier wrong for a few operand pairs would corrupt only the reconstructions that meet those pairs, which random tests can miss. The multiplier has two 10-bit operands, so all $2^{20}$ = 1,048,576 pairs can be evaluated, and comparing every product with a trusted reference is a proof by exhaustion. The reference is the model’s field (Section V-D), whose tables computed the helper data, so agreement ties the hardware to the helper data it decodes. A SAT solver proves the same equivalence symbolically, against an independently written second reference. The prediction is that no product differs.
The evaluation runs at RTL, live. For each of the specifications D, C and A, the function gmul of the generated Verilog (a shift-and-add multiplier with reduction by $x^{10} + x^3 + 1$, the same template in all three) is copied verbatim into a wrapper, converted to an and-inverter graph by Yosys and evaluated bit-parallel on all $2^{20}$ operand pairs at once. Each product is compared with the model’s $\mathrm{EXP}[\mathrm{LOG}[a] + \mathrm{LOG}[b]]$ for operands $a$ and $b$ (EXP and LOG: the model’s antilogarithm and logarithm tables), and the decoder’s constants $\alpha$ (the field’s primitive element), $\alpha^2$ and $\alpha^{-1}$ with the model’s powers of $\alpha$. The SAT proof builds a miter of the same function and a differently written reference (the 19-bit carry-less product of the operands, then reduction from the top bit down) and proves with MiniSAT, in Yosys, that their outputs never differ; it takes about 5 minutes and is shown from its recorded run unless SAT_PROOF = True.
| multiplier of specification D, all 1,048,576 operand pairs | 0 products differ from the model's GF(210) tables (840 AND gates); α, α², α−1 equal the model's |
| multiplier of specification C, all 1,048,576 operand pairs | 0 products differ from the model's GF(210) tables (840 AND gates); α, α², α−1 equal the model's |
| multiplier of specification A, all 1,048,576 operand pairs | 0 products differ from the model's GF(210) tables (840 AND gates); α, α², α−1 equal the model's |
| SAT proof against an independent reference (Yosys miter, MiniSAT) | proved for every operand pair (241 cells, 266 s; recorded run (python dev/rtl/record_gmul_sat.py; SAT_PROOF = True re-runs it)) |
| run time | 1 s |
Key insights. No product differs in any of the three specifications, as predicted: for all 1,048,576 operand pairs the multiplier, an and-inverter graph of 840 AND gates, gives the model’s product, and the constants $\alpha$, $\alpha^2$ and $\alpha^{-1}$ equal the model’s. The SAT proof finds no operand pair on which the generated multiplier and the independent reference differ (241 cells; recorded run, 266 s). The field arithmetic of the generated decoder is thus proven, not sampled: a fault can lie only in its control (the state machine, the counters and the success rule), which the directed tests and the mutation test exercise. The proof covers the multiplier as generated for this field; a change of field or template needs it again, which the cell repeats in seconds.
D. Step 5: place and route
The key generator of specification D is carried from its synthesised netlist to a GDS with the flow of Section X-C: routing, routing DRC, antenna check and Magic DRC; no LVS, parasitic extraction, multi-corner timing, post-route simulation or power for this unit. The flow is steps 1–4 and the GDS and Magic DRC of step 5 of Section X-C, with the same utilisation, density, clock period and corner and these differences: hold repair to zero slack (not 0.30 ns), routing on met1–met5 (not met2–met5), antenna repair at a 60 % margin with the input ports buffered at their pins. The parts that run live depend on the switch:
Table 32: Parts of the key generator's layout flow that run live, by setting of the routing switch
|
The recorded values come from a run of the same flow and settings on the same design; for the smaller design of specification C, these settings, the default 20 % margin and the 60 % margin without buffering each left 2 antenna violations. The cell checks that the recorded design is the one selected in the current run and reports any mismatch on the result panel. The metrics are die size and instances, setup and hold slack, routing DRC, antenna and Magic DRC violations. The layout of the unit, Fig. 79, is drawn in the style of Fig. 70(a), so its size and the density of its cell rows can be compared with those of the keystream block.
| design | r = 1, 600 groups, t = 17: 19,128 GE, 1,725 flip-flops |
| die / standard cells | 548 × 548 µm, 38,559 instances |
| timing at 10 MHz (tt, 25 °C, 1.8 V; global-routing parasitics) | setup slack +89.1 ns, hold slack +0.39 ns |
detailed routing (recorded run of the same design, 16 min on two cores; ROUTE_COMPILED = True re-runs it) | 0 DRC violations, 8 antenna violations |
| DRC of the routed GDS (Magic, full SKY130 deck) | 0 violations |
| GDS of this session (KLayout) | placed design, keygen.gds (GDS_K), drawn below |
| run time | 10 s |

Fig. 79. Compiled key-reconstruction unit of specification D (the −40 and 85 °C key generator) in SKY130, drawn as Fig. 70(a): diffusion and poly of the standard-cell rows and vertical met4 power stripes, signal routing hidden; scale bar: 50 µm. Default mode: placed and globally routed in this session (title “Placement”); with ROUTE_COMPILED = True: routed in detail (title “Routed”).
Key insights. Fig. 79 shows the placed unit at about 30 % utilisation (target 25 %, raised by the tap, buffer and hold cells), dense where the decoder’s logic and registers sit and sparse where only fill cells are. The decoder is placed and globally routed live on a 548 µm × 548 µm die with about 38,600 instances; with global-routing parasitics, its setup slack at 10 MHz is +89.1 ns and its hold slack +0.39 ns. The recorded detailed routing ends with 0 routing DRC and 0 Magic DRC violations; 8 antenna violations remain after inserting 4 diodes. The key generator’s decoder, like the keystream block, can thus be placed and routed DRC-clean in an open PDK; its antenna violations have the cause and remedy of Section X-C. Its die is larger than the keystream block’s (399 µm), consistent with a decoder about twice that block’s size.
The four sign-off runs of Sections X and XI are set side by side below on the same scales (recorded runs): the proposal’s low-power keystream block, the block without and with clock gating, and this compiled unit. The menu chooses the run. The panels show (a) the setup slack and (b) the hold slack at each corner the record holds, and (c) the power by group (flip-flops, clock tree, logic) at tt, with the extracted wires and as estimated without extraction. The card gives the run’s die, cell area, instances, routing and Magic DRC, antenna violations, LVS and gate-level checks, its run time and the command that repeats it.

secure_ks_lp, recorded run)| die, utilization | 399 × 399 µm, 30 %; cell area 44,836 µm² (9,869 gate equivalents) |
| instances | 22,648 (of which 15,680 fillers and 30 antenna diodes); routing on met2-met5 |
| routing DRC / Magic DRC / antenna | 0 / 0 / 16 (antenna margin 80 %, 3 repair iterations) |
| LVS (netgen) | match |
| power, extracted wires / estimated (µW) | 73.4 / 65.4 (activity of the block's steady-state test job) |
| gate-level checks of the routed netlist (Icarus) | 5 of 5 passed ✓ frame 0 (nonce df243041, chip nonce 0983473a, ctr 0, 76-bit msg): RUN at cycle 204, ctr = 0, keystream 100 bits, tag = b60aa076 ✓ frame 1 (nonce df243041, chip nonce 0983473a, ctr 1, 400-bit msg): RUN at cycle 316, ctr = 1, keystream 100 bits, tag = fb55976f ✓ frame 2 (nonce df243041, chip nonce 0983473a, ctr 2, 72-bit msg): RUN at cycle 730, ctr = 2, keystream 100 bits, tag = e2ff2e16 ✓ frame 3 (nonce 9449f6dc, chip nonce 46aaa3d6, ctr 0, 1-bit msg): RUN at cycle 905, ctr = 0, keystream 100 bits, tag = 72f089e6 ✓ dither LFSR16 x 2 (seeds 1234/beef), 1005 bits each |
| run time | 531 s on 2 cores (detailed routing 399 s) |
| re-run | taskset -c 0,1 python dev/rtl/record_block_lp.py (or ROUTE_BLOCK = True in the notebook cell) |
E. Step 6: the complete area
The key generator runs once per power-up: it reads the array, corrects the fingerprint and hashes the corrected word into the 128-bit key and the chip nonce (SHA-256 in the model, Section V), so the hash must be on the chip. A round-per-clock SHA-256 core holds the eight chaining words, the eight working words and a 16-word message schedule, 1,024 bits of state, so it needs more than 1,000 flip-flops (about 5,500 GE at 5.33 GE each) before its adders and round constants. The prediction is therefore that the hash and the decoder are the largest parts of the key generator. The helper data of specification D are the enrolment mask (one bit per physical cell, 935) and the BCH syndromes ($10t$, 170): 1,105 bits (C: 1,395 mask, 648 repetition and 40 BCH bits, 2,083 in all). They are public and sent on the downlink at the start of a session (Section IV), so they need no storage if the decoder consumes them as they arrive.
The area of everything the proposed design adds to the chip of [1] is collected part by part, each marked as synthesised, drawn, estimated or not costed:
- Hash: a SHA-256 compression core in Verilog (one round per clock, 65 clocks per 512-bit block, message words entering serially), simulated with Icarus Verilog against Python’s
hashlibon five messages of one and two blocks (among them a 516-bit message that, like D’s 600-bit corrected word, needs two) and synthesised onsky130_fd_sc_hd. - Decoder: specification D from step 3. Keystream block: Table 23.
- Array: the physical cells of D times the area of the SRAM cell of Section VII-D, drawn with logic design rules, not as a foundry bit cell, so it overstates the array.
- Helper data: zero on the chip if streamed; otherwise estimated as flip-flops. The delay line takes its estimate from Section X-A.
- Not costed: the nonce sequencer (the array’s power switching and the control of the 64 power-up reads hashed into the chip nonce), the array periphery (word-line drivers, read-out, power switching), the downlink receiver, the hash’s padding and control, and the power and energy of the decoder and the hash.
- Metrics: area in GE and µm² per part, with its source; the total of the designed parts and each part’s share.
| Part | Area (GE) | Area (103 µm²) | Source |
|---|---|---|---|
| keystream block (Grain-128a + MAC, key, nonces, counter, IV, dither) | 9,869 | 37.0 | low-power form; synthesised, placed and routed (Section X) |
| key decoder (repetition vote, r = 1; BCH, n = 600, t = 17) | 19,128 | 71.8 | synthesised, placed; routed in the recorded run |
| hash (SHA-256 compression core) | 15,097 | 56.7 | synthesised; padding and block control not included |
| SRAM-PUF array, 935 bit cells | 3,028 | 11.4 | drawn cell (12.15 µm², Section VII-D) × cells; no periphery |
| 32-bit MAC delay line | 170 | 0.6 | estimate (Section X-A) |
| total, designed parts | 47,292 | 177.5 | |
| helper data, 1,105 bits (935 mask, 0 repetition, 170 BCH) | 0 or 5,893 | 0 or 22.1 | none if streamed from the receiver at power-up; if held on chip, as flip-flops (5.33 GE each), an estimate |
| array periphery (word lines, read-out, power switching) | – | – | not designed |
| downlink receiver (session nonce and helper data) | – | – | not designed |
| SHA-256 core in RTL | 5/5 digests equal to Python's hashlib (1 and 2 blocks, incl. a 516-bit two-block message); 15,097 GE, 1065 flip-flops; 65 clocks per block (3 s) |
| designed parts | 47,292 GE (177.5 × 103 µm²): keystream 21 %, decoder 40 %, hash 32 %, array 6 % |
| helper data held on chip instead of streamed | +5,893 GE as flip-flops (1,105 bits) |
| not costed | array periphery, downlink receiver, padding and control of the hash, and the power of the decoder and hash |
Key insights.
- The SHA-256 core reproduces Python’s
hashlibon 5/5 messages and synthesises to 15,097 GE, about 5,700 GE of it in its 1,065 flip-flops. With it, the designed parts of the proposed design’s digital security for specification D total 47,292 GE (177.5 × 10³ µm²) (Table 33), about 4.8× the low-power keystream block and 54× the S-DSM’s low-power block in the same flow. The shares are: the low-power keystream block 21 %, the key decoder 40 %, the hash 32 % and the SRAM-PUF array (935 drawn cells) 6 %, with the 32-bit delay line estimated at 170 GE. As predicted, the decoder (19,128 GE) and the hash are the largest parts. Held on the chip as flip-flops instead of streamed, the 1,105 helper bits of D would add an estimated 5,893 GE. - Comparison with published decoders. Published FPGA key generators have smaller decoders: in PUFKY [14], the BCH decoder is a microcoded processor of 112 Spartan-6 slices, and the whole key generator (ring-oscillator PUF, decoder and a SPONGENT-128 hash) occupies 1,162 slices, 82 % of them for the PUF. Slices and GE cannot be converted exactly, but a Spartan-6 slice holds eight flip-flops, so the 707 flip-flops of C’s decoder alone would fill at least 89 slices, most of PUFKY’s decoder, and the 1,725 of D at least 216.
- Two choices of this work, not of the scheme, make the key generator large: a round-per-clock SHA-256, where a serialised SHA-256 or a lightweight hash such as SPONGENT-128 [14] would be several times smaller, and a decoder that holds all its data in flip-flops, where a microcoded decoder with its word in a small memory, as in [14], would be smaller. Both blocks run only at power-up, so their area matters more than their power.
Every block of the proposed design now exists at the level at which it would be built, but each was checked on its own, and every system result still rests on the behavioural model with SPICE-derived parameters. Section XII joins them: the decoder generated here and the keystream block of Section X run at RTL, with transistor-level SRAM cells and comparators, in one simulation of the complete sensor.
XII. Full-chain mixed-level simulation of the complete sensor
Every block of the proposed design now exists at the level at which it would be built. This section asks whether the complete sensor still works, and the security results of Section VIII still hold, when the analog circuits run at transistor level and the digital blocks as RTL. The behavioural model makes two abstractions: a threshold with constant offset and Gaussian noise in place of the StrongARM comparator, and a key reconstructed in Python, not in hardware. Both are tested where they could fail: inside the closed modulator loop, and in the hardware that regenerates the key from transistor-level SRAM cells. Since one live run covers one condition, the complete chain is also repeated at 24 recorded settings of corner, temperature, input and length, so that the conclusions do not rest on that condition alone.
With the extracted cells (Section VII), the replica attack (Section VIII-B), the keystream block’s RTL (Section X) and the compiler’s decoder (Section XI), one simulation of the complete sensor runs each block at the level at which its behaviour matters, the blocks exchanging the real signals:
Table 34: Abstraction level and simulator of each block in the mixed-level simulation
|
Two chips are simulated, the victim and an attacker’s replica, each with its own transistor-level comparator (own Monte Carlo mismatch and transient noise), so that the replica attack of Section VIII-B runs on transistor-level bits against both designs.
The theory and setup explain why the long transient can be cut into segments and how the comparator model is tested decision by decision. A fixes the operating condition and its comparator noise $\sigma_\mathrm{n}$. B (step 1, transistor level) produces the chip’s fingerprint at enrolment and in the field. C (step 2, RTL) reconstructs the key in the decoder hardware. D (step 3, transistor level in the loop) runs the victim’s and the replica’s modulators with their post-layout comparators and tests whether the behavioural model predicts every decision. E (step 4, RTL) encrypts and authenticates the victim’s bits in the keystream block’s RTL. F (step 5) receives and attacks the frame: a forger, an eavesdropper with a wrong key, and the replica attacker. G (step 6, recorded) runs the replica attack with transistor-level chips over a longer capture and compares it with the behavioural model on the same pair of chips. H shows the run in signal-chain order, and I collects every step’s level, simulator, run time and check in Table 36.
Theory: segments, solver accuracy and the decision-by-decision test
Symbols: $x_1, x_2$ are the two integrator outputs and $u$ the modulator input, in model units (full scale ±1); $v = \pm 1$ is the DAC output; $d$ is the dither; $\Delta V_k = (V_{DD}/4)\,x_2'$ is the comparator’s differential input at clock $k$, with $V_{DD}$ the supply and the dithered state $x_2' = x_2(1+d)+d$; $V_{os}$ is the comparator’s input-referred offset in volts (in the model units of Section VIII, $o = -V_{os}/(V_{DD}/4)$) and $\sigma_n$ its input-referred rms noise.
1. Segments without error. The modulator’s only state is $(x_1, x_2)$; the StrongARM is reset every clock and keeps no state beyond it. A long transient can therefore be cut into segments, each started from the previous integrator state (.ic) with one warm-up decision to bring the comparator into its normal cycle. The cut is exact up to the comparator’s reset, which the circuit performs anyway, and keeps ngspice’s cost per clock constant. Assumption: the reset is complete; an incomplete one would show up as memory in the decision test of point 3.
2. The behavioural integrators must be solved exactly. ngspice solves every node to a relative tolerance reltol, $10^{-3}$ by default. The default left effective integrator gains of 0.4993 and 0.4972 instead of 0.5 (errors of 0.1 to 0.6 %) and per-clock errors of $10^{-3}$ to $10^{-2}$. These lie far above the integrators’ thermal noise ($0.9 \times 10^{-5}$ of full scale per clock at the first integrator’s output, Section V-A) and differ from chip to chip, so two chips’ loops would drift apart for a reason no real chip has. With reltol = $10^{-6}$ the gains are exact to $10^{-6}$ and the per-clock error, $8 \times 10^{-6}$, is below the thermal noise, at about twice the simulation time. The prediction is that the transistor-level loop decodes to the same reading as the behavioural model of the same chip.
3. Omissions of the behavioural comparator and their test. The model of Section VIII decides $$v_k = \operatorname{sgn}(\Delta V_k - V_{os} + n_k), \qquad n_k \sim \mathcal{N}(0, \sigma_n^2),$$ where $v_k$ is the decision at clock $k$ and $n_k$ the comparator noise at that clock. A real comparator can deviate in three ways: (i) an offset that depends on the input history (memory from an incomplete reset, kickback); (ii) metastability: the regeneration time grows as $\tau \ln(V_{DD}/|\Delta V|)$, with $\tau$ the regeneration time constant, so an input below about $V_{DD}\,e^{-t_{avail}/\tau}$ ($t_{avail}$: the time before the latch samples) may not resolve; (iii) non-Gaussian noise. The decisive test is decision by decision: given the input $\Delta V_k$ the transistor-level comparator actually saw, the threshold model predicts $[\Delta V_k > V_{os}]$ and can be wrong only through noise, with probability $\Phi(-|\Delta V_k - V_{os}|/\sigma_n)$ ($\Phi$: the standard normal cumulative distribution). The expected number of disagreements is $$\mathbb{E}[N_{\neq}] = \sum_k \Phi\!\left(-\frac{|\Delta V_k - V_{os}|}{\sigma_n}\right).$$ The prediction is that the observed count $N_{\neq}$ is consistent with $\mathbb{E}[N_{\neq}]$ (approximately Poisson) and that every disagreement lies within a few $\sigma_n$ of the threshold; more disagreements, or disagreements at large inputs, would expose an effect the model lacks.
4. Decision by decision, not bit for bit. One differing decision changes the integrator state; from then on the two loops produce different but statistically equivalent bitstreams, so a bit-for-bit comparison would measure only the time to the first noise-driven disagreement. The loops are therefore compared decision by decision on the same input (point 3) and by the decoded reading. The same holds for two chips: victim and replica start from the same state and input, but their offsets, dither and noise differ, so they do not stay in step, which the replica attack must account for (steps 5 and 6).
Simulation setup
The run simulates one victim and one replica chip at one corner and temperature (settings form, A). Every random quantity has a fixed seed, so the run is reproducible; it is one sample, not a statistic: the statistics over Monte Carlo chips and PVT conditions are those of Section VIII, which this run checks. The settings are:
Table 35: Settings of the mixed-level run and the source of each
|
Each step states its pass criterion before its code cell: transistor-level and RTL results against the model, the theory and the recorded statistics of Sections VII and VIII. At the defaults the run takes about 5 to 6 minutes on two cores (5.9 min in the published run; How to run), almost all in the transistor-level steps 1 and 3; step 3 grows in proportion to the clock count. Table 36 gives each step’s time. Step 6 is a recorded run (74 min on two cores) that the form option LONG_RUN re-runs.
A. Settings
The form’s defaults and options are those of the Simulation setup; one informative alternative is fs at 85 °C, where Section VIII-F predicts that the key fails with a 25 °C enrolment. The comparator noise $\sigma_\mathrm{n}$ for the decision test of step 3 is interpolated in temperature from the comparator PVT grid of Section VII-F at the chosen corner and 1.8 V.
| process corner, temperature, supply | tt, 37 °C, 1.8 V |
| sensor input | constant 0.5 µA (a bioreactor reading; the input of the replica attack) |
| modulator clocks per chip | 1,000 |
| chips | victim and replica: comparator Monte Carlo seeds 1000 and 1004; SRAM array of chip 1 |
| comparator noise at this corner and temperature (Section VII-F) | σn = 0.594 mV |
Key insights. The published run uses the defaults, with $\sigma_\mathrm{n}$ = 0.594 mV, the noise against which step 3 judges every decision. All numbers quoted in the rest of this section are from this run.
B. Step 1, transistor level: the SRAM-PUF array powers up
The fingerprint $w$ is read at enrolment (25 °C) and its syndrome published (Section V-D); the field power-up at the operating temperature gives $w'$, in which a cell whose mismatch is small against the noise, or changes with temperature, can flip. The bit error rate $\mathrm{BER} = |w \oplus w'|/600$ follows the error law of Section VII-F, set mainly by noise at tt and moderate temperatures. The pass criterion is that the number of differing cells is close to 600 × BER, with BER from the recorded transistor-level Monte Carlo of Section VII-F at this corner and temperature, within the binomial spread $\sqrt{600\,\mathrm{BER}(1-\mathrm{BER})}$; the key is recoverable only if that number is at most t.
The cells are simulated as ngspice transients of the extracted 6T cell with chip 1’s mismatch and transient-noise seed 7 (Simulation setup). Fig. 80 draws the enrolled fingerprint $w$ as a 20 × 30 grid and marks in red the cells of $w \oplus w'$, so the red cells are the differing cells that the pass criterion counts.
| fingerprint | 600 cells, P(1) = 0.472 |
| bits that differ from the enrolment at 37 °C | 7 (BER 1.17 %); the recorded Monte Carlo at this corner gives 1.32 % (interpolated to 37 °C), that is 7.9 ± 2.8 expected (binomial) |
| BCH correction t | 45: the key is recovered if at most 45 bits differ |
| run time (ngspice) | 162 s |
Fig. 80. Mixed level, step 1: SRAM-PUF power-ups in ngspice. Fingerprint enrolled at 25 °C, drawn as a 20 × 30 grid of cells (grey: 1, white: 0); red: cells that power up to the other value in the field read at the chosen temperature.
Key insights. The fingerprint has 600 cells with a fraction of ones P(1) = 0.472. In the field read at 37 °C, 7 of 600 cells power up differently (Fig. 80, red), a BER of 1.17 %, scattered over the array. The recorded Monte Carlo at tt, interpolated to 37 °C, gives 1.32 %, that is 7.9 ± 2.8 expected errors: the observed 7 lies within one standard deviation, as predicted, and the code corrects up to 45, a margin of 38 errors. The transistor-level cells are thus consistent with the PUF error model of Section VII-F. The result holds for one Monte Carlo chip and one power-up; the key-failure probability over chips and corners, and the −40 and 85 °C enrolment on which the security claims rest, come from Sections VII-E and VIII-F.
C. Step 2, RTL: the key is reconstructed in hardware
The decoder corrects the field read of step 1 with the helper data as in Section V-D: if the error pattern has at most t ones, the corrected word is exactly $w$, and its hash equals the key the server derived at enrolment. The decoder is deterministic, so its RTL and the model’s reconstruct() must agree bit for bit; a difference would be a bug, not noise. The pass criterion is that with the errors of step 1 and t = 45 the decoder succeeds, the corrected word equals the enrolled fingerprint and the model’s output, and the hashed key equals the server’s.
The decoder is the one that the compiler of Section XI generates for n = 600 and t of Section VII-E with no repetition stage, simulated cycle by cycle in Icarus Verilog; the hash is behavioural (Python).
| errors in the field read | 7 of 600 (t = 45) |
| RTL decoder | success flag True; corrected word equals the enrolled fingerprint: True |
| RTL against the model's reconstruct() | identical bit for bit: True |
| key (SHA-256 of the corrected fingerprint, 128 bits) | equals the server's enrolled key: True |
| latency | 91,127 clock cycles = 9113 µs at 10 MHz, once per power-up |
| run time (Icarus Verilog) | 2 s |
Key insights. The RTL decoder reports success; its corrected word equals the enrolled fingerprint and the model’s reconstruct() bit for bit, and the 128-bit key equals the server’s enrolled key, as predicted: the key generator works on transistor-level cells, and the generated RTL agrees with the model behind Sections VIII and IX. Decoding takes 91,127 clock cycles, 9.1 ms at 10 MHz, once per power-up, a latency negligible for a sensor that then runs continuously.
D. Step 3, transistor level in the loop: two chips’ modulators
The step applies the decision-by-decision test of Theory, point 3, to each chip with its own $V_{os}$. The pass criterion is that for each chip the number of decisions that differ from the threshold model is consistent with $\mathbb{E}[N_{\neq}]$ from that chip’s $\Delta V_k$, $V_{os}$ and $\sigma_n$, that every differing decision lies within a few $\sigma_n$ of the threshold (the cell marks the run as failed if any lies beyond 6 $\sigma_n$), and that the decoded reading equals the behavioural model’s and the input, within the decimator’s resolution. Panel (c) of Fig. 82 shows this test: it plots each decision’s distance from the threshold in units of $\sigma_n$ and marks in grey the decisions within 3 $\sigma_n$, where noise can change a decision and any disagreement is expected; panels (a), (b) and (d) show the comparator’s waveforms, the integrator states and the decoded reading.
Each chip’s extracted StrongARM (seeds 1000 and 1004) runs inside the behavioural loop of the Simulation setup (Fig. 81), the two chips in parallel on two cores. Each offset is measured in SPICE before the loop (Section VII-B). The behavioural reference is the model of Section V-C with the same offset and $\sigma_n$. The reading uses the CIC decimator only: the 31-tap compensation FIR needs 31 output samples (1,550 clocks) to fill, more than this run.

Fig. 81. Mixed-level modulator testbench in xschem (SKY130 symbols): the comparator x1 with SR latch and noise currents, its loads, the behavioural second-order loop (input, dither and noise sources; gate pulses $\mathrm{sg}_1$, $\mathrm{sg}_2$; integrators $x_1$, $x_2$ with clamps; DAC sv; input sources $B_\mathrm{c0p}$, $B_\mathrm{c0n}$), the breakpoint helpers and the NGSPICE block.
| comparator offsets (SPICE, this corner and T) | victim +3.282 mV, replica -3.180 mV |
| decisions equal to the threshold model [ΔV > Vos] | victim: 100.00 % (0 differ, theory expects 0.6 from noise; none differs); replica: 100.00 % (0 differ, theory expects 1.0 from noise; none differs) |
| both chips: observed against expected | 0 differ, 1.6 expected; a Poisson count of mean 1.6 is ≤ 0 with probability 19% |
| decoded reading of the victim's bits | transistor-level loop +0.1341, behavioural model +0.1341, input +0.1341 (full scale ±1) |
| run time (ngspice, two chips in parallel) | 184 s for 1,000 clocks per chip (184 ms per clock) |
Fig. 82. Mixed level, step 3: modulators with the transistor-level comparator. (a) Victim's post-layout StrongARM in the loop, four clocks; each row from 0 to 1.8 V. (b) Integrator states from ngspice, first 200 clocks. (c) Distance of each decision's input from the threshold, $\log_{10}(|\Delta V - V_\mathrm{os}|/\sigma_\mathrm{n})$; grey: within 3 $\sigma_\mathrm{n}$; triangles: decisions that differ from the threshold model. (d) CIC decimator output: transistor-level loop, behavioural model, input.
Key insights.
- The SPICE search gives offsets of +3.282 mV (victim) and −3.180 mV (replica), against $\sigma_\mathrm{n}$ = 0.594 mV. In Fig. 82(a) the post-layout StrongARM works in the loop as on its own (Fig. 21): its differential outputs $\mathrm{out}_\mathrm{p}$ and $\mathrm{out}_\mathrm{n}$ settle at complementary levels and the SR latch output q holds each decision until the next, so the DAC sees one stable bit per clock (at the loop’s 5 ns time step, the regeneration and reset transients appear as short spikes). In (b) $x_1$ and $x_2$ stay bounded, with no drift or overload.
- In (c) almost all decisions lie tens to hundreds of $\sigma_\mathrm{n}$ from the threshold, where noise cannot change them, and only a few within 3 $\sigma_\mathrm{n}$. The count of differing decisions varies from run to run with the random transient noise; the result panel gives it per chip with the expected number, the Poisson probability and, for each differing decision, its distance from the threshold in $\sigma_\mathrm{n}$. In the published run, none of the 2,000 decisions differs, against 1.6 expected from the noise (0.6 on the victim and 1.0 on the replica; a Poisson count of mean 1.6 is 0 with probability 19 %); in unpublished development runs, 0 to 3 differed. The prediction holds: in closed loop at tt, 37 °C and 1.8 V the post-layout StrongARM decides as the threshold model predicts, no memory, kickback or metastability effect large enough to change a decision appears, and the comparator model of Section VIII holds at this condition. The test is limited by its length: 2,000 decisions at one corner cannot reveal an effect rarer than about one decision in a thousand.
- The decoded reading is +0.1341 of full scale for the transistor-level loop, the behavioural model and the input (Fig. 82(d)), as predicted; this is weak evidence, since any stable loop decodes a constant input correctly.
E. Step 4, RTL: encryption and MAC
From the 128-bit key and the initialisation vector IV = 1 ‖ N ‖ ctr ‖ $N_\mathrm{c}$ (session nonce, frame counter, chip nonce), Grain-128a produces a keystream $z_0, z_1, \dots$. The frame carries the chip ID encrypted with the first 16 keystream bits, the ciphertext $C_j = D_j \oplus z_{16+j}$ of the modulator bits $D_j$, and a 32-bit tag from Grain-128a’s authentication mode over the counter, the encrypted ID and $C$. The model’s Grain-128a matches the published test vectors (Section V-B); since every output is deterministic, any difference would be an error in the hardware’s bit order, counter or MAC timing. The pass criterion is therefore that the RTL’s ciphertext, encrypted chip ID and tag equal the model’s bit for bit.
The RTL is the block’s one-bit-per-clock form (secure_ks_top), simulated in Icarus Verilog with the key of step 2, the frame settings of the Simulation setup, the victim’s 1,000 bits of step 3 and the 31-bit chip nonce $N_\mathrm{c}$ that the model derives from the single transistor-level read of step 1 (printed on the result panel). The 63 further reads of a session are not simulated at transistor level; $N_\mathrm{c}$ enters the block as an input, so its value does not affect the checks. The model computes the same frame in Python.
| IV = 1 ‖ N ‖ ctr ‖ Nc | N = 3a94c1e7, ctr = 1, chip nonce Nc = 469b2503 (31 bits, from the step-1 read) |
| ciphertext C = D ⊕ keystream | 1,000 bits; equal to the model bit for bit: True |
| encrypted chip ID | equal to the model: True |
| MAC tag over counter | encrypted ID | C | RTL 594fabc8, model 594fabc8: True |
| run time (Icarus Verilog) | 0.1 s |
Key insights. The 1,000-bit ciphertext and the encrypted chip ID equal the model’s bit for bit, and the two tags agree (the result panel prints both; the tag changes from run to run with the bits it authenticates), as predicted. The RTL of the block that Section X prices computes the same frame as the model that Section IX attacks, for one 1,000-bit frame, one key and one counter value; the security results of that section carry over to the hardware as far as this test and the test vectors of Section X cover its behaviour.
F. Step 5: the server, an eavesdropper and the replica attacker
The expected behaviour of each party, and the limit of a short run, are as follows:
- Server. Since step 2 regenerated the enrolled key, the tag verifies and $D_j = C_j \oplus z_{16+j}$ recovers the victim’s bits exactly.
- Forger. A frame with one ciphertext bit changed carries the old tag, which matches only with probability $2^{-32}$.
- Eavesdropper. Its bit is right exactly where its keystream bit equals the true one, whatever the modulator bits; a wrong key gives an unrelated keystream, so this happens with probability 1/2, with a standard deviation of $\sqrt{0.25/1000} \approx 1.6$ % over 1,000 bits.
- Replica attacker (A4 of Section IX-A). With the victim’s ciphertext $C_A = D_A \oplus K$ (victim’s modulator bits $D_A$, keystream $K$) and the replica’s bits $D_B$, $C_A \oplus D_B = K \oplus (D_A \oplus D_B)$ holds 64 true keystream bits in any clean window, 64 consecutive clocks on which the chips decide alike: one clean window yields the original design’s key, and none yields anything against Grain-128a.
- Limit of a short run. For N = 1,000 the window starts (clock 200 to N − 777, Simulation setup) take only 24 positions, 200 to 223: the 80 attempts lie on at most 24 heavily overlapping windows within clocks 200 to 286, one stretch of the run. Below 2,000 clocks the result panel labels the result illustrative; step 6 is the actual test.
The pass criterion follows: the server accepts the frame and recovers the bits exactly, the forgery is rejected, the eavesdropper fails the MAC check and agrees with the true bits in about 50 % (±1.6 %), and the replica attack on the proposed design recovers nothing. On the original design the attack succeeds if and only if the stretch near clock 200 is clean, which one short run cannot predict statistically.
The step is behavioural (Python): the model’s receiver and MAC check on the RTL frame, the eavesdropper and forger of the Simulation setup, and the replica’s bits of step 3 against both designs (the original design keyed by its 16-bit LFSR); the clean-window fraction is measured from clock 200 to the end of the run. Fig. 83 shows the outcomes that the criterion distinguishes: in (a) the CIC output decoded with the enrolled key and with a wrong key, against the input, and in (b) the tries of the replica attack that recover each design’s key.
| server: MAC check with the enrolled key | accepted; bits recovered exactly: True; decoded reading +0.1341 (input +0.1341) |
| a forged frame (one ciphertext bit changed) | MAC rejected |
| eavesdropper with a wrong key | MAC rejected; the eavesdropper's bits agree with the true ones in 47.6 % |
| the two chips' transistor-level bitstreams | disagree on 6.5 % of bits; clean 64-bit windows 49.4 % |
| replica attack on the original design (LFSR-16) | 80 of 80 windows recover the key (illustrative: the 80 tries fall on 23 distinct, overlapping windows starting at clocks 200 to 223; step 6 is the test) |
| replica attack on the proposal (Grain-128a) | 0 of 80 windows (illustrative: the 80 tries fall on 23 distinct, overlapping windows starting at clocks 200 to 223; step 6 is the test) |

Fig. 83. Mixed level, step 5: receiver and attackers. (a) CIC output (oversampling ratio OSR = 50) decoded by the server with the enrolled key (blue) and by an eavesdropper with a wrong key (orange); dotted: sensor input. (b) Replica attack on both designs with the replica's transistor-level bits: tries of 80 that recover the key (illustrative below 2,000 clocks).
Key insights.
- The server accepts the frame, recovers the victim’s bits exactly, decodes +0.1341 of full scale, equal to the input (Fig. 83(a), blue), and rejects the forgery. The eavesdropper fails the MAC check, decodes noise (Fig. 83(a), orange), and its bits agree with the true bits in 47.6 % of the clocks, within two standard deviations of 50 %. The server, the forger and the eavesdropper behave as predicted.
- The replica attack’s bit-level numbers vary with the comparator noise of step 3 and are read from the result panel: over clocks 200 to 999 the two chips disagree on 6.5 % of bits and 49.4 % of the 64-bit windows are clean (3 to 13 % and 16 to 65 % in unpublished development runs). The 80 attempts fall on 23 distinct windows; as in those development runs, the attack recovers the original design’s key in 80 of 80 attempts and the proposed design’s in 0 of 80 (Fig. 83(b)).
- The result of 80 of 80 indicates only that one stretch near clock 200 was clean for both chips; the 6.5 % disagreement is below the 24.6 % the same chips reach over 30,000 clocks, which step 6 examines.
G. Step 6, transistor level: the replica attack over 30,000 clocks
Once the chips have drifted apart (Theory, point 4) they disagree on a fraction $p$ of their bits, but in bursts, so a fraction $f_{64}$ of the 64-bit windows remains clean, far more than the $(1-p)^{64}$ of independent errors. With 80 windows drawn at random, at least one is clean with probability $1 - (1 - f_{64})^{80}$, and about $80 f_{64}$ are clean. This is a lower bound on the windows that yield the original design’s key, because Berlekamp-Massey also succeeds when a window’s only wrong bits lie within its first $L = 16$ bits (the LFSR length) (Section VIII-B). The behavioural model differs from the circuit only in the comparator, so on the same pair it should give the same $p$ and $f_{64}$ within the spread of the comparator’s noise realisation, which no two simulators can share. The pass criterion is that the transistor-level chips disagree on about a quarter of their bits with a clean-window fraction of a few per cent, within or near the behavioural spread on the same pair, that the original design’s key is recovered from at least one of the 80 windows, and that the proposed design’s never is. Fig. 84 shows this mechanism: panel (b) plots the running disagreement between the two chips’ bits with the clean 64-bit windows marked, and panel (a) the start clocks of the 80 windows tried, so the windows that yield the original design’s key can be set against the clean stretches between the bursts.
The step runs the chips of step 3 (own dither and noise) at tt, 37 °C and constant 0.5 µA, 30,000 clocks per chip, with the same segments and reltol; the 80 window starts, drawn from clock 200 to 29,223, are distinct and spread over the capture. As the run exceeds a Colab session, the cell shows the recorded run (same code and seeds), and LONG_RUN = True re-runs it at the corner and temperature of the form. Every 30,000-clock number in this section refers to this recorded run.
Behavioural run on the same pair (live). The behavioural loop, in the netlist’s order, with the same input, each chip’s dither, the same two first-integrator noise realisations at the recorded setting, each chip’s offset measured in step 3 and the $\sigma_\mathrm{n}$ of this corner, repeated with 20 comparator-noise seeds. Metrics for both levels: the disagreement p, $f_{64}$ (from clock 200), and the windows that yield the key among the same 80 and over the whole capture. The comparison holds only at the recorded run’s tt, 37 °C; the result panel states when the form selects another condition.
| bitstreams | 30,000 clocks per chip, recorded run of dev/system/long_replica.py (74 min on two cores) |
| the two chips' bits | disagree on 24.6 %; clean 64-bit windows 3.1 % (behavioural model of Section VIII-B at PVT, other pairs: 4.9 %) |
| replica attack on the original design (LFSR-16) | 5 of 80 windows recover the key: the key is recovered |
| replica attack on the proposal (Grain-128a) | 0 of 80 windows |
| behavioural model on the same pair (20 comparator-noise seeds; same chips, corner, temperature, dither and integrator noise, 8.99e-06 at the integrator output) | bits disagree on 28.4 % (28.3–28.6 %); clean 64-bit windows 2.6 % (2.3–3.1 %); the 80-window attack recovers the key from 2.1 windows (2–3); windows that yield the key over the whole capture 1196 (1130–1315) |
| transistor level against the behavioural spread (seeds below / equal / above) | disagreement 0 below, 0 equal, 20 above; clean windows 20 below, 0 equal, 0 above; 80-window successes 5: 20 below, 0 equal, 0 above; key windows 1793: 20 below, 0 equal, 0 above |
| run time of the behavioural comparison | 2.9 s |

Fig. 84. Mixed level, step 6: replica attack over 30,000 clocks (recorded run, tt, 37 °C; LONG_RUN = True re-runs it). (a) Start clocks of the 80 windows tried (close starts overlap): grey ticks, no key; orange triangles, the original design's key. (b) Disagreement between the victim's and the replica's bits (64-clock running mean); blue: clean 64-bit windows.
Key insights.
- In the recorded run the windows that yield the original design’s key are spread over the capture (Fig. 84(a)), each on one of the short clean stretches between bursts of disagreement (Fig. 84(b)). The transistor-level bits disagree on 24.6 % of the clocks from clock 200 on and 3.1 % of the 64-bit windows are clean; Berlekamp-Massey recovers the original design’s key from 5 of 80 windows and the proposed design’s from 0 of 80, as predicted.
- The behavioural model on the same pair, over 20 seeds, gives 28.3–28.6 % disagreement (mean 28.4 %), 2.3–3.1 % clean windows (mean 2.6 %), 2 to 3 of the 80 windows yielding the key (mean 2.1), and 1,130–1,315 key-yielding windows over the capture (mean 1,196). The transistor-level pair’s disagreement lies below all 20 seeds, and its clean-window fraction, its 5 of 80 and its 1,793 key-yielding windows above all 20. The transistor-level chips thus agree more often than the model: 3.8 percentage points less disagreement, about a fifth more clean windows and half again as many key-yielding windows. Since the difference lies outside the noise-realisation spread, it reflects the comparator abstraction, and it favours the attacker. For this pair, the behavioural model of Section VIII therefore underestimates the windows available to the attacker; this suggests, but for one pair does not establish, that the protection points found there are not optimistic on this account.
- The analog differences between the two simulated chips do not protect the original design. The comparison covers one pair at one condition; the statistics over chips and PVT remain those of Section VIII-B.
Fig. 84 condenses the 30,000 clocks into one panel; the menu below shows them in segments of 2,000 clocks, where each clean stretch and each window that yields the key can be seen (recorded run). The menu chooses the segment. Panel (a) shows the disagreement between the victim’s and the replica’s bits (64-clock running mean) with the clean 64-bit windows shaded; panel (b) marks, for the original design and for the proposal, every candidate window (no disagreement in its bits 24 to 63, the windows the key-window count of the result panel above tests) and the windows from which the Berlekamp-Massey register recovers the key. The card gives the segment’s disagreement, clean windows, candidate windows and key-recovering windows of both designs; summed over the segments, the original design’s key-recovering windows equal the key-window count of the result panel above.

| segment | clocks 0–2,000 of 30,000 (from clock 200, after the start-up) |
| bits that disagree, victim and replica | 17.9 % (whole record 24.6 %) |
| clean 64-bit windows starting here | 9.1 % (whole record 3.1 %) |
| candidate windows (no disagreement in bits 24-63) | 268 |
| windows that recover the original design's key (LFSR-16) | 228, the first at clock 200 |
| windows that recover the proposal's key (Grain-128a) | 0 |
| source | recorded run of dev/system/long_replica.py (tt, 37 °C, chips 1000 and 1004, 74 min on two cores) |
H. The complete sensor in one figure
The figure reuses steps 1 to 6 without new transistor-level simulation and adds four security tests on the frame the run actually produces. (1) Key search on the original design: each of the 65,535 non-zero 16-bit LFSR keys decrypts the ciphertext of the victim’s step-3 bits and is scored by its agreement with the replica’s bits, the attacker’s plaintext guess under the known input. (2) The same search against the proposed design, with the session nonce, counter and chip nonce known (sent in clear): 1,000 random 128-bit keys and the 128 keys one bit from the true key, which show whether a partly correct key is rewarded (a bit-by-bit search). (3) Forgery: every single-bit change of the RTL frame (32 counter, 16 encrypted-ID, every payload and 32 tag bits) goes to the receiver, which recomputes the MAC with the enrolled key (the original design checks only the decrypted chip ID), plus 100,000 random tags with the genuine frame. (4) Four NIST SP 800-22 tests (frequency, block frequency with 128-bit blocks, runs, cumulative sums) on the 30,000 bits of step 6 before (D) and after (C) encryption with the proposed design’s keystream; pass at a p-value p ≥ 0.01. The spectrum of panel (e) is a Welch average of 4,096-point Blackman-Harris segments of the step-6 victim bitstream, against one behavioural run of the same chip (one comparator-noise seed). In Fig. 85, panels (a) to (h) follow the signal from the enrolled fingerprint to the bits of the link, (i) to (k) show the replica attack of steps 5 and 6, and (l) to (n) the four tests, so each security result sits beside the signals it was computed on.

| brute force of the original design's 16-bit key with the replica's transistor-level bits (1,000 clocks) | true key agrees on 93.6 %, rank 1 of 65,535; wrong keys 50.0 ± 1.6 % (highest 56.6 %) |
| the same search against the proposal (the attacker knows N, ctr and Nc) | 1,000 random keys 50.1 ± 1.6 % (highest 55.5 %); the 128 keys one bit from the true key 49.8 ± 1.6 % (highest 53.7 %): no partial key is rewarded; the true key itself would give 93.6 % |
| eavesdropper with a wrong 128-bit key (200 keys) | 49.8 ± 1.5 % of the victim's bits right |
| single-bit forgeries accepted, proposal (counter, ID, payload, tag) | 0 of 1,080 (counter 0/32, ID 0/16, payload 0/1000, tag 0/32) |
| single-bit forgeries accepted, original (ID, payload; it has no counter or tag) | 1000 of 1,016 (every payload change; an ID change fails its ID check) |
| 100,000 random tags for the genuine frame (proposal) | 0 accepted (2−32 each) |
| NIST SP 800-22 tests on 30,000 transistor-level bits: p for D | for C | frequency 2.8e-119 | 0.40; block frequency 2.9e-26 | 0.97; runs 0.0e+00 | 0.91; cumulative sums 1.2e-119 | 0.58 |
| run time of the tests and the figure | 0.2 s tests, 1.2 s in total |
Fig. 85. Full-chain mixed-level simulation of the complete sensor (tt, 37 °C; panels (e), (h), (j), (k) and (n) and the 30,000-clock bars of (i) from the recorded run of step 6). (a) Enrolled fingerprint (grey: 1, white: 0) and cells that differ in the field read (orange). (b) Victim's comparator over four clocks, each row 0 to 1.8 V. (c) Distance of each decision's input from the threshold, victim and replica; grey: within $3\sigma_\mathrm{n}$. (d) Integrator states $x_1$, $x_2$ of both chips. (e) Spectrum of the victim's bitstream, transistor level and behavioural model; dotted: 100 kHz band edge. (f) CIC output: input, server, behavioural model and a wrong key. (g) Bits of the link: modulator bits $D$, RTL keystream $K$ and ciphertext $C$, the server's $D_\mathrm{rx}$ and an eavesdropper's D̂; shaded: the eavesdropper's wrong bits. (h) Autocorrelation of D and C; band: ±2/√N, with N the number of bits. (i) Replica attack: windows that yield the key among the 80 tried (O: original, P: proposal), 1,000 clocks (step 5) and 30,000 clocks (step 6, recorded). (j) Disagreement of victim and replica (64-clock mean), clean 64-bit windows (orange) and the windows tried (top; triangles: key recovered). (k) Transistor-level values (diamonds) and 20 behavioural seeds (dots), each divided by the seeds' mean. (l) Agreement with the replica's bits (1,000 clocks) of the wrong 16-bit keys of the original design (histogram), of its true key (orange line) and of 1,128 keys of the proposed design (1,000 random, 128 one bit from the true key). (m) Single-bit forgeries accepted and rejected per frame field (counter 32, ID 16, payload 1,000, tag 32 bits; O: original, P: proposal). (n) NIST SP 800-22 p-values of $D$ and $C$ (frequency, block frequency, runs, cumulative sums); values below $10^{-30}$ drawn at $10^{-30}$; dotted: $p = 0.01$.
Key insights.
- Panels (a) to (k) of Fig. 85 restate steps 1 to 6 in signal-chain order (numbers in their steps); two views are new: the transistor-level bitstream has the noise shape of the behavioural model (e), and encryption removes the structure of the modulator bits (g, h).
- Panels (l) to (n) test the frame itself. Against the original design, the key search ranks the true key first: it agrees with the replica’s bits on 93.6 %, against 50.0 ± 1.6 % for the wrong keys (at most 56.6 %) (l). With the comparators as transistors and the cipher and MAC as RTL, the original design thus falls to the simplest attack, a search of its 16-bit key with the replica’s bits as the plaintext guess. Against the proposed design, 1,000 random keys agree on 50.1 ± 1.6 % (at most 55.5 %) and the 128 keys one bit from the true key on 49.8 ± 1.6 % (at most 53.7 %) (l): the search gets no guidance, since a key one bit from the true key scores no better than a random key. An eavesdropper with a wrong key gets 49.8 ± 1.5 % of the bits right.
- The receiver rejects all 1,080 single-bit forgeries of the proposed design’s RTL frame and all 100,000 random tags, whereas the original design accepts every one of the 1,000 payload changes (m). The ciphertext passes the four NIST tests (p = 0.40 to 0.97), which the modulator bits fail by far (p ≤ 3 × 10⁻²⁶) (n): the NIST tests and the autocorrelation detect no structure of the sensor signal in the proposed design’s bits on the air.
- On the transistor-level and RTL bits, the tests applied here find no weakness of the proposed design; they cover one chip pair at one condition and a 1,000-clock frame, and the statistics over chips and conditions are those of Sections VIII and IX.
Repeated at 24 settings of the form of Section XII-A, the full chain gives the same security result. Each point is a complete recorded run of steps 1 to 6 and of Fig. 85 over the process corner (tt, ss or ff), the temperature (37 or 85 °C), the sensor input (constant 0.5 µA or a sine) and the clocks per chip (1,000 or 2,000). At every point the proposed design accepts none of the single-bit forgeries, no replica window recovers its key, and no searched key agrees with the replica’s bits better than 56.5 %, whereas the search ranks the original design’s true key first at all 24 (76.8 to 94.4 % agreement). The key is reconstructed at 20 of the 24 points: at ff and 85 °C the 25 °C enrolment leaves 63 cells that differ, more than the 45 that the code corrects, the failure that the corner models of Section VII-F predict for this enrolment, here at transistor level, and the reason the key generator of Section XI enrols at two temperatures. The menus below choose the point; the panels are those of Fig. 85, and the card gives the result panel of this cell and the block-by-block summary of the run. Each point is one run: the transistor-level counts differ from run to run, as in steps 3 and 5.

| brute force of the original design's 16-bit key with the replica's transistor-level bits (1,000 clocks) | true key agrees on 93.6 %, rank 1 of 65,535; wrong keys 50.0 ± 1.6 % (highest 56.6 %) |
| the same search against the proposal (the attacker knows N, ctr and Nc) | 1,000 random keys 50.1 ± 1.6 % (highest 55.5 %); the 128 keys one bit from the true key 49.8 ± 1.6 % (highest 53.7 %): no partial key is rewarded; the true key itself would give 93.6 % |
| eavesdropper with a wrong 128-bit key (200 keys) | 49.8 ± 1.5 % of the victim's bits right |
| single-bit forgeries accepted, proposal (counter, ID, payload, tag) | 0 of 1,080 (counter 0/32, ID 0/16, payload 0/1000, tag 0/32) |
| single-bit forgeries accepted, original (ID, payload; it has no counter or tag) | 1000 of 1,016 (every payload change; an ID change fails its ID check) |
| 100,000 random tags for the genuine frame (proposal) | 0 accepted (2−32 each) |
| NIST SP 800-22 tests on 30,000 transistor-level bits: p for D | for C | frequency 2.8e-119 | 0.40; block frequency 2.9e-26 | 0.97; runs 0.0e+00 | 0.91; cumulative sums 1.2e-119 | 0.58 |
| run time of the tests and the figure | 0.2 s tests, 1.2 s in total |
| Step | Block | Level | Simulator | Run time | Check |
|---|---|---|---|---|---|
| 1 | SRAM-PUF power-ups (640 cells, enrolment and field) | transistor (post-layout) | ngspice | 167 s | 7 bit errors at 37 °C (t = 45) |
| 2 | key reconstruction (BCH decoder from the compiler) | RTL | Icarus Verilog | 2 s | key recovered; RTL = model: True |
| 3 | modulator: two chips, StrongARM in the loop | transistor (post-layout) + behavioural | ngspice | 184 s | 0 decisions differ from the model (theory: 1.6) |
| 4 | Grain-128a keystream and MAC | RTL | Icarus Verilog | 0.1 s | RTL = model: True |
| 5 | server, eavesdropper, replica attacker | behavioural | Python | < 1 s | MAC accepted; forged frame rejected; replica attack: original 80/80, proposal 0/80 (illustrative: 23 distinct windows) |
| 6 | replica attack over 30,000 clocks | transistor (post-layout) + behavioural | ngspice | 74 min (recorded) | original 5/80 windows recover the key, proposal 0/80 |
I. Summary of the run
One table, Table 36, collects block by block the level, simulator, run time and pass check of every step.
| Step | Block | Level | Simulator | Run time | Check |
|---|---|---|---|---|---|
| 1 | SRAM-PUF power-ups (640 cells, enrolment and field) | transistor (post-layout) | ngspice | 162 s | 7 bit errors at 37 °C (t = 45) |
| 2 | key reconstruction (BCH decoder from the compiler) | RTL | Icarus Verilog | 2 s | key recovered; RTL = model: True |
| 3 | modulator: two chips, StrongARM in the loop | transistor (post-layout) + behavioural | ngspice | 184 s | 0 decisions differ from the model (theory: 1.6) |
| 4 | Grain-128a keystream and MAC | RTL | Icarus Verilog | 0.1 s | RTL = model: True |
| 5 | server, eavesdropper, replica attacker | behavioural | Python | < 1 s | MAC accepted; forged frame rejected; replica attack: original 80/80, proposal 0/80 (illustrative: 23 distinct windows) |
| 6 | replica attack over 30,000 clocks | transistor (post-layout) + behavioural | ngspice | 74 min (recorded) | original 5/80 windows recover the key, proposal 0/80 |
The evaluation of both designs is complete: their security (Sections VIII and IX), their cost (Sections X and XI) and the consistency of the models (this section). Section XIII makes the same model available in the browser, to follow every block under every attack; Section XIV places the results against prior work.
XIII. The interactive explorer
The preceding sections show each block and each attack in figures. This section describes how a reader can follow any block of the link, under any attack, while changing the settings. The interactive explorer, a web page, runs a JavaScript port of the model of Section V in the browser and makes every intermediate signal visible; it illustrates the link, and every reported number comes from the Python cells of this notebook. The animations of Fig. 15 and Fig. 60 were recorded from it.
Contents. The explorer provides:
- a transistor-level drawing of the chip (simulated by the behavioural model) and a live scope on every block (front end, modulator, PUF, fuzzy extractor, keystream, MAC, channel, receiver);
- the attack evaluation of Section IX-A, with per-block waveforms for both designs under each attack;
- a helper-data and key workbench, in which any helper-data bit or PUF cell can be inverted and its effect on the key followed;
- the PUF reliability curves, the parameter sweeps of Section IX and the cost analysis of Section X.
Initial settings. The link below carries the post-layout SKY130 values of Section VII-E (Table 12): comp_noise = 0.001279, int_noise = 8.99e-06, puf_sigma = 0.02253, puf_tc = 0.02051, puf_bias = 0.4928, bch_t = 45. comp_noise is the comparator’s input-referred noise $\sigma_\mathrm{n}$ divided by $V_\mathrm{DD}/4$ (the model’s full scale); int_noise is the first integrator’s thermal noise per clock in full-scale units, derived from the 9.48 pA measured in [1]; puf_sigma and puf_tc are the SRAM cell’s noise-to-mismatch ratio at 25 °C, $s_{25}$, and its temperature coefficient $a$ in $s(T) = s_{25}\,(1 + a\,\lvert T - 25\,{}^\circ\mathrm{C}\rvert)$ at temperature $T$; puf_bias is the probability $P(1)$ that a cell powers up to 1; bch_t is the number t of flipped cells the BCH code corrects, the working setting of the system simulations. The explorer’s PUF reliability curves use the linear temperature law, which underestimates the 85 °C error rate (Section IX-B).
Usage.
- Open the explorer with this notebook’s SKY130-derived settings (an internet connection is required; nothing is installed). The page itself is nithinpuru.github.io/secure_sensor_with_puf.
- Select an attack from the Attack menu above the diagram; every block then shows its signal under that attack for both designs.
- Change a setting and follow its effect block by block; the Share button generates a link that reproduces the current configuration.
With the evaluation complete and open to inspection, Section XIV positions the proposed design among the prior approaches of Section III.
XIV. Comparison with prior work
Section III motivated this work by a gap in prior work; with the security and cost of the proposal now measured, this section returns to that review. Where does the proposal stand among the four lines of work? Section III reviewed them: compact cryptographic engines, physical-layer and analog-domain security, silicon PUF key generators, and the S-DSM of [1]. Table 37 places the attack verdicts of Section IX and the cost of Section X against what the other approaches provide and cost. Subsection A explains how the table is read, B why no figure of merit is scaled between processes and how the designs are compared like for like within one, and C states what the comparison shows for security, power, transmitted bits and area.
A. How to read the table
- Columns. One per crypto engine (NanoAES [8], the SIMON engines [10] and the DTLS engine [9]) and one per family for the physical-layer and analog-domain designs [11], [12] and the PUF key generators [13]–[17], whose icons give the family’s typical behaviour rather than that of every member; then the two designs of [1] (decimate-then-Trivium and the S-DSM) and this work (shaded).
- Upper row groups: properties (cost, confidentiality, key protection, link integrity, evaluation), read across. A positive icon means the approach provides the property, a neutral icon in part or depending on the design, a negative icon not; a dash means not applicable or not reported. This work’s security icons are the 15 verdicts of Table 21, its cost icons the results of Table 27; the prior works’ icons are this work’s reading of their papers.
- Lower row groups: figures of merit, read down a column, in two groups. The second group is the like-for-like comparison: Trivium and the S-DSM of [1] re-synthesised in this work’s SKY130 flow, with the same cell library, supply, clock and gate-level power simulation as the proposal and in the same two forms (Table 24), so that their differences from the proposal in area, power, energy and the proposed figure of merit, FOM = $E_\mathrm{bit}/(E_\mathrm{NAND2}\,S_\Sigma)$ (the energy per bit of the security logic $E_\mathrm{bit}$, over the library’s NAND2 switching energy $E_\mathrm{NAND2}$ and the security delivered, in bits summed over the goals met, $S_\Sigma$; Section X-E), come from the designs, not from the process. The first group places every work in its own node, with its basis (measured chip, FPGA or simulation) and technology in its first two rows; the prior works are quoted as reported, except the energy per bit of [1] (its measured power over the 10 Mb/s keystream, not a figure of [1]), and this group is not ranked.
B. A note on technology
The prior works were fabricated in 14 to 65 nm CMOS, except PUFKY [14], an FPGA implementation; this work is synthesised in SKY130, whose 1.8 V devices have a minimum channel length $L_\mathrm{min}$ = 150 nm, 2.3× that of 65 nm and 6.8× to 10.7× that of 22 and 14 nm, at a supply 1.5× the 1.2 V of [1]. Their published figures of merit therefore favour the prior works, and no number is scaled between processes, since a law such as $L_\mathrm{min} V_\mathrm{nom}^2$, with $V_\mathrm{nom}$ the nominal supply, assumes ideal scaling and in practice favours old, high-voltage nodes such as SKY130. The designs are therefore compared like for like within one process. The S-DSM and Trivium of [1] are re-implemented in this work’s SKY130 flow, with the same cell library, supply, clock and gate-level power simulation, and in the same two forms as the proposal (one bit per clock, and radix 16 with clock gating), so that their area, power and energy ratios to the proposal involve no scaling (Table 24); the proposed figure of merit FOM = $E_\mathrm{bit}/(E_\mathrm{NAND2}\,S_\Sigma)$ (Section X-E; lower is better), the energy per bit in units of the library’s NAND2 switching energy per bit of security delivered over the goals met, is given only to these same-flow blocks, since the $E_\mathrm{NAND2}$ of the published libraries is not public. The other prior works are not re-synthesised; their numbers place them in context, with area in gate equivalents (GE, the area of a two-input NAND gate) of each library, which removes most of the node dependence, and a stated basis, measured or simulated, for every number. The open PDK makes every number reproducible; a tape-out in a smaller node is future work (Section XV-G).
Comparison of approaches to securing a low-power sensor link
| Criterion | NanoAES [8] | SIMON [10] | DTLS [9] | Phys.-layer, analog [11], [12] | PUF key gen. [13]–[17] | Dec. + Trivium [1] | S-DSM [1] | This work |
|---|---|---|---|---|---|---|---|---|
| Cost | ||||||||
| Security overhead small next to a ~1.35 mW front end | – | |||||||
| Encrypts the modulator bits directly (no decimation on the sensor)† | – | |||||||
| Fewer transmitted bits than the conventional design of [1]a | – | – | ||||||
| Fewer transmitted bits than decimate-then-encrypt at the Nyquist rateb | – | – | ||||||
| Confidentiality | ||||||||
| 128-bit-class key | ||||||||
| Resists linear cryptanalysis (Berlekamp-Massey, known input) | – | |||||||
| Key protection | ||||||||
| No secret stored in memory (resists key extraction) | ||||||||
| Clone resistance (a copied chip has a different key) | ||||||||
| Link integrity | ||||||||
| Rejects forged and bit-flipped frames (MAC) | – | |||||||
| Rejects replayed frames (counter, nonce) | – | |||||||
| Evaluation | ||||||||
| Open, executable attack evaluation on an open PDK† | ||||||||
| Figures of merit, each work in its own node (prior works as published) | ||||||||
| Technology, basis | 22 nm, measured | 14 nm, measured | 65 nm, measured | 65 nm [11], [12], measured | 22 / 40 / 65 nm, measured; FPGA [14] | 65 nm, 1.2 V, measured | 65 nm, 1.2 V, measured | SKY130 (Lmin = 150 nm), 1.8 V, simulationc |
| Node relative to SKY130 (Lmin ratio) | 6.8× smaller | 10.7× smaller | 2.3× smaller | 2.3× smaller | 6.8× / 3.8× / 2.3× smaller | 2.3× smaller | 2.3× smaller | 1× (reference) |
| Security block | AES-128 | SIMON 32/64 | DTLS engine | freq. hopping, side-channel, CS | PUF + key extraction | decimator + Trivium | 3× LFSR-16 + XOR | Grain-128a + MAC, ctr, nonce, key reg. |
| Key length (bits) | 128 | 64 | 128 | – | – | 80 | 16 | 128 |
| Area | 2,090 gates | 548–1,080 gates | – | – | – | – | – | see below |
| Power | 170 µW at 340 mV | – | 0.89 nJ/byte | 10.9 mW [11] | 0.19 pJ per PUF bit [15]; 4.04 µW [17] | 220 µW | 24 µW | see below |
| Security energy per encrypted bit | 3.5 pJ/b (289 Gbps/W) | 0.08–6.0 pJ/b | 0.11 nJ/b | – | – | 22 pJ/bd | 2.4 pJ/bd | 6.4 pJ/be |
| Figures of merit computed in this work: same SKY130 flow, like for like | ||||||||
| Area, as written / low-power formf | –g | –g | –g | – | – | 2,376 / 2,931 GE | 450 / 869 GE | 5,240 / 9,869 GE; 47,292 GEh |
| Power at 10 MHz, as written / low-power formi | –g | –g | –g | – | – | 223 / 32.3 µW | 42.9 / 18.1 µW | 415 / 64.3 µW |
| Ebit of the security logicj | –g | –g | –g | – | – | 22.3 / 3.23 pJ | 1.44 / 1.12 pJ | 39.2 / 5.60 pJ |
| Security bits SΣ | – | – | – | – | – | 80 | 10 | 319 |
| Proposed FOM, Ebit/(ENAND2 SΣ), lower is betterj | –g | –g | –g | – (no per-bit cipher) | – (key generation only) | 35.1 / 5.09 | 18.2 / 14.1 | 15.5 / 2.21 |
| Bits sent per reading, same information (OSR 50) | – | – | – | – | – | 72–80 | 50 | 50.04k |
C. What the comparison shows
- In this work’s reading of the cited papers, the proposal, with the two-temperature enrolment, is the only approach that provides every security property of the table while encrypting the modulator bits. Crypto engines store their key and encrypt words, so the sensor must decimate first; PUF key generators protect the key but do not secure a link; the S-DSM keeps the cheapest link but fails 11 of the 15 attacks (Table 21) for three reasons: a short, linear, stored key, no nonce and no tag. The proposal resists or detects 14 at the working setting (all but A11) and all 15 with the enrolment at −40 and 85 °C (Section VIII-F).
- The proposal has the lowest FOM of the blocks synthesised in this flow, but costs more absolute power than the S-DSM. Under the same low-power techniques its keystream block dissipates 64.3 µW in gate-level simulation in SKY130 at 1.8 V (73.4 µW routed), 3.6× the S-DSM and 2.0× Trivium, ratios within one process; its FOM is 2.21, against 5.09 for Trivium and 14.1 for the S-DSM, and with the cipher strength alone 5.52, just above Trivium (Section X-E). Placed unscaled on the chip of [1], its SKY130 power takes 4.5 % of the total, against 1.7 % for the S-DSM and 14.0 % for Trivium as measured (Table 28).
- The transmitted bits stay at the S-DSM’s level, but are not the fewest possible. At OSR 50 the proposal sends 50.04 bits per reading, the S-DSM 50 and the decimating ADC with Trivium of [1] 72–80; a design that decimates on the sensor and encrypts 16-bit Nyquist-rate words with Grain-128a + MAC sends 16.04, 3.1× fewer than the proposal (Table 27); with the radio of [1] at one frame per minute, 28.0 µW against 9.2 µW on average (Section X-E).
- The area is larger than that of the smallest engines. The low-power keystream block is 9,869 GE, against 2,090 gates for NanoAES [8] and 548–1,080 for the SIMON engines [10], and the designed parts total 47,292 GE with the decoder and hash, which work only at power-up. Those engines, however, still need a decimator and a stored key and, except for the DTLS engine [9], provide no integrity by themselves.
The comparison places a simulated design against measured and published ones; Section XV draws the conclusions of the study from it and from the evaluation, together with the limits of that evidence.
XV. Conclusion, limitations and future work
This work evaluated the S-DSM of [1] against the attacker of Table 3 and replaced its stored key and unauthenticated frames with a key regenerated from SRAM cells at every power-up, a nonce-based Grain-128a keystream and a MAC on every frame, without changing its analog front end. Subsections A-D answer the four questions of Section I-B with the numbers of the published run: the security of the original design (A), the security and cost of the proposed link (B), the influence of the circuit non-idealities (C), and the specification-driven key generator and the consistency of the models across levels (D). The lessons beyond this design (E), the limitations (F) and future work (G) follow.
A. Security of the original design
The S-DSM withstands the cryptanalyses of [1] only in the form [1] carries them out, and fails 11 of the 15 attacks of the threat model (Table 21). The model reproduces the two-channel test of [1] (Table 7), but the protection seen there stems from the decorrelation between victim and replica bits: a full-capture scan with the public LFSR polynomial, a trimmed replica, multi-frame voting and an amplitude estimate turn the same experiments into successful attacks (A4-A6, Section IX). Without the inter-chip offset, the 80-window attack of [1] already breaks 356 of 360 pairs (Section VIII-B, Fig. 51; Section IX-C, Fig. 66).
A brute-force search of the 16-bit key needs only eavesdropping. Each of the other ten failures requires one further capability (a few keystream bits, a chip, or transmission on the link); six of them (key extraction, keystream reuse, spoofing, cloning, replay and bit-flipping) lie beyond the eavesdropper of [1] (Section IX). No comparator or integrator property within the accuracy budget alters this (Subsection C). Because the key LFSR restarts from the key in every frame without a nonce, first-order leakage tests, outside the threat model, also find the key exposed to power analysis at every update of that register (Sections IX-D and X-H).
B. Security and cost of the proposed link
The proposed link removes the stored key and authenticates every frame, at a cost in digital power. At the working setting it resists 9 and detects 5 of the 15 attacks; there, helper-data leakage (A11) leaves 94 secret bits at the 95 % lower bound, against 192 required. With the one-time enrolment at −40 and 85 °C, it resists 10 and detects 5 (7 verdicts simulated, 4 analytic and 4 by design; Section IX, Table 21, Section VIII-F). Power analysis, outside the threat model, remains open: the leakage tests place the exposure in the key load and the first initialisation updates of each session or frame, where masking or a protected key load would act, and find none during encryption and authentication of the data (Sections IX-D and X-H).
With the same low-power techniques in every design, the keystream block dissipates 64.3 µW in gate-level simulation in SKY130 (73.4 µW routed), 3.6× the 18.1 µW of the S-DSM in the same flow and 4.5 % of the chip of [1] unscaled. Its figure of merit (FOM) is 2.21, against 5.09 for Trivium and 14.1 for the S-DSM, the lowest of the blocks re-synthesised in this flow (Section X, Table 24, Table 28; requirement R1). The link sends 50.04 bits per reading at an oversampling ratio (OSR) of 50 (the S-DSM: 50): 1.44-1.60× fewer than the decimate-then-Trivium design of [1], but 3.1× more than a design that decimates on the sensor (16.04 bits). With the radio of [1] and one frame per minute, the two correspond to 28.0 µW and 9.2 µW (Table 27). The keystream block occupies 9,869 GE; with the decoder of specification D (19,128 GE), a SHA-256 core (15,097 GE) and the array, the designed parts total 47,292 GE (Table 33). The added blocks also fit together in one layout: the keystream block, the key unit, the 935-cell SRAM-PUF array and the comparator pass Magic DRC and netgen LVS each and at the top level, on 1.035 mm² with the analog front-end reserved (Section X).
C. Influence of the circuit non-idealities
Circuit non-idealities change neither the accuracy of the sensor nor the insecurity of the original design at any PVT condition, but they set the size and enrolment of the key generator and, through ageing, how its array must be operated. Around the post-layout comparator, the SNDR stays at 60.3-60.4 dB over its 45 PVT conditions with an 88× margin in comparator noise; the modulator needs an OTA gain of about 40 dB or more (Table 20). No analog property protects the S-DSM: the full-scan replica attack breaks all 360 simulated chip pairs (Fig. 51) and an offset-only replica 24 of 24 (Fig. 50). Comparator noise protects only from an input-referred rms noise $\sigma_\mathrm{n}$ = 160 mV, 197× its largest PVT value, at a cost of 7.5 dB of SNDR; offset, integrator noise (1,000× that of [1]) and capacitor mismatch (standard deviation σ = 50 %) do not (Section VIII).
A 600-cell array enrolled at 25 °C cannot meet reliability and secrecy together, even at tt: $10^{-6}$ key failures from 0 to 85 °C at the 99th-percentile chip need a BCH code correcting t = 39 errors, whereas secrecy allows at most t = 35; at the fast-nMOS corners most errors are reproducible flips (Table 12, Table 15). A one-time enrolment at −40 and 85 °C resolves both: t = 17 meets $10^{-6}$ for at least 99.7 % of the modelled chips at every corner and leaves 284-352 secret bits (935 cells, 600 kept; Sections VII-E, VII-F and VIII-F).
Under an assumed NBTI law (a published law scaled to SKY130, whose PDK has no ageing model), an array kept powered with its power-up values ages its cells towards the threshold. With the nominal law, both codes lose $10^{-6}$ within 26 days (t = 45) and 23 days (t = 17); with the pessimistic law, within hours. Writing the inverse of each read back into the array reverses this drift, after which the key-failure probability falls with age; powering the array only while it is read stretches every age by the inverse of the duty cycle (Sections VII-G and VIII-F).
D. Specification-driven key generation and consistency across levels
The key generator can be derived from a specification, and the models agree across levels, for the specifications compiled and the chip pair simulated at mixed level. With a 25 °C enrolment, no design on the compiler’s grid meets the target at all five corners. For an enrolment at 25 and 85 °C the compiler selects the repetition factor r = 3 with t = 4 (1,395 cells, 194 secret bits, 8,984 GE), and it compiles specification D as sized (19,128 GE). Both decoders pass 72 of 72 RTL tests bit for bit, and D is placed and routed with 0 DRC violations in a recorded run (Table 30, Section XI). In this serial template, the key generator, not the cipher, dominates the area.
In the mixed-level simulation at tt and 37 °C, 7 of 600 transistor-level cells differ and the RTL decoder recovers the key; the RTL keystream block matches the model; and none of the 2,000 transistor-level comparator decisions differs from the threshold model, consistent with the comparator noise (1.6 expected) (Table 36). At 24 recorded settings of corner, temperature, input and length, the proposed design accepts no forgery and yields its key to no replica window, while the original design’s key is found by search at all 24. The key is reconstructed at 20 settings and fails at ff and 85 °C, where the 25 °C enrolment leaves 63 differing cells against t = 45, as the corner models predict. Over the recorded 30,000-clock transistor-level replica attack, Berlekamp-Massey recovers the key of the original design from 5 of 80 windows and that of the proposed design from none, with 3.1 % clean windows against 2.3-3.1 % (mean 2.6 %) for the behavioural model of the same pair (Section XII-G).
E. Implications beyond this design
Six results apply to other secure sensors, PUF key generators and open-source circuit evaluations.
Analog differences between chips are not a key. A full scan of the capture breaks 360 of 360 pairs over the PVT conditions; only the comparator noise of Subsection C would stop it (Section VIII-B). A physical-layer scheme that relies on analog variation for secrecy must be tested against an attacker who owns a replica, trims it and scans the whole capture.
A PUF key and a PUF nonce require opposite cells. The key needs cells that power up the same every time, the nonce cells that do not: one read of the same array holds 9.3 bits of nonce entropy at tt and 25 °C but 1.1 bits at fs and −40 °C, so 64 reads are needed for 68 bits (Section VIII-F). A design that draws both from one array must size each at its weakest corner. Ageing pulls them further apart: the inverted write-back that keeps the key reliable for life lowers the collision entropy of one read of the median chip from 11.8 to 4.4 bits in ten years, whereas the held value raises it to 20.8 bits (Section VIII-F, tt).
A PUF should be enrolled at both ends of its temperature range rather than at 25 °C. With a 25 °C enrolment, no 600-cell code meets both $10^{-6}$ key failures and the secrecy budget at every corner (t = 33 needed at tt against t ≤ 27); enrolled at −40 and 85 °C, t = 17 meets both with 284–352 secret bits (Sections VIII-F and XI). The fs corner has the lowest error rate at 25 °C and the highest at 85 °C, so a room-temperature screen passes the chips that fail hot.
Baselines should be optimised as far as the proposed design. Under the same low-power techniques, the proposed design falls from 9.7 to 3.6 times the power of the S-DSM (Section X-D); comparing an optimised design with baselines as first written would have overstated its cost ratio by a factor of 2.7.
SPICE processes should be pinned to one core each. Single-threaded ngspice processes sharing two cores ran up to 3.5 times slower than pinned ones, without any error or warning; one process per core keeps the transistor-level runs within the 20-minute budget.
Every failed measurement should stop the run. An interpolation that clamps outside a waveform, or a measurement that silently returns no value, turns a failed simulation into a plausible number; every extraction here raises an error instead (Section VII-A).
F. Limitations
The evidence comes from simulation, not silicon, with the following limits. The SRAM cell model includes thermal noise only (no 1/f, telegraph or supply noise), ageing only through an assumed BTI law (Section VII-G), and a linear temperature law fitted at −40, 25 and 85 °C (a linear sizing underestimates the 85 °C error rate, 1.75 % against 3.14 %); the two-temperature enrolment is checked on 512 cells per corner. With 2.7× more noise, a 25 °C enrolment would need t = 60 and leave no secret bits (Section VII-E), so the cell must be characterised in silicon. The system simulations use the working setting, t = 45 with a 25 °C enrolment, which leaves 94-137 secret bits and fails A11; the security claims rest on the −40 and 85 °C key generator, whose A11 verdict is analytic. Of the 15 verdicts, 4 are analytic and 4 hold by design. Three failures of the S-DSM (A6 and A15, an LFSR that restarts from the key every frame; A7, a key in non-volatile memory) rest on assumptions that [1] does not state, and no verdict is a formal proof of security. The S-DSM model simplifies its dither, and its protection against the attacks of [1] rests on an assumed 0.1 % FS offset between the inputs of the two chips (one seed).
The integrators, the TIA and the buffer are behavioural; the mixed-level simulation covers one chip pair at tt and 37 °C live, and its 30,000-clock replica attack is a recorded run (Section XII-G). Digital power comes from gate-level simulation at the typical corner. Routing and sign-off are recorded runs, with 16 antenna violations open on the keystream block and 8 on the decoder of D, and 12 and 10 in the two digital macros of the security-subsystem layout (Section X), whose analog front-end is a reserved region and which has no pad ring. The BCH-only designs of Table 30 are estimated, not synthesised (the 64 designs of the compiler explorer are synthesised). The nonce sequencer, the SRAM periphery, the MAC delay line and the downlink receiver are not designed, and the energy of the key generator is not computed. No radio is designed or simulated: the designs are compared in transmitted bits per reading, and the radio of [1] appears once, as a labelled example (Section X-E). Only the two designs of [1] are re-synthesised in this flow, compared like for like and ranked with the proposed design by the figure of merit; the other prior works are quoted as published, in their own 14–65 nm nodes (Section XIV). Side-channel exposure is measured on the register-level model and the placed netlists (Sections IX-D and X-H) but not countered; invasive and fault attacks, PUF cloning [21], remanence read-out [22] and jamming are beyond the scope of this work.
G. Future work
Five extensions follow from these limitations. First, a transistor-level front end with SKY130 integrators and TIA would complete the mixed-level simulation of Section XII. Second, an SRAM-PUF cell model with 1/f and random telegraph noise, and with ageing measured on silicon, would let the compiler of Section XI be re-run against it and dark-bit masking be evaluated as an alternative to the two-temperature enrolment. Third, the compiled key generator, specification D with its array, should be enrolled and reconstructed from transistor-level cells in the mixed-level simulation, at the fast-nMOS corners where the 25 °C design fails. Fourth, the security-subsystem layout of Section X should be completed: the analog front-end and the PUF read periphery drawn in its reserved regions, a synthesised lightweight hash and the MAC delay line added, its antenna violations repaired and a pad ring or shuttle wrapper drawn, with the power of every block from the extracted layout. Finally, a tape-out in a node comparable to the prior works (65 nm or below) would let the power be measured rather than scaled.
Appendix: Source, licence and reuse
Source. The notebook is self-contained. The bit-level model of both designs and the 15 attacks are defined in the cells of Section V; the larger modules are written into the session by %%writefile cells, where they can be read: the comparator and SRAM-PUF SPICE testbenches and the layout generators (comparator_spice.py, puf_spice.py, sky130_layout.py, puf_layout.py, comparator_layout.py; Section VII), the RTL, synthesis and place-and-route flows (rtl_flow.py, pnr_flow.py; Section X), the key-generator compiler (keygen.py; Section XI) and the mixed-level engine (mixedsim.py; Section XII). The open-source tools are installed by the setup cell of Section VII-A.
Recorded runs. These simulations are too long for a Colab session and are shown from recorded runs of the same flows and seeds; each can be re-run (the 30,000-clock replica run of Section XII is not reproduced exactly): the 1,024-cell SRAM-PUF Monte Carlo runs (PUF_MODE = "full"; the live 128-cell run is checked bit for bit against the record), the post-layout Monte Carlo checks of both cells (PEX_LIVE = True), the PVT grids of both cells (dev/spice_comparator/demo_pvt.py and dev/spice_puf/demo_pvt.py in the source repository), the SRAM-PUF mechanism checks with floating or grounded bit lines and the supply-ramp sweep (dev/spice_puf/demo_mechanism.py), the SRAM-PUF ageing study with its assumed BTI law (dev/spice_puf/demo_ageing.py, summarised by dev/spice_puf/ageing_report.py; no switch), the clock-gating study of the keystream block, two routings of the gated and ungated block (CLOCK_GATING_LIVE = True; recorded by dev/rtl/record_signoff.py), the detailed routing of the compiled key-reconstruction unit (ROUTE_COMPILED = True), the detailed routing, sign-off (Magic DRC, antenna, LVS), OpenRCX extraction, three-corner timing and routed power of the low-power keystream block (ROUTE_BLOCK = True), the layout of the security subsystem with its macro and top-level DRC and LVS (CHIP_LIVE = True; recorded by dev/rtl/record_chip.py), the synthesis of the 64 designs that the compiler explorer shows (dev/rtl/record_syn_points.py), the 24-point grid of the mixed-level simulation that its explorer shows (dev/mixed_grid.py) and the 30,000-clock transistor-level replica attack (LONG_RUN = True). The data of every recorded run is one JSON file in data/ of the public figures repository, at a fixed commit, loaded by the cell that shows the run (recorded()). The recorded SRAM-PUF runs also contain power-ups at 125 °C, above the specified 0–85 °C range; they are not used, and the cell is characterised at −40, 25 and 85 °C (dev/spice_puf/refit_0_85.py). All other results are computed in the session.
Explorer. The explorer of Section XIII is the first author’s own open-source tool (nithinpuru.github.io/secure_sensor_with_puf).
Licence. This notebook and all code in it are released under the Apache License 2.0. The SKY130 PDK, ngspice, Yosys, KLayout, Magic, netgen, OpenROAD and Icarus Verilog are downloaded at run time under their own open-source licences and are not redistributed here.
Acknowledgment
The authors thank A. Yasar, first author of [1], for clarifying how the S-DSM of [1] works, the authors of [1] for a clearly documented design whose measurements made this consistency check possible, and the SkyWater, open_pdks, ciel, ngspice, Yosys, KLayout, Magic, netgen, OpenROAD and Icarus Verilog communities for the open tools on which this work relies. The authors thank Claude Code for help with code.
The secure delta-sigma sensor studied in this notebook is the work of Yasar et al. (Boston University, Capra Biosciences, Analog Devices) [1]; all other material (the model, the attacks, the PUF and Grain-128a proposal, the SKY130 simulations, layouts and physical implementation, and the tools) is the work of the authors and is released under the Apache License 2.0.
References
- A. Yasar, D. Caygara, Y. H. Patel, A. Pemaraj, L. Boisvert, A. Magyar, T. Yu, B. Dufort, T.-L. Poo, and R. T. Yazicigil, “A Secure Multimodal Electrochemical Sensor for Sustainable Biomanufacturing,” Proc. IEEE European Solid-State Electronics Research Conference (ESSERC), pp. 413–416, 2025. doi:10.1109/ESSERC66193.2025.11213984
- A. Yasar and R. T. Yazicigil, “Physical-Layer Security for Energy-Constrained Integrated Systems: Challenges and Design Perspectives,” IEEE Open Journal of the Solid-State Circuits Society, vol. 3, 2023. doi:10.1109/OJSSCS.2023.3327326
- J. L. Massey, “Shift-register synthesis and BCH decoding,” IEEE Trans. Information Theory, vol. 15, no. 1, pp. 122–127, 1969. doi:10.1109/TIT.1969.1054260
- Y. Dodis, L. Reyzin, and A. Smith, “Fuzzy Extractors: How to Generate Strong Keys from Biometrics and Other Noisy Data,” EUROCRYPT 2004, LNCS, pp. 523–540. doi:10.1007/978-3-540-24676-3_31
- C. De Cannière, “Trivium: A Stream Cipher Construction Inspired by Block Cipher Design Principles,” Proc. ISC, 2006. doi:10.1007/11836810_13
- M. Ågren, M. Hell, T. Johansson, and W. Meier, “Grain-128a: a new version of Grain-128 with optional authentication,” Int. J. Wireless and Mobile Computing, vol. 5, no. 1, 2011. doi:10.1504/IJWMC.2011.044106 (spec and test vectors: authors’ copy)
- B. Razavi, “The StrongARM Latch [A Circuit for All Seasons],” IEEE Solid-State Circuits Magazine, vol. 7, no. 2, pp. 12–17, 2015. doi:10.1109/MSSC.2015.2418155
- S. Mathew et al., “340 mV–1.1 V, 289 Gbps/W, 2090-gate NanoAES hardware accelerator with area-optimized encrypt/decrypt GF(2⁴)² polynomials in 22 nm tri-gate CMOS,” IEEE J. Solid-State Circuits, vol. 50, no. 4, pp. 1048–1058, Apr. 2015. doi:10.1109/JSSC.2014.2384039
- U. Banerjee, A. Wright, C. Juvekar, M. Waller, Arvind, and A. P. Chandrakasan, “An energy-efficient reconfigurable DTLS cryptographic engine for securing Internet-of-Things applications,” IEEE J. Solid-State Circuits, vol. 54, no. 8, pp. 2339–2352, Aug. 2019. doi:10.1109/JSSC.2019.2915203
- H. Kaul et al., “Ultra-lightweight 548–1080 gate 166Gbps/W–12.6Tbps/W SIMON 32/64 cipher accelerators for IoT in 14nm tri-gate CMOS,” Proc. IEEE A-SSCC, Nov. 2018, pp. 1–4. doi:10.1109/ASSCC.2018.8579274
- R. T. Yazicigil, P. Nadeau, D. Richman, C. Juvekar, K. Vaidya, and A. P. Chandrakasan, “Ultra-fast bit-level frequency-hopping transmitter for securing low-power wireless devices,” Proc. IEEE RFIC, Jun. 2018, pp. 176–179. doi:10.1109/RFIC.2018.8428994
- T. Jeong, A. P. Chandrakasan, and H.-S. Lee, “S2ADC: A 12-bit, 1.25-MS/s secure SAR ADC with power side-channel attack resistance,” IEEE J. Solid-State Circuits, vol. 56, no. 3, pp. 844–854, Mar. 2021. doi:10.1109/JSSC.2020.3027806
- D. E. Holcomb, W. P. Burleson, and K. Fu, “Power-up SRAM state as an identifying fingerprint and source of true random numbers,” IEEE Trans. Computers, vol. 58, no. 9, pp. 1198–1210, Sep. 2009. doi:10.1109/TC.2008.212
- R. Maes, A. Van Herrewege, and I. Verbauwhede, “PUFKY: A fully functional PUF-based cryptographic key generator,” CHES 2012, LNCS 7428, pp. 302–319. doi:10.1007/978-3-642-33027-8_18
- S. K. Mathew et al., “A 0.19pJ/b PVT-variation-tolerant hybrid physically unclonable function circuit for 100% stable secure key generation in 22nm CMOS,” ISSCC Dig. Tech. Papers, Feb. 2014, pp. 278–279. doi:10.1109/ISSCC.2014.6757433
- S. Taneja, A. B. Alvarez, and M. Alioto, “Fully synthesizable PUF featuring hysteresis and temperature compensation for 3.2% native BER and 1.02 fJ/b in 40 nm,” IEEE J. Solid-State Circuits, vol. 53, no. 10, pp. 2828–2839, Oct. 2018. doi:10.1109/JSSC.2018.2865584
- S. K. Cherupally, S. Yin, D. Kadetotad, C. Bae, S. J. Kim, and J.-S. Seo, “A smart hardware security engine combining entropy sources of ECG, HRV, and SRAM PUF for authentication and secret key generation,” IEEE J. Solid-State Circuits, vol. 55, no. 10, pp. 2680–2690, Oct. 2020. doi:10.1109/JSSC.2020.3010705
- Y. Todo, T. Isobe, W. Meier, K. Aoki, and B. Zhang, “Fast correlation attack revisited: Cryptanalysis on full Grain-128a, Grain-128, and Grain-v1,” CRYPTO 2018, LNCS 10992, pp. 129–159. doi:10.1007/978-3-319-96881-0_5
- B. Zhang, R. Liu, W. Meier, S. Sun, D. Feng, and W. Wu, “Vectorial fast correlation attacks,” ASIACRYPT 2025, pp. 285–316. doi:10.1007/978-981-95-5018-0_10
- K. Rosenfeld, E. Gavas, and R. Karri, “Sensor physical unclonable functions,” Proc. IEEE Int. Symp. Hardware-Oriented Security and Trust (HOST), 2010, pp. 112–117. doi:10.1109/HST.2010.5513103
- C. Helfmeier, C. Boit, D. Nedospasov, and J.-P. Seifert, “Cloning physically unclonable functions,” Proc. IEEE HOST, 2013, pp. 1–6. doi:10.1109/HST.2013.6581556
- S. Skorobogatov, “Low temperature data remanence in static RAM,” Univ. Cambridge, Computer Laboratory, Tech. Rep. UCAM-CL-TR-536, 2002. doi:10.48456/tr-536
- J. Delvaux and I. Verbauwhede, “Attacking PUF-based pattern matching key generators via helper data manipulation,” CT-RSA 2014, LNCS 8366, pp. 106–131. doi:10.1007/978-3-319-04852-9_6
- J. Delvaux, D. Gu, D. Schellekens, and I. Verbauwhede, “Helper data algorithms for PUF-based key generation: Overview and analysis,” IEEE Trans. Computer-Aided Design of Integrated Circuits and Systems, vol. 34, no. 6, pp. 889–902, Jun. 2015. doi:10.1109/TCAD.2014.2370531
- M. Hell, T. Johansson, A. Maximov, W. Meier, and H. Yoshida, “Grain-128AEADv2: Strengthening the initialization against key reconstruction,” CANS 2021, LNCS 13099, pp. 24–41. doi:10.1007/978-3-030-92548-2_2
- C. Bösch, J. Guajardo, A.-R. Sadeghi, J. Shokrollahi, and P. Tuyls, “Efficient helper data key extractor on FPGAs,” CHES 2008, LNCS 5154, pp. 181–197. doi:10.1007/978-3-540-85053-3_12
- R. Vattikonda, W. Wang, and Y. Cao, “Modeling and minimization of PMOS NBTI effect for robust nanometer design,” in Proc. 43rd Design Automation Conf. (DAC), 2006, pp. 1047–1052. doi:10.1145/1146909.1147172
- N. Kimizuka et al., “The impact of bias temperature instability for direct-tunneling ultra-thin gate oxide on MOSFET scaling,” in Symp. VLSI Technology, Dig. Tech. Papers, 1999, pp. 73–74. doi:10.1109/VLSIT.1999.799346
- N. Kimizuka et al., “NBTI enhancement by nitrogen incorporation into ultrathin gate oxide for 0.10-µm gate CMOS generation,” in Symp. VLSI Technology, Dig. Tech. Papers, 2000. doi:10.1109/VLSIT.2000.852782
- R. Maes and V. van der Leest, “Countering the effects of silicon aging on SRAM PUFs,” in Proc. IEEE Int. Symp. Hardware-Oriented Security and Trust (HOST), 2014. doi:10.1109/HST.2014.6855586
- R. Wang, G. Selimis, R. Maes, and S. Goossens, “Long-term continuous assessment of SRAM PUF and source of random numbers,” in Proc. Design, Automation and Test in Europe (DATE), 2020. doi:10.23919/DATE48585.2020.9116353
- S. Mathur, W. Trappe, N. Mandayam, C. Ye, and A. Reznik, “Radio-telepathy: Extracting a secret key from an unauthenticated wireless channel,” in Proc. 14th ACM Int. Conf. Mobile Computing and Networking (MobiCom), 2008, pp. 128–139. doi:10.1145/1409944.1409960
- V. Cambareri, M. Mangia, F. Pareschi, R. Rovatti, and G. Setti, “Low-complexity multiclass encryption by compressed sensing,” IEEE Trans. Signal Processing, vol. 63, no. 9, pp. 2183–2195, May 2015. doi:10.1109/TSP.2015.2407315
- S. Skorobogatov, “Flash memory ‘bumping’ attacks,” CHES 2010, LNCS 6225, pp. 158–172. doi:10.1007/978-3-642-15031-9_11
- T. Siegenthaler, “Decrypting a class of stream ciphers using ciphertext only,” IEEE Trans. Computers, vol. C-34, no. 1, pp. 81–85, Jan. 1985. doi:10.1109/TC.1985.1676518
- W. Meier and O. Staffelbach, “Fast correlation attacks on certain stream ciphers,” J. Cryptology, vol. 1, no. 3, pp. 159–176, 1989. doi:10.1007/BF02252874
- D. Halperin, T. S. Heydt-Benjamin, B. Ransford, S. S. Clark, B. Defend, W. Morgan, K. Fu, T. Kohno, and W. H. Maisel, “Pacemakers and implantable cardiac defibrillators: Software radio attacks and zero-power defenses,” in Proc. IEEE Symp. Security and Privacy, 2008, pp. 129–142. doi:10.1109/SP.2008.31
- C. Li, A. Raghunathan, and N. K. Jha, “Hijacking an insulin pump: Security attacks and defenses for a diabetes therapy system,” in Proc. IEEE 13th Int. Conf. e-Health Networking, Applications and Services (Healthcom), 2011, pp. 150–156. doi:10.1109/HEALTH.2011.6026732
About the Authors
Nithin Purushothama received the B.Tech. degree in electronics and communication engineering from Visvesvaraya Technological University (VTU), India, in 2025, and is currently an Analog Design Engineer at Omni Design Technologies. As a Research Intern at the Low-Power Circuits and Systems (LP-CAS) Lab, IIT Gandhinagar, under Prof. Madhav K. Pathak, he worked on ring amplifiers and their application in low-power LDOs. His research interests include high-speed and low-power data converters; RF, mm-wave and THz integrated circuits; biomedical circuits, wearable sensing and healthcare SoCs; algorithm-circuit co-design for low-power sensing; and circuits for AI and AI for circuits. He is currently seeking Ph.D. opportunities for Fall 2027 in analog and mixed-signal integrated circuits and related areas.
Contact: [email protected]
Pramoda S R is currently working as an AI Engineer, with experience in machine learning, deep learning, computer vision and AI-based application development. His research interests include artificial intelligence and deep learning, with an emphasis on computer vision, real-time inference systems, generative AI and intelligent applications.
Contact: [email protected]
Runpeng Gao received the M.S. degree from Nanjing University, Nanjing, China, in 2023. He is currently pursuing the Ph.D. degree in electrical and computer engineering at Oregon State University, Corvallis, OR, USA. His research interests include high-performance analog and mixed-signal integrated circuits, with an emphasis on high-resolution and high-speed analog-to-digital converters (ADCs) and low-dropout regulators (LDOs).
Contact: [email protected]
Santosh Hanamappa Mokashi received the B.Tech. degree in electronics and communication engineering from PES University, Bengaluru, India, in 2026. He has conducted hands-on research in computer architecture and hardware design, including execution-aware DRAM scheduling for AI accelerators, which was recognised with the Micron Memory Award (Taiwan) and accepted at DVCon 2026 and DAC 2026. His research interests include memory-centric computing, AI hardware acceleration and hardware-software co-design.
Contact: [email protected]
Madhav K. Pathak received the B.Tech. degree in electrical engineering from the Indian Institute of Technology Roorkee, Roorkee, India, in 2016, and the Ph.D. degree in microelectronics from Iowa State University, Ames, IA, USA, in 2022. He is currently an Assistant Professor in the Department of Electrical Engineering at the Indian Institute of Technology Gandhinagar, Gandhinagar, India. His research interests include power management integrated circuits, analog and mixed-signal integrated circuits, ambient micro-power energy harvesting, and IoT sensor systems, with an emphasis on low-power circuit design and energy-efficient power management for batteryless and low-power applications.
Contact: [email protected]