This example performs HWA based compression-decompression operation on real input data.
The input to the compression is a sinusoidal real data. This is compressed to the compression ratio programmed (i.e., 50% in this example) over the input data size and stored in APP RAM, to highlight the memory saved to the user. Subsequently, HWA also performs a decompression on this compressed data and the same matches with the input sine data. The HWA PaRAM sets are initialized with proper configuration for compression and decompression. The HWA is triggered to perform the above operations and the compressed, decompressed outputs are copied to APP RAM for user's evaluation.
Parameter | Value |
---|---|
CPU + OS | m4fss0-0 nortos |
Toolchain | ti-arm-clang |
Board | xWRL6432-evm |
Example folder | examples/drivers/hwa/hwa_compression |
Shown below is a sample output when the application is run,