From 7471b2a1526436358a141e322cc924c6d2a5effc Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Thu, 22 Jan 2015 16:37:18 +0100 Subject: [PATCH] genlib/crc: use OrderedDict --- migen/genlib/crc.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/migen/genlib/crc.py b/migen/genlib/crc.py index 51a9ab108..0c5714785 100644 --- a/migen/genlib/crc.py +++ b/migen/genlib/crc.py @@ -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