From a09b587463644e8ece8eb1e9b712b7026fa0a5b8 Mon Sep 17 00:00:00 2001 From: dragonmux Date: Thu, 19 Oct 2023 05:20:44 +0100 Subject: [PATCH] gateware/windows/descriptorSet: Fixed a word selection that was doing bad things with signed-unsigned conversion --- gateware/dragonBoot/windows/descriptorSet.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gateware/dragonBoot/windows/descriptorSet.py b/gateware/dragonBoot/windows/descriptorSet.py index 59c6f34..79089d8 100644 --- a/gateware/dragonBoot/windows/descriptorSet.py +++ b/gateware/dragonBoot/windows/descriptorSet.py @@ -223,7 +223,7 @@ def elaborate(self, platform) -> Module: m.d.comb += [ self.tx.valid.eq(1), readPort.addr.eq(descriptorDataBaseAddress + wordInStream), - self.tx.payload.eq(readPort.data.word_select(3 - byteInStream, 8)), + self.tx.payload.eq(readPort.data.word_select((3 - byteInStream).as_unsigned(), 8)), self.tx.first.eq(onFirstPacket), self.tx.last.eq(onLastPacket), ]