diff --git a/myhdl/test/benchmark/lfsr24.py b/myhdl/test/benchmark/lfsr24.py index a91492dc..22eb7faa 100644 --- a/myhdl/test/benchmark/lfsr24.py +++ b/myhdl/test/benchmark/lfsr24.py @@ -8,8 +8,9 @@ def lfsr24(lfsr, enable, clock, reset): lfsr.next = 1 else: if enable: + # lfsr.next[24:1] = lfsr[23:0] + lfsr.next = lfsr[23:0] << 1 lfsr.next[0] = lfsr[23] ^ lfsr[22] ^ lfsr[21] ^ lfsr[16] - lfsr.next[24:1] = lfsr[23:0] return logic