Skip to content

Commit

Permalink
CPLD tool: Fix --checksum breakage.
Browse files Browse the repository at this point in the history
  • Loading branch information
jboone committed Mar 2, 2019
1 parent 057b927 commit 9ba4e50
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions firmware/tools/cpld_bitstream.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,8 +196,8 @@ def make_sram_program(program_blocks):
crc = DumbCRC32()

verify_block = verify_blocks[1]
for row in verify_block:
valid_data = row['data'] & row['mask']
for address, data, mask in verify_block:
valid_data = data & mask
bytes = valid_data.to_bytes(bytes_of_data, byteorder='little')
crc.update(bytes)

Expand Down

0 comments on commit 9ba4e50

Please sign in to comment.