frontend/etherbone: Replace is by ==. (Reported by python3.8).
This commit is contained in:
parent
2eba4e6bbf
commit
9ab4419382
|
@ -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 ------------------------------------------------------------------------
|
||||
|
|
Loading…
Reference in New Issue