# US 2024/0403055 A1 · Dual data streams sharing dual cache access ports

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

- Number: US 2024/0403055 A1
- Document ID: US20240403055A1
- Status: Published application
- Kind: A1
- Application number: 18/800,249
- Filed: 2024-08-12
- Published: 2024-12-05
- Earliest claimed: 2013-07-15
- Assignees: Texas Instruments Incorporated
- Applicants: Texas Instruments Incorporated
- Inventors: Joseph Zbiciak; Timothy Anderson
- Web page: https://patentgrep.com/patent/US20240403055A1

## CPC

- G06F 9/321: {Program or instruction counter, e.g. incrementing}
- G06F 9/30014: {with variable precision}
- G06F 9/30036: {Instructions to perform operations on packed data, e.g. vector, tile or matrix operations}
- G06F 9/30038: {using a mask}
- G06F 9/30043: {LOAD or STORE instructions; Clear instruction}
- G06F 9/30047: {Prefetch instructions; cache control instructions}
- G06F 9/30098: {Register arrangements}
- G06F 9/30112: {comprising data of variable length}
- G06F 9/30145: {Instruction analysis, e.g. decoding, instruction word fields}
- G06F 9/3016: {Decoding the operand specifier, e.g. specifier format}
- G06F 9/32: Address formation of the next instruction, e.g. by incrementing the instruction counter (G06F9/38 takes precedence)
- G06F 9/345: of multiple operands or results {(addressing multiple banks G06F12/06)}
- G06F 9/3802: {Instruction prefetching}
- G06F 9/383: {Operand prefetching (cache prefetching G06F12/0862)}
- G06F 9/3867: {using instruction pipelines}
- G06F 11/00: Error detection; Error correction; Monitoring (error detection, correction or monitoring in information storage based on relative movement between record carrier and transducer G11B20/18; monitoring, i.e. supervising the progress of recording or reproducing G11B27/36; in static stores G11C29/00)
- G06F 12/0207: {with multidimensional access, e.g. row/column, matrix}
- G06F 12/0875: with dedicated cache, e.g. instruction or stack
- G06F 12/0897: with two or more cache hierarchy levels (with multilevel cache hierarchies G06F12/0811)
- G06F 13/1605: {based on arbitration (arbitration in handling access to a common bus or bus system G06F13/36)}
- G06F 13/4068: {Electrical coupling}
- G06F 9/3836: {Instruction issuing, e.g. dynamic instruction scheduling or out of order instruction execution}
- G06F 11/10: Adding special bits or symbols to the coded information, e.g. parity check, casting out 9's or 11's
- G06F 2212/452: Instruction code
- G06F 2212/60: Details of cache memory
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A streaming engine employed in a digital data processor specifies fixed first and second read only data streams. Corresponding stream address generator produces address of data elements of the two streams. Corresponding steam head registers stores data elements next to be supplied to functional units for use as operands. The two streams share two memory ports. A toggling preference of stream to port ensures fair allocation. The arbiters permit one stream to borrow the other's interface when the other interface is idle. Thus one stream may issue two memory requests, one from each memory port, if the other stream is idle. This spreads the bandwidth demand for each stream across both interfaces, ensuring neither interface becomes a bottleneck.

## Claims

### Claim 1

A device comprising:
a first interface configured to couple to a memory;
a second interface configured to couple to the memory in parallel with the first interface;
a first set of stream circuitry coupled to the first interface and the second interface; and
a second set of stream circuitry coupled to the first interface and the second interface and configured to provide a first request and a second request to each of the first interface and the second interface, wherein:
the first interface is configured to, based on the first set of stream circuitry having not provided a request:
select, based on a number of credits associated with the second interface, a selected request from among the first request and the second request; and
access the memory based on the selected request.

### Claim 2 (depends on 1)

The device of claim 1, wherein:
the first request is associated with a first address;
the second request is associated with a second address that immediately follows the first address in a stream; and
the selection by the first interface is such that the first request is selected as the selected request based on the number of credits associated with the second interface being zero and the second request is selected as the selected request based on the number of credits associated with the second interface being greater than zero.

### Claim 3 (depends on 1)

The device of claim 1, wherein:
the selected request is a first selected request;
the first request is associated with a first address;
the second request is associated with a second address that immediately follows the first address in a stream; and
the second interface is configured to, when the first interface selects the second request as the first selected request:
select the first request as a second selected request; and
access the memory based on the second selected request concurrent with the access of the memory based on the first selected request.

### Claim 4 (depends on 1)

