# US 2021/0173964 A1 · Dynamic Memory Scrambler

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

- Number: US 2021/0173964 A1
- Document ID: US20210173964A1
- Status: Published application
- Kind: A1
- Application number: 16/703,831
- Filed: 2019-12-04
- Published: 2021-06-10
- Earliest claimed: 2019-12-04
- Assignees: Realtek Singapore Private Limited
- Applicants: Realtek Singapore Private Limited
- Inventors: Ryan Patrick Donohue
- Web page: https://patentgrep.com/patent/US20210173964A1

## CPC

- G06F 21/79: in semiconductor storage media, e.g. directly-addressable memories
- G06F 12/1408: {by using cryptography (for digital transmission H04L9/00)}
- G06F 21/71: to assure secure computing or processing of information
- G06F 21/72: in cryptographic circuits
- G06F 21/85: interconnection devices, e.g. bus-connected or in-line devices
- H04L 9/0861: {Generation of secret information including derivation or calculation of cryptographic keys or passwords}
- H04L 9/0891: {Revocation or update of secret information, e.g. encryption key update or rekeying}
- H04L 9/0894: {Escrow, recovery or storing of secret information, e.g. secret key escrow or cryptographic key storage}
- G06F 2212/1052: Security improvement
- 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 memory data scrambling system that can dynamically rescramble the contents of a memory while the system is in operation includes an application-specific integrated circuit (ASIC) that has an ASIC bus fabric, a double data rate (DDR) memory controller coupled to the ASIC bus fabric, a dynamic memory scrambler coupled to the DDR memory controller, the dynamic memory scrambler comprising a scrambler, a descrambler, a scrambler selection table, and a key generator and a DDR PHY coupled to the dynamic memory scrambler. The DDR PHY is coupled to an external DDR memory external to the ASIC. The dynamic memory scrambler includes a refresh timer that, upon expiration, causes data in a region of the DDR to be read, descrambled, rescrambled using a different scrambling key, and stored back into the region of the DDR in place of a DDR refresh.

## Claims

### Claim 1

A memory data scrambling system comprising:
an integrated circuit (IC) comprising:
a bus fabric;
a memory controller coupled to the bus fabric;
a dynamic memory scrambler coupled to the memory controller, the dynamic memory scrambler comprising a scrambler, a descrambler, a scrambler selection table, and a key generator; and
a physical (PHY) interface coupled to the dynamic memory scrambler; and
an external memory external to the IC and coupled to the PHY interface.

### Claim 2 (depends on 1)

The memory data scrambling system of claim 1, wherein the key generator is configured to produce scrambling keys that are used to scramble and unscramble data.

### Claim 3 (depends on 1)

The memory data scrambling system of claim 1, wherein the scrambler selection table tracks which memory locations of the external memory are scrambled with which scrambling key.

### Claim 4 (depends on 1)

The memory data scrambling system of claim 1, wherein the IC further comprises a coordination circuit that coordinates scrambling and descrambling of data and dynamic key changes utilized for rescrambling of scrambled data in the external memory using a different scrambling key while the system is operating.

### Claim 5 (depends on 4)

The memory data scrambling system of claim 4, wherein rescrambling of scrambled data in the external memory using a different scrambling key while the system is operating comprises:
selecting a region of the external memory comprising first data to be rescrambled;
reading the first data from the region of the external memory;
descrambling the first data utilizing a first scrambling key associated with the region according to the coordination circuit;
the key generator generating a second scrambling key different than the first scrambling key and associating the second scrambling key with the region in the coordination circuit;
scrambling the unscrambled first data utilizing the second scrambling key to generate second data; and
transmitting the second data to the region of the external memory.

### Claim 6 (depends on 5)

The memory data scrambling system of claim 5, wherein the dynamic memory scrambler further comprises a refresh timer configured to cause the coordination circuit to coordinate timing of scrambling and rescrambling to be done in place of a double data rate (DDR) memory refresh.

### Claim 7 (depends on 6)

The memory data scrambling system of claim 6, wherein the dynamic memory scrambler is further configured to rescramble data of the region in place of a randomly selected DDR memory refresh or a periodically selected DDR memory refresh.

### Claim 8 (depends on 4)

The memory data scrambling system of claim 4, wherein the coordination circuit is a finite state machine (FSM).

### Claim 9

A memory data scrambling system comprising:
an external memory and
an integrated circuit (IC) comprising:
a bus fabric;
a memory controller coupled to the bus fabric;
a dynamic memory scrambler coupled to the memory controller, the dynamic memory scrambler comprising:
a scrambler;
a descrambler;
a key generator configured to produce scrambling keys utilized to scramble and unscramble data;
a coordination circuit that coordinates scrambling and descrambling of data and dynamic key changes utilized for rescrambling of scrambled data in the external memory using a different scrambling key while the system is operating; and
a scrambler selection table configured to track which memory locations of the external memory are scrambled with which scrambling key; and
a physical interface coupled between the dynamic memory scrambler and the external memory.

### Claim 10 (depends on 9)

The memory data scrambling system of claim 9, wherein rescrambling of scrambled data in the external memory using a different scrambling key while the system is operating comprises:
selecting a region of the external memory comprising first data to be rescrambled;
reading the first data from the region of the external memory;
descrambling the first data utilizing a first scrambling key associated with the region according to the scrambler selection table;
the key generator generating a second scrambling key different than the first scrambling key and associating the second scrambling key with the region in the scrambler selection table;
scrambling the unscramble first data utilizing the second scrambling key to generate second data; and
transmitting the second data to the region of the external memory.

### Claim 11 (depends on 9)

The memory data scrambling system of claim 9, wherein the dynamic memory scrambler further comprises a refresh timer configured to cause the coordination circuit to coordinate timing of scrambling and rescrambling to be done in place of a double data rate (DDR) memory refresh.

### Claim 12 (depends on 11)

The memory data scrambling system of claim 11, wherein the dynamic memory scrambler is further configured to rescramble data of the region in place of a randomly selected DDR memory refresh or a periodically selected DDR memory refresh.

### Claim 13

A method of data rescrambling in a memory system, the memory system comprising an external memory coupled to a dynamic memory scrambler, the dynamic memory scrambler comprising a scrambler, a descrambler, a scrambler selection table, a refresh timer, and a scrambling key generator, the method comprising:
the refresh timer expiring and selecting a region of the external memory comprising first data to be rescrambled;
reading the first data from the region of the external memory;
descrambling the first data utilizing a first scrambling key associated with the region according to the scrambler selection table;
the key generator generating a second scrambling key different than the first scrambling key and associating the second scrambling key with the region in the scrambler selection table;
scrambling the descrambled first data utilizing the second scrambling key to generate second data; and
transmitting the second data to the region of the external memory.

### Claim 14 (depends on 13)

The method of claim 13, further comprising rescrambling the data while the system is operating.

### Claim 15 (depends on 14)

The method of claim 14, further comprising the refresh timer expiring and selecting a region of the external memory in place of a double data rate (DDR) memory refresh.

### Claim 16 (depends on 15)

The method of claim 15, further comprising the refresh timer expiring and selecting a region of the DDR memory in place of a randomly selected DDR memory refresh or a periodic DDR memory refresh.

### Claim 17 (depends on 13)

The method of claim 13, wherein the dynamic memory scrambler further comprises a coordination circuit which coordinates scrambling and descrambling of data and dynamic key changes utilized for rescrambling of scrambled data in the external memory using a different scrambling key while the system is operating.
