J
John Larkin
Guest
Suppose we read in an FPGA bitstream file as 16-bit words, and want to
output a compressed file, to save room in a small flash chip.
If an input word is 0000, output a single 0 bit to the compressed
file.
If a word is nonzero, output a 1 followed by that 16-bit word.
The decompressor will be very simple.
I wrote a little PowerBasic program to test the compression, the input
being an actual Efinix T20 bit stream file.
https://www.dropbox.com/s/dkgvdsz2wytvgwm/Trion_Compression.jpg?raw=1
output a compressed file, to save room in a small flash chip.
If an input word is 0000, output a single 0 bit to the compressed
file.
If a word is nonzero, output a 1 followed by that 16-bit word.
The decompressor will be very simple.
I wrote a little PowerBasic program to test the compression, the input
being an actual Efinix T20 bit stream file.
https://www.dropbox.com/s/dkgvdsz2wytvgwm/Trion_Compression.jpg?raw=1