Skip to content

Commit

Permalink
lint: Other formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
fischeti committed Jul 18, 2024
1 parent 124cef7 commit 583d7b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions target/snitch_cluster/util/gen_bootrom.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def format_binary(binary):
sv_code = ""
for i in range(num_words):
# Extract each 32-bit word as little-endian and unpack it as an unsigned integer
word = struct.unpack_from('<I', binary, 4*i)[0]
word = struct.unpack_from("<I", binary, 4 * i)[0]
sv_code += f" bootrom[{i}] = 32'h{word:08x}; /* 0x{4*i:04x} */\n"
return sv_code[:-1]

Expand Down Expand Up @@ -86,6 +86,6 @@ def format_binary(binary):
""".strip().format(
script=os.path.basename(__file__),
module_name=args.sv_module,
words=format_binary(binary)
words=format_binary(binary),
)
)

0 comments on commit 583d7b8

Please sign in to comment.