Maciej Dudek
e8d8ecc363
Fix snprintf usage
...
Some code used snprintf on std::string objects.
This caused unexpected behaviour where '\0' was printed to the output file.
This commit adds intermediate char* buffer which is later used to
initialize std::string. This string is later resized to the correct
expected length.
Signed-off-by: Maciej Dudek <mdudek@antmicro.com>
2025-01-24 11:48:37 +01:00
Giovanni Bruni
0f9422f09a
latticeBitParser: add support for loading Lattice (Nexus) encrypted bitstreams,
...
by adding key and preamble of encrypted bitstreams to if statements.
2024-02-13 09:22:34 +01:00
Gwenhael Goavec-Merou
807d794703
latticeBitParser: add ECP3 VERIFY ID support (avoid to fail with bitstream)
2023-12-08 07:07:35 +01:00
Gwenhael Goavec-Merou
c35f21a5be
latticeBitParser: add SPI_MODE missing instruction (issue #324 )
2023-03-04 08:02:24 +01:00
Gwenhael Goavec-Merou
2d885ce064
src/latticeBitParser: support machxo2 (check compress & fill vector<string>)
2022-11-26 12:06:24 +01:00
Gwenhael Goavec-Merou
c9fb3f4065
latticeBitParser: fix end header position with MACHOX3D .bit file
2022-05-14 19:00:21 +02:00
Gwenhael Goavec-Merou
386f89ea3a
latticeBitParser: when .bit is encrypted use Part: from header to retrieve idcode
2022-03-27 07:51:18 +02:00
Gwenhael Goavec-Merou
9f4ed8aaf6
latticeBitParser: fix loop type
2021-11-20 18:36:09 +01:00
Gwenhael Goavec-Merou
ab43af7f0e
latticeBitParser: extract FPGA idcode from configuration data
2021-11-20 17:01:13 +01:00
Gwenhael Goavec-Merou
8f95303daf
move to APACHE-2.0 license
2021-06-26 15:24:07 +02:00
Gwenhael Goavec-Merou
16932786db
all parser:
...
- _raw_data is now filled in configBitstreamParser
- source may be a file or a pipe
- displayHeader become a common method (configBitstreamParser)
- improve/rewrite some parser (efinixHexparser 1s -> 11ms)
2021-02-24 06:36:48 +01:00
Gwenhael Goavec-Merou
871e28259e
latticeBitParser: support lattice radiant bit file
2020-09-26 07:58:03 +02:00
Ed Bordin
d24c63ec8a
trabucayre/openFPGALoader#38 minor adjustments for MinGW build - use memset instead of bzero, errno_t may be replaced by int, provide ad-hoc ntohs on windows (alternative is link against winsock)
2020-07-25 12:55:41 +10:00
Gwenhael Goavec-Merou
d4957589c0
latticeBitParser.cpp: parseHeader: force comparison in unsigned char
2020-01-31 22:13:15 +01:00
Fabien Marteau
a86eff6b57
Update cmake according to trabucayre request https://github.com/trabucayre/openFPGALoader/pull/17
2020-01-27 09:47:42 +01:00