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 ------------------------------------------------------------------------