src/fsparser: rewrite to use header instead of comments, add support for compressed bitstream

This commit is contained in:
Gwenhael Goavec-Merou
2021-02-12 07:34:14 +01:00
parent 210bdac09a
commit 590553e432
3 changed files with 168 additions and 94 deletions
+2
View File
@@ -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");
}