25.12.2012 Views

VisualDSP++ 4.5 Loader and Utilities Manual - Analog Devices

VisualDSP++ 4.5 Loader and Utilities Manual - Analog Devices

VisualDSP++ 4.5 Loader and Utilities Manual - Analog Devices

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

ADSP-2126x/2136x/2137x Processor Booting<br />

The second 32-bit word of the compressed block header hold the size of<br />

the compression window (takes the upper 16 bits) <strong>and</strong> padded word count<br />

(takes the lower 16 bits). For ADSP-2126x/2136x/2137x processors, the<br />

loader utility always rounds the byte count of the compressed stream to be<br />

a multiple of 4. The loader utility also pads 3 bytes to the compressed<br />

stream if the byte count of the compressed stream from the loader compression<br />

engine is not a multiple of 4. An actual padded byte count is a<br />

value between 0x0000 <strong>and</strong> 0x0003.<br />

The compression window size is 8–15 bits, with the default value of 9 bits.<br />

The compression window size specifies to the compression engine a number<br />

of bytes taken from the window during the compression. The window<br />

size is the 2’s exponential value.<br />

The next 32 bits of the compressed block header holds the value of the<br />

compressed stream byte count, excluding the byte padded.<br />

A window size selection affects, more or less, the outcome of the data<br />

compression. Streams in decompression windows of different sizes are, in<br />

general, different <strong>and</strong> most likely not compatible to each other. If you are<br />

building a custom decompression kernel, ensure the same compression<br />

window size is used for both the loader utility <strong>and</strong> the kernel. In general, a<br />

bigger compression window size leads to a smaller outcome stream. However,<br />

the benefit of a big window size is marginal in some cases. An<br />

outcome of the data compression depends on a number of factors, <strong>and</strong> a<br />

compression window size selection is only one of them. The other important<br />

factor is the coding structure of an input stream. A compression<br />

window size selection can not cause a much smaller outcome stream if the<br />

compression ability of the input stream is low.<br />

5-38 <strong>VisualDSP++</strong> <strong>4.5</strong> <strong>Loader</strong> <strong>and</strong> <strong>Utilities</strong> <strong>Manual</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!