# US 2023/0401164 A1 · Methods and apparatus to estimate consumed memory bandwidth

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

- Number: US 2023/0401164 A1
- Document ID: US20230401164A1
- Status: Published application
- Kind: A1
- Application number: 17/892,693
- Filed: 2022-08-22
- Published: 2023-12-14
- Earliest claimed: 2022-06-09
- Assignees: Texas Instruments Incorporated
- Applicants: Texas Instruments Incorporated
- Inventors: Patrick Kruse; Gregory Shurtz; Denis Beaudoin; Abhishek Shankar; Daniel Wu
- Web page: https://patentgrep.com/patent/US20230401164A1

## CPC

- G06F 12/1416: {by checking the object accessibility, e.g. type of access defined by the memory independently of subject rights (G06F12/1458 takes precedence)}
- G06F 13/1668: {Details of memory controller}
- G06F 2212/1052: Security improvement
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

An example apparatus includes: bandwidth estimator circuitry configured to: obtain a first memory transaction; and determine a consumed bandwidth associated with the memory transaction; and gate circuitry configured to: permit transmission of the memory transaction to a memory controller circuitry; determine whether to gate a second memory transaction generated by a source of the first memory transaction based on the consumed bandwidth of the first memory transaction; and when it is determined to gate the second memory transaction, prevent transmission of the second memory transaction for an amount of time based on the consumed bandwidth.

## Claims

### Claim 1

A device comprising:
bandwidth estimator circuitry configured to:
obtain a first memory transaction; and
determine a consumed bandwidth associated with the memory transaction; and
gate circuitry configured to:
permit transmission of the memory transaction to a memory controller circuitry;
determine whether to gate a second memory transaction generated by a source of the first memory transaction based on the consumed bandwidth of the first memory transaction; and
when it is determined to gate the second memory transaction, prevent transmission of the second memory transaction for an amount of time based on the consumed bandwidth.

### Claim 2 (depends on 1)

The device of claim 1, wherein the bandwidth estimator circuitry is further configured to determine the consumed bandwidth based on an amount of data accessed in a memory burst.

### Claim 3 (depends on 2)

The device of claim 2, wherein:
the memory transaction is to include a transacted amount of data and a memory address; and
the bandwidth estimator circuitry is further configured to:
determine whether the transacted amount of data and memory address are misaligned with a boundary of the memory burst; and
determine the consumed bandwidth based on the determination.

### Claim 4 (depends on 2)

The device of claim 2, wherein:
the memory transaction is a partial write operation;
to process the memory transaction, the memory controller circuitry is configured to:
read a first amount of data in a first memory burst;
modify, in response to a determination the memory transaction describes a write operation, the first amount of data; and
write, in response to a determination the memory transaction describes a write operation, the modified first amount of data in a second memory burst; and
the bandwidth estimator circuitry is further configured to determine the consumed bandwidth based on both the first memory burst and the second memory burst.

### Claim 5 (depends on 4)

The device of claim 4, wherein:
to process the memory transaction, the memory controller circuitry is configured to:
read a second amount of data in a third memory burst, the second amount of data to obtain an Error Correction Code (ECC) corresponding to the memory transaction;
modify, in response to a determination the memory transaction describes a write operation, the second amount of data to update the ECC; and
write, in response to a determination the memory transaction describes a write operation, the modified second amount of data in a fourth memory burst; and
the bandwidth estimator circuitry is further configured to determine the consumed bandwidth based on both the third memory burst and the fourth memory burst.

### Claim 6 (depends on 5)

The device of claim 5, wherein:
the memory transaction is a first memory transaction;
the source of the first memory transaction is further configured to generate a second memory transaction; and
the bandwidth estimator circuitry is further configured to:
log the first memory transaction;
determine, based on the log, that an ECC corresponding to the first memory transaction and an ECC corresponding to the second memory transaction are both included in the second amount of data accessed by the memory controller circuitry in the third memory burst; and
determine the consumed bandwidth of the second memory transaction based on information other than the second amount of data.

### Claim 7 (depends on 1)

The device of claim 1, further including transaction limiter circuitry configured to:
obtain the consumed bandwidth;
obtain an allocated number of bytes per unit of time that the source of the memory transaction is permitted to transmit to the memory controller circuitry;
determine the amount of time based on the consumed bandwidth and the allocated number of bytes per unit of time; and
provide the amount of time to the gate circuitry.

### Claim 8

A method comprising:
obtaining a first memory transaction;
determining a consumed bandwidth associated with the memory transaction;
permitting transmission of the memory transaction;
determining whether to gate a second memory transaction generated by a source of the first memory transaction based on the consumed bandwidth of the first memory transaction; and
when it is determined to gate the second memory transaction, preventing transmission of the second memory transaction for an amount of time determined by the consumed bandwidth.

