# US 2025/0165401 A1 · Memory management circuit, electronic device and memory management method

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

- Number: US 2025/0165401 A1
- Document ID: US20250165401A1
- Status: Published application
- Kind: A1
- Application number: 18/512,038
- Filed: 2023-11-17
- Published: 2025-05-22
- Earliest claimed: 2023-11-17
- Assignees: Mediatek Inc.
- Applicants: Mediatek Inc.
- Inventors: Ying-Lin Liu; Chung-Lun Huang; Shih-Chang Lin; Yu-Cheng Lin; Lin Liu
- Web page: https://patentgrep.com/patent/US20250165401A1

## CPC

- G06F 12/0284: {Multiple user address space allocation, e.g. using different base addresses (interprocessor communication G06F15/163)}
- G06F 12/0804: with main memory updating (G06F12/0806 takes precedence)
- G06F 12/023: {Free address space management}
- G06F 12/0292: {using tables or multilevel address translation means (G06F12/023 takes precedence; address translation in virtual memory systems G06F12/10)}
- G06F 12/0873: Mapping of cache memory to specific storage devices or parts thereof
- G06F 12/1027: using associative or pseudo-associative address translation means, e.g. translation look-aside buffer [TLB]
- G06F 12/109: for multiple virtual address spaces, e.g. segmentation (G06F12/1036 takes precedence)
- G06F 2212/1024: Latency reduction
- G06F 2212/1056: Simplification
- G06F 2212/454: Vector or matrix data
- G06F 2212/657: Virtual address space management
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A memory management circuit, an electronic device and a memory management method are provided. The memory management circuit includes a controller and an address mapping logic. The controller records addresses of available storage spaces within a memory device, wherein a searching logic of the controller stores the addresses in a storage device, and the addresses are queued with a specific order in the storage device. When a computing circuit send a storage request to request for a storage resource, the searching logic obtains at least one address queued in the storage device according to the specific order of the addresses queued in the storage device, to accordingly generate a mapping table, and the address mapping logic performs an address mapping operation upon the storage request according to the mapping table, to allow the computing circuit to utilize the available storage spaces according to the mapping table.

## Claims

### Claim 1

A memory management circuit, comprising:
a controller, configured to record first addresses of available storage spaces within a first memory device, and control operations of generating a mapping table in response to a storage request of a computing circuit, wherein the controller comprises:
a searching logic, configured to store the first addresses in a storage device and generate the mapping table, wherein the first addresses are queued with a specific order in the storage device;
wherein when the computing circuit sends the storage request to request for a specific capacity of storage, the searching logic obtains at least one first address of the first addresses queued in the storage device according to the specific order of the first addresses queued in the storage device, to generate the mapping table according to the at least one first address obtained from the storage device; and
an address mapping logic, coupled to the controller, configured to perform an address mapping operation upon the storage request according to the mapping table, to allow the computing circuit to utilize at least a portion of the available storage spaces within the first memory device according to the mapping table.

### Claim 2 (depends on 1)

The memory management circuit of claim 1, wherein the controller further comprises:
an initialization control circuit, configured to perform an initialization operation to determine the available storage spaces within the first memory device and thereby record the first addresses of the available storage spaces when the memory management circuit is powered on.

### Claim 3 (depends on 1)

The memory management circuit of claim 1, wherein the storage device is a first in first out (FIFO) storage device comprising a plurality of storage units, and the storage units are configured to store the first addresses, respectively.

### Claim 4 (depends on 3)

The memory management circuit of claim 3, wherein the searching logic further comprises:
at least one register, configured to store a pointer which indicates a specific storage unit among the storage units;
wherein the storage device outputs the at least one first address starting from the specific storage unit indicated by the pointer.

### Claim 5 (depends on 4)

The memory management circuit of claim 4, wherein after the storage device outputs the at least one first address, the searching logic updates the pointer to indicate a subsequent storage unit among the storage units according to a number of the at least one first address being output, in order to make the storage device output a subsequent first address of the first addresses starting from the subsequent storage unit when a subsequent capacity of storage is requested.

### Claim 6 (depends on 5)

The memory management circuit of claim 5, wherein the specific storage unit is an Nth storage unit among the storage units, the number of the at least one first address being output is M, and the subsequent storage unit is an (N+M)th storage unit among the storage units, wherein each of N and M is a positive integer.

### Claim 7 (depends on 3)

The memory management circuit of claim 3, wherein when at least one released storage space within the first memory device is released by the computing circuit, at least one released address associated with the at least one released storage space is stored into at least one storage unit following a last one of the storage units respectively storing the first addresses.

### Claim 8 (depends on 1)

The memory management circuit of claim 1, wherein the searching logic further comprises:
at least one register, configured to store a counting value which indicates a number of the first addresses that are available.

### Claim 9 (depends on 8)

The memory management circuit of claim 8, wherein after the storage device outputs the at least one first address, the searching logic updates the counting value to indicate a latest number of the first addresses that are available according to a number of the at least one first address being output.

### Claim 10 (depends on 8)

