From 8f459a27dda79789094ce400a885ecf2a902a768 Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Fri, 4 Nov 2022 10:21:12 +0100 Subject: [PATCH] integration/common/get_mem_data: Remove dead code (thanks @Rongronggg9). See: https://github.com/enjoy-digital/litex/pull/1488#pullrequestreview-1168106543 --- litex/soc/integration/common.py | 1 - 1 file changed, 1 deletion(-) diff --git a/litex/soc/integration/common.py b/litex/soc/integration/common.py index e15a0f38e..7391049ee 100644 --- a/litex/soc/integration/common.py +++ b/litex/soc/integration/common.py @@ -84,7 +84,6 @@ def get_mem_data(filename_or_regions, data_width=32, endianness="big", mem_size= for filled_data_width in range(0, data_width, 32): cur_byte = filled_data_width//8 data[(base - offset)//bytes_per_data + i] |= (struct.unpack(unpack_order, w[cur_byte:cur_byte+4])[0] << filled_data_width) - filled_data_width += 32 i += 1 return data