# US 2022/0293150 A1 · Monotonic counter

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2022/0293150 A1
- Document ID: US20220293150A1
- Status: Published application
- Kind: A1
- Application number: 17/691,870
- Filed: 2022-03-10
- Published: 2022-09-15
- Earliest claimed: 2021-03-15
- Assignees: Proton World International N.V.
- Applicants: Proton World International N.V.
- Inventors: Michael PEETERS; Jean-Louis MODAVE; Ronny VAN KEER
- Web page: https://patentgrep.com/patent/US20220293150A1

## CPC

- G11C 8/04: using a sequential addressing device, e.g. shift register, counter
- H03K 21/403: {Arrangements for storing the counting state in case of power supply interruption}
- G11C 7/20: Memory cell initialisation circuits, e.g. when powering up or down, memory clear, latent image memory
- H03K 23/004: {Counters counting in a non-natural counting order, e.g. random counters}
- G11C: STATIC STORES (semiconductor memory devices H10B)
- H03K: PULSE TECHNIQUE (measuring pulse characteristics G01R; modulating sinusoidal oscillations with pulses H03C; transmission of digital information H04L; discriminator circuits detecting phase difference between two signals by counting or integrating cycles of oscillation H03D3/04; automatic control, starting, synchronisation or stabilisation of generators of electronic oscillations or pulses where the type of generator is irrelevant or unspecified H03L; coding, decoding or code conversion, in general H03M)

## Abstract

A monotonic counter stores N binary words representing a value in N memory cells. When i memory cells of consecutive ranks between k modulo N and k+i modulo N each represent a value complementary to a null value, the counter is incremented by erasing a value of a memory cell of rank k+i+1 modulo N. When i+1 memory cells of consecutive ranks between k+1 modulo N and k+i+1 modulo N each represent the value complementary to the null value, the counter is incremented by incrementing a value of a memory cell of rank k modulo N by two step sizes and storing a result in a memory cell of rank k+1 modulo N, wherein, N is an integer greater than or equal to five, k is an integer, and i is an integer between 2 and N−3.

## Claims

### Claim 1

A device comprising:
a non-volatile memory, which, in operation, stores a number N of binary words in N memory cells of the non-volatile memory, the N binary words representing a value of a monotonic counter, each binary word having a size sufficient to store a maximum value of the monotonic counter; and
control circuitry coupled to the memory, wherein the control circuitry, in operation, increments the value of the monotonic counter by a step size, the incrementing the value of the monotonic counter by the step size including:
in response to i memory cells of the N memory cells of consecutive ranks between k modulo N and k+i modulo N each representing a value complementary to a null value, erasing a value of a memory cell of the N memory cells of rank k+i+1 modulo N; and
in response to i+1 memory cells of the N memory cells of consecutive ranks between k+1 modulo N and k+i+1 modulo N each representing the value complementary to the null value, incrementing a value of a memory cell of the N memory cells of rank k modulo N by two step sizes and storing a result of the incrementing of the value of the memory cell of rank k modulo N by two step sizes in a memory cell of the N memory cells of rank k+1 modulo N,
wherein,
N is an integer greater than or equal to five,
k is an integer, and
i is an integer between 2 and N−3.

### Claim 2 (depends on 1)

The device of claim 1, wherein the value complementary to the null value is a value of a memory cell of the N memory cells after the memory cell is erased.

### Claim 3 (depends on 1)

The device of claim 1, wherein the memory cells of ranks lower than k−1 modulo N and of ranks higher than k+i+1 modulo N all represent values different from the value complementary to the null value.

### Claim 4 (depends on 1)

The device of claim 1, wherein the monotonic counter represents the null value when a memory cell of the N memory cells representing the null value is followed in rank by i memory cells representing the value complementary to the null value.

### Claim 5 (depends on 1)

The device of claim 1, wherein i is two.

### Claim 6 (depends on 5)

The device of claim 5, wherein the control circuitry, in operation, performs an initialization operation, wherein in response to memory cells of the N memory cells of consecutive ranks between k modulo N and k+2 modulo N representing the value complementary to the null value, the initialization operation includes:
writing the null value in the memory cell of rank k+2 modulo N;
erasing the memory cell of rank k+3 modulo N;
writing any value different from the value complementary to the null value, in the memory cell of rank k+1 modulo N; and
erasing the memory cell of rank k+4 modulo N.

### Claim 7 (depends on 6)

The device of claim 6, herein the writing any value different from the value complementary to the null value, in the memory cell of rank k+1 modulo N, comprises writing the zero value in the memory cell of rank K+1 modulo N.

### Claim 8 (depends on 6)

The device of claim 6, wherein in response to memory cells of the N memory cells of consecutive ranks between k+1 modulo N and k+3 modulo N represent the value complementary to the null value, the initialization operation includes:
writing the null value in the memory cell of rank k+2 modulo N;
writing any value different from the value complementary to the null value in the memory cell of rank k+1 modulo N; and
erasing the value of the memory cell of rank k+4 modulo N.

### Claim 9 (depends on 8)

The device according to claim 8, wherein the writing any value different from the value complementary to the null value, in the memory cell of rank k+1 modulo N, comprises writing the zero value in the memory cell of rank K+1 modulo N.

### Claim 10

