genlib/crc: use OrderedDict
This commit is contained in:
parent
2175a79c03
commit
7471b2a152
|
@ -1,3 +1,4 @@
|
|||
from collections import OrderedDict
|
||||
from migen.fhdl.std import *
|
||||
from migen.genlib.misc import optree
|
||||
|
||||
|
@ -37,7 +38,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