### Claim 9 (depends on 8)

The method of claim 8, further including determining the consumed bandwidth based on an amount of data accessed in a memory burst.

### Claim 10 (depends on 9)

The method of claim 9, wherein:
the memory transaction is to include a transacted amount of data and a memory address; and
the method further includes:
determining whether the transacted amount of data and memory address are misaligned with a boundary of the memory burst; and
determining the consumed bandwidth based on the determination.

### Claim 11 (depends on 9)

The method of claim 9, further including:
reading a first amount of data in a first memory burst;
modifying, in response to a determination the memory transaction describes a write operation, the first amount of data;
writing, in response to a determination the memory transaction describes a write operation, the modified first amount of data in a second memory burst; and
determining the consumed bandwidth based on both the first memory burst and the second memory burst.

### Claim 12 (depends on 11)

The method of claim 11, further including:
reading a second amount of data in a third memory burst, the second amount of data to obtain an Error Correction Code (ECC) corresponding to the memory transaction;
modifying, in response to a determination the memory transaction describes a write operation, the second amount of data to update the ECC;
writing, in response to a determination the memory transaction describes a write operation, the modified second amount of data in a fourth memory burst; and
determining the consumed bandwidth based on the third memory burst and the fourth memory burst.

### Claim 13 (depends on 12)

The method of claim 12, wherein:
the memory transaction is a first memory transaction;
the source of the first memory transaction is to further generate a second memory transaction; and
the method further includes:
logging the first memory transaction;
determining, based on the log, that an ECC corresponding to the first memory transaction and an ECC corresponding to the second memory transaction are both included in the second amount of data accessed in the third memory burst; and
determining the consumed bandwidth of the second memory transaction based on information other than the second amount of data.

### Claim 14 (depends on 8)

The method of claim 8, further including:
obtaining an allocated number of bytes per unit of time that the source of the memory transaction is permitted to transmit to a memory controller circuitry; and
determining the amount of time based on the consumed bandwidth and the allocated number of bytes per unit of time.

### Claim 15

A device comprising:
transaction source circuitry configured to generate a memory transaction;
bandwidth estimator circuitry configured to:
obtain a first memory transaction; and
determine a consumed bandwidth associated with the memory transaction; and
gate circuitry configured to:
permit transmission of the memory transaction to a memory controller circuitry; and
determine whether to gate a second memory transaction generated by a source of the first memory transaction based on the consumed bandwidth of the first memory transaction;
when it is determined to gate the second memory transaction, prevent transmission of the second memory transaction for an amount of time determined by the consumed bandwidth; and
the memory controller circuitry configured to:
process the memory transaction; and
provide results of the memory transaction to the transaction source circuitry.

### Claim 16 (depends on 15)

The device of claim 15, wherein the transaction source circuitry is an Intellectual Property core.

### Claim 17 (depends on 15)

The device of claim 15, wherein the bandwidth estimator circuitry is further configured to determine the consumed bandwidth based on an amount of data accessed in a memory burst.

### Claim 18 (depends on 17)

The device of claim 17, wherein:
the memory transaction is to include a transacted amount of data and a memory address; and
the bandwidth estimator circuitry is further configured to:
determine whether the transacted amount of data and memory address are misaligned with a boundary of the memory burst; and
determine the consumed bandwidth based on the determination.

### Claim 19 (depends on 15)

The device of claim 15, wherein:
the memory transaction is a partial write operation;
to process the memory transaction, the memory controller circuitry is configured to:
obtain a first amount of data in a first memory burst;
modify the first amount of data based on data within the memory transaction;
write the modified first amount of data in a second memory burst;
obtain a second amount of data in a third memory burst, the third amount of data to obtain an Error Correction Code (ECC) corresponding to the memory transaction;
modify the second amount of data to update the ECC; and
write the modified second amount of data in a fourth memory burst; and
the bandwidth estimator circuitry is further configured determine the consumed bandwidth based on the first memory burst, the second memory burst, the third memory burst, and the fourth memory burst.

### Claim 20 (depends on 15)

The device of claim 15, wherein:
the memory transaction is a full write operation;
to process the memory transaction, the memory controller circuitry is configured to:
write data within the memory transaction to memory in a first memory burst; and
obtain a first amount of data in a second memory burst, the second amount of data to obtain an Error Correction Code (ECC) corresponding to the memory transaction;
modify the first amount of data to update the ECC; and
write the modified first amount of data in a third memory burst; and
the bandwidth estimator circuitry is further configured to determine the consumed bandwidth based on the first memory burst, the second memory burst, and the third memory burst.
