Commit Graph

14 Commits

Author SHA1 Message Date
Carlos Venegas Arrabé 19d29f9c84
bit2fasm: close the temporary bits file before bitread writes it
The temporary bits file was created with NamedTemporaryFile() and kept
open while the bitread subprocess wrote to it by name. On Windows that
is a sharing violation (the open handle blocks the child's write), so
bit2fasm always failed there. Create the file with delete=False, close
it immediately, and unlink it via the ExitStack instead.

No behaviour change on POSIX beyond the file being closed while
bitread runs.
2026-07-31 22:47:03 +02:00
Hans Baier ec284dfb8f riob18: fix IBUF_LOW_PWR_SUPPORTED
Signed-off-by: Hans Baier <hansfbaier@gmail.com>
2024-01-08 14:00:20 +07:00
Alessandro Comodi 1bd8142625 scripts: use open safe file class
Signed-off-by: Alessandro Comodi <acomodi@antmicro.com>
2022-03-17 10:04:19 +01:00
Tomasz Michalak e8311caea2 Add licensing header to python scripts
Signed-off-by: Tomasz Michalak <tmichalak@antmicro.com>
Signed-off-by: Tim 'mithro' Ansell <tansell@google.com>
2020-05-26 07:33:12 -07:00
Alessandro Comodi e44027bcaf Move all part-specific files to dedicated directory
Signed-off-by: Alessandro Comodi <acomodi@antmicro.com>
2020-01-24 10:13:33 +01:00
Keith Rothman 1307e11397 IOB_SING solution via segbit aliases.
Signed-off-by: Keith Rothman <537074+litghost@users.noreply.github.com>
2019-03-01 17:02:18 -08:00
Keith Rothman 2208a48b89 Make format.
Signed-off-by: Keith Rothman <537074+litghost@users.noreply.github.com>
2019-02-08 14:27:57 -08:00
Keith Rothman 111ad4bacc Add optional bits output for debugging.
Signed-off-by: Keith Rothman <537074+litghost@users.noreply.github.com>
2019-02-08 14:26:35 -08:00
Keith Rothman c830c27357 Fix frame initialization regression.
Signed-off-by: Keith Rothman <537074+litghost@users.noreply.github.com>
2019-02-06 22:18:33 -08:00
Keith Rothman f372849bc0 Update FASM to version that includes output sorting.
Signed-off-by: Keith Rothman <537074+litghost@users.noreply.github.com>
2019-02-06 17:12:01 -08:00
Keith Rothman 310d197b8e Add support for non-canonical sorted output.
Signed-off-by: Keith Rothman <537074+litghost@users.noreply.github.com>
2019-02-06 16:41:04 -08:00
Keith Rothman 167401833c Set bit2fasm.py as executable and increase context on JSON diff.
Signed-off-by: Keith Rothman <537074+litghost@users.noreply.github.com>
2019-01-29 15:51:11 -08:00
Keith Rothman 85ff7fe55c Run make format.
Signed-off-by: Keith Rothman <537074+litghost@users.noreply.github.com>
2019-01-10 17:04:05 -08:00
Keith Rothman 26c1c2f226 Add utility to convert from bit to FASM in one program.
Signed-off-by: Keith Rothman <537074+litghost@users.noreply.github.com>
2019-01-10 17:02:45 -08:00