# US 2019/0196817 A1 · Mechanism to Queue Multiple Streams to Run on Streaming Engine

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

- Number: US 2019/0196817 A1
- Document ID: US20190196817A1
- Status: Published application
- Kind: A1
- Application number: 16/290,872
- Filed: 2019-03-02
- Published: 2019-06-27
- Earliest claimed: 2013-07-15
- Assignees: Texas Instruments Incorporated
- Applicants: Texas Instruments Incorporated
- Inventors: Timothy David Anderson; Jonathan (Son) Hung Tran; Joseph Raymond Michael Zbiciak
- Web page: https://patentgrep.com/patent/US20190196817A1

## CPC

- G06F 9/3016: {Decoding the operand specifier, e.g. specifier format}
- 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/3004: {to perform operations on memory}
- 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/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/3842: {Speculative instruction execution}
- G06F 9/3861: {Recovery, e.g. branch miss-prediction, exception handling (error detection or correction G06F11/00)}
- G06F 9/3867: {using instruction pipelines}
- G06F 9/3877: {using a secondary processor, e.g. coprocessor (peripheral processor G06F13/12)}
- 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 11/1048: {using arrangements adapted for a specific error detection or correction feature}
- 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 9/3822: {Parallel decoding, e.g. parallel decode units}
- 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 steaming engine in a system receives a first set of stream parameters into a queue to define a first stream along with an indication of either a queue mode of operation or a speculative mode of operation for the first stream. Acquisition of the first stream then begins. At some point, a second set of stream parameters is received into the queue to define a second stream. When the queue mode of operation was specified for the first stream, the second set of parameters is queued and acquisition of the second stream is delayed until completion of acquisition of the first stream. When the speculative mode of operation was specified for the first stream, acquisition of the first stream is canceled upon receipt of the second set of stream parameters and acquisition of the second stream begins immediately.

## Claims

### Claim 1

A method of operating a steaming engine in a system, the method comprising:
receiving a first set of stream parameters into a queue to define a first stream;
receiving a mode indication of either a queue mode of operation or a speculative mode of operation for the first stream;
starting acquisition of the first stream;
receiving a second set of stream parameters into the queue to define a second stream;
queuing the second set of stream parameters and starting acquisition of the second stream in response to completion of acquisition of the first stream when the queue mode of operation was specified for the first stream; and
canceling acquisition of the first stream and immediately starting acquisition of the second stream when the speculative mode of operation was specified for the first stream.

### Claim 2 (depends on 1)

The method of claim 1, wherein the mode indication is a bit contained within the stream parameters.

### Claim 3 (depends on 1)

The method of claim 1, wherein the mode indication is received via a control signal.

### Claim 4 (depends on 1)

The method of claim 1, further comprising sending an end of stream flag upon completion of the first stream when the queue mode of operation was specified for the first stream.

### Claim 5 (depends on 1)

The method of claim 1, further comprising queuing at least eight sets of stream parameters.

### Claim 6 (depends on 1)

The method of claim 1, wherein acquisition of the first stream comprises:
generating a sequence of address in a manner defined by the first set of stream parameters; and
accessing a stream of data elements from system memory in response to the sequence of addresses.

### Claim 7 (depends on 1)

The method of claim 1, further comprising providing an indication to a processor in the system for each data vector.

### Claim 8

A method of operating a system with a streaming engine, the method comprising:
executing a program including stream open instructions by a processor in the system;
executing a first stream open instruction by the processor by sending a first set of stream parameters to the streaming engine and providing a first mode of operation indicator for the first stream;
starting acquisition of the first stream by the streaming engine;
executing a second stream open instruction by the processor by sending a second set of stream parameters to the streaming engine and providing a second mode of operation indicator for the second stream;
queuing the second set of stream parameters and starting acquisition of the second stream by the streaming engine in response to completion of acquisition of the first stream when a queue mode of operation was indicated for the first stream; and
canceling acquisition of the first stream and immediately starting acquisition of the second stream by the streaming engine when a speculative mode of operation was indicated for the first stream.

### Claim 9 (depends on 8)

The method of claim 8, wherein the mode of operation indicator is a bit contained within the stream parameters.

### Claim 10 (depends on 8)

The method of claim 8, wherein the mode of operation indicator is determined by decoding an opcode of each stream open instruction.

### Claim 11 (depends on 8)

The method of claim 8, further comprising receiving an end of stream flag from the streaming engine upon completion of the first stream.

### Claim 12 (depends on 8)

The method of claim 8, further comprising consuming data vectors produced by the streaming engine by the processor

### Claim 13

A system comprising:
a streaming engine, wherein the streaming engine comprises:
an address generator coupled to provide a stream of addresses to a memory interface;
an output register coupled to receive data elements from the memory interface responsive to the stream of addresses;
a first-in-first-out (FIFO) buffer operable to queue at least a first set of stream parameters for a first stream and a second set of stream parameters for a second stream, having an output coupled to provide a set of stream parameters to the address generator; and
mode of operation logic controllably coupled to the address generator and to the FIFO, such that the mode logic is operable to cause the second set of stream parameters to be queued in the FIFO until the completion the first stream when a queue mode of operation was specified for the first stream, and operable to cancel the first stream and immediately start the second stream when a speculative mode of operation was specified for the first stream.

### Claim 14 (depends on 13)

The system of claim 13, wherein the mode of operation logic is coupled to receive a mode bit from the first set of stream parameters in the FIFO buffer.

### Claim 15 (depends on 13)

The system of claim 13, wherein the mode of operation logic is coupled to receive a mode control signal responsive to an instruction decoder.

### Claim 16 (depends on 13)

The system of claim 13, further comprising end of stream logic coupled to the output register.

### Claim 17 (depends on 13)

The system of claim 13, further comprising a processing unit core coupled to the streaming engine.

### Claim 18 (depends on 17)

The system of claim 17, further comprising system memory coupled to the memory interface.

### Claim 19 (depends on 17)

The system of claim 17 being a single system-on-chip integrated circuit.
