From 9ab44193821cd6bc977c45e5fdae85423bb843a6 Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Wed, 16 Mar 2022 16:46:37 +0100 Subject: [PATCH] frontend/etherbone: Replace is by ==. (Reported by python3.8). --- liteeth/frontend/etherbone.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/liteeth/frontend/etherbone.py b/liteeth/frontend/etherbone.py index 7f08687..47568eb 100644 --- a/liteeth/frontend/etherbone.py +++ b/liteeth/frontend/etherbone.py @@ -323,7 +323,7 @@ class LiteEthEtherboneRecord(Module): sink.connect(depacketizer.sink), depacketizer.source.connect(receiver.sink) ] - if endianness is "big": + if endianness == "big": self.comb += receiver.sink.data.eq(reverse_bytes(depacketizer.source.data)) # Save last ip address @@ -347,7 +347,7 @@ class LiteEthEtherboneRecord(Module): (sender.source.rcount != 0)*4 + sender.source.rcount*4), source.ip_address.eq(last_ip_address) ] - if endianness is "big": + if endianness == "big": self.comb += packetizer.sink.data.eq(reverse_bytes(sender.source.data)) # Etherbone Wishbone Master ------------------------------------------------------------------------