From: Florent Kermarrec Date: Wed, 21 Jan 2015 10:47:20 +0000 (+0100) Subject: link/crc: use OrderedDict to generate the same code on each iteration X-Git-Tag: 24jan2021_ls180~2572^2~35 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f0f6183c9a425208ac39a6c2383250afae54173d;p=litex.git link/crc: use OrderedDict to generate the same code on each iteration --- diff --git a/litesata/core/link/crc.py b/litesata/core/link/crc.py index 1f5ac617..89e4a13b 100644 --- a/litesata/core/link/crc.py +++ b/litesata/core/link/crc.py @@ -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