The memory management circuit of claim 8, wherein when the counting value indicates that the first addresses that are available are insufficient to satisfy the specific capacity of storage requested by the computing circuit, the searching logic generates the mapping table according to all of the first addresses output from the storage device and at least one second address of available storage spaces within a second memory device.

### Claim 11 (depends on 1)

The memory management circuit of claim 1, wherein when another computing circuit without a permission of accessing the first memory device sends another storage request to request for another specific capacity of storage, the searching logic generates another mapping table according to at least one second address of available storage spaces within a second memory device.

### Claim 12

An electronic device, comprising:
a computing circuit, configured to perform a computing operation;
a memory device, configured to provide available storage spaces for the computing circuit during the computing operation; and
a memory management circuit, coupled to the computing circuit and the memory device, comprising:
a controller, configured to record first addresses of the available storage spaces within the memory device, and control operations of generating a mapping table in response to a storage request of the computing circuit, wherein the controller comprises:
a searching logic, configured to store the first addresses in a storage device and generate the mapping table, wherein the first addresses are queued with a specific order in the storage device;
wherein when the computing circuit sends the storage request to request for a specific capacity of storage, the searching logic obtains at least one first address of the first addresses queued in the storage device according to the specific order of the first addresses queued in the storage device, to generate the mapping table according to the at least one first address obtained from the storage device; and
an address mapping logic, coupled to the controller, configured to perform an address mapping operation upon the storage request according to the mapping table, to allow the computing circuit to utilize at least a portion of the available storage spaces within the memory device according to the mapping table.

### Claim 13

A memory management method, applicable to a memory management circuit, comprising:
utilizing a controller of the memory management circuit to record first addresses of available storage spaces within a first memory device;
utilizing a searching logic of the controller to store the first addresses in a storage device, wherein the first addresses are queued with a specific order in the storage device;
in response to a computing circuit sending a storage request to request for a specific capacity of storage, utilizing the searching logic to obtain at least one first address of the first addresses queued in the storage device according to the specific order of the first addresses queued in the storage device, to generate a mapping table according to the at least one first address obtained from the storage device; and
utilizing an address mapping logic of the memory management circuit to perform an address mapping operation upon the storage request according to the mapping table, to allow the computing circuit to utilize at least a portion of the available storage spaces within the first memory device according to the mapping table.

### Claim 14 (depends on 13)

The memory management method of claim 13, wherein utilizing the controller of the memory management circuit to record the first addresses of the available storage spaces within the first memory device comprises:
utilizing an initialization control circuit of the controller to perform an initialization operation to determine the available storage spaces within the first memory device and thereby record the first addresses of the available storage spaces when the memory management circuit is powered on.

### Claim 15 (depends on 13)

The memory management method of claim 13, wherein the storage device is a first in first out (FIFO) storage device comprising a plurality of storage units, and the storage units are configured to store the first addresses, respectively.

### Claim 16 (depends on 15)

The memory management method of claim 15, wherein utilizing the searching logic to obtain the at least one first address of the first addresses queued in the storage device according to the specific order of the first addresses queued in the storage device comprises:
utilizing at least one register of the searching logic to store a pointer which indicates a specific storage unit among the storage units;
utilizing the storage device to output the at least one first address starting from the specific storage unit indicated by the pointer.

### Claim 17 (depends on 16)

The memory management method of claim 16, further comprising:
after the storage device outputs the at least one first address, utilizing the searching logic to update the pointer to indicate a subsequent storage unit among the storage units according to a number of the at least one first address being output, in order to make the storage device output a subsequent first address of the first addresses starting from the subsequent storage unit when a subsequent capacity of storage is requested.

### Claim 18 (depends on 17)

The memory management method of claim 17, wherein the specific storage unit is an Nth storage unit among the storage units, the number of the at least one first address being output is M, and the subsequent storage unit is an (N+M)th storage unit among the storage units, wherein each of N and M is a positive integer.

### Claim 19 (depends on 15)

The memory management circuit of claim 15, further comprising:
in response to at least one released storage space within the first memory device being released by the computing circuit, storing at least one released address associated with the at least one released storage space into at least one storage unit following a last one of the storage units respectively storing the first addresses.

### Claim 20 (depends on 13)

The memory management method of claim 13, further comprising:
utilizing at least one register of the searching logic to store a counting value which indicates a number of the first addresses that are available.

### Claim 21 (depends on 20)

The memory management method of claim 20, further comprising:
after the storage device outputs the at least one first address, utilizing the searching logic to update the counting value to indicate a latest number of the first addresses that are available according to a number of the at least one first address being output.

### Claim 22 (depends on 20)

The memory management method of claim 20, further comprising:
in response to the counting value indicating that the first addresses that are available are insufficient to satisfy the specific capacity of storage requested by the computing circuit, utilizing the searching logic to generate the mapping table according to all of the first addresses output from the storage device and at least one second address of available storage spaces within a second memory device.

### Claim 23 (depends on 19)

The memory management method of claim 19, further comprising:
in response to another computing circuit without a permission of accessing the first memory device sending another storage request to request for another specific capacity of storage, utilizing the searching logic to generate another mapping table according to at least one second address of available storage spaces within a second memory device.
