mirror of
https://github.com/trabucayre/openFPGALoader.git
synced 2026-08-31 10:16:11 +02:00
src/fsparser: rewrite to use header instead of comments, add support for compressed bitstream
This commit is contained in:
@@ -83,6 +83,8 @@ Gowin::Gowin(Jtag *jtag, const string filename, bool flash_wr, bool sram_wr,
|
||||
_mode = Device::MEM_MODE;
|
||||
_fs = new FsParser(_filename, _mode == Device::MEM_MODE, _verbose);
|
||||
_fs->parse();
|
||||
if (_verbose)
|
||||
_fs->displayHeader();
|
||||
} else {
|
||||
throw std::runtime_error("incompatible file format");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user