# US 2017/0293569 A1 · Wear leveling in non-volatile memories

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

- Number: US 2017/0293569 A1
- Document ID: US20170293569A1
- Status: Published application
- Kind: A1
- Application number: 15/627,135
- Filed: 2017-06-19
- Published: 2017-10-12
- Earliest claimed: 2015-07-14
- Assignees: Western Digital Technologies, Inc.
- Applicants: Western Digital Technologies, Inc.
- Inventors: Kiran Kumar Gunnam
- Web page: https://patentgrep.com/patent/US20170293569A1

## CPC

- G06F 12/1072: Decentralised address translation, e.g. in distributed shared memory systems
- G06F 7/768: {Data position reversal, e.g. bit reversal, byte swapping}
- G06F 12/0246: {in block erasable memory, e.g. flash memory}
- G06F 12/0607: {Interleaved addressing}
- G06F 2212/1044: Space efficiency improvement
- G06F 2212/152: Virtualized environment, e.g. logically partitioned system
- G06F 2212/7201: Logical to physical mapping or translation of blocks or pages
- G06F 2212/7211: Wear leveling
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Systems and methods for wear leveling in non-volatile memories (NVMs) are illustrated. One such system includes a first non-volatile memory configured to store information from a host, a second non-volatile memory storing a plurality of cumulative control states, each indicative of a state of random mappings between physical block addresses (PBAs) and logical block addresses (LBAs) of the first non-volatile memory, and a plurality of control states, an access network configured to translate LBAs to PBAs based on the plurality of cumulative control states, a background swap scheduler configured to swap PBAs assigned to LBAs based on the plurality of control states, and a controller configured to sequentially advance through the plurality of cumulative control states and the plurality of control states.

## Claims

### Claim 1

A non-volatile memory system configured for wear leveling, the system comprising:
a first non-volatile memory configured to store information from a host;
a second non-volatile memory storing a plurality of cumulative control states, each indicative of a state of random mappings between physical block addresses (PBAs) and logical block addresses (LBAs) of the first non-volatile memory, and a plurality of control states;
an access network configured to translate LBAs to PBAs based on the plurality of cumulative control states;
a background swap scheduler configured to swap PBAs assigned to LBAs based on the plurality of control states; and
a controller configured to sequentially advance through the plurality of cumulative control states and the plurality of control states.

### Claim 2 (depends on 1)

The system of claim 1, wherein the second non-volatile memory comprises a read only memory (ROM).

### Claim 3 (depends on 1)

The system of claim 1:
wherein the cumulative control state comprises a first cumulative control state and a second cumulative control state;
wherein the control state comprises a first control state and a second control state; and
wherein the second cumulative control state is a function of the first cumulative control state and the second control state.

### Claim 4 (depends on 3)

The system of claim 3, wherein the second cumulative control state comprises switch settings used to achieve a sort of a permutation of the first cumulative control state where the permutation is generated using the second control state.

### Claim 5 (depends on 1)

The system of claim 1, further comprising:
a mapping state generator configured to change from a first memory map to a second memory map after the background swap scheduler swaps a preselected number of PBAs;
wherein the first memory map and the second memory map each comprises a preselected number of PBAs.

### Claim 6 (depends on 1)

The system of claim 1, wherein the background swap scheduler is configured to swap PBAs after a preselected number of accesses of the first non-volatile memory.

### Claim 7 (depends on 6)

The system of claim 6, wherein preselected number of accesses comprises 100 writes of the first non-volatile memory.

### Claim 8 (depends on 1)

The system of claim 1, wherein the access network is further configured to:
generate a first PBA candidate from a LBA using a first function;
generate a second PBA candidate from the LBA using a second function; and
select either the first PBA candidate or the second PBA candidate for data access based on information related to a background swap of data stored at the first PBA candidate and a background swap of data stored at the second PBA candidate.

### Claim 9 (depends on 8)

The system of claim 8, wherein at least one of the first function or the second function comprises a function performed by at least one of a multi-stage interconnection network or a block cipher.

### Claim 10

A method for wear leveling in a non-volatile memory system, the method comprising:
storing information in a first non-volatile memory;
storing a plurality of cumulative control states, each indicative of a state of random mappings between physical block addresses (PBAs) and logical block addresses (LBAs) of the first non-volatile memory, and a plurality of control states in a second non-volatile memory;
translating LBAs to PBAs based on the plurality of cumulative control states;
swapping PBAs assigned to LBAs based on the plurality of control states; and
advancing sequentially through the plurality of cumulative control states and the plurality of control states.

