add zlib support (currently limited to altera spiOverJtag)

This commit is contained in:
Gwenhael Goavec-Merou
2021-11-25 08:11:50 +01:00
parent 70e9671b3a
commit 7a19f94f19
6 changed files with 131 additions and 8 deletions
+10
View File
@@ -47,6 +47,16 @@ class ConfigBitstreamParser {
static uint8_t reverseByte(uint8_t src);
private:
/**
* \brief decompress bitstream in gzip format
* \param[in] source: raw compressed data
* \param[out] dest: raw uncompressed data
* \return false if openFPGALoader is build without zlib or
* if uncompress fails
*/
bool decompress_bitstream(std::string source, std::string *dest);
protected:
std::string _filename;
int _bit_length;