# US 2025/0157565 A1 · Memory checking method and apparatus

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

- Number: US 2025/0157565 A1
- Document ID: US20250157565A1
- Status: Published application
- Kind: A1
- Application number: 18/943,103
- Filed: 2024-11-11
- Published: 2025-05-15
- Earliest claimed: 2023-11-14
- Assignees: NXP B.V.
- Applicants: NXP B.V.
- Inventors: Nicholas Justin Mountford Spence; Jorge Ernesto Perez Chamorro
- Web page: https://patentgrep.com/patent/US20250157565A1

## CPC

- G11C 7/24: Memory cell safety or protection circuits, e.g. arrangements for preventing inadvertent reading or writing; Status cells; Test cells
- G11C 29/52: Protection of memory contents; Detection of errors in memory contents
- G06F 21/575: {Secure boot}
- G06F 21/64: Protecting data integrity, e.g. using checksums, certificates or signatures
- G06F 21/79: in semiconductor storage media, e.g. directly-addressable memories
- G11C 17/18: Auxiliary circuits, e.g. for writing into memory
- G11C 29/36: Data generation devices, e.g. data inverters
- G11C 29/38: Response verification devices
- G11C 29/56004: {Pattern generation}
- H04L 9/0894: {Escrow, recovery or storing of secret information, e.g. secret key escrow or cryptographic key storage}
- H04L 2209/26: Testing cryptographic entity, e.g. testing integrity of encryption key or encryption algorithm
- G11C: STATIC STORES (semiconductor memory devices H10B)
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

A method and apparatus for checking the contents of a memory in an integrated circuit is described. The on-chip memory checker includes a result first-in-first-out storage element (FIFO), a checksum engine coupled to the memory, and a comparison module. The method includes the steps of generating a seed value and providing the seed value to the checksum engine. During a test sequence a number of tests are applied to the memory. Each test includes the steps of (i) generating a checksum of a plurality of data values stored in a memory region of the memory by the checksum engine (ii) comparing by the comparison module the checksum with a reference value provided by the result FIFO and (iii) outputting the test result. The checksum is stored in the result FIFO as a reference value for a subsequent test. Multiple test sequences with different (random) seed values may be used.

## Claims

### Claim 1

A method of memory checking in a device comprising a memory, a result first-in-first-out storage element (FIFO), a checksum engine coupled to the memory, and a comparison module, the method comprising:
generating a seed value;
providing the seed value to the checksum engine;
applying a test sequence comprising a plurality of tests, each test including the steps of:
generating a checksum of a plurality of data values stored in a memory region of the memory by the checksum engine;
comparing by the comparison module the checksum with a reference value provided by the result FIFO;
outputting a test result based on the comparison; and
storing the checksum in the result FIFO.

### Claim 2 (depends on 1)

The method of claim 1 further comprising:
generating a further seed value;
providing the further seed value to the checksum engine;
applying a further test sequence comprising a plurality of further tests, each further test including the steps of:
generating the checksum of the plurality of data values by the checksum engine;
comparing by the comparison module the checksum with the reference value provided by the result FIFO;
outputting a test result based on the comparison; and
storing the checksum in the result FIFO.

### Claim 3 (depends on 1)

The method of claim 1 further comprising initializing the result FIFO with the seed value.

### Claim 4 (depends on 1)

The method of claim 1, wherein the reference value is the checksum of a previous test in the test sequence.

### Claim 5 (depends on 1)

The method of claim 1, wherein each test in the test sequence is applied using a different memory bit read voltage threshold.

### Claim 6 (depends on 1)

The method of claim 1, wherein the plurality of data values are stored in one-time-programmable memory.

### Claim 7

A memory checker configured to be coupled to a memory having a memory region to be checked, the memory checker comprising:
a checksum engine coupled to the memory;
a result first-in-first-out storage element (FIFO) coupled to the checksum engine;
a comparison module coupled to the checksum engine and the result FIFO;
a random seed generator coupled to the checksum engine; wherein
during a test mode of operation, the random seed generator is configured to generate a first random seed value, and for each test of a first plurality of tests:
the checksum engine is configured to be initialized with the first random seed value and to generate a checksum of a plurality of data values stored in the memory region;
the comparison module is configured to compare the checksum with a reference value provided by the result FIFO and output a test result based on the comparison; and
the result FIFO is configured to store the checksum.

### Claim 8 (depends on 7)

The memory checker of claim 7, wherein the random seed generator is configured to generate the first random seed value in response to at least one of a reset signal and software command.

### Claim 9 (depends on 7)

The memory checker of claim 7, wherein during the test mode of operation the random seed generator is further configured to generate a second random seed value, and for each test of a second plurality of tests:
the checksum engine is configured to be initialized with the second random seed value and to generate a checksum of the plurality of data values;
the comparison module is configured to compare the checksum with a reference value provided by the result FIFO and output a test result based on the comparison; and
the result FIFO is configured to store the checksum.

### Claim 10 (depends on 7)

The memory checker of claim 7, wherein the result FIFO is coupled to the random seed generator and further initializing the result FIFO with a seed value.

### Claim 11 (depends on 9)

The memory checker of claim 9, wherein the reference value is the checksum of a previous test in the first plurality of tests and the second plurality of tests.

### Claim 12 (depends on 9)

The memory checker of claim 9, wherein the reference value is the checksum of a previous test in the first plurality of tests and the second plurality of tests.

### Claim 13 (depends on 9)

The memory checker of claim 9, wherein each test in the first plurality of tests and the second plurality of tests is applied using a different memory bit read voltage threshold.

### Claim 14 (depends on 7)

The memory checker of claim 7, wherein the checksum engine further comprises:
a counter having a counter output configured to be coupled to an address input of the memory;
a first address register coupled to the counter and configured to store a first address of the memory region;
a last address register coupled to the counter and configured to store a last address of the memory region;
a checksum linear feedback shift register (LFSR) configured to be coupled to a data output of the memory, the random seed generator, the result FIFO and the comparison module; and
wherein during each test the counter is configured to generate a sequence of addresses from the first memory region address to the last memory region address, and the checksum LFSR is configured to generate the checksum of the plurality of data values.

### Claim 15 (depends on 14)

The memory checker of claim 14, further comprising a controller configured to be coupled to the memory and coupled to the checksum LFSR, the result FIFO, and the counter and configured to control the counter to reset the counter and the checksum LFSR at a start of each test and to control the result FIFO to update the reference value from the checksum at an end of each test.

### Claim 16 (depends on 7)

The memory checker of claim 7 wherein the FIFO is a register.

### Claim 17 (depends on 7)

A device comprising the memory checker of claim 7 coupled to the memory.

### Claim 18 (depends on 17)

The device of claim 17, wherein the memory region comprises a one-time-programmable memory.

### Claim 19 (depends on 17)

The device of claim 17 configured as a system-on-chip (SoC).
