Method and apparatus for speculative decompression
Abstract
An apparatus and method for performing parallel decoding of prefix codes such as Huffman codes. For example, one embodiment of an apparatus comprises: a first decompression module to perform a non-speculative decompression of a first portion of a prefix code payload comprising a first plurality of symbols; and a second decompression module to perform speculative decompression of a second portion of the prefix code payload comprising a second plurality of symbols concurrently with the non-speculative decompression performed by the first compression module.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 3 · Forward citations: 0.
Claims (15)
- Claim 1Independent Claim
An deflate compression accelerator comprising: a non-speculative decompression circuit to perform a non-speculative decompression of a non-speculative portion of a deflate prefix code payload comprising a non-speculative plurality of symbols; and a speculative decompression circuit to perform speculative decompression of a speculative portion of the deflate prefix code payload comprising a speculative plurality of symbols concurrently with the non-speculative decompression performed by the non-speculative decompression circuit.
- Claim 2Depends on #1
The apparatus as in claim 1 wherein the prefix code comprises a Huffman code.
- Claim 3Depends on #2
The apparatus as in claim 2 further comprising: a code length (CL) Huffman decode circuit shared by the non-speculative and speculative decompression circuit, the CL Huffman decode module to perform CL decode operations on specified portions of a header of the Huffman code payload.
- Claim 4Depends on #3
The apparatus as in claim 3 further comprising: a code length (CL) content addressable memory (CLCAM) to store results generated by the CL Huffman decode circuit.
- Claim 5Depends on #4
The apparatus as in claim 4 further comprising: a literal/length (LL) Huffman decode circuit shared by the non-speculative and speculative decompression modules, the CL Huffman decode circuit to perform LL decode operations on specified portions of the header of the Huffman code payload.
- Claim 6Depends on #5
The apparatus as in claim 5 further comprising: a literal/length (LL) content addressable memory (LLCAM) to store results generated by the LL Huffman decode circuit.
- Claim 7Depends on #6
The apparatus as in claim 6 further comprising: a distance Huffman decode module shared by the non-speculative and speculative decompression circuit, the distance Huffman decode circuit to perform distance decode operations on specified portions of the header of the Huffman code payload.
- Claim 8Depends on #7
The apparatus as in claim 7 further comprising: a distance (D) content addressable memory (DCAM) to store results generated by the distance Huffman decode circuit.
- Claim 9Depends on #1
The apparatus as in claim 1 wherein the speculative decompression circuit begins decompression at a random starting point within the prefix code payload and wherein the non-speculative decompression module begins decompression at the beginning of the prefix code payload.
- Claim 10Depends on #9
The apparatus as in claim 9 wherein the speculative decompression circuit initially generates a number of incorrect speculative symbols during decompression and subsequently converges to a genuine starting index, following which it starts generating correct symbols.
- Claim 11Depends on #10
The apparatus as in claim 10 wherein the speculative decompression circuit discards the initially generated incorrect speculative symbols.
- Claim 12Depends on #11
The apparatus as in claim 11 further comprising: an index matching circuit to compare a bit-index and code-type of a non-speculative speculative symbol with that of a non-speculative symbol and, in response to detecting a match, the index matching circuit to cause the speculative symbols to be combined with the non-speculative symbols in a final decompressed stream.
- Claim 13Depends on #12
The apparatus as in claim 12 wherein, in response to detecting a mis-match, the index matching circuit is configured to flush the speculative symbols.
- Claim 14Depends on #13
The apparatus as in claim 13 wherein, in response to a mis-match, the non-speculative decompression circuit continues to generate non-speculative symbols and the speculative decompression circuit restarts at a another random location within the prefix code payload ahead of the non-speculative decompression module.
- Claim 15Depends on #12
The apparatus as in claim 12 wherein following the combination of the speculative symbols with the no
Technical Overview & Description
CROSS-REFERENCE TO RELATED APPLICATIONS The present patent application is a continuation application claiming priority from U.S. patent application Ser. No. 14/698,486, filed Apr. 28, 2015, and titled: “Method and Apparatus for Speculative Decompression”, which is incorporated herein by reference in its entirety. This invention was made with Government support under contract number H98230-11-3-0011 awarded by the Department of Defense. The Government has certain rights in this invention. BACKGROUND Field of the Invention This invention relates generally to the field of computer processors. More particularly, the invention relates to a method and apparatus for speculative decompression. Description of the Related Art An instruction set, or instruction set architecture (ISA), is the part of the computer architecture related to programming, including the native data types, instructions, register architecture, addressing modes, memory architecture, interrupt and exception handling, and external input and output (I/O). It should be noted that the term “instruction” generally refers herein to macro-instructions—that is instructions that are provided to the processor for execution—as opposed to micro-instructions or micro-ops—that is the result of a processor's decoder decoding macro-instructions. The micro-instructions or micro-ops can be configured to instruct an execution unit on the processor to perform operations to implement the logic associated with the macro-instruction. The ISA is distinguished from the microarchitecture, which is the set of processor design techniques used to implement the instruction set. Processors with different microarchitectures can share a common instruction set. For example, Intel® Pentium 4 processors, Intel® Core™ processors, and processors from Advanced Micro Devices, Inc. of Sunnyvale Calif. implement nearly identical versions of the x86 instruction set (with some
Cited By — Indexed Forward Citations (0 of 0 total)
No indexed citing patents in this generation yet. Ingest USPTO/PatentsView bulk citation tables via patents-ingest to expand the local forward citation graph.
References Cited — Backward Prior Art (3)
| Patent | Title | Year | Citations |
|---|
Non-Patent Literature (3)
- Jang et al., "Practical Speculative Parallelization of Variable Length Decompression Algorithms," pp. 55-64, Jun. 2013.
- Non-Final Office Action from U.S. Appl. No. 14/698,486, dated Apr. 4, 2016, 5 pages.
- Notice of Allowance from U.S. Appl. No. 14/698,486, dated Aug. 12, 2016, 6 pages.