# US 2022/0293151 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/0293151 A1
- Document ID: US20220293151A1
- Status: Published application
- Kind: A1
- Application number: 17/691,881
- 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: Jean-Louis MODAVE; Michael PEETERS; Ronny VAN KEER
- Web page: https://patentgrep.com/patent/US20220293151A1

## CPC

- G11C 8/04: using a sequential addressing device, e.g. shift register, counter
- H03K 23/004: {Counters counting in a non-natural counting order, e.g. random counters}
- G11C 7/20: Memory cell initialisation circuits, e.g. when powering up or down, memory clear, latent image memory
- H03K 21/403: {Arrangements for storing the counting state in case of power supply interruption}
- 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

The present disclosure relates to a monotonic counter whose value is represented by a number N of binary words of N memory cells of a non-volatile memory, and being able to implement a step increment operation wherein if only one first memory cell represents a first value different from zero, then a second value equal to the said first value incremented by two times the said step is written into a second memory cell of rank directly higher than the rank of the first memory cell; and if a third and a fourth memory cell of consecutive ranks represent, respectively, a third value and a fourth value different from zero, then the third value of the third memory cell of lower rank is erased.

## 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 a single memory cell of the N memory cells having a value different from zero, the single memory cell having a rank i modulo N, writing a value equal to the value of the single memory cell incremented by two times the step size, into a second memory cell of rank i+1 modulo N; and
in response to two memory cells of the N memory cells of consecutive ranks representing values different from zero, erasing a memory cell of the two memory cells having a lower rank than a rank of the other of the two memory cells.

### Claim 2 (depends on 1)

The device according to claim 1, wherein the control circuitry, in operation, determines a current value of the monotonic counter, the determining the value of the monotonic counter including:
in response to a single memory cell of the N memory cells representing a value different from zero, determining the value of the monotonic counter is equal to the value of the single memory cell incremented by the step size.

### Claim 3 (depends on 2)

The device according to claim 2, wherein the determining the value of the monotonic counter includes:
in response to two memory cells of the N memory cells of consecutive ranks representing values different from zero, determining the value of the monotonic counter is equal to a value of a memory cell of the two memory cells having a rank higher than a rank of the other of the two memory cells.

### Claim 4 (depends on 1)

The device according to claim 1, wherein the number N is three.

### Claim 5 (depends on 1)

The device according to claim 1, wherein the number N is four.

### Claim 6 (depends on 1)

The device according to claim 1, wherein the memory cells of the N memory cells have consecutive memory addresses.

### Claim 7 (depends on 1)

The device according to claim 1, wherein the step size is a fixed step size.

### Claim 8 (depends on 1)

The device according to claim 1, wherein the non-volatile memory is a phase change memory.

### Claim 9 (depends on 1)

The device according to claim 1, wherein the non-volatile memory is an EEPROM.

### Claim 10 (depends on 1)

The device according to claim 1, wherein the control circuitry, in operation, initializes a value of the monotonic counter, the initializing the value of the monotonic counter including:
erasing all of the memory cells of the N memory cells except one memory cell of the N memory cells;
subtracting an initial value of the monotonic counter from the step size and writing a result of the subtracting into the one memory cell of the N memory cells.

### Claim 11 (depends on 1)

The device according to claim 1, wherein the control circuitry, in operation, initializes a value of the monotonic counter, the initializing the value of the monotonic counter including:
in response to a value of a memory cell of rank zero modulo N being equal to zero, writing a value equal to an initial value of the monotonic counter subtracted from the step size into the memory cell of rank zero modulo N;
in response to the value of the memory cell of rank zero modulo N being different from zero and a value of a memory cell of rank one modulo N being equal to zero, writing the value equal to the initial value of the monotonic counter subtracted from the step size into the memory cell of rank one modulo N;
in response to the value of the memory cell of rank zero modulo N being different from zero and the value of a memory cell of rank one modulo N being different from the value of the memory cell of rank zero modulo N, writing the value equal to the initial value of the monotonic counter subtracted from the step size into a memory cell of rank two modulo N;
in response to the value of the memory cell of rank zero modulo N being different from zero and the value of a memory cell of rank one modulo N being equal to the value of the memory cell of rank zero modulo N, writing the value equal to the initial value of the monotonic counter subtracted from the step size into the memory cell of rank two modulo N; and
in response to the value equal to the initial value of the monotonic counter subtracted from the step size being written into a memory cell of the N memory cells, erasing the memory cells of the N memory cells having a rank higher than a rank of the memory cell into which the value equal to the initial value of the monotonic counter subtracted from the step size is written.

### Claim 12 (depends on 11)

The device according to claim 11, wherein, the initializing includes, in response to the memory cell of rank zero modulo N having a value equal to the initial value of the monotonic counter subtracted from the step size, erasing all of the memory cells having a rank modulo N higher than zero.

### Claim 13

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 a single memory cell of the N memory cells having a value different from zero, the single memory cell having a rank i modulo N, writing a value equal to the value of the single memory cell incremented by two times the step size, into a second memory cell of rank i+1 modulo N; and
in response to two memory cells of the N memory cells of consecutive ranks representing values different from zero, erasing a memory cell of the two memory cells having a lower rank than a rank of the other of the two memory cells.

