# US 2026/0147040 A1 · Hardware decoder for run-length encoded mask bits for in-system automatic test pattern generation (atpg)

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

- Number: US 2026/0147040 A1
- Document ID: US20260147040A1
- Status: Published application
- Kind: A1
- Application number: 18/956,462
- Filed: 2024-11-22
- Published: 2026-05-28
- Earliest claimed: 2024-11-22
- Assignees: QUALCOMM Incorporated
- Applicants: QUALCOMM Incorporated
- Inventors: Srinivas PATIL; Rajesh Kumar TIWARI; Nir MAOR
- Web page: https://patentgrep.com/patent/US20260147040A1

## CPC

- G01R 31/318307: {computer-aided, e.g. automatic test program generator [ATPG], program translations, test program debugging}
- G01R 31/318547: {Data generators or compressors}
- G01R 31/318558: {Addressing or selecting of subparts of the device under test}
- G01R 31/318563: {Multiple simultaneous testing of subparts}
- G01R: MEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES (indicating correct tuning of resonant circuits H03J3/12)

## Abstract

A computer implemented decoding method includes decoding a number of run-length encoded mask strings to obtain decoded mask bits for each of a number of scan channels. The method also includes applying the decoded mask bits to automatic test pattern generator (ATPG) scan response data of each scan channel to obtain a multiple input signature register (MISR) signature.

## Claims

### Claim 1

A computer implemented decoding method, comprising:
decoding a plurality of run-length encoded mask strings to obtain decoded mask bits for each scan channel of a plurality of scan channels; and
applying the decoded mask bits to automatic test pattern generator (ATPG) scan response data of each scan channel to obtain a multiple input signature register (MISR) signature.

### Claim 2 (depends on 1)

The method of claim 1, further comprising:
loading the plurality of run-length encoded mask strings in parallel to a plurality of mask registers; and
serially shifting out bits from each of the mask registers, prior to the decoding.

### Claim 3 (depends on 2)

The method of claim 2, in which a size of each mask register is smaller than a length of the plurality of run-length encoded mask strings.

### Claim 4 (depends on 1)

The method of claim 1, in which the decoding further comprises generating an individual valid signal for each of the plurality of scan channels in response to receiving a valid bit from a corresponding run-length encoded mask string.

### Claim 5 (depends on 4)

The method of claim 4, further comprising asserting a composite valid signal for one scan block cycle in response to receiving individual valid signals corresponding to each of the plurality of scan channels, the asserting of the composite valid signal triggering the applying of the decoded mask bits.

### Claim 6 (depends on 4)

The method of claim 4, further comprising asserting a composite valid signal for an entire duration of ones in response to receiving valid signals corresponding to each of the plurality of scan channels, the asserting of the composite valid signal triggering the applying of the decoded mask bits.

### Claim 7 (depends on 1)

The method of claim 1, further comprising:
counting a quantity of bits shifted out from each scan channel; and
repeating the decoding and applying with a new plurality of run-length encoded mask strings in response to the quantity of bits indicating all scan channels are fully loaded.

### Claim 8

A decoding apparatus, comprising:
a plurality of finite state machines, each configured to decode a plurality of run-length encoded mask strings to obtain decoded mask bits for each scan channel of a plurality of scan channels; and
a plurality of logical AND gates configured to apply the decoded mask bits to automatic test pattern generator (ATPG) scan response data of each scan channel to obtain a multiple input signature register (MISR) signature.

### Claim 9 (depends on 8)

The apparatus of claim 8, further comprising a plurality of mask registers configured to receive the plurality of run-length encoded mask strings in parallel, and configured to serially shift out bits from each of the mask registers, for decoding.

### Claim 10 (depends on 9)

The apparatus of claim 9, in which a size of each mask register is smaller than a length of the plurality of run-length encoded mask strings.

### Claim 11 (depends on 8)

The apparatus of claim 8, in which each finite state machine is further configured to generate a valid signal for each of the plurality of scan channels in response to receiving a valid bit from a corresponding run-length encoded mask string.

### Claim 12 (depends on 11)

The apparatus of claim 11, further comprising valid generation logic configured to assert a composite valid signal for one scan block cycle in response to receiving valid signals from each of the finite state machines corresponding to each of the plurality of scan channels, the asserting of the composite valid signal triggering the plurality of logical AND gates to apply the decoded mask bits.

### Claim 13 (depends on 11)

The apparatus of claim 11, further comprising valid generation logic configured to assert a composite valid signal for an entire duration of ones in response to receiving valid signals from each of the finite state machines corresponding to each of the plurality of scan channels, the asserting of the composite valid signal triggering the plurality of logical AND gates to apply the decoded mask bits.

### Claim 14 (depends on 8)

The apparatus of claim 8, further comprising a scan clock counter configured to count a quantity of bits shifted out from each scan channel, and to trigger the plurality of finite state machines to repeat decoding with a new plurality of run-length encoded mask strings in response to the quantity of bits indicating all scan channels are fully loaded.

### Claim 15

An apparatus, comprising:
at least one memory; and
at least one processor coupled to the at least one memory, the at least one processor configured:
to decode a plurality of run-length encoded mask strings to obtain decoded mask bits for each scan channel of a plurality of scan channels; and
to apply the decoded mask bits to automatic test pattern generator (ATPG) scan response data of each scan channel to obtain a multiple input signature register (MISR) signature.

### Claim 16 (depends on 15)

The apparatus of claim 15, in which the at least one processor is further configured:
to load the plurality of run-length encoded mask strings in parallel to a plurality of mask registers; and
to serially shift out bits from each of the mask registers, prior to the decoding.

### Claim 17 (depends on 16)

The apparatus of claim 16, in which a size of each mask register is smaller than a length of the plurality of run-length encoded mask strings.

### Claim 18 (depends on 15)

The apparatus of claim 15, in which the at least one processor is further configured to generate an individual valid signal for each of the plurality of scan channels in response to receiving a valid bit from a corresponding run-length encoded mask string.

### Claim 19 (depends on 18)

The apparatus of claim 18, in which the at least one processor is further configured to assert a composite valid signal for one scan block cycle in response to receiving individual valid signals corresponding to each of the plurality of scan channels, the asserting of the composite valid signal triggering the applying of the decoded mask bits.

### Claim 20 (depends on 18)

The apparatus of claim 18, in which the at least one processor is further configured to assert a composite valid signal for an entire duration of ones in response to receiving valid signals corresponding to each of the plurality of scan channels, the asserting of the composite valid signal triggering the applying of the decoded mask bits.
