# US 2016/0253096 A1 · Methods and apparatus for two-dimensional block bit-stream compression and decompression

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

- Number: US 2016/0253096 A1
- Document ID: US20160253096A1
- Status: Published application
- Kind: A1
- Application number: 14/634,757
- Filed: 2015-02-28
- Published: 2016-09-01
- Earliest claimed: 2015-02-28
- Assignees: Altera Corporation
- Applicants: Altera Corporation
- Inventors: Alfredo de la Cruz
- Web page: https://patentgrep.com/patent/US20160253096A1

## CPC

- G06F 3/064: {Management of blocks}
- G06F 3/0608: {Saving storage space on storage systems}
- G06F 3/0673: {Single storage device}
- G06F 30/34: for reconfigurable circuits, e.g. field programmable gate arrays [FPGA] or programmable logic devices [PLD]
- H03K 19/17758: for speeding up configuration or reconfiguration
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- H03K: PULSE TECHNIQUE (measuring pulse characteristics G01R; modulating sinusoidal oscillations with pulses H03C; transmission of digital information H04L; discriminator circuits detecting phase difference between two signals by counting or integrating cycles of oscillation H03D3/04; automatic control, starting, synchronisation or stabilisation of generators of electronic oscillations or pulses where the type of generator is irrelevant or unspecified H03L; coding, decoding or code conversion, in general H03M)

## Abstract

One embodiment relates to a method for compressing a data-stream of configuration data for electronically configuring an electronically-programmable semiconductor device having a two-dimensional (2D) block structure for an array of core resources. Inter-block and intra-block transformations may be applied to the data-stream to obtain a 2D-transformed data-stream which can be shorter and/or more compressible than the original data. Subsequently, one-dimensional (1D) compression that considers the configuration data as a sequence of bits (and does not consider the 2D block structure) may be applied to obtain a final compressed data sequence that is streamed to the electronically-programmable semiconductor device. Another embodiment relates to a method of decompressing the compressed data-stream of configuration data that is received by the semiconductor device. Other embodiments, aspects, and features are also disclosed.

## Claims

### Claim 1

A method for compressing a data-stream of configuration data for electronically configuring an electronically-programmable semiconductor device, the method being performed by a transformation and compression module and comprising:
determining a two-dimensional block structure for an array of core resources of the electronically-programmable semiconductor device, wherein the two-dimensional block structure includes a plurality of block types, and wherein blocks belonging to a same block type have a same width and a same length in bits, and wherein each block has a block fingerprint corresponding to content of the block;
determining a plurality of most-commonly-used block fingerprints for each block type of the plurality of block types; and
creating a block fingerprint library that includes the plurality of most-commonly-used block fingerprints for each block type.

### Claim 2 (depends on 1)

The method of claim 1, further comprising:
removing from the data-stream blocks which are expressed by any one of the plurality of most-commonly-used block fingerprints for the plurality of block types; and
inserting the block fingerprint library into the data-stream at a position before the removed blocks.

### Claim 3 (depends on 2)

The method of claim 2, further comprising:
creating a block bit map that associates a plurality of bits with each block of the two-dimensional block structure, wherein the plurality of bits indicates which of the plurality of most-commonly-used block fingerprints, if any, is associated with said block; and
inserting a block descriptor and the block bit map into the data-stream at a position before the removed blocks.

### Claim 4 (depends on 3)

The method of claim 3, further comprising:
applying an intra-block transform to blocks remaining in the data-stream using a prediction function.

### Claim 5 (depends on 4)

The method of claim 4, wherein the prediction function depends on a plurality of pattern distances corresponding to the plurality of block types.

### Claim 6 (depends on 4)

The method of claim 4, further comprising:
applying a one-dimensional compression to the data-stream after application of the intra-block transform, wherein the one-dimensional compression does not require information of the two-dimensional block structure.

### Claim 7

A method for decompressing a data-stream to regenerate an original data-stream of configuration data for electronically configuring an electronically-programmable semiconductor device which includes a two-dimensional block structure for an array of core resources of the electronically-programmable semiconductor device, wherein the two dimensional block structure includes a plurality of block types, and wherein blocks belonging to a same block type have a same width and a same length in bits, the method being performed by a decompression and reverse transformation module in the electronically-programmable semiconductor device and comprising:
receiving the data-stream from a configuration stream supply device;
extracting a block fingerprint library and a block bit map from the data-stream; and
inserting copies of blocks from the block fingerprint library as identified by the block bit map into the data-stream at positions indicated by the block bit map.

