link/crc: use OrderedDict to generate the same code on each iteration
This commit is contained in:
parent
62bb5b47ca
commit
f0f6183c9a
|
@ -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 New Issue