# US 2026/0203065 A1 · Embedded compression module capable of operating in compression and decompression modes for direct memory access

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

- Number: US 2026/0203065 A1
- Document ID: US20260203065A1
- Status: Published application
- Kind: A1
- Application number: 19/466,277
- Filed: 2026-01-30
- Published: 2026-07-16
- Earliest claimed: 2023-01-03
- Assignees: Meta Platforms Technologies, LLC
- Applicants: Meta Platforms Technologies, LLC
- Inventors: Tomonari Tohara; Vignesh Vivekraja; Alagappan Valliappan; Andrey Bushev; Javid Jaffari
- Web page: https://patentgrep.com/patent/US20260203065A1

## CPC

- G06F 9/30178: {of compressed or encrypted instructions}
- 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/30134: {Register stacks; shift registers}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

An augmented- or virtual-reality device includes a processor and a direct memory access (DMA) module. The DMA module is communicatively coupled to the processor, and it includes an embedded compression module. The embedded compression module is configured to receive parameters from the processor, where the parameters comprise a mode parameter indicating a compression mode or a decompression mode. The embedded compression module is also configured to, responsive to receiving the parameters, autonomously and without involvement of software instructions: (i) read input data from one or more memory banks, (ii) produce output data via compression or decompression (incl. removing or inserting zero data elements based on the mode), and (iii) write the output data to the one or more memory banks.

## Claims

### Claim 1

An augmented- or virtual-reality device comprising:
a processor; and
a direct memory access (DMA) module communicatively coupled to the processor and comprising an embedded compression module configured to (i) receive parameters from the processor, wherein the parameters comprise a mode parameter indicating a compression mode or a decompression mode and (ii) responsive to receiving the parameters, autonomously and without involvement of software instructions:
read input data from one or more memory banks;
produce output data via compression or decompression, including (i) responsive to the mode parameter indicating the compression mode, removing zero data elements from the input data to produce the output data, or (ii) responsive to the mode parameter indicating the decompression mode, inserting zero data elements into the input data to produce the output data according to a bit mask from the one or more memory banks; and
write the output data to the one or more memory banks.

### Claim 2 (depends on 1)

The augmented- or virtual-reality device of claim 1, wherein the mode parameter indicates the compression mode, the input data is uncompressed input data, and the output data is compressed output data.

### Claim 3 (depends on 2)

The augmented- or virtual-reality device of claim 2, further comprising a counter register configured to:
count a number of non-zero data elements in the uncompressed input data; and
hold a counter value that increments upon identification of each non-zero data element in the uncompressed input data.

### Claim 4 (depends on 2)

The augmented- or virtual-reality device of claim 2, wherein:
the compression module is further configured to generate zero removed data; and
the augmented- or virtual-reality device further comprises a shift register configured to:
receive the zero removed data from the compression module;
combine at least a portion of the zero removed data with one or more portions of previous zero removed data into output compressed data with a pre-determined byte length corresponding to an output bandwidth of the processor.

### Claim 5 (depends on 4)

The augmented- or virtual-reality device of claim 4, wherein:
the one or more portions of the previous zero removed data is loaded from a buffer to the shift register; and
the shift register is further configured to write a remaining portion of the zero removed data back into the buffer.

### Claim 6 (depends on 1)

The augmented- or virtual-reality device of claim 1, wherein the mode parameter indicates the decompression mode, the input data is compressed input data, and the output data is decompressed output data.

### Claim 7 (depends on 6)

The augmented- or virtual-reality device of claim 6, wherein the bit mask comprises an array of flag elements, and each flag element of the bit mask data indicates a non-zero data element or a zero data element in decompressed output data.

### Claim 8 (depends on 6)

The augmented- or virtual-reality device of claim 6, wherein:
the augmented- or virtual-reality device further comprises a counter register configured to count a number of data elements in the decompressed output data; and
the counter register is configured to hold a counter value that increments upon generation of each data element in the decompressed output data.

### Claim 9 (depends on 6)

The augmented- or virtual-reality device of claim 6, wherein:
the augmented- or virtual-reality device further comprises a first buffer and a second buffer;
the compression module is further configured to:
generate zero inserted data;
output the decompressed output data through a data output interface, wherein the uncompressed output data has a byte length corresponding to a bandwidth limit of the data output interface;
write a remaining portion of the zero inserted data into the first buffer in response to a determination that the remaining portion of the zero inserted data is within a size limit of the first buffer; and
write a remaining portion of the zero inserted data into the first buffer and the second buffer in response to a determination that the remaining portion of the zero inserted data is beyond a size limit of the first buffer.