### Claim 8 (depends on 7)

The method of claim 7, wherein the block fingerprint library includes a plurality of most-commonly-used block fingerprints for each of the plurality of block types.

### Claim 9 (depends on 8)

The method of claim 8, wherein the block bit map associates a plurality of bits with each block of the two-dimensional block structure, wherein the plurality of bits indicates which of the plurality of most-commonly-used block fingerprints, if any, is associated with said block.

### Claim 10 (depends on 7)

The method of claim 7, further comprising:
reversing intra-block transformation of remaining blocks in the data stream that are not in the block fingerprint library using an inverse prediction function.

### Claim 11 (depends on 10)

The method of claim 10, wherein the inverse prediction function depends on a plurality of pattern distances corresponding to the plurality of block types.

### Claim 12 (depends on 10)

The method of claim 10, further comprising:
applying one-dimensional decompression to the remaining blocks, wherein the one-dimensional decompression does not require information of the two-dimensional block structure.

### Claim 13

A system for compressing a data-stream of configuration data for electronically configuring an electronically-programmable semiconductor device, the system comprising:
a transformation and compression module that generates a transformed and compressed data-stream by performing steps including:
determining a two-dimensional block structure for a two-dimensional array of core resources of the semiconductor device, wherein the two-dimensional block structure includes a plurality of block types, and wherein blocks belonging to a same block type have a same width and a same length in bits, and wherein each block has a block fingerprint corresponding to content of the block;
determining a plurality of most-commonly-used block fingerprints for each block type; and
creating a block fingerprint library that includes the plurality of most-commonly-used block fingerprints for each block type;
a configuration stream supply device that transmits the transformed and compressed data-stream to the electronically-programmable semiconductor device.

### Claim 14 (depends on 13)

The system of claim 13, wherein the steps performed by the transformation and compression module further include:
removing from the data-stream blocks which are expressed by any one of the plurality of most-commonly-used block fingerprints for the plurality of block types; and
inserting the block fingerprint library into the data-stream at a position before the removed blocks.

### Claim 15 (depends on 14)

The system of claim 14, wherein the steps performed by the transformation and compression module further include:
creating a block bit map that associates a plurality of bits with each block of the two-dimensional block structure, wherein the plurality of bits indicates which of the plurality of most-commonly-used block fingerprints, if any, is associated with said block; and
inserting a block descriptor and the block bit map into the data-stream at a position before the removed blocks.

### Claim 16 (depends on 15)

The system of claim 15, wherein the steps performed by the transformation and compression module further include:
applying an intra-block transform to blocks remaining in the data-stream using a prediction function.

### Claim 17 (depends on 16)

The system of claim 16, wherein the prediction function depends on a plurality of pattern distances corresponding to the plurality of block types.

### Claim 18 (depends on 16)

The system of claim 16, wherein the steps performed by the transformation and compression module further include:
applying a one-dimensional compression to the data-stream after application of the intra-block transform, wherein the one-dimensional compression does not require information of the two-dimensional block structure.

### Claim 19

A semiconductor device comprising:
an array of core resources having a two-dimensional block structure;
a decompression and reverse transformation module that regenerates an original data-stream of configuration data by performing steps including:
receiving a data-stream from a configuration stream supply device;
performing a one-dimensional decompression on a portion of the data-stream, wherein the one-dimensional decompression does not require information of the two-dimensional block structure; and
performing a reverse intra-block transformation on said portion of the data-stream.

### Claim 20 (depends on 19)

The semiconductor device of claim 19, wherein the steps performed by the decompression and reverse transformation module further include: performing a reverse inter-block transformation by extracting a block fingerprint library and a block bit map from the data-stream, and inserting copies of blocks from the block fingerprint library as identified by the block bit map into the data-stream at positions indicated by the block bit map.

### Claim 21 (depends on 20)

The semiconductor device of claim 20, wherein the reverse intra-block transformation and the reverse inter-block transformation are performed in parallel.