The device of claim 1, wherein the first interface is configured to:
select the first set of stream circuitry as a preferred set of stream circuitry; and
based on the first set of stream circuitry being the preferred set of stream circuitry:
determine whether the first set of stream circuitry has provided a request; and
based on the first set of stream circuitry having not provided a request, perform the selection of the selected request from among the first request and the second request.

### Claim 5 (depends on 1)

The device of claim 1, wherein:
the first set of stream circuitry is configured to provide a third request to the first interface; and
the first interface is configured to:
select the first set of stream circuitry as a preferred set of stream circuitry;
access the memory based on the third request; and
thereafter, select the second set of stream circuitry as the preferred set of stream circuitry.

### Claim 6 (depends on 1)

The device of claim 1 further comprising a processor core coupled to the first set of stream circuitry and the second set of stream circuitry, wherein the processor core is configured to cause the second set of stream circuitry to provide the first request and the second request based on a stream open instruction.

### Claim 7 (depends on 1)

The device of claim 1 wherein:
the second set of stream circuitry includes an address generator configured to produce a first address associated with the first request and a second address associated with the second request.

### Claim 8 (depends on 1)

The device of claim 1, wherein the memory is a cache memory.

### Claim 9 (depends on 1)

The device of claim 1, wherein the memory is a level-two cache memory.

### Claim 10

A method comprising:
receiving, from a first set of stream circuitry, a first memory request and a second memory request by a first interface and by a second interface;
determining, by the first interface, whether a second set of stream circuitry has provided a memory request; and
based on the second set of stream circuitry having not provided a memory request:
selecting a selected memory request from among the first memory request and the second memory request based on a credit count of the second interface; and
accessing a memory based on the selected memory request using the first interface.

### Claim 11 (depends on 10)

The method of claim 10, wherein:
the second memory request immediately follows the first memory request in a stream; and
the selecting is such that the first memory request is selected as the selected memory request based on the credit count of the second interface being zero and the second memory request is selected as the selected memory request based on the credit count of the second interface being greater than zero.

### Claim 12 (depends on 10)

The method of claim 10, wherein:
the selected memory request is a first selected memory request;
the second memory request immediately follows the first memory request in a stream;
the second memory request is the first selected memory request; and
the method further comprises:
selecting the first memory request as a second selected memory request; and
accessing the memory based on the second selected memory request using the second interface concurrent with the accessing of the memory based on the first selected memory request using the first interface.

### Claim 13 (depends on 10)

The method of claim 10 further comprising:
selecting the second set of stream circuitry as a preferred set of stream circuitry for the first interface, wherein the determining of whether the second set of stream circuitry has provided a memory request and the selecting of the selected memory request from among the first memory request and the second memory request are performed based on the second set of stream circuitry being selected as the preferred set of stream circuitry.

### Claim 14 (depends on 10)

The method of claim 10 further comprising:
selecting the second set of stream circuitry as a preferred set of stream circuitry for the first interface;
receiving, from the second set of stream circuitry, a third memory request by the first interface and the second interface;
accessing the memory based on the third memory request; and
thereafter, selecting the first set of stream circuitry as the preferred set of stream circuitry for the first interface.

### Claim 15 (depends on 10)

The method of claim 10, wherein the memory is a cache memory.

### Claim 16 (depends on 10)

The method of claim 10, wherein the memory is a level-two cache memory.

### Claim 17

A device comprising:
a cache memory;
a first interface coupled to the cache memory;
a second interface coupled to the cache memory;
a first set of stream circuitry coupled to the first interface and the second interface;
a second set of stream circuitry coupled to the first interface and the second interface; and
a processor core coupled to the first set of stream circuitry and the second set of stream circuitry and configured to cause the second set of stream circuitry to provide a first request and a second request to each of the first interface and the second interface based on a stream open instruction, wherein:
the first interface is configured to:
select, based on a number of credits associated with the second interface, a selected request from among the first request and the second request; and
access the cache memory based on the selected request.

### Claim 18 (depends on 17)

The device of claim 17, wherein:
the stream open instruction is associated with a stream;
the second request immediately follows the first request in the stream; and
the selection by the first interface is such that the first request is selected as the selected request based on the number of credits associated with the second interface being zero and the second request is selected as the selected request based on the number of credits associated with the second interface being greater than zero.

### Claim 19 (depends on 17)

The device of claim 17, wherein:
the selected request is a first selected request;
the second request immediately follows the first request in a stream; and
the second interface is configured to, when the first interface selects the second request as the first selected request:
select the first request as a second selected request; and
access the cache memory based on the second selected request concurrent with the access of the cache memory based on the first selected request.

### Claim 20 (depends on 17)

The device of claim 17, wherein the cache memory is a level-two cache memory.
