2
0
mirror of https://github.com/m-labs/artiq.git synced 2024-12-26 19:58:25 +08:00

flash_tools: cleanup import

This commit is contained in:
Sébastien Bourdeauducq 2024-11-20 08:23:51 +08:00 committed by GitHub
parent 1ed04ebc91
commit df1a389007
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,6 +1,7 @@
import atexit import atexit
import os import os
import tempfile import tempfile
import struct
def artifact_path(this_binary_dir, *path_filename, srcbuild=False): def artifact_path(this_binary_dir, *path_filename, srcbuild=False):
@ -65,9 +66,6 @@ def fetch_bin(binary_dir, components, srcbuild=False):
# after # after
# https://github.com/mfischer/fpgadev-zynq/blob/master/top/python/bit_to_zynq_bin.py # https://github.com/mfischer/fpgadev-zynq/blob/master/top/python/bit_to_zynq_bin.py
import struct
def flip32(data): def flip32(data):
sl = struct.Struct("<I") sl = struct.Struct("<I")
sb = struct.Struct(">I") sb = struct.Struct(">I")