# US 2025/0362913 A1 · Exposing valid byte lanes as vector predicates to cpu

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

- Number: US 2025/0362913 A1
- Document ID: US20250362913A1
- Status: Published application
- Kind: A1
- Application number: 19/290,951
- Filed: 2025-08-05
- Published: 2025-11-27
- Earliest claimed: 2017-06-28
- Assignees: Texas Instruments Incorporated
- Applicants: Texas Instruments Incorporated
- Inventors: Joseph Zbiciak; Son H. Tran
- Web page: https://patentgrep.com/patent/US20250362913A1

## CPC

- G06F 9/30038: {using a mask}
- G06F 9/383: {Operand prefetching (cache prefetching G06F12/0862)}
- G06F 9/30036: {Instructions to perform operations on packed data, e.g. vector, tile or matrix operations}
- G06F 9/3004: {to perform operations on memory}
- G06F 9/30047: {Prefetch instructions; cache control instructions}
- G06F 9/30072: {to perform conditional operations, e.g. using predicates or guards}
- G06F 9/30076: {to perform miscellaneous control operations, e.g. NOP}
- G06F 9/3013: {according to data content, e.g. floating-point registers, address registers}
- G06F 9/3016: {Decoding the operand specifier, e.g. specifier format}
- G06F 9/345: of multiple operands or results {(addressing multiple banks G06F12/06)}
- G06F 9/3851: {from multiple instruction streams, e.g. multistreaming}
- G06F 9/3891: {organised in groups of units sharing resources, e.g. clusters}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A streaming engine employed in a digital data processor specifies a fixed read only data stream. Once fetched data elements in the data stream are disposed in lanes in a stream head register in the fixed order. Some lanes may be invalid, for example when the number of remaining data elements are less than the number of lanes in the stream head register. The streaming engine automatically produces a valid data word stored in a stream valid register indicating lanes holding valid data. The data in the stream valid register may be automatically stored in a predicate register or otherwise made available. This data can be used to control vector SIMD operations or may be combined with other predicate register data.

## Claims

### Claim 1

A device comprising:
a functional unit;
a memory controller coupled to the functional unit by a data path having a data path size, wherein the memory controller comprises:
a first register having a size defined by a first plurality of bits equal to the data path size; and
a second register having a size defined by a second plurality of bits, each bit of the second plurality of bits corresponding to a respective subset of the first plurality of bits;
wherein the memory controller is configured to:
cause a first vector of a data stream to be stored into the first register, the first vector having one or more data elements;
responsive to a size of the first vector being less than the size of the first register, storing a fixed value in locations of the first register in which the first vector is not stored; and
storing in each bit of the second register, a first state responsive to the corresponding respective subset of the first plurality of bits containing a data element of the vector stream and a second state responsive to the corresponding respective subset of the first plurality of bits containing the fixed value.

### Claim 2 (depends on 1)

The device of claim 1, wherein the functional unit is configured to perform an operation on the first vector using data stored in the second register.

### Claim 3 (depends on 1)

The device of claim 1, wherein storing the fixed value in locations of the first register in which the first vector is not stored is responsive to the control parameter indicating a first value.

### Claim 4 (depends on 3)

The device of claim 3, wherein the memory controller is further configured to, responsive to a size of the first vector being less than the size of the first register and responsive to the control parameter indicating a second value, selectively filling the first register by duplicating the one or more data elements of the first vector to fill the first register.

### Claim 5 (depends on 1)

The device of claim 1, comprising a predicate register, and wherein:
the memory controller is configured to provide contents of the second register to the predicate register; and
the functional unit is configured to perform an operation on the first vector using the predicate register.

### Claim 6 (depends on 1)

The device of claim 1, wherein the operation is one of a bit count operation, a negate operation, a right most bit detect operation, a decimate operation, an expand operation, an AND operation, a NAND operation, an OR operation, a NOR operation, or an XOR operation.

### Claim 7 (depends on 1)

The device of claim 1, wherein storing the first vector into the first register is performed starting with the least significant bit of the first register.

### Claim 8 (depends on 1)

The device of claim 1, wherein each respective subset of the first plurality of bits is equal in size, and data path size is a multiple of the total number of respective subsets of the first plurality of bits.

### Claim 9 (depends on 1)

The device of claim 1, wherein:
the data path size is 512 bits (64 bytes); and
each respective subset of the first plurality of bits is 64 bits (8 bytes).

### Claim 10 (depends on 1)

The device of claim 1, wherein:
the control parameter is a first control parameter; and
a number of data elements of the first vector is specified by a second control parameter indicating a vector size.

### Claim 11 (depends on 1)

The device of claim 1, comprising a memory system having a first level (L1) cache and a second level (L2) cache, and wherein first vector is provided to the functional unit via the data path coupling the functional unit to the memory controller, and the data path does not include the L1 cache.

### Claim 12

A method comprising:
receiving a first vector of a data stream, the first vector having one or more data elements;
responsive to a size of the first vector being less than a size of a first register, storing the first vector into least significant bits of the first register and storing a fixed value in remaining locations of the first register not containing the first vector in response to a control parameter; and
in a second register having a plurality of bits each corresponding to a respective subset of bits of the first register, for each bit of the second register, storing a first state responsive to the corresponding respective subset of bits of the first register contain a data element of the first vector and storing a second state responsive to the corresponding respective subset of bits of the first register containing the fixed value.

### Claim 13 (depends on 12)

The method of claim 12, comprising performing an operation on the first vector using data indicated by the second register.

### Claim 14 (depends on 12)

The method of claim 12, comprising:
storing the data stored in the second register into a third register; and
using a functional unit to perform the operation on the first vector using data from the third register.

### Claim 15 (depends on 14)

The method of claim 14, wherein the third register is a predicate register in a predicate register file.

### Claim 16 (depends on 12)

The method of claim 12, wherein storing the fixed value in remaining locations of the first register in which the first vector is not stored is responsive to the control parameter indicating a first value.

### Claim 17 (depends on 16)

The method of claim 16, wherein responsive to a size of the first vector being less than the size of the first register and responsive to the control parameter indicating a second value, selectively filling the first register by duplicating the one or more data elements of the first vector to fill the remaining locations of the first register.