A method, comprising:
storing a number N of binary words in N memory cells of a non-volatile memory, the N binary words representing a value of a monotonic counter, each binary word having a size sufficient to store a maximum value of the monotonic counter; and
incrementing the value of the monotonic counter by a step size, the incrementing the value of the monotonic counter by the step size including:
in response to i memory cells of the N memory cells of consecutive ranks between k modulo N and k+i modulo N each representing a value complementary to a null value, erasing a value of a memory cell of the N memory cells of rank k+i+1 modulo N; and
in response to i+1 memory cells of the N memory cells of consecutive ranks between k+1 modulo N and k+i+1 modulo N each representing the value complementary to the null value, incrementing a value of a memory cell of the N memory cells of rank k modulo N by two step sizes and storing a result of the incrementing of the value of the memory cell of rank k modulo N by two step sizes in a memory cell of the N memory cells of rank k+1 modulo N,
wherein,
N is an integer greater than or equal to five,
k is an integer, and
i is an integer between 2 and N−3.

### Claim 11 (depends on 10)

The method of claim 10, wherein the value complementary to the null value is a value of a memory cell of the N memory cells after the memory cell is erased.

### Claim 12 (depends on 10)

The method of claim 10, wherein the memory cells of ranks lower than k−1 modulo N and of ranks higher than k+i+1 modulo N all represent values different from the value complementary to the null value.

### Claim 13 (depends on 10)

The method of claim 10, wherein the monotonic counter represents the null value when a memory cell of the N memory cells representing the null value is followed in rank by i memory cells representing the value complementary to the null value.

### Claim 14 (depends on 10)

The method of claim 10, wherein i is two.

### Claim 15 (depends on 14)

The method of claim 14, comprising performing an initialization operation, wherein in response to memory cells of the N memory cells of consecutive ranks between k modulo N and k+2 modulo N representing the value complementary to the null value, the initialization operation includes:
writing the null value in the memory cell of rank k+2 modulo N;
erasing the memory cell of rank k+3 modulo N;
writing any value different from the value complementary to the null value, in the memory cell of rank k+1 modulo N; and
erasing the memory cell of rank k+4 modulo N.

### Claim 16 (depends on 15)

The method of claim 15, wherein the writing any value different from the value complementary to the null value, in the memory cell of rank k+1 modulo N, comprises writing the zero value in the memory cell of rank K+1 modulo N.

### Claim 17 (depends on 15)

The method of claim 15, wherein in response to memory cells of the N memory cells of consecutive ranks between k+1 modulo N and k+3 modulo N represent the value complementary to the null value, the initialization operation includes:
writing the null value in the memory cell of rank k+2 modulo N;
writing any value different from the value complementary to the null value in the memory cell of rank k+1 modulo N; and
erasing the value of the memory cell of rank k+4 modulo N.

### Claim 18

A system, comprising:
a processor, which, in operation, processes data; and
a monotonic counter coupled to the processor, wherein the monotonic counter, in operation:
stores a number N of binary words in N memory cells of a non-volatile memory, the N binary words representing a value of a monotonic counter, each binary word having a size sufficient to store a maximum value of the monotonic counter; and
responds to an indication to increment the value of the monotonic counter by a step size by:
in response to i memory cells of the N memory cells of consecutive ranks between k modulo N and k+i modulo N each representing a value complementary to a null value, erasing a value of a memory cell of the N memory cells of rank k+i+1 modulo N; and
in response to i+1 memory cells of the N memory cells of consecutive ranks between k+1 modulo N and k+i+1 modulo N each representing the value complementary to the null value, incrementing a value of a memory cell of the N memory cells of rank k modulo N by two step sizes and storing a result of the incrementing of the value of the memory cell of rank k modulo N by two step sizes in a memory cell of the N memory cells of rank k+1 modulo N, wherein,
N is an integer greater than or equal to five,
k is an integer, and
i is an integer between 2 and N−3.

### Claim 19 (depends on 18)

The system of claim 18, comprising:
functional circuitry coupled to the processor and to the monotonic counter, wherein the functional circuitry, in operation, retrieves the value stored in the monotonic counter.

### Claim 20 (depends on 18)

The system of claim 18, comprising an integrated circuit including the processor and the monotonic counter.

### Claim 21

A non-transitory computer-readable medium having contents which cause a monotonic counter to perform a method, the method comprising:
storing a number N of binary words in N memory cells of a non-volatile memory, the N binary words representing a value of the monotonic counter, each binary word having a size sufficient to store a maximum value of the monotonic counter; and
incrementing the value of the monotonic counter by a step size, the incrementing the value of the monotonic counter by the step size including:
in response to i memory cells of the N memory cells of consecutive ranks between k modulo N and k+i modulo N each representing a value complementary to a null value, erasing a value of a memory cell of the N memory cells of rank k+i+1 modulo N; and
in response to i+1 memory cells of the N memory cells of consecutive ranks between k+1 modulo N and k+i+1 modulo N each representing the value complementary to the null value, incrementing a value of a memory cell of the N memory cells of rank k modulo N by two step sizes and storing a result of the incrementing of the value of the memory cell of rank k modulo N by two step sizes in a memory cell of the N memory cells of rank k+1 modulo N, wherein,
N is an integer greater than or equal to five,
k is an integer, and
i is an integer between 2 and N−3.

### Claim 22 (depends on 21)

The non-transitory computer-readable medium of claim 21, wherein the value complementary to the null value is a value of a memory cell of the N memory cells after the memory cell is erased.

### Claim 23 (depends on 21)

The non-transitory computer-readable medium of claim 21, wherein i is two.

### Claim 24 (depends on 21)

The non-transitory computer-readable medium of claim 21, the method comprising performing an initialization operation.

### Claim 25 (depends on 21)

The non-transitory computer-readable medium of claim 21, wherein the contents comprise instruction executed by processing circuitry of the monotonic counter.
