Merge pull request #619 from rkebelj/master

xilinx: Fixed infinite loop in bit files smaller than 100
This commit is contained in:
Gwenhael Goavec-Merou 2026-01-29 12:14:33 +01:00 committed by GitHub
commit e34669417b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 0 deletions

View File

@ -843,6 +843,9 @@ void Xilinx::program_mem(ConfigBitstreamParser *bitfile)
Jtag::tapState_t tx_end;
int burst_len = byte_length / 100;
if (burst_len == 0)
burst_len = byte_length;
ProgressBar progress("Load SRAM", byte_length, 50, _quiet);
for (int i=0; i < byte_length; i+=burst_len) {