### Claim 10 (depends on 1)

The augmented- or virtual-reality device of claim 1, wherein:
the input data is a portion of a continuous input data stream; and
the input data has a byte length corresponding to a bandwidth limit of an input data interface of the compression module.

### Claim 11

A computer implemented method comprising:
receiving, by a compression module embedded within a direct memory access (DMA) module, parameters from a processor of an augmented- or virtual-reality device, wherein the parameters comprise a mode parameter indicating a compression mode or a decompression mode, and the processor is communicatively coupled to the DMA module; and
responsive to receiving the parameters, autonomously and without involvement of software instructions:
reading, by the compression module, input data from one or more memory banks;
producing, by the compression module, output data via compression or decompression, including (i) responsive to the mode parameter indicating the compression mode, removing zero data elements from the input data to produce the output data, or (ii) responsive to the mode parameter indicating the decompression mode, inserting zero data elements into the input data to produce the output data according to a bit mask from the one or more memory banks; and
writing, by the compression module, the output data to the one or more memory banks.

### Claim 12 (depends on 11)

The computer implemented method of claim 11, wherein the mode parameter indicates the compression mode, the input data is uncompressed input data, and the output data is compressed output data.

### Claim 13 (depends on 12)

The computer implemented method of claim 12, wherein:
the augmented- or virtual-reality device further comprises a counter register configured to count a number of non-zero data elements in the uncompressed input data; and
the counter register is configured to hold a counter value that increments upon identification of each non-zero data element in the uncompressed input data.

### Claim 14 (depends on 12)

The computer implemented method of claim 12, further comprising:
generating, by the compression module, zero removed data;
wherein the augmented- or virtual-reality device further comprises a shift register configured to (i) receive the zero removed data from the compression module and (ii) combine at least a portion of the zero removed data with one or more portions of previous zero removed data into output compressed data with a pre-determined byte length corresponding to an output bandwidth of the processor.

### Claim 15 (depends on 14)

The computer implemented method of claim 14, wherein:
the one or more portions of the previous zero removed data is loaded from a buffer to the shift register; and
the shift register is further configured to write a remaining portion of the zero removed data back into the buffer.

### Claim 16 (depends on 11)

The computer implemented method of claim 11, wherein the mode parameter indicates the decompression mode, the input data is compressed input data, and the output data is decompressed output data.

### Claim 17 (depends on 16)

The computer implemented method of claim 16, wherein the bit mask comprises an array of flag elements, and each flag element of the bit mask data indicates a non-zero data element or a zero data element in decompressed output data.

### Claim 18 (depends on 16)

The computer implemented method of claim 16, wherein:
the augmented- or virtual-reality device further comprises a counter register configured to count a number of data elements in the decompressed output data; and
the counter register is configured to hold a counter value that increments upon generation of each data element in the decompressed output data.

### Claim 19 (depends on 16)

The computer implemented method of claim 16, wherein:
the augmented- or virtual-reality device further comprises a first buffer and a second buffer;
the computer-implemented method further comprises:
generating, by the compression module, zero inserted data;
outputting, by the compression module, the decompressed output data through a data output interface, wherein the uncompressed output data has a byte length corresponding to a bandwidth limit of the data output interface;
writing, by the compression module, a remaining portion of the zero inserted data into the first buffer in response to a determination that the remaining portion of the zero inserted data is within a size limit of the first buffer; and
writing, by the compression module, a remaining portion of the zero inserted data into the first buffer and the second buffer in response to a determination that the remaining portion of the zero inserted data is beyond a size limit of the first buffer.

### Claim 20

A direct memory access (DMA) module comprising:
an embedded compression module configured to (i) receive parameters from a processor coupled to the DMA module, wherein the parameters comprise a mode parameter indicating a compression mode or a decompression mode and (ii) responsive to receiving the parameters, autonomously and without involvement of software instructions:
read input data from one or more memory banks;
produce output data via compression or decompression, including (i) responsive to the mode parameter indicating the compression mode, remove zero data elements from the input data to produce the output data, or (ii) responsive to the mode parameter indicating the decompression mode, insert zero data elements into the input data to produce the output data according to a bit mask from the one or more memory banks; and
write the output data to the one or more memory banks.
