frontend/etherbone: Replace is by ==. (Reported by python3.8).

This commit is contained in:
Florent Kermarrec 2022-03-16 16:46:37 +01:00
parent 2eba4e6bbf
commit 9ab4419382
1 changed files with 2 additions and 2 deletions

View File

@ -323,7 +323,7 @@ class LiteEthEtherboneRecord(Module):
sink.connect(depacketizer.sink), sink.connect(depacketizer.sink),
depacketizer.source.connect(receiver.sink) depacketizer.source.connect(receiver.sink)
] ]
if endianness is "big": if endianness == "big":
self.comb += receiver.sink.data.eq(reverse_bytes(depacketizer.source.data)) self.comb += receiver.sink.data.eq(reverse_bytes(depacketizer.source.data))
# Save last ip address # Save last ip address
@ -347,7 +347,7 @@ class LiteEthEtherboneRecord(Module):
(sender.source.rcount != 0)*4 + sender.source.rcount*4), (sender.source.rcount != 0)*4 + sender.source.rcount*4),
source.ip_address.eq(last_ip_address) 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)) self.comb += packetizer.sink.data.eq(reverse_bytes(sender.source.data))
# Etherbone Wishbone Master ------------------------------------------------------------------------ # Etherbone Wishbone Master ------------------------------------------------------------------------