Skip to content

Commit

Permalink
gateware/windows/descriptorSet: Fixed a word selection that was doing…
Browse files Browse the repository at this point in the history
… bad things with signed-unsigned conversion
  • Loading branch information
dragonmux committed Oct 19, 2023
1 parent fb694ef commit a09b587
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gateware/dragonBoot/windows/descriptorSet.py
Original file line number Diff line number Diff line change
Expand Up @@ -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),
]
Expand Down

0 comments on commit a09b587

Please sign in to comment.