# US 2025/0156308 A1 · Memory device and managing method thereof

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

- Number: US 2025/0156308 A1
- Document ID: US20250156308A1
- Status: Published application
- Kind: A1
- Application number: 18/826,561
- Filed: 2024-09-06
- Published: 2025-05-15
- Earliest claimed: 2023-11-12
- Assignees: Mediatek Inc.
- Applicants: Mediatek Inc.
- Inventors: Hsien-Peng Wang; Wei-Ting Hung; Yi-Yen Hsieh
- Web page: https://patentgrep.com/patent/US20250156308A1

## CPC

- G06F 12/0223: {User address space allocation, e.g. contiguous or non contiguous base addressing}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A memory device, for cooperating with at least one computing engine to perform several neural network computations, comprises the following elements. A memory storage, used to store data for the at least one computing engine. A memory controller, used to utilize several registers to manage several memory spaces in the memory storage, and execute a first instruction to control at least two data paths in the neural network computations. The first instruction is utilized to duplicate a first register to a second register of the registers, to allow the first register and the second register share one of the memory spaces in the memory storage.

## Claims

### Claim 1

A memory device, for cooperating with at least one computing engine to perform a plurality of neural network computations, the memory device comprising:
a memory storage, configured to store data for the at least one computing engine; and
a memory controller, configured to utilize a plurality of registers to manage a plurality of memory spaces in the memory storage, and execute a first instruction to control at least two data paths in the neural network computations,
wherein the first instruction is utilized to duplicate a first register to a second register, to allow the first register and the second register share one of the memory spaces in the memory storage, wherein the first register and the second register are among the plurality of registers.

### Claim 2 (depends on 1)

The memory device of claim 1, wherein the first instruction is a “Duplicate” instruction with a first data field identifying the first register as a source and a second data field identifying the second register as a destination.

### Claim 3 (depends on 1)

The memory device of claim 1, wherein each of the plurality of registers has a plurality of parameters including a base address, a bound address, a delete size, a head pointer and a tail pointer, and the base address and the bound address of the first register are the same as the second register.

### Claim 4 (depends on 3)

The memory device of claim 3, wherein the one of the memory spaces between the base address and the bound address of the first register is sharable by the second register, and an available data between the head pointer and the tail pointer of the first register is accessible through the second register.

### Claim 5 (depends on 3)

The memory device of claim 3, wherein the memory controller is further configured to execute a second instruction to declare the first register and the second register in the memory storage before the first instruction is executed.

### Claim 6 (depends on 5)

The memory device of claim 5, wherein the second instruction is a “Register_rid” instruction which sets the base address, the bound address and the delete size of each of the first register and the second register.

### Claim 7 (depends on 3)

The memory device of claim 3, wherein each of the plurality of registers further includes an identifier and two indicators, and the memory controller utilizes a managing table to record the base address, the bound address, the delete size, the head pointer, the tail pointer, the identifier and the indicators.

### Claim 8 (depends on 7)

The memory device of claim 7, wherein the memory controller comprising:
a compiler, configured to maintain the base address, the bound address and the delete size in a software level.

### Claim 9 (depends on 8)

The memory device of claim 8, wherein the memory controller further comprising:
a memory managing unit, configured to control the head pointer, the tail pointer and the indicators in a hardware level.

### Claim 10 (depends on 1)

The memory device of claim 1, wherein the memory storage comprises any type of volatile storage or non-volatile storage.

### Claim 11

A managing method for a memory device, wherein the memory device cooperates with at least one computing engine to perform a plurality of neural network computations, the managing method comprising:
storing data for the at least one computing engine, by a memory storage of the memory device;
utilizing a plurality of registers to manage a plurality of memory spaces in the memory storage, by a memory controller of the memory device; and
executing a first instruction to control at least two data paths in the neural network computations, by the memory controller,
wherein the first instruction is utilized to duplicate a first register to a second register, to allow the first register and the second register share one of the memory spaces in the memory storage, wherein the first register and the second register are among the plurality of registers.

### Claim 12 (depends on 11)

The managing method of claim 11, wherein the first instruction is a “Duplicate” instruction with a first data field identifying the first register as a source and a second data field identifying the second register as a destination.

### Claim 13 (depends on 11)

The managing method of claim 11, wherein each of the plurality of registers has a plurality of parameters including a base address, a bound address, a delete size, a head pointer and a tail pointer, and the base address and the bound address of the first register are the same as the second register.

### Claim 14 (depends on 13)

The managing method of claim 13, wherein the one of the memory spaces between the base address and the bound address of the first register is sharable by the second register, and an available data between the head pointer and the tail pointer of the first register is accessible through the second register.

### Claim 15 (depends on 13)

The managing method of claim 13, wherein before the step of executing the first instruction, the managing method further comprising:
executing a second instruction by the memory controller to declare the first register and the second register in the memory storage.

### Claim 16 (depends on 15)

The managing method of claim 15, wherein the second instruction is a “Register_rid” instruction which sets the base address, the bound address and the delete size of each of the first register and the second register.

### Claim 17 (depends on 13)

The managing method of claim 13, wherein each of the plurality of registers further includes an identifier and two indicators, and the managing method further comprising:
utilizing a managing table by the memory controller, to record the base address, the bound address, the delete size, the head pointer, the tail pointer, the identifier and the indicators.

### Claim 18 (depends on 17)

The managing method of claim 17, further comprising:
maintaining the base address, the bound address and the delete size in a software level, by a compiler of the memory controller.

### Claim 19 (depends on 18)

The managing method of claim 18, further comprising:
controlling the head pointer, the tail pointer and the indicators in a hardware level, by a memory managing unit of the memory controller.

### Claim 20 (depends on 11)

The managing method of claim 11, wherein the memory storage comprises any type of volatile storage or non-volatile storage.