### Claim 14 (depends on 13)

The method according to claim 13, comprising:
determining a current value of the monotonic counter, the determining the value of the monotonic counter including:
in response to a single memory cell of the N memory cells representing a value different from zero, determining the value of the monotonic counter is equal to the value of the single memory cell incremented by the step size.

### Claim 15 (depends on 14)

The method according to claim 14, wherein the determining the value of the monotonic counter includes:
in response to two memory cells of the N memory cells of consecutive ranks representing values different from zero, determining the value of the monotonic counter is equal to a value of a memory cell of the two memory cells having a rank higher than a rank of the other of the two memory cells.

### Claim 16 (depends on 13)

The method according to claim 13, wherein the number N is three.

### Claim 17 (depends on 13)

The method according to claim 13, wherein the number N is four.

### Claim 18 (depends on 13)

The method according to claim 13, wherein the memory cells of the N memory cells have consecutive memory addresses.

### Claim 19 (depends on 13)

The method according to claim 13, wherein the step size is a fixed step size.

### Claim 20 (depends on 13)

The method according to claim 13, comprising initializing a value of the monotonic counter, the initializing the value of the monotonic counter including:
erasing all of the memory cells of the N memory cells except one memory cell of the N memory cells;
subtracting an initial value of the monotonic counter from the step size and writing a result of the subtracting into the one memory cell of the N memory cells.

### Claim 21 (depends on 13)

The method according to claim 13, comprising initializing a value of the monotonic counter, the initializing the value of the monotonic counter including:
in response to a value of a memory cell of rank zero modulo N being equal to zero, writing a value equal to an initial value of the monotonic counter subtracted from the step size into the memory cell of rank zero modulo N;
in response to the value of the memory cell of rank zero modulo N being different from zero and a value of a memory cell of rank one modulo N being equal to zero, writing the value equal to the initial value of the monotonic counter subtracted from the step size into the memory cell of rank one modulo N;
in response to the value of the memory cell of rank zero modulo N being different from zero and the value of a memory cell of rank one modulo N being different from the value of the memory cell of rank zero modulo N, writing the value equal to the initial value of the monotonic counter subtracted from the step size into a memory cell of rank two modulo N;
in response to the value of the memory cell of rank zero modulo N being different from zero and the value of a memory cell of rank one modulo N being equal to the value of the memory cell of rank zero modulo N, writing the value equal to the initial value of the monotonic counter subtracted from the step size into the memory cell of rank two modulo N; and
in response to the value equal to the initial value of the monotonic counter subtracted from the step size being written into a memory cell of the N memory cells, erasing the memory cells of the N memory cells having a rank higher than a rank of the memory cell into which the value equal to the initial value of the monotonic counter subtracted from the step size is written.

### Claim 22 (depends on 21)

The method according to claim 21, wherein, the initializing includes, in response to the memory cell of rank zero modulo N having a value equal to the initial value of the monotonic counter subtracted from the step size, erasing all of the memory cells having a rank modulo N higher than zero.

### Claim 23

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 the 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 a single memory cell of the N memory cells having a value different from zero, the single memory cell having a rank i modulo N, writing a value equal to the value of the single memory cell incremented by two times the step size, into a second memory cell of rank i+1 modulo N; and
in response to two memory cells of the N memory cells of consecutive ranks representing values different from zero, erasing a memory cell of the two memory cells having a lower rank than a rank of the other of the two memory cells.

### Claim 24 (depends on 23)

The system according to claim 23, wherein the monotonic counter, in operation, determines a current value of the monotonic counter, the determining the current value of the monotonic counter including:
in response to a single memory cell of the N memory cells representing a value different from zero, determining the value of the monotonic counter is equal to the value of the single memory cell incremented by the step size; and
in response to two memory cells of the N memory cells of consecutive ranks representing values different from zero, determining the value of the monotonic counter is equal to a value of a memory cell of the two memory cells having a rank higher than a rank of the other of the two memory cells.

### Claim 25 (depends on 23)

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

### Claim 26

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 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 a single memory cell of the N memory cells having a value different from zero, the single memory cell having a rank i modulo N, writing a value equal to the value of the single memory cell incremented by two times the step size, into a second memory cell of rank i+1 modulo N; and
in response to two memory cells of the N memory cells of consecutive ranks representing values different from zero, erasing a memory cell of the two memory cells having a lower rank than a rank of the other of the two memory cells.

### Claim 27 (depends on 26)

The non-transitory computer-readable medium of claim 26, wherein the method comprises:
determining a current value of the monotonic counter, the determining the value of the monotonic counter including:
in response to a single memory cell of the N memory cells representing a value different from zero, determining the value of the monotonic counter is equal to the value of the single memory cell incremented by the step size; and
in response to two memory cells of the N memory cells of consecutive ranks representing values different from zero, determining the value of the monotonic counter is equal to a value of a memory cell of the two memory cells having a rank higher than a rank of the other of the two memory cells.

### Claim 28 (depends on 26)

The non-transitory computer-readable medium of claim 26, wherein the contents comprise instructions executed by the monotonic counter.
