Skip to content

Commit

Permalink
protocol.jesd3: fix detection of default fuse state in a JED file.
Browse files Browse the repository at this point in the history
Originally proposed in whitequark/prjbureau#13.
  • Loading branch information
whitequark committed Oct 20, 2023
1 parent 459762b commit eb22efa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion software/glasgow/protocol/jesd3.py
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ def _on_end(self, checksum):
self._parse_error("transmission checksum mismatch: expected %04X, actual %04X"
% (expected_checksum, actual_checksum))

if self._fuse_default is not None and self._fuse_bit_count < len(self.fuse):
if self._fuse_default is None and self._fuse_bit_count < len(self.fuse):
self._parse_error("fuse default state is not specified, and only %d out of %d fuse "
"bits are explicitly defined"
% (self._fuse_bit_count, len(self.fuse)))
Expand Down

0 comments on commit eb22efa

Please sign in to comment.