# US 10,957,398 B2 · Electronic device with memory erased by page

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

- Number: US 10,957,398 B2
- Document ID: US10957398B2
- Status: Granted
- Kind: B2
- Application number: 15/779,311
- Filed: 2016-11-25
- Published: 2018-11-15
- Granted: 2021-03-23
- Earliest claimed: 2015-11-26
- Assignees: Thales Dis France SAS
- Applicants: Gemalto SA
- Inventors: Frederic Gallas; Rudy Yanto; Vincent Dumas; Fabrice Vergnes
- Web page: https://patentgrep.com/patent/US10957398B2

## CPC

- G11C 16/16: for erasing blocks, e.g. arrays, words, groups
- G06F 3/0608: {Saving storage space on storage systems}
- G06F 3/064: {Management of blocks}
- G06F 3/0652: {Erasing, e.g. deleting, data cleaning, moving of data to a wastebasket}
- G06F 3/0679: {Non-volatile semiconductor memory device, e.g. flash memory, one time programmable memory [OTP]}
- G11C 16/0483: {comprising cells having several storage transistors connected in series}
- G11C 16/32: Timing circuits
- G11C: STATIC STORES (semiconductor memory devices H10B)
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

The invention relates to a method for managing an memory LNVM erasable by block. The method comprises an index management of the memory blocks wherein the index indicates if a block is erased (Erased) or to be erased (TBE). A memory manager performs a block erasing when the memory is not in use and a block is to be erased and when the number of erased blocks is lower than a predetermined number.

## Claims

### Claim 1

A method for managing a non-volatile memory erasable by block comprising:
managing an index of the memory blocks wherein the index indicates, in a first field, for each block whether the block is erased and, in a second field, whether the block is no more used and therefore a candidate to be erased, by a memory manager performing a block erasure when the memory is not in use and a block is to be erased and when the number of erased blocks is lower than a predetermined number.

### Claim 2 (depends on 1)

The method of claim 1, wherein the block erasing is made on the oldest available block that is not erased.

### Claim 3 (depends on 1)

The method of claim 1, wherein the index management is made on a number of blocks lower than the total number of blocks of the memory.

### Claim 4 (depends on 1)

The method of claim 1, wherein the memory is inside an electronic device receiving commands according ISO7816 or ISO14443, and wherein the block erasing is made during an idle time of said commands.

### Claim 5 (depends on 1)

The method of claim 1 wherein the second field of the index indicating that a block is no more used corresponds to a metadata field for the block indicating that the block is no more used.

### Claim 6 (depends on 5)

The method of claim 5 wherein the metadata field for the block indicating that the block is no more used is a word having at least one bit corresponding to each page of a block wherein the at least one bit corresponding to each page is set to binary 0 when the page is no more used whereby if all pages of a block are no more used, the word having at least one bit corresponding to each page of a block has the value zero.

### Claim 7 (depends on 1)

The method of claim 1 further comprising:
storing in a metadata field for each block no more used a position for the block in an erasing queue and in the index of the memory blocks; and
when performing block erasure, erasing a block by selecting a block to be erased based on the indicated positions in the erasing queue.

### Claim 8 (depends on 1)

The method of claim 1 comprising:
storing a to-be-erased field and a no-more-used field in a metadata area of each block;
storing the index of the memory blocks in a dynamic memory; and
in the event of power off, storing the index in non-volatile memory.

### Claim 9 (depends on 1)

The method of claim 1 comprising:
storing a to-be-erased field and a no-more-used field in a metadata area of each block;
storing the index of the memory blocks in a dynamic memory; and
in the event of power on, reconstructing the index from the metadata area of each block.

### Claim 10

An electronic device comprising at least one electrically erasable non-volatile memory which is erasable by blocks and a memory controller wherein the memory controller comprises an index of the memory storing, in a first field, for each block an indication of whether the block is erased and, in a second field, whether the block is no more used and therefore a candidate to be erased, wherein the memory controller performs a block erasure when the memory is not in use and a block is to be erased and when the index indicates that the number of erased blocks is lower than a predetermined number.

### Claim 11 (depends on 10)

The electronic device of claim 10 wherein the second field of the index indicating that a block is no more used corresponds to a metadata field for the block indicating that the block is no more used.

### Claim 12 (depends on 11)

The electronic device of claim 11 wherein the metadata field for the block indicating that the block is no more used is a word having at least one bit corresponding to each page of a block wherein the at least one bit corresponding to each page is set to binary 0 when the page is no more used whereby if all pages of a block are no more used, the word having at least one bit corresponding to each page of a block has the value zero.

### Claim 13 (depends on 10)

The electronic device of claim 10 further comprising:
an erase-queue-position metadata field stored in each block no more used and in the index of the memory blocks, the erase-queue-position indicating a position for the block in an erasing queue; and
when performing block erasure, erasing a block by selecting a block to be erased based on the indicated positions in the erasing queue.

### Claim 14 (depends on 10)

The electronic device of claim 10 comprising:
a to-be-erased field and a no-more-used field in a metadata area of each block;
wherein the index of the memory blocks is stored in a dynamic memory; and
the memory controller is configured to, in the event of power off, storing the index in non-volatile memory.

### Claim 15 (depends on 10)

The electronic device of claim 10 comprising:
a to-be-erased field and a no-more-used field in a metadata area of each block;
wherein the index of the memory blocks is stored in a dynamic memory; and
the memory controller is configured to, in the event of power on, reconstructing the index from the metadata area of each block.
