mirror of
https://github.com/enjoy-digital/litex.git
synced 2025-01-04 09:52:26 -05:00
link/crc: use OrderedDict to generate the same code on each iteration
This commit is contained in:
parent
62bb5b47ca
commit
f0f6183c9a
1 changed files with 2 additions and 1 deletions
|
@ -1,3 +1,4 @@
|
|||
from collections import OrderedDict
|
||||
from litesata.common import *
|
||||
|
||||
from migen.actorlib.crc import CRCInserter, CRCChecker
|
||||
|
@ -36,7 +37,7 @@ class CRCEngine(Module):
|
|||
Replace even numbers of XORs in the equation
|
||||
with an equivalent XOR
|
||||
"""
|
||||
d = {}
|
||||
d = OrderedDict()
|
||||
for e in l:
|
||||
if e in d:
|
||||
d[e] += 1
|
||||
|
|
Loading…
Reference in a new issue