### Claim 11 (depends on 10)

The method of claim 10, wherein the storing the plurality of cumulative control states and the plurality of control states comprises:
calculating the plurality of cumulative control states and the plurality of control states; and
storing the plurality of cumulative control states and the plurality of control states.

### Claim 12 (depends on 10)

The method of claim 10, wherein the second non-volatile memory comprises a read only memory (ROM).

### Claim 13 (depends on 10)

The method of claim 10:
wherein the cumulative control state comprises a first cumulative control state and a second cumulative control state;
wherein the control state comprises a first control state and a second control state; and
wherein the second cumulative control state is a function of the first cumulative control state and the second control state.

### Claim 14 (depends on 13)

The method of claim 13, wherein the second cumulative control state comprises switch settings used to achieve a sort of a permutation of the first cumulative control state where the permutation is generated using the second control state.

### Claim 15 (depends on 10)

The method of claim 10, further comprising:
changing from a first memory map to a second memory map after swapping a preselected number of PBAs;
wherein the first memory map and the second memory map each comprises a preselected number of PBAs.

### Claim 16 (depends on 10)

The method of claim 10, wherein the swapping PBAs assigned to LBAs based on the control state comprises swapping PBAs after a preselected number of accesses of the first non-volatile memory.

### Claim 17 (depends on 16)

The method of claim 16, wherein preselected number of accesses comprises 100 writes of the first non-volatile memory.

### Claim 18 (depends on 10)

The method of claim 10, further comprising:
generating a first PBA candidate from a LBA using a first function;
generating a second PBA candidate from the LBA using a second function; and
selecting either the first PBA candidate or the second PBA candidate for data access based on information related to a background swap of data stored at the first PBA candidate and a background swap of data stored at the second PBA candidate.

### Claim 19 (depends on 18)

The method of claim 18, wherein at least one of the first function or the second function comprises a function performed by at least one of a multi-stage interconnection network or a block cipher.

### Claim 20

A non-volatile memory system configured for wear leveling, the system comprising:
means for storing information in a first non-volatile memory;
means for storing a plurality of cumulative control states, each indicative of a state of random mappings between physical block addresses (PBAs) and logical block addresses (LBAs) of the first non-volatile memory, and a plurality of control states in a second non-volatile memory;
means for translating LBAs to PBAs based on the plurality of cumulative control states;
means for swapping PBAs assigned to LBAs based on the plurality of control states; and
means for advancing sequentially through the plurality of cumulative control states and the plurality of control states.

### Claim 21 (depends on 20)

The system of claim 20, wherein the second non-volatile memory comprises a read only memory (ROM).

### Claim 22 (depends on 20)

The system of claim 20:
wherein the cumulative control state comprises a first cumulative control state and a second cumulative control state;
wherein the control state comprises a first control state and a second control state; and
wherein the second cumulative control state is a function of the first cumulative control state and the second control state.

### Claim 23 (depends on 22)

The system of claim 22, wherein the second cumulative control state comprises switch settings used to achieve a sort of a permutation of the first cumulative control state where the permutation is generated using the second control state.

### Claim 24 (depends on 20)

The system of claim 20, further comprising:
means for changing from a first memory map to a second memory map after swapping a preselected number of PBAs;
wherein the first memory map and the second memory map each comprises a preselected number of PBAs.

### Claim 25 (depends on 20)

The system of claim 20, wherein the means for swapping PBAs assigned to LBAs based on the control state comprises means for swapping PBAs after a preselected number of accesses of the first non-volatile memory.

### Claim 26 (depends on 22)

The system of claim 22, wherein preselected number of accesses comprises 100 writes of the first non-volatile memory.

### Claim 27 (depends on 20)

The system of claim 20, further comprising:
means for generating a first PBA candidate from a LBA using a first function;
means for generating a second PBA candidate from the LBA using a second function; and
means for selecting either the first PBA candidate or the second PBA candidate for data access based on information related to a background swap of data stored at the first PBA candidate and a background swap of data stored at the second PBA candidate.

### Claim 28 (depends on 27)

The system of claim 27, wherein at least one of the first function or the second function comprises a function performed by at least one of a multi-stage interconnection network or a block cipher.
