From: Florent Kermarrec Date: Thu, 22 Jan 2015 15:37:18 +0000 (+0100) Subject: genlib/crc: use OrderedDict X-Git-Tag: 24jan2021_ls180~2099^2~253 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7471b2a1526436358a141e322cc924c6d2a5effc;p=litex.git genlib/crc: use OrderedDict --- diff --git a/migen/genlib/crc.py b/migen/genlib/crc.py index 51a9ab10..0c571478 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