genlib/crc: use OrderedDict

This commit is contained in:
Florent Kermarrec 2015-01-22 16:37:18 +01:00 committed by Sebastien Bourdeauducq
parent 2175a79c03
commit 7471b2a152
1 changed files with 2 additions and 1 deletions

View File

